diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-16 12:53:22 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-16 12:53:22 +0100 |
commit | fa4621e70c48500a372504eb8ae9b9481531c555 (patch) | |
tree | 50c457c8c2133dfec32cb465e1b3902ce88fb209 /src/types/pending.ts | |
parent | 1b9c5855a8afb6833ff7a706f5bed5650e1191ad (diff) | |
download | wallet-core-fa4621e70c48500a372504eb8ae9b9481531c555.tar.xz |
history events WIP
Diffstat (limited to 'src/types/pending.ts')
-rw-r--r-- | src/types/pending.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/types/pending.ts b/src/types/pending.ts index d08d2c54e..53932e8f3 100644 --- a/src/types/pending.ts +++ b/src/types/pending.ts @@ -32,6 +32,7 @@ export const enum PendingOperationType { ProposalDownload = "proposal-download", Refresh = "refresh", Reserve = "reserve", + Recoup = "recoup", RefundApply = "refund-apply", RefundQuery = "refund-query", TipChoice = "tip-choice", @@ -53,6 +54,7 @@ export type PendingOperationInfo = PendingOperationInfoCommon & | PendingRefundApplyOperation | PendingRefundQueryOperation | PendingReserveOperation + | PendingTipChoiceOperation | PendingTipPickupOperation | PendingWithdrawOperation ); @@ -115,6 +117,13 @@ export interface PendingTipPickupOperation { merchantTipId: string; } +export interface PendingTipChoiceOperation { + type: PendingOperationType.TipChoice; + tipId: string; + merchantBaseUrl: string; + merchantTipId: string; +} + export interface PendingPayOperation { type: PendingOperationType.Pay; proposalId: string; @@ -147,8 +156,18 @@ export interface PendingWithdrawOperation { numCoinsTotal: number; } +export interface PendingOperationFlags { + isWaitingUser: boolean; + isError: boolean; + givesLifeness: boolean; +} + export interface PendingOperationInfoCommon { + /** + * Type of the pending operation. + */ type: PendingOperationType; + givesLifeness: boolean; } |