@riocrypto/common 1.0.582 → 1.0.584
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.
|
@@ -66,7 +66,7 @@ export declare class RioClient {
|
|
|
66
66
|
refreshToken(): Promise<void>;
|
|
67
67
|
createOrder(order: OrderInput): Promise<Order>;
|
|
68
68
|
getOrder(id: string): Promise<Order>;
|
|
69
|
-
createBankPayout(oid: string, accountNumber: string): Promise<BankPayout>;
|
|
69
|
+
createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
|
|
70
70
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
71
71
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
72
72
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
@@ -208,11 +208,12 @@ class RioClient {
|
|
|
208
208
|
return response.data;
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
createBankPayout(oid, accountNumber) {
|
|
211
|
+
createBankPayout(oid, accountNumber, swiftCode) {
|
|
212
212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
213
|
const response = yield this.axios.post(`/api/payouts/bank`, {
|
|
214
214
|
orderId: oid,
|
|
215
215
|
accountNumber,
|
|
216
|
+
swiftCode,
|
|
216
217
|
});
|
|
217
218
|
return response.data;
|
|
218
219
|
});
|