@riocrypto/common 1.0.594 → 1.0.595

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,6 +65,7 @@ export declare class RioClient {
65
65
  }>;
66
66
  refreshToken(): Promise<void>;
67
67
  createOrder(order: OrderInput): Promise<Order>;
68
+ cancelOrder(id: string): Promise<Order>;
68
69
  getOrder(id: string): Promise<Order>;
69
70
  createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
70
71
  getBankPayout(orderId: string): Promise<BankPayout>;
@@ -202,6 +202,12 @@ class RioClient {
202
202
  return response.data;
203
203
  });
204
204
  }
205
+ cancelOrder(id) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ const response = yield this.axios.post(`/api/orders/${id}/cancel`);
208
+ return response.data;
209
+ });
210
+ }
205
211
  getOrder(id) {
206
212
  return __awaiter(this, void 0, void 0, function* () {
207
213
  const response = yield this.axios.get(`/api/orders/${id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.594",
3
+ "version": "1.0.595",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",