summaryrefslogtreecommitdiff
path: root/src/types/talerTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-31 20:13:59 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-31 20:13:59 +0530
commit3db00d9d73c7fcd88f8450330c01639a6b171df9 (patch)
tree2b480413b377e6c70fdb5aba776347cca483d68f /src/types/talerTypes.ts
parent119c1c708f9922e3e92ff592dcf08a1bd4f2f2e4 (diff)
downloadwallet-core-3db00d9d73c7fcd88f8450330c01639a6b171df9.tar.gz
wallet-core-3db00d9d73c7fcd88f8450330c01639a6b171df9.tar.bz2
wallet-core-3db00d9d73c7fcd88f8450330c01639a6b171df9.zip
fix concurrency bug in bank-integrated withdrawal, better response parsingv0.7.1-dev.17
Diffstat (limited to 'src/types/talerTypes.ts')
-rw-r--r--src/types/talerTypes.ts14
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;