diff options
author | Florian Dold <florian@dold.me> | 2024-04-08 22:29:51 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-04-08 22:29:51 +0200 |
commit | 859d5c56c7a5b26e741254d6d1e9c5731a787ae1 (patch) | |
tree | 55a45b686974318b0a8bb63f307ade0830e7c0e3 /packages/taler-util/src/wallet-types.ts | |
parent | 30dea85f1e2410f974f8c16e4e53d4ba1290442d (diff) | |
download | wallet-core-859d5c56c7a5b26e741254d6d1e9c5731a787ae1.tar.xz |
wallet-core: support cancellation for getWithdrawalDetailsForAmount
Diffstat (limited to 'packages/taler-util/src/wallet-types.ts')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 34d91d3d6..fa0f385b7 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1857,6 +1857,19 @@ export interface GetWithdrawalDetailsForAmountRequest { exchangeBaseUrl: string; amount: AmountString; restrictAge?: number; + + /** + * ID provided by the client to cancel the request. + * + * If the same request is made again with the same clientCancellationId, + * all previous requests are cancelled. + * + * The cancelled request will receive an error response with + * an error code that indicates the cancellation. + * + * The cancellation is best-effort, responses might still arrive. + */ + clientCancellationId?: string; } export interface AcceptBankIntegratedWithdrawalRequest { |