diff options
Diffstat (limited to 'packages/taler-util/src/transactions-types.ts')
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index 8c4c2c7ed..cee3de9fa 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -151,6 +151,7 @@ export enum TransactionMinorState { RefundAvailable = "refund-available", AcceptRefund = "accept-refund", PaidByOther = "paid-by-other", + CompletedByOtherWallet = "completed-by-other-wallet", } export enum TransactionAction { @@ -214,7 +215,6 @@ export type Transaction = | TransactionWithdrawal | TransactionPayment | TransactionRefund - | TransactionReward | TransactionRefresh | TransactionDeposit | TransactionPeerPullCredit @@ -222,7 +222,8 @@ export type Transaction = | TransactionPeerPushCredit | TransactionPeerPushDebit | TransactionInternalWithdrawal - | TransactionRecoup; + | TransactionRecoup + | TransactionDenomLoss; export enum TransactionType { Withdrawal = "withdrawal", @@ -230,13 +231,13 @@ export enum TransactionType { Payment = "payment", Refund = "refund", Refresh = "refresh", - Reward = "reward", Deposit = "deposit", PeerPushDebit = "peer-push-debit", PeerPushCredit = "peer-push-credit", PeerPullDebit = "peer-pull-debit", PeerPullCredit = "peer-pull-credit", Recoup = "recoup", + DenomLoss = "denom-loss", } export enum WithdrawalType { @@ -298,6 +299,22 @@ interface WithdrawalDetailsForTalerBankIntegrationApi { exchangeCreditAccountDetails?: WithdrawalExchangeAccountDetails[]; } +export enum DenomLossEventType { + DenomExpired = "denom-expired", + DenomVanished = "denom-vanished", + DenomUnoffered = "denom-unoffered", +} + +/** + * A transaction to indicate financial loss due to denominations + * that became unusable for deposits. + */ +export interface TransactionDenomLoss extends TransactionCommon { + type: TransactionType.DenomLoss; + lossEventType: DenomLossEventType; + exchangeBaseUrl: string; +} + /** * A withdrawal transaction (either bank-integrated or manual). */ @@ -623,23 +640,6 @@ export interface TransactionRefund extends TransactionCommon { paymentInfo: RefundPaymentInfo | undefined; } -export interface TransactionReward extends TransactionCommon { - type: TransactionType.Reward; - - // Raw amount of the tip, without extra fees that apply - amountRaw: AmountString; - - /** - * More information about the merchant - */ - // merchant: MerchantInfo; - - // Amount will be (or was) added to the wallet's balance after fees and refreshing - amountEffective: AmountString; - - merchantBaseUrl: string; -} - /** * A transaction shown for refreshes. * Only shown for (1) refreshes not associated with other transactions |