add test for commit 4f376297dc
: show be able to call check refund and finish
This commit is contained in:
parent
4f376297dc
commit
b5c29a8bad
@ -84,12 +84,14 @@ export async function runRefundTest(t: GlobalTestState) {
|
||||
|
||||
console.log(ref);
|
||||
|
||||
let r = await wallet.client.call(WalletApiOperation.ApplyRefund, {
|
||||
talerRefundUri: ref.talerRefundUri,
|
||||
});
|
||||
console.log(r);
|
||||
{
|
||||
const r = await wallet.client.call(WalletApiOperation.ApplyRefund, {
|
||||
talerRefundUri: ref.talerRefundUri,
|
||||
});
|
||||
console.log(r);
|
||||
|
||||
await wallet.runUntilDone();
|
||||
await wallet.runUntilDone();
|
||||
}
|
||||
|
||||
{
|
||||
const r2 = await wallet.client.call(WalletApiOperation.GetBalances, {});
|
||||
@ -100,6 +102,15 @@ export async function runRefundTest(t: GlobalTestState) {
|
||||
console.log(JSON.stringify(r2, undefined, 2));
|
||||
}
|
||||
|
||||
{
|
||||
const r3 = await wallet.client.call(WalletApiOperation.ApplyRefundFromPurchaseId, {
|
||||
purchaseId: r1.proposalId
|
||||
});
|
||||
console.log(r3);
|
||||
|
||||
await wallet.runUntilDone();
|
||||
}
|
||||
|
||||
await t.shutdown();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user