aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-05-03 00:16:03 -0300
committerSebastian <sebasjm@gmail.com>2022-05-03 00:16:03 -0300
commitdc842eab6b7a3b2e891ee89a325ec73e04d3be95 (patch)
tree5df20315b9f50c88598fe4084d739b8610f46bac /packages/taler-util
parent939729004a8f5fecde19e679a0672843c496662f (diff)
deposit from payto
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/walletTypes.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts
index c6367f8ee..d8696377a 100644
--- a/packages/taler-util/src/walletTypes.ts
+++ b/packages/taler-util/src/walletTypes.ts
@@ -1070,6 +1070,23 @@ export const codecForGetFeeForDeposit = (): Codec<GetFeeForDepositRequest> =>
.property("depositPaytoUri", codecForString())
.build("GetFeeForDepositRequest");
+export interface PrepareDepositRequest {
+ depositPaytoUri: string;
+ amount: AmountString;
+
+}
+export const codecForPrepareDepositRequest =
+ (): Codec<PrepareDepositRequest> =>
+ buildCodecForObject<PrepareDepositRequest>()
+ .property("amount", codecForAmountString())
+ .property("depositPaytoUri", codecForString())
+ .build("PrepareDepositRequest");
+
+export interface PrepareDepositResponse {
+ totalDepositCost: AmountJson;
+ effectiveDepositAmount: AmountJson;
+}
+
export const codecForCreateDepositGroupRequest =
(): Codec<CreateDepositGroupRequest> =>
buildCodecForObject<CreateDepositGroupRequest>()