diff options
author | Florian Dold <florian@dold.me> | 2023-02-13 13:15:47 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-13 13:15:47 +0100 |
commit | 22cb8adaa6d9584ad7638b9019b6d0c3eb7158bf (patch) | |
tree | 53544a96cca4bafd9b284f53a960585e20d74d0c /packages/taler-util | |
parent | 79b77a0c3c5a9a07d22c276a63ed81eb30507eba (diff) |
wallet-core,harness: introduce reserveIsReady flag, test tx lifeycle
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/notifications.ts | 22 | ||||
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 10 |
2 files changed, 28 insertions, 4 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts index 9d3ca32b0..823c4130d 100644 --- a/packages/taler-util/src/notifications.ts +++ b/packages/taler-util/src/notifications.ts @@ -62,7 +62,9 @@ export enum NotificationType { PendingOperationProcessed = "pending-operation-processed", ProposalRefused = "proposal-refused", ReserveRegisteredWithBank = "reserve-registered-with-bank", - WithdrawalKycRequested = "withdrawal-kyc-requested", + WithdrawalGroupKycRequested = "withdrawal-group-kyc-requested", + WithdrawalGroupBankConfirmed = "withdrawal-group-bank-confirmed", + WithdrawalGroupReserveReady = "withdrawal-group-reserve-ready", DepositOperationError = "deposit-operation-error", } @@ -118,12 +120,22 @@ export interface RefreshMeltedNotification { type: NotificationType.RefreshMelted; } -export interface WithdrawalKycRequested { - type: NotificationType.WithdrawalKycRequested; +export interface WithdrawalGroupKycRequested { + type: NotificationType.WithdrawalGroupKycRequested; transactionId: string; kycUrl: string; } +export interface WithdrawalGroupBankConfirmed { + type: NotificationType.WithdrawalGroupBankConfirmed; + transactionId: string; +} + +export interface WithdrawalGroupReserveReady { + type: NotificationType.WithdrawalGroupReserveReady; + transactionId: string; +} + export interface RefreshRevealedNotification { type: NotificationType.RefreshRevealed; } @@ -293,4 +305,6 @@ export type WalletNotification = | ReserveRegisteredWithBankNotification | ReserveNotYetFoundNotification | PayOperationSuccessNotification - | WithdrawalKycRequested; + | WithdrawalGroupKycRequested + | WithdrawalGroupBankConfirmed + | WithdrawalGroupReserveReady; diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index 7562b5884..d108d1a77 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -167,6 +167,11 @@ interface WithdrawalDetailsForManualTransfer { // Public key of the reserve reservePub: string; + + /** + * Is the reserve ready for withdrawal? + */ + reserveIsReady: boolean; } interface WithdrawalDetailsForTalerBankIntegrationApi { @@ -187,6 +192,11 @@ interface WithdrawalDetailsForTalerBankIntegrationApi { // Public key of the reserve reservePub: string; + + /** + * Is the reserve ready for withdrawal? + */ + reserveIsReady: boolean; } // This should only be used for actual withdrawals |