summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/types/pendingTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-01-18 23:35:41 +0100
committerFlorian Dold <florian@dold.me>2021-01-18 23:35:41 +0100
commit5f3c02d31a223add55a32b20f4a289210cbb4f15 (patch)
treed91ded55692aea1294c0565328515f120559ab6a /packages/taler-wallet-core/src/types/pendingTypes.ts
parentf884193b1adf0861f710c6ab1bb94ea2073ade65 (diff)
downloadwallet-core-5f3c02d31a223add55a32b20f4a289210cbb4f15.tar.gz
wallet-core-5f3c02d31a223add55a32b20f4a289210cbb4f15.tar.bz2
wallet-core-5f3c02d31a223add55a32b20f4a289210cbb4f15.zip
implement deposits
Diffstat (limited to 'packages/taler-wallet-core/src/types/pendingTypes.ts')
-rw-r--r--packages/taler-wallet-core/src/types/pendingTypes.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/types/pendingTypes.ts b/packages/taler-wallet-core/src/types/pendingTypes.ts
index 18d9a2fa4..d41d2a977 100644
--- a/packages/taler-wallet-core/src/types/pendingTypes.ts
+++ b/packages/taler-wallet-core/src/types/pendingTypes.ts
@@ -40,6 +40,7 @@ export enum PendingOperationType {
TipChoice = "tip-choice",
TipPickup = "tip-pickup",
Withdraw = "withdraw",
+ Deposit = "deposit",
}
/**
@@ -60,6 +61,7 @@ export type PendingOperationInfo = PendingOperationInfoCommon &
| PendingTipPickupOperation
| PendingWithdrawOperation
| PendingRecoupOperation
+ | PendingDepositOperation
);
/**
@@ -228,6 +230,16 @@ export interface PendingWithdrawOperation {
}
/**
+ * Status of an ongoing deposit operation.
+ */
+export interface PendingDepositOperation {
+ type: PendingOperationType.Deposit;
+ lastError: TalerErrorDetails | undefined;
+ retryInfo: RetryInfo;
+ depositGroupId: string;
+}
+
+/**
* Fields that are present in every pending operation.
*/
export interface PendingOperationInfoCommon {