@riocrypto/common 1.0.614 → 1.0.616
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.
|
@@ -42,7 +42,7 @@ export declare class RioClient {
|
|
|
42
42
|
updateRioSettings(update: RioSettingsUpdate): Promise<void>;
|
|
43
43
|
confirmBankPayment(orderId: string, amountFiat?: number): Promise<any>;
|
|
44
44
|
confirmBankPayout(orderId: string): Promise<any>;
|
|
45
|
-
getUser(): Promise<User>;
|
|
45
|
+
getUser(id?: string): Promise<User>;
|
|
46
46
|
createUser(user: UserInput): Promise<void>;
|
|
47
47
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
48
48
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
@@ -108,9 +108,9 @@ class RioClient {
|
|
|
108
108
|
return data;
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
getUser() {
|
|
111
|
+
getUser(id) {
|
|
112
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
-
const { data } = yield this.axios.get("/api/users");
|
|
113
|
+
const { data } = yield this.axios.get("/api/users" + id ? `/${id}` : "");
|
|
114
114
|
return data;
|
|
115
115
|
});
|
|
116
116
|
}
|
|
@@ -3,21 +3,18 @@ import { Language } from "./language";
|
|
|
3
3
|
import { PlatformFeeRange } from "./platform-fee-range";
|
|
4
4
|
import { UserAttribute } from "./user-attribute";
|
|
5
5
|
import { UserType } from "./user-type";
|
|
6
|
-
|
|
7
|
-
firstName
|
|
8
|
-
lastName
|
|
9
|
-
birthday
|
|
6
|
+
export declare type UserInput = {
|
|
7
|
+
firstName?: string;
|
|
8
|
+
lastName?: string;
|
|
9
|
+
birthday?: Date;
|
|
10
10
|
KYCReportFile?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
companyName: string;
|
|
14
|
-
legalRepresentative: string;
|
|
11
|
+
companyName?: string;
|
|
12
|
+
legalRepresentative?: string;
|
|
15
13
|
COIFile?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare type UserInput = {
|
|
18
14
|
type: UserType;
|
|
19
15
|
email: string;
|
|
20
16
|
language: Language;
|
|
17
|
+
phoneNumber: string;
|
|
21
18
|
street1: string;
|
|
22
19
|
street2?: string;
|
|
23
20
|
city: string;
|
|
@@ -29,5 +26,4 @@ export declare type UserInput = {
|
|
|
29
26
|
attributes?: UserAttribute[];
|
|
30
27
|
partnerId?: string;
|
|
31
28
|
brokerId?: string;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
29
|
+
};
|