aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-integrationtests
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-03 20:38:26 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-03 20:38:26 +0530
commitf51a59bc72c2886cb2bb88b149a3353857e3eb44 (patch)
treefee6f86112580241f8328869c1e71dd58e238fa9 /packages/taler-integrationtests
parentbf9c2ae7f9c24168ddea2ef9387c5a624287d993 (diff)
implement and test auto-refresh
Diffstat (limited to 'packages/taler-integrationtests')
-rw-r--r--packages/taler-integrationtests/src/harness.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/taler-integrationtests/src/harness.ts b/packages/taler-integrationtests/src/harness.ts
index b46525267..cc30df618 100644
--- a/packages/taler-integrationtests/src/harness.ts
+++ b/packages/taler-integrationtests/src/harness.ts
@@ -68,6 +68,7 @@ import {
AmountString,
ApplyRefundRequest,
codecForApplyRefundResponse,
+ codecForAny,
} from "taler-wallet-core";
import { URL } from "url";
import axios, { AxiosError } from "axios";
@@ -79,6 +80,7 @@ import {
MerchantOrderPrivateStatusResponse,
} from "./merchantApiTypes";
import { ApplyRefundResponse } from "taler-wallet-core";
+import { PendingOperationsResponse } from "taler-wallet-core";
const exec = util.promisify(require("child_process").exec);
@@ -1562,6 +1564,15 @@ export class WalletCli {
throw new OperationFailedError(resp.error);
}
+ async getPendingOperations(): Promise<PendingOperationsResponse> {
+ const resp = await this.apiRequest("getPendingOperations", {});
+ if (resp.type === "response") {
+ // FIXME: validate properly!
+ return codecForAny().decode(resp.result);
+ }
+ throw new OperationFailedError(resp.error);
+ }
+
async getTransactions(): Promise<TransactionsResponse> {
const resp = await this.apiRequest("getTransactions", {});
if (resp.type === "response") {