diff options
author | Florian Dold <florian@dold.me> | 2024-07-08 15:17:19 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-07-08 15:17:29 +0200 |
commit | 9c6d04fcbfa53330c79bd4ab2ad4729c20d6a09c (patch) | |
tree | a759800e2aeb5235663e810b7b1826164f04e22a /packages/taler-util/src/MerchantApiClient.ts | |
parent | 86f045f6730bea2a02398326602efac9a81b1687 (diff) |
util: more API type decl reorg
Diffstat (limited to 'packages/taler-util/src/MerchantApiClient.ts')
-rw-r--r-- | packages/taler-util/src/MerchantApiClient.ts | 49 |
1 files changed, 9 insertions, 40 deletions
diff --git a/packages/taler-util/src/MerchantApiClient.ts b/packages/taler-util/src/MerchantApiClient.ts index 554fe8a6b..8f05801c4 100644 --- a/packages/taler-util/src/MerchantApiClient.ts +++ b/packages/taler-util/src/MerchantApiClient.ts @@ -15,12 +15,7 @@ */ import { codecForAny } from "./codec.js"; -import { - TalerMerchantApi, - codecForMerchantConfig, - codecForMerchantOrderPrivateStatusResponse, - codecForPostOrderResponse, -} from "./http-client/types.js"; +import { TalerMerchantApi } from "./http-client/types.js"; import { HttpStatusCode } from "./http-status-codes.js"; import { createPlatformHttpLib, @@ -28,7 +23,6 @@ import { readSuccessResponseJsonOrThrow, readTalerErrorResponse, } from "./http.js"; -import { FacadeCredentials } from "./libeufin-api-types.js"; import { LibtoolVersion } from "./libtool-version.js"; import { Logger } from "./logging.js"; import { @@ -41,8 +35,15 @@ import { opSuccessFromHttp, opUnknownFailure, } from "./operation.js"; -import { AmountString } from "./types-taler-common.js"; import { TalerProtocolDuration } from "./time.js"; +import { AmountString } from "./types-taler-common.js"; +import { + FacadeCredentials, + OtpDeviceAddDetails, + codecForMerchantConfig, + codecForMerchantOrderPrivateStatusResponse, + codecForPostOrderResponse, +} from "./types-taler-merchant.js"; const logger = new Logger("MerchantApiClient.ts"); @@ -87,21 +88,6 @@ export interface DeleteTippingReserveArgs { purge?: boolean; } -interface MerchantBankAccount { - // The payto:// URI where the wallet will send coins. - payto_uri: string; - - // Optional base URL for a facade where the - // merchant backend can see incoming wire - // transfers to reconcile its accounting - // with that of the exchange. Used by - // taler-merchant-wirewatch. - credit_facade_url?: string; - - // Credentials for accessing the credit facade. - credit_facade_credentials?: FacadeCredentials; -} - export interface MerchantInstanceConfig { auth: MerchantAuthConfiguration; id: string; @@ -119,23 +105,6 @@ export interface PrivateOrderStatusQuery { sessionId?: string; } -export interface OtpDeviceAddDetails { - // Device ID to use. - otp_device_id: string; - - // Human-readable description for the device. - otp_device_description: string; - - // A base64-encoded key - otp_key: string; - - // Algorithm for computing the POS confirmation. - otp_algorithm: number; - - // Counter for counter-based OTP devices. - otp_ctr?: number; -} - /** * Client for the GNU Taler merchant backend. */ |