diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-06 00:24:34 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-06 00:24:34 +0100 |
commit | 65bccbd139c53a2baccec442a680373125488102 (patch) | |
tree | 216860ec3523af33091b8fb52193787034c667f8 /src/walletTypes.ts | |
parent | 7b54439fd62bd2a5e15b3068a8fbaffeb0a57468 (diff) | |
download | wallet-core-65bccbd139c53a2baccec442a680373125488102.tar.xz |
separate operations for pay, refund status query and refund submission
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r-- | src/walletTypes.ts | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts index 2413234eb..f27970330 100644 --- a/src/walletTypes.ts +++ b/src/walletTypes.ts @@ -37,7 +37,6 @@ import { ExchangeWireInfo, WithdrawalSource, RetryInfo, - PurchaseStatus, } from "./dbTypes"; import { CoinPaySig, ContractTerms, PayReq } from "./talerTypes"; @@ -681,11 +680,26 @@ export interface PendingPayOperation { type: "pay"; proposalId: string; isReplay: boolean; - status: PurchaseStatus; retryInfo: RetryInfo, lastError: OperationError | undefined; } +export interface PendingRefundQueryOperation { + type: "refund-query"; + proposalId: string; + retryInfo: RetryInfo, + lastError: OperationError | undefined; +} + +export interface PendingRefundApplyOperation { + type: "refund-apply"; + proposalId: string; + retryInfo: RetryInfo, + lastError: OperationError | undefined; + numRefundsPending: number; + numRefundsDone: number; +} + export interface PendingOperationInfoCommon { type: string; givesLifeness: boolean; @@ -703,6 +717,8 @@ export type PendingOperationInfo = PendingOperationInfoCommon & | PendingProposalDownloadOperation | PendingProposalChoiceOperation | PendingPayOperation + | PendingRefundQueryOperation + | PendingRefundApplyOperation ); export interface PendingOperationsResponse { |