summaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-09-06 11:23:33 +0200
committerFlorian Dold <florian@dold.me>2023-09-06 11:23:33 +0200
commit9a1a3b350d4147243dbe2ecfcdcb846c0f3c6dcb (patch)
treef9b01f5748edf391146d2bbaec62aad285d261ec /packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
parentc9a0d2eb968133b1ad156e1dc86e6c06dad09c7a (diff)
downloadwallet-core-9a1a3b350d4147243dbe2ecfcdcb846c0f3c6dcb.tar.gz
wallet-core-9a1a3b350d4147243dbe2ecfcdcb846c0f3c6dcb.tar.bz2
wallet-core-9a1a3b350d4147243dbe2ecfcdcb846c0f3c6dcb.zip
harness: get rid of deprecated merchant API client
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-denom-unoffered.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-denom-unoffered.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts b/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
index 5a471b9aa..a9282f394 100644
--- a/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
+++ b/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
@@ -19,7 +19,10 @@
*/
import { PreparePayResultType, TalerErrorCode } from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
-import { GlobalTestState, MerchantPrivateApi } from "../harness/harness.js";
+import {
+ GlobalTestState,
+ MerchantApiClient,
+} from "../harness/harness.js";
import {
createSimpleTestkudosEnvironmentV2,
withdrawViaBankV2,
@@ -62,11 +65,13 @@ export async function runDenomUnofferedTest(t: GlobalTestState) {
fulfillment_url: "taler://fulfillment-success/thx",
};
- const orderResp = await MerchantPrivateApi.createOrder(merchant, "default", {
+ const merchantClient = new MerchantApiClient(merchant.makeInstanceBaseUrl());
+
+ const orderResp = await merchantClient.createOrder({
order: order,
});
- let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, {
+ let orderStatus = await merchantClient.queryPrivateOrderStatus({
orderId: orderResp.order_id,
});