@riocrypto/common 1.0.1434 → 1.0.1437
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.
|
@@ -177,6 +177,9 @@ export declare class RioAdminClient {
|
|
|
177
177
|
approved?: boolean;
|
|
178
178
|
}): Promise<BankAccount>;
|
|
179
179
|
deleteBankAccount(id: string): Promise<void>;
|
|
180
|
+
createRioBankAccount(country: Country, fiat: Fiat, bankName?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<BankAccount>;
|
|
181
|
+
updateRioBankAccount(id: string, country?: Country, fiat?: Fiat, bankName?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<BankAccount>;
|
|
182
|
+
getRioBankAccounts(page: number, limit: number, query?: BankAccountQuery): Promise<BankAccount[]>;
|
|
180
183
|
deleteAddress(id: string): Promise<void>;
|
|
181
184
|
getFeesByVolume(): Promise<{
|
|
182
185
|
days: number;
|
|
@@ -671,6 +671,49 @@ class RioAdminClient {
|
|
|
671
671
|
yield this.axios.delete(`/api/bank/accounts/${id}`);
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
+
createRioBankAccount(country, fiat, bankName, companyName, companyAddress, accountNumber, CLABE, CCI, RUC, RFC) {
|
|
675
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
676
|
+
const response = yield this.axios.post(`/api/bank/accounts/rio`, {
|
|
677
|
+
country,
|
|
678
|
+
fiat,
|
|
679
|
+
bankName,
|
|
680
|
+
accountNumber,
|
|
681
|
+
CLABE,
|
|
682
|
+
CCI,
|
|
683
|
+
RUC,
|
|
684
|
+
RFC,
|
|
685
|
+
companyName,
|
|
686
|
+
companyAddress,
|
|
687
|
+
});
|
|
688
|
+
return response.data;
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
updateRioBankAccount(id, country, fiat, bankName, companyName, companyAddress, accountNumber, CLABE, CCI, RUC, RFC) {
|
|
692
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
693
|
+
const response = yield this.axios.patch(`/api/bank/accounts/rio/${id}`, {
|
|
694
|
+
country,
|
|
695
|
+
fiat,
|
|
696
|
+
bankName,
|
|
697
|
+
accountNumber,
|
|
698
|
+
CLABE,
|
|
699
|
+
CCI,
|
|
700
|
+
RUC,
|
|
701
|
+
RFC,
|
|
702
|
+
companyName,
|
|
703
|
+
companyAddress,
|
|
704
|
+
});
|
|
705
|
+
return response.data;
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
getRioBankAccounts(page, limit, query) {
|
|
709
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
710
|
+
const response = yield this.axios.get(`/api/bank/accounts/rio`, {
|
|
711
|
+
params: Object.assign({ page,
|
|
712
|
+
limit }, query),
|
|
713
|
+
});
|
|
714
|
+
return response.data;
|
|
715
|
+
});
|
|
716
|
+
}
|
|
674
717
|
deleteAddress(id) {
|
|
675
718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
676
719
|
yield this.axios.delete(`/api/addresses/${id}`);
|