diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-12 15:44:48 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-12 15:44:48 +0530 |
commit | 67dd0eb06e04466ca01a03955ff8f75d40429c79 (patch) | |
tree | 5b4fe00a91d41a5cb758c4983575ec65e4331f76 /src/types/transactions.ts | |
parent | 6206b418ff88a238762a18e7b6eeaceafc5de294 (diff) | |
download | wallet-core-67dd0eb06e04466ca01a03955ff8f75d40429c79.tar.xz |
new transactions API: purchases and refunds
Diffstat (limited to 'src/types/transactions.ts')
-rw-r--r-- | src/types/transactions.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/types/transactions.ts b/src/types/transactions.ts index d2f0f6cbc..7dda46f73 100644 --- a/src/types/transactions.ts +++ b/src/types/transactions.ts @@ -115,7 +115,7 @@ interface TransactionPayment extends TransactionCommon { type: TransactionType.Payment; // Additional information about the payment. - info: TransactionInfo; + info: PaymentShortInfo; // true if the payment failed, false otherwise. // Note that failed payments with zero effective amount will not be returned by the API. @@ -125,11 +125,11 @@ interface TransactionPayment extends TransactionCommon { amountRaw: AmountString; // Amount that was paid, including deposit, wire and refresh fees. - amountEffective: AmountString; + amountEffective?: AmountString; } -interface TransactionInfo { +interface PaymentShortInfo { // Order ID, uniquely identifies the order within a merchant instance orderId: string; @@ -157,7 +157,7 @@ interface TransactionRefund extends TransactionCommon { refundedTransactionId: string; // Additional information about the refunded payment - info: TransactionInfo; + info: PaymentShortInfo; // Part of the refund that couldn't be applied because the refund permissions were expired amountInvalid: AmountString; |