diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-31 20:13:59 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-31 20:13:59 +0530 |
commit | 3db00d9d73c7fcd88f8450330c01639a6b171df9 (patch) | |
tree | 2b480413b377e6c70fdb5aba776347cca483d68f /src/types | |
parent | 119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4 (diff) | |
download | wallet-core-3db00d9d73c7fcd88f8450330c01639a6b171df9.tar.xz |
fix concurrency bug in bank-integrated withdrawal, better response parsingv0.7.1-dev.17
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/talerTypes.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/types/talerTypes.ts b/src/types/talerTypes.ts index 823f437b5..95c1a711c 100644 --- a/src/types/talerTypes.ts +++ b/src/types/talerTypes.ts @@ -940,6 +940,20 @@ export interface WithdrawUriInfoResponse { possibleExchanges: ExchangeListItem[]; } +/** + * Response body for the following endpoint: + * + * POST {talerBankIntegrationApi}/withdrawal-operation/{wopid} + */ +export interface BankWithdrawalOperationPostResponse { + transfer_done: boolean; +} + +export const codecForBankWithdrawalOperationPostResponse = (): Codec<BankWithdrawalOperationPostResponse> => + makeCodecForObject<BankWithdrawalOperationPostResponse>() + .property("transfer_done", codecForBoolean) + .build("BankWithdrawalOperationPostResponse"); + export type AmountString = string; export type Base32String = string; export type EddsaSignatureString = string; |