- acceptBankIntegratedWithdrawaldeprecated#
This operation is deprecated. Use prepareBankIntegratedWithdrawal followed by confirmWithdrawal instead.
Accept a bank-integrated withdrawal in one step, equivalent to preparing the withdrawal and then confirming it with the given exchange and amount. A background task then registers the reserve with the bank and withdraws the coins; once the bank has registered the reserve, the user authorizes the wire transfer in their banking application via the returned
confirmTransferUrl.Request:
The request must be an AcceptBankIntegratedWithdrawalRequest object.
Response:
On success, the result is an AcceptWithdrawalResponse object.
Side effects:
Combines the side effects of prepareBankIntegratedWithdrawal and confirmWithdrawal: creates (or reuses) the withdrawal transaction and starts the task that registers the reserve with the bank and withdraws the coins.
Expected errors:
The caller can handle the following errors inline:
WALLET_EXCHANGE_KEYS_NOT_ACCEPTED.
interface AcceptBankIntegratedWithdrawalRequest {
talerWithdrawUri: string;
exchangeBaseUrl: string;
forcedDenomSel?: ForcedDenomSel;
// Amount to withdraw. If the bank's withdrawal operation uses a
// fixed amount, this field must either be left undefined or its
// value must match the amount from the withdrawal operation.
amount?: AmountString;
restrictAge?: number;
progressToken?: string;
}
interface AcceptWithdrawalResponse {
confirmTransferUrl?: string;
transactionId: TransactionIdStr;
}