diff options
author | Florian Dold <florian@dold.me> | 2023-04-21 22:02:34 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-21 22:02:40 +0200 |
commit | e81ae0f3e5a510424076b611ac32385057cbdaed (patch) | |
tree | 1583ae253ec979f6dfdef5cd4581db6a7d33818a /packages/taler-util/src | |
parent | fc2adae6bd34164b4a13b270be4c585f090afb61 (diff) | |
download | wallet-core-e81ae0f3e5a510424076b611ac32385057cbdaed.tar.xz |
wallet-harness: make sure events are not lost in deposit test
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 5979f14b4..4297e838d 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1708,6 +1708,13 @@ export interface DepositGroupFees { } export interface CreateDepositGroupRequest { + /** + * Pre-allocated transaction ID. + * Allows clients to easily handle notifications + * that occur while the operation has been created but + * before the creation request has returned. + */ + transactionId?: string; depositPaytoUri: string; amount: AmountString; } @@ -1733,6 +1740,7 @@ export const codecForCreateDepositGroupRequest = buildCodecForObject<CreateDepositGroupRequest>() .property("amount", codecForAmountString()) .property("depositPaytoUri", codecForString()) + .property("transactionId", codecOptional(codecForString())) .build("CreateDepositGroupRequest"); export interface CreateDepositGroupResponse { |