diff options
author | Sebastian <sebasjm@gmail.com> | 2022-05-02 19:21:13 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-05-02 19:21:13 -0300 |
commit | e5c9f588e4618d01f6b4c91028e175147a6b5a69 (patch) | |
tree | dd423181484d92180a86cc7a5ef40130738accd8 /packages/taler-util/src | |
parent | 9996c274886cd80d5255765f7e3db8dfcadcfc94 (diff) | |
download | wallet-core-e5c9f588e4618d01f6b4c91028e175147a6b5a69.tar.xz |
add prepareRefund operation to gather information about the refund before confirm
Diffstat (limited to 'packages/taler-util/src')
-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; } |