diff options
author | Florian Dold <florian@dold.me> | 2021-12-13 11:28:15 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-12-13 11:28:15 +0100 |
commit | c493a3069ec330b955efd8604cb9d8b76277c74e (patch) | |
tree | 32fb0ad5306f4e7000da4997c27a1abf3da96fcf /packages/taler-wallet-core/src/common.ts | |
parent | 38d8239f937de047f127d37cd23ca6829db8e3e4 (diff) | |
download | wallet-core-c493a3069ec330b955efd8604cb9d8b76277c74e.tar.xz |
wallet-core: reset reserve retry when resetting withdrawal retry
Diffstat (limited to 'packages/taler-wallet-core/src/common.ts')
-rw-r--r-- | packages/taler-wallet-core/src/common.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts index d3c4a5229..5b61ef14a 100644 --- a/packages/taler-wallet-core/src/common.ts +++ b/packages/taler-wallet-core/src/common.ts @@ -51,7 +51,7 @@ export interface TrustInfo { isAudited: boolean; } -export interface MerchantInfo { +export interface MerchantInfo { protocolVersionCurrent: number; } @@ -65,6 +65,14 @@ export interface MerchantOperations { ): Promise<MerchantInfo>; } +export interface ReserveOperations { + processReserve( + ws: InternalWalletState, + reservePub: string, + forceNow?: boolean, + ): Promise<void>; +} + /** * Interface for exchange-related operations. */ @@ -152,6 +160,7 @@ export interface InternalWalletState { exchangeOps: ExchangeOperations; recoupOps: RecoupOperations; merchantOps: MerchantOperations; + reserveOps: ReserveOperations; db: DbAccess<typeof WalletStoresV1>; http: HttpRequestLibrary; |