diff options
Diffstat (limited to 'packages/taler-util/src/transactions-types.ts')
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index 02e95c208..aaf527b89 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -545,17 +545,31 @@ export interface RefundInfoShort { amountRaw: AmountString; } +/** + * Summary information about the payment that we got a refund for. + */ +export interface RefundPaymentInfo { + summary: string; + summary_i18n?: InternationalizedString; + /** + * More information about the merchant + */ + merchant: MerchantInfo; +} + export interface TransactionRefund extends TransactionCommon { type: TransactionType.Refund; - // ID for the transaction that is refunded - refundedTransactionId: string; - // Amount that has been refunded by the merchant amountRaw: AmountString; // Amount will be added to the wallet's balance after fees and refreshing amountEffective: AmountString; + + // ID for the transaction that is refunded + refundedTransactionId: string; + + paymentInfo: RefundPaymentInfo | undefined; } export interface TransactionTip extends TransactionCommon { |