@riocrypto/common 1.0.1018 → 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}`);
|