diff options
Diffstat (limited to 'packages/taler-wallet-core/src/common.ts')
-rw-r--r-- | packages/taler-wallet-core/src/common.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts index dd8542def..81c43cf14 100644 --- a/packages/taler-wallet-core/src/common.ts +++ b/packages/taler-wallet-core/src/common.ts @@ -51,6 +51,21 @@ export interface TrustInfo { isAudited: boolean; } +export interface MerchantInfo { + supportsMerchantProtocolV1: boolean; + supportsMerchantProtocolV2: boolean; +} + +/** + * Interface for merchant-related operations. + */ +export interface MerchantOperations { + getMerchantInfo( + ws: InternalWalletState, + merchantBaseUrl: string, + ): Promise<MerchantInfo>; +} + /** * Interface for exchange-related operations. */ @@ -131,8 +146,11 @@ export interface InternalWalletState { initCalled: boolean; + merchantInfoCache: Record<string, MerchantInfo>; + exchangeOps: ExchangeOperations; recoupOps: RecoupOperations; + merchantOps: MerchantOperations; db: DbAccess<typeof WalletStoresV1>; http: HttpRequestLibrary; |