diff options
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/walletTypes.ts | 17 |
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>() |