diff options
author | Florian Dold <florian@dold.me> | 2023-09-06 11:44:07 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-06 11:44:07 +0200 |
commit | 324d9f871c356f48f64c170a793024139ae2694d (patch) | |
tree | 41c169b113ca1357b0e3dc07a79266f23931c203 /packages/taler-util | |
parent | 9a1a3b350d4147243dbe2ecfcdcb846c0f3c6dcb (diff) | |
download | wallet-core-324d9f871c356f48f64c170a793024139ae2694d.tar.xz |
move merchant API client to taler-util
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/index.ts | 2 | ||||
-rw-r--r-- | packages/taler-util/src/merchant-api-types.ts | 20 |
2 files changed, 3 insertions, 19 deletions
diff --git a/packages/taler-util/src/index.ts b/packages/taler-util/src/index.ts index cfd0f7c47..0b75619ab 100644 --- a/packages/taler-util/src/index.ts +++ b/packages/taler-util/src/index.ts @@ -39,3 +39,5 @@ export * from "./merchant-api-types.js"; export * from "./errors.js"; export * from "./iban.js"; export * from "./transaction-test-data.js"; +export * from "./libeufin-api-types.js"; +export * from "./MerchantApiClient.js"; diff --git a/packages/taler-util/src/merchant-api-types.ts b/packages/taler-util/src/merchant-api-types.ts index ce30aa054..9933b93dc 100644 --- a/packages/taler-util/src/merchant-api-types.ts +++ b/packages/taler-util/src/merchant-api-types.ts @@ -47,7 +47,7 @@ import { WireAccount, codecForWireAccount, codecForList, - HashCodeString, + FacadeCredentials, } from "@gnu-taler/taler-util"; export interface MerchantPostOrderRequest { @@ -401,21 +401,3 @@ export interface AccountAddDetails { // To really delete credentials, set them to the type: "none". credit_facade_credentials?: FacadeCredentials; } - -export type FacadeCredentials = - | NoFacadeCredentials - | BasicAuthFacadeCredentials; - -export interface NoFacadeCredentials { - type: "none"; -} - -export interface BasicAuthFacadeCredentials { - type: "basic"; - - // Username to use to authenticate - username: string; - - // Password to use to authenticate - password: string; -} |