diff options
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 { |