@riocrypto/common 1.0.1154 → 1.0.1156
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.
|
@@ -127,6 +127,10 @@ export declare class RioAdminClient {
|
|
|
127
127
|
fee: number;
|
|
128
128
|
volume: number;
|
|
129
129
|
}>;
|
|
130
|
+
getTransactionLimits(userId: string): Promise<{
|
|
131
|
+
limit: number;
|
|
132
|
+
used: number;
|
|
133
|
+
}>;
|
|
130
134
|
getWeeklyVolume(): Promise<{
|
|
131
135
|
volume: number;
|
|
132
136
|
revenue: number;
|
|
@@ -477,6 +477,12 @@ class RioAdminClient {
|
|
|
477
477
|
return response.data;
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
+
getTransactionLimits(userId) {
|
|
481
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
482
|
+
const response = yield this.axios.get(`/api/users/${userId}/limits`);
|
|
483
|
+
return response.data;
|
|
484
|
+
});
|
|
485
|
+
}
|
|
480
486
|
getWeeklyVolume() {
|
|
481
487
|
return __awaiter(this, void 0, void 0, function* () {
|
|
482
488
|
const response = yield this.axios.get(`/api/admin/volume/weekly`);
|
|
@@ -100,6 +100,10 @@ export declare class RioClient {
|
|
|
100
100
|
volume: number;
|
|
101
101
|
revenue: number;
|
|
102
102
|
}>;
|
|
103
|
+
getTransactionLimits(userId: string): Promise<{
|
|
104
|
+
limit: number;
|
|
105
|
+
used: number;
|
|
106
|
+
}>;
|
|
103
107
|
getQuote(id: string): Promise<Quote>;
|
|
104
108
|
getChainedQuote(id: string): Promise<ChainedQuote>;
|
|
105
109
|
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
@@ -363,6 +363,12 @@ class RioClient {
|
|
|
363
363
|
return response.data;
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
|
+
getTransactionLimits(userId) {
|
|
367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const response = yield this.axios.get(`/api/users/${userId}/limits`);
|
|
369
|
+
return response.data;
|
|
370
|
+
});
|
|
371
|
+
}
|
|
366
372
|
getQuote(id) {
|
|
367
373
|
return __awaiter(this, void 0, void 0, function* () {
|
|
368
374
|
const { data } = yield this.axios.get(`/api/quotes/${id}`);
|
|
@@ -70,5 +70,6 @@ export declare type UserUpdate = {
|
|
|
70
70
|
mexicoFiscalName?: string;
|
|
71
71
|
taxId?: string;
|
|
72
72
|
usKYCStatus?: "none" | "pending" | "failed" | "approved";
|
|
73
|
+
hasPassedEDD?: boolean;
|
|
73
74
|
} & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
|
|
74
75
|
export {};
|
package/build/types/user.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export declare type User = {
|
|
|
68
68
|
countriesToInvoice?: Country[];
|
|
69
69
|
taxId?: string;
|
|
70
70
|
riskTier: RiskTier;
|
|
71
|
+
hasPassedEDD: boolean;
|
|
71
72
|
usKYCStatus?: "none" | "pending" | "failed" | "approved";
|
|
72
73
|
} & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
|
|
73
74
|
export {};
|