diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts b/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts index a9dbeef9a..539904f1c 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-refund-api.ts @@ -32,6 +32,7 @@ import { URL, durationFromSpec, PreparePayResultType, + Duration, } from "@gnu-taler/taler-util"; import axios from "axios"; import { @@ -57,7 +58,9 @@ async function testRefundApiWithFulfillmentUrl( amount: "TESTKUDOS:5", fulfillment_url: "https://example.com/fulfillment", }, - refund_delay: durationFromSpec({ minutes: 5 }), + refund_delay: Duration.toTalerProtocolDuration( + durationFromSpec({ minutes: 5 }), + ), }); let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { @@ -171,7 +174,9 @@ async function testRefundApiWithFulfillmentMessage( amount: "TESTKUDOS:5", fulfillment_message: "Thank you for buying foobar", }, - refund_delay: durationFromSpec({ minutes: 5 }), + refund_delay: Duration.toTalerProtocolDuration( + durationFromSpec({ minutes: 5 }), + ), }); let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { |