@riocrypto/common 1.0.1033 → 1.0.1034
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.
|
@@ -107,6 +107,7 @@ export declare class RioAdminClient {
|
|
|
107
107
|
importOrder(order: ImportOrderInput): Promise<Order>;
|
|
108
108
|
registerExchangeRate(orderId: string, amount: number, price: number, provider: string): Promise<void>;
|
|
109
109
|
cancelOrder(id?: string): Promise<Order>;
|
|
110
|
+
cancelChainedOrder(id?: string): Promise<void>;
|
|
110
111
|
getOrder(id: string): Promise<Order>;
|
|
111
112
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
112
113
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
@@ -359,6 +359,11 @@ class RioAdminClient {
|
|
|
359
359
|
return response.data;
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
+
cancelChainedOrder(id) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
yield this.axios.post(`/api/orders/chained/${id}/cancel`);
|
|
365
|
+
});
|
|
366
|
+
}
|
|
362
367
|
getOrder(id) {
|
|
363
368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
364
369
|
const response = yield this.axios.get(`/api/orders/${id}`);
|