diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-20 11:39:34 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-20 11:39:34 +0530 |
commit | 7ff93d8ef64d8ae832c2267192ce1f97bf914776 (patch) | |
tree | d53d915d5172eb1d9dc4dd496633cb130961ad89 /packages/taler-wallet-core/src/types/talerTypes.ts | |
parent | d9b73a30c1ce67f611f9d605bdf163c3e868f2c2 (diff) | |
download | wallet-core-7ff93d8ef64d8ae832c2267192ce1f97bf914776.tar.gz wallet-core-7ff93d8ef64d8ae832c2267192ce1f97bf914776.tar.bz2 wallet-core-7ff93d8ef64d8ae832c2267192ce1f97bf914776.zip |
match latest refund API of the merchant
Diffstat (limited to 'packages/taler-wallet-core/src/types/talerTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/types/talerTypes.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/types/talerTypes.ts b/packages/taler-wallet-core/src/types/talerTypes.ts index 99f44ea25..f251b47d1 100644 --- a/packages/taler-wallet-core/src/types/talerTypes.ts +++ b/packages/taler-wallet-core/src/types/talerTypes.ts @@ -849,6 +849,13 @@ interface MerchantOrderStatusPaid { * Amount that was refunded in total. */ refund_amount: AmountString; +} + +interface MerchantOrderRefundResponse { + /** + * Amount that was refunded in total. + */ + refund_amount: AmountString; /** * Successful refunds for this payment, empty array for none. @@ -1265,12 +1272,19 @@ export const codecForMerchantOrderStatusPaid = (): Codec< MerchantOrderStatusPaid > => buildCodecForObject<MerchantOrderStatusPaid>() - .property("merchant_pub", codecForString()) .property("refund_amount", codecForString()) .property("refunded", codecForBoolean) - .property("refunds", codecForList(codecForMerchantCoinRefundStatus())) .build("MerchantOrderStatusPaid"); +export const codecForMerchantOrderRefundPickupResponse = (): Codec< + MerchantOrderRefundResponse + > => + buildCodecForObject<MerchantOrderRefundResponse>() + .property("merchant_pub", codecForString()) + .property("refund_amount", codecForString()) + .property("refunds", codecForList(codecForMerchantCoinRefundStatus())) + .build("MerchantOrderRefundPickupResponse"); + export const codecForMerchantOrderStatusUnpaid = (): Codec< MerchantOrderStatusUnpaid > => |