@riocrypto/common-server 1.0.1113 → 1.0.1115
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.
|
@@ -101,6 +101,39 @@ declare class BridgeClient {
|
|
|
101
101
|
bank_beneficiary_name?: string;
|
|
102
102
|
};
|
|
103
103
|
}>;
|
|
104
|
+
getAllCustomerTransfers(customerId: string): Promise<{
|
|
105
|
+
id: string;
|
|
106
|
+
amount: string;
|
|
107
|
+
on_behalf_of: string;
|
|
108
|
+
developer_fee: string;
|
|
109
|
+
source: {
|
|
110
|
+
currency: "usdc" | "usd";
|
|
111
|
+
payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
112
|
+
external_account_id?: string;
|
|
113
|
+
from_address?: string;
|
|
114
|
+
};
|
|
115
|
+
destination: {
|
|
116
|
+
currency: "usdc" | "usd";
|
|
117
|
+
payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
118
|
+
external_account_id?: string;
|
|
119
|
+
to_address?: string;
|
|
120
|
+
wire_message?: string;
|
|
121
|
+
};
|
|
122
|
+
state: "awaiting_source_deposit" | "pending" | "completed" | "failed";
|
|
123
|
+
source_deposit_instructions: {
|
|
124
|
+
payment_rail: "ach" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
125
|
+
amount: string;
|
|
126
|
+
currency: "usdc" | "usd";
|
|
127
|
+
from_address?: string;
|
|
128
|
+
to_address?: string;
|
|
129
|
+
deposit_message?: string;
|
|
130
|
+
bank_name?: string;
|
|
131
|
+
bank_address?: string;
|
|
132
|
+
bank_routing_number?: string;
|
|
133
|
+
bank_account_number?: string;
|
|
134
|
+
bank_beneficiary_name?: string;
|
|
135
|
+
};
|
|
136
|
+
}[]>;
|
|
104
137
|
createLiquidationAddress(bridgeCustomerId: string, currency: "usdc", chain: "avalanche_c_c" | "ethereum" | "polygon", externalAccountId: string): Promise<{
|
|
105
138
|
id: string;
|
|
106
139
|
currency: "usdc";
|
|
@@ -79,6 +79,16 @@ class BridgeClient {
|
|
|
79
79
|
return data;
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
+
getAllCustomerTransfers(customerId) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const { data } = yield axios_1.default.get(`${this.baseUrl}/v0/customers/${customerId}/transfers`, {
|
|
85
|
+
headers: {
|
|
86
|
+
"Api-Key": this.apiKey,
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
return data;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
82
92
|
createLiquidationAddress(bridgeCustomerId, currency, chain, externalAccountId) {
|
|
83
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
94
|
const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/liquidation_addresses`, {
|
package/build/models/user.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ interface UserAttrs {
|
|
|
23
23
|
attributes?: UserAttribute[];
|
|
24
24
|
brokerId?: string;
|
|
25
25
|
curp?: string;
|
|
26
|
+
ruc?: string;
|
|
26
27
|
economicActivity?: string;
|
|
27
28
|
platformFeeRanges?: PlatformFeeRange[];
|
|
28
29
|
COIFile?: string;
|
|
@@ -60,6 +61,7 @@ interface UserDoc extends Document {
|
|
|
60
61
|
legalRepresentative?: string;
|
|
61
62
|
cpf?: string;
|
|
62
63
|
curp?: string;
|
|
64
|
+
ruc?: string;
|
|
63
65
|
economicActivity?: string;
|
|
64
66
|
birthday?: Date;
|
|
65
67
|
language?: Language;
|
package/build/models/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1115",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.961",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|