diff options
Diffstat (limited to 'packages/taler-util/src/walletTypes.ts')
-rw-r--r-- | packages/taler-util/src/walletTypes.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index e094bc385..c6367f8ee 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -276,6 +276,18 @@ export class ReturnCoinsRequest { static checked: (obj: any) => ReturnCoinsRequest; } +export interface PrepareRefundResult { + proposalId: string; + + applied: number; + failed: number; + total: number; + + amountEffectivePaid: AmountString; + + info: OrderShortInfo; +} + export interface PrepareTipResult { /** * Unique ID for the tip assigned by the wallet. @@ -1003,6 +1015,17 @@ export const codecForForceRefreshRequest = (): Codec<ForceRefreshRequest> => .property("coinPubList", codecForList(codecForString())) .build("ForceRefreshRequest"); + + +export interface PrepareRefundRequest { + talerRefundUri: string; +} + +export const codecForPrepareRefundRequest = (): Codec<PrepareRefundRequest> => + buildCodecForObject<PrepareRefundRequest>() + .property("talerRefundUri", codecForString()) + .build("PrepareRefundRequest"); + export interface PrepareTipRequest { talerTipUri: string; } |