diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-20 14:34:56 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-20 14:34:56 +0530 |
commit | a8fb16021d6f71e6d0c7fae6b440e5c3197b8867 (patch) | |
tree | ff893a899e34d7f94dad420b0a6907e95f2942cb /packages/taler-wallet-core/src/types | |
parent | 786976e5a8e10f6a3eab50cacbefe98d8b2364f5 (diff) | |
download | wallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.tar.gz wallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.tar.bz2 wallet-core-a8fb16021d6f71e6d0c7fae6b440e5c3197b8867.zip |
handle withdrawals aborted by the bank, add test
Diffstat (limited to 'packages/taler-wallet-core/src/types')
-rw-r--r-- | packages/taler-wallet-core/src/types/dbTypes.ts | 5 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/types/talerTypes.ts | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts b/packages/taler-wallet-core/src/types/dbTypes.ts index 42192dd9a..82260963b 100644 --- a/packages/taler-wallet-core/src/types/dbTypes.ts +++ b/packages/taler-wallet-core/src/types/dbTypes.ts @@ -76,6 +76,11 @@ export enum ReserveRecordStatus { * by the user. */ DORMANT = "dormant", + + /** + * The bank aborted the withdrawal. + */ + BANK_ABORTED = "bank-aborted", } export interface RetryInfo { diff --git a/packages/taler-wallet-core/src/types/talerTypes.ts b/packages/taler-wallet-core/src/types/talerTypes.ts index f251b47d1..f14e2a2ab 100644 --- a/packages/taler-wallet-core/src/types/talerTypes.ts +++ b/packages/taler-wallet-core/src/types/talerTypes.ts @@ -707,6 +707,8 @@ export class WithdrawOperationStatusResponse { transfer_done: boolean; + aborted: boolean; + amount: string; sender_wire?: string; @@ -1178,6 +1180,7 @@ export const codecForWithdrawOperationStatusResponse = (): Codec< buildCodecForObject<WithdrawOperationStatusResponse>() .property("selection_done", codecForBoolean) .property("transfer_done", codecForBoolean) + .property("aborted", codecForBoolean) .property("amount", codecForString()) .property("sender_wire", codecOptional(codecForString())) .property("suggested_exchange", codecOptional(codecForString())) |