Skip to content

Commit fb2ba79

Browse files
committed
refactor: change method name
1 parent 27ea2d5 commit fb2ba79

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/bourso_api/src/client/transfer/mod.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,18 @@ impl BoursoWebClient {
322322
}
323323
}
324324

325+
/// Transfer funds from one account to another, yielding progress updates
326+
///
327+
/// ## Arguments
328+
/// - `amount`: Amount to transfer (must be >= 10.0)
329+
/// - `from_account`: Source account
330+
/// - `to_account`: Destination account
331+
/// - `reason`: Optional reason for the transfer (max 50 characters)
332+
///
333+
/// ## Returns
334+
/// A stream of progress updates for the transfer.
325335
#[cfg(not(tarpaulin_include))]
326-
pub fn transfer_funds_with_progress(
336+
pub fn transfer_funds(
327337
&self,
328338
amount: f64,
329339
from_account: Account,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pub async fn parse_matches(matches: ArgMatches) -> Result<()> {
294294
.find(|a| a.id == to_account_id)
295295
.context("To account not found. Are you sure you have access to it? Run `bourso accounts` to list your accounts")?;
296296

297-
let stream = web_client.transfer_funds_with_progress(
297+
let stream = web_client.transfer_funds(
298298
amount,
299299
from_account.clone(),
300300
to_account.clone(),

0 commit comments

Comments
 (0)