diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-05 00:53:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-05 00:53:53 -0300 |
commit | 31cf3187e447e2c4ec8a473362c5bacc07a874f1 (patch) | |
tree | 74e528b91eb313cf4d991410afda6ce905a218d6 /packages/taler-util/src/http-client/bank-integration.ts | |
parent | 78240f6c0f600f905f29e6dceb75286461297f24 (diff) | |
download | wallet-core-31cf3187e447e2c4ec8a473362c5bacc07a874f1.tar.xz |
exchange and merchant api
Diffstat (limited to 'packages/taler-util/src/http-client/bank-integration.ts')
-rw-r--r-- | packages/taler-util/src/http-client/bank-integration.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-util/src/http-client/bank-integration.ts b/packages/taler-util/src/http-client/bank-integration.ts index 7cddcb9a9..b526805df 100644 --- a/packages/taler-util/src/http-client/bank-integration.ts +++ b/packages/taler-util/src/http-client/bank-integration.ts @@ -1,7 +1,7 @@ import { HttpRequestLibrary, readSuccessResponseJsonOrThrow } from "../http-common.js"; import { HttpStatusCode } from "../http-status-codes.js"; import { createPlatformHttpLib } from "../http.js"; -import { opKnownFailure, opSuccess, opUnknownFailure } from "../operation.js"; +import { FailCasesByMethod, ResultByMethod, opKnownFailure, opSuccess, opUnknownFailure } from "../operation.js"; import { TalerErrorCode } from "../taler-error-codes.js"; import { codecForTalerErrorDetail } from "../wallet-types.js"; import { @@ -11,6 +11,12 @@ import { codecForIntegrationBankConfig } from "./types.js"; +export type TalerBankIntegrationResultByMethod<prop extends keyof TalerBankIntegrationHttpClient> = ResultByMethod<TalerBankIntegrationHttpClient, prop> +export type TalerBankIntegrationErrorsByMethod<prop extends keyof TalerBankIntegrationHttpClient> = FailCasesByMethod<TalerBankIntegrationHttpClient, prop> + +/** + * The API is used by the wallets. + */ export class TalerBankIntegrationHttpClient { httpLib: HttpRequestLibrary; |