@riocrypto/common 1.0.1017 → 1.0.1019

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.
@@ -70,6 +70,7 @@ export declare class RioClient {
70
70
  createOrder(order: OrderInput): Promise<Order>;
71
71
  createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
72
72
  cancelOrder(id?: string): Promise<Order>;
73
+ cancelChainedOrder(id?: string): Promise<void>;
73
74
  getOrder(id: string): Promise<Order>;
74
75
  getChainedOrder(id: string): Promise<ChainedOrder>;
75
76
  createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
@@ -217,6 +217,11 @@ class RioClient {
217
217
  return response.data;
218
218
  });
219
219
  }
220
+ cancelChainedOrder(id) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ yield this.axios.post(`/api/orders/chained/${id}/cancel`);
223
+ });
224
+ }
220
225
  getOrder(id) {
221
226
  return __awaiter(this, void 0, void 0, function* () {
222
227
  const response = yield this.axios.get(`/api/orders/${id}`);
@@ -1,3 +1,4 @@
1
1
  export interface ChainedOrderQuery {
2
- userId?: string;
2
+ originUserId?: string;
3
+ destinationUserID?: string;
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1017",
3
+ "version": "1.0.1019",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",