diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-07 15:54:22 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-07 15:54:22 +0530 |
commit | be77ee284a819f7932831bd85e88c47c655addb2 (patch) | |
tree | e0e57cdc9a2889a16c6640f1e2346df85054409e /packages/taler-integrationtests | |
parent | d0088323ce02c6cc2cbe1413eddb0b81f3f147f2 (diff) |
dynamic pay request timeout
Diffstat (limited to 'packages/taler-integrationtests')
-rw-r--r-- | packages/taler-integrationtests/src/harness.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/taler-integrationtests/src/harness.ts b/packages/taler-integrationtests/src/harness.ts index 90a618e17..620b89e76 100644 --- a/packages/taler-integrationtests/src/harness.ts +++ b/packages/taler-integrationtests/src/harness.ts @@ -1215,6 +1215,30 @@ export namespace MerchantPrivateApi { talerRefundUri: resp.data.taler_refund_uri, }; } + + export async function createTippingReserve(merchantService: MerchantServiceInterface, + + req: CreateMerchantTippingReserveRequest, + ): Promise<CreateMerchantTippingReserveConfirmation> {} +} + +export interface CreateMerchantTippingReserveRequest { + // Amount that the merchant promises to put into the reserve + initial_balance: AmountString; + + // Exchange the merchant intends to use for tipping + exchange_url: string; + + // Desired wire method, for example "iban" or "x-taler-bank" + wire_method: string; +} + +export interface CreateMerchantTippingReserveConfirmation { + // Public key identifying the reserve + reserve_pub: string; + + // Wire account of the exchange where to transfer the funds + payto_url: string; } export class MerchantService implements MerchantServiceInterface { |