aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/harness/helpers.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-05-16 13:19:17 +0200
committerFlorian Dold <florian@dold.me>2024-05-16 13:19:23 +0200
commitf0decd3521440d6119ad9333949ce67653d8b2c2 (patch)
tree7e14203552b811448136802fb00eeccadc04071e /packages/taler-harness/src/harness/helpers.ts
parent98c188c1b14f73a6b81f41a0cacd6195bb53208e (diff)
downloadwallet-core-f0decd3521440d6119ad9333949ce67653d8b2c2.tar.xz
wallet-core: query templates, refactor API declarations
Diffstat (limited to 'packages/taler-harness/src/harness/helpers.ts')
-rw-r--r--packages/taler-harness/src/harness/helpers.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/taler-harness/src/harness/helpers.ts b/packages/taler-harness/src/harness/helpers.ts
index efcef8706..4e3ce66b9 100644
--- a/packages/taler-harness/src/harness/helpers.ts
+++ b/packages/taler-harness/src/harness/helpers.ts
@@ -29,11 +29,11 @@ import {
Duration,
Logger,
MerchantApiClient,
- MerchantContractTerms,
NotificationType,
PartialWalletRunConfig,
PreparePayResultType,
TalerCorebankApiClient,
+ TalerMerchantApi,
TransactionMajorState,
WalletNotification,
} from "@gnu-taler/taler-util";
@@ -100,7 +100,7 @@ export interface SimpleTestEnvironmentNg {
*/
export interface SimpleTestEnvironmentNg3 {
commonDb: DbInfo;
- bankClient: TalerCorebankApiClient,
+ bankClient: TalerCorebankApiClient;
exchange: ExchangeService;
exchangeBankAccount: HarnessExchangeBankAccount;
merchant: MerchantService;
@@ -808,7 +808,7 @@ export async function withdrawViaBankV3(
t: GlobalTestState,
p: {
walletClient: WalletClient;
- bankClient: TalerCorebankApiClient,
+ bankClient: TalerCorebankApiClient;
exchange: ExchangeServiceInterface;
amount: AmountString | string;
restrictAge?: number;
@@ -823,7 +823,10 @@ export async function withdrawViaBankV3(
password: user.password,
});
- const wop = await bankClient2.createWithdrawalOperation(user.username, amount);
+ const wop = await bankClient2.createWithdrawalOperation(
+ user.username,
+ amount,
+ );
// Hand it to the wallet
@@ -898,7 +901,7 @@ export async function makeTestPaymentV2(
args: {
merchant: MerchantServiceInterface;
walletClient: WalletClient;
- order: Partial<MerchantContractTerms>;
+ order: TalerMerchantApi.Order;
instance?: string;
},
auth: WithAuthorization = {},