@riocrypto/common 1.0.625 → 1.0.626

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.
@@ -60,7 +60,7 @@ export declare class RioClient {
60
60
  }>;
61
61
  refreshToken(): Promise<void>;
62
62
  createOrder(order: OrderInput): Promise<Order>;
63
- cancelOrder(id: string): Promise<Order>;
63
+ cancelOrder(id?: string): Promise<Order>;
64
64
  getOrder(id: string): Promise<Order>;
65
65
  createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
66
66
  getBankPayout(orderId: string): Promise<BankPayout>;
@@ -187,7 +187,7 @@ class RioClient {
187
187
  }
188
188
  cancelOrder(id) {
189
189
  return __awaiter(this, void 0, void 0, function* () {
190
- const response = yield this.axios.post(`/api/orders/${id}/cancel`);
190
+ const response = yield this.axios.post(`/api/orders${id ? `/${id}/cancel` : "/cancel"}`);
191
191
  return response.data;
192
192
  });
193
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.625",
3
+ "version": "1.0.626",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",