@riocrypto/common 1.0.1054 → 1.0.1056
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.
|
@@ -382,6 +382,8 @@ class CountryAsset extends Asset_1.Asset {
|
|
|
382
382
|
// return "Northern Mariana Islands";
|
|
383
383
|
case country_of_origin_1.CountryOfOrigin.NewZealand:
|
|
384
384
|
return "New Zealand";
|
|
385
|
+
case country_of_origin_1.CountryOfOrigin.BritishVirginIslands:
|
|
386
|
+
return "Virgin Islands (British)";
|
|
385
387
|
// case CountryOfOrigin.NewCaledonia:
|
|
386
388
|
// return "New Caledonia";
|
|
387
389
|
// case CountryOfOrigin.NewCaledonia:
|
|
@@ -102,6 +102,7 @@ export declare class RioAdminClient {
|
|
|
102
102
|
}>;
|
|
103
103
|
refreshAdminToken(): Promise<void>;
|
|
104
104
|
createOrder(order: OrderInput): Promise<Order>;
|
|
105
|
+
createBridgeExternalAccount(userId: string, bankName: string, accountName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string): Promise<string>;
|
|
105
106
|
getChainedOrders(page: number, limit?: number, query?: ChainedOrderQuery): Promise<ChainedOrder[]>;
|
|
106
107
|
getChainedQuote(id: string): Promise<ChainedQuote>;
|
|
107
108
|
getChainedOrder(id: string): Promise<ChainedOrder>;
|
|
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RioAdminClient = void 0;
|
|
13
|
+
const country_1 = require("../types/country");
|
|
13
14
|
class RioAdminClient {
|
|
14
15
|
constructor(axios) {
|
|
15
16
|
this.axios = axios;
|
|
@@ -316,6 +317,25 @@ class RioAdminClient {
|
|
|
316
317
|
return response.data;
|
|
317
318
|
});
|
|
318
319
|
}
|
|
320
|
+
createBridgeExternalAccount(userId, bankName, accountName, accountNumber, routingNumber, accountOwnerName, streetLine1, streetLine2, city, state, postalCode) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
const response = yield this.axios.post("/api/bank/us/accounts", {
|
|
323
|
+
userId,
|
|
324
|
+
bankName,
|
|
325
|
+
accountName,
|
|
326
|
+
accountNumber,
|
|
327
|
+
routingNumber,
|
|
328
|
+
accountOwnerName,
|
|
329
|
+
streetLine1,
|
|
330
|
+
streetLine2,
|
|
331
|
+
city,
|
|
332
|
+
state,
|
|
333
|
+
postalCode,
|
|
334
|
+
country: country_1.Country.UnitedStates,
|
|
335
|
+
});
|
|
336
|
+
return response.data.id;
|
|
337
|
+
});
|
|
338
|
+
}
|
|
319
339
|
getChainedOrders(page, limit, query) {
|
|
320
340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
321
341
|
const { data } = yield this.axios.get(`/api/orders/chained?`, {
|
|
@@ -59,5 +59,6 @@ var CountryOfOrigin;
|
|
|
59
59
|
CountryOfOrigin["Turkey"] = "TR";
|
|
60
60
|
CountryOfOrigin["UnitedKingdom"] = "GB";
|
|
61
61
|
CountryOfOrigin["UnitedStates"] = "US";
|
|
62
|
+
CountryOfOrigin["BritishVirginIslands"] = "VG";
|
|
62
63
|
CountryOfOrigin["Vietnam"] = "VN";
|
|
63
64
|
})(CountryOfOrigin = exports.CountryOfOrigin || (exports.CountryOfOrigin = {}));
|