@riocrypto/common 1.0.1097 → 1.0.1099
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.
- package/build/events/user-updated-event.d.ts +41 -7
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/mexico-fiscal-regimen-code.d.ts +25 -0
- package/build/types/mexico-fiscal-regimen-code.js +29 -0
- package/build/types/mexico-fiscal-regimen.d.ts +2 -1
- package/build/types/user-attribute.d.ts +0 -3
- package/build/types/user-attribute.js +0 -3
- package/build/types/user.d.ts +0 -2
- package/package.json +1 -1
|
@@ -1,22 +1,56 @@
|
|
|
1
|
+
import { Country } from "../types/country";
|
|
2
|
+
import { CountryOfOrigin } from "../types/country-of-origin";
|
|
3
|
+
import { KYCStatus } from "../types/kyc-status";
|
|
4
|
+
import { PlatformFeeRange } from "../types/platform-fee-range";
|
|
1
5
|
import { UserAttribute } from "../types/user-attribute";
|
|
6
|
+
import { UserType } from "../types/user-type";
|
|
2
7
|
import { Subjects } from "./subjects";
|
|
3
8
|
export interface UserUpdatedEvent {
|
|
4
9
|
subject: Subjects.UserUpdated;
|
|
5
10
|
data: {
|
|
6
11
|
id: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
phoneNumber?: string;
|
|
10
|
-
birthday?: Date;
|
|
12
|
+
authIds?: string[];
|
|
13
|
+
type?: UserType;
|
|
11
14
|
email?: string;
|
|
12
15
|
street1?: string;
|
|
13
16
|
street2?: string;
|
|
14
17
|
city?: string;
|
|
15
18
|
state?: string;
|
|
16
|
-
country?:
|
|
19
|
+
country?: CountryOfOrigin;
|
|
17
20
|
postalCode?: string;
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
kycStatus?: KYCStatus;
|
|
22
|
+
cpf?: string;
|
|
23
|
+
curp?: string;
|
|
24
|
+
economicActivity?: string;
|
|
25
|
+
platformFeeRanges?: {
|
|
26
|
+
MX?: PlatformFeeRange[];
|
|
27
|
+
PE?: PlatformFeeRange[];
|
|
28
|
+
CO?: PlatformFeeRange[];
|
|
29
|
+
BR?: PlatformFeeRange[];
|
|
30
|
+
US?: PlatformFeeRange[];
|
|
31
|
+
};
|
|
20
32
|
attributes?: UserAttribute[];
|
|
33
|
+
brokerId?: string;
|
|
34
|
+
authorizedPhoneNumbers?: string[];
|
|
35
|
+
notificationUrl?: string;
|
|
36
|
+
KYCReportFile?: string;
|
|
37
|
+
CSFFile?: string;
|
|
38
|
+
proofOfAddressFile?: string;
|
|
39
|
+
rfc?: string;
|
|
40
|
+
ruc?: string;
|
|
41
|
+
mexicoFiscalRegimenCode?: number;
|
|
42
|
+
mexicoFiscalName?: string;
|
|
43
|
+
countriesToInvoice?: Country[];
|
|
44
|
+
taxId?: string;
|
|
45
|
+
usKYCStatus?: "none" | "pending" | "failed" | "approved";
|
|
46
|
+
firstName?: string;
|
|
47
|
+
middleName?: string;
|
|
48
|
+
lastName?: string;
|
|
49
|
+
secondLastName?: string;
|
|
50
|
+
phoneNumber?: string;
|
|
51
|
+
birthday?: Date;
|
|
52
|
+
companyName?: string;
|
|
53
|
+
legalRepresentative?: string;
|
|
54
|
+
COIFile?: string;
|
|
21
55
|
};
|
|
22
56
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -155,6 +155,7 @@ export * from "./types/user-query";
|
|
|
155
155
|
export * from "./types/crypto-address-query";
|
|
156
156
|
export * from "./types/bank-account-query";
|
|
157
157
|
export * from "./types/mexico-fiscal-regimen";
|
|
158
|
+
export * from "./types/mexico-fiscal-regimen-code";
|
|
158
159
|
export * from "./types/bridge-customer";
|
|
159
160
|
export * from "./types/bridge-transfer";
|
|
160
161
|
export * from "./types/bridge-external-account";
|
package/build/index.js
CHANGED
|
@@ -171,6 +171,7 @@ __exportStar(require("./types/user-query"), exports);
|
|
|
171
171
|
__exportStar(require("./types/crypto-address-query"), exports);
|
|
172
172
|
__exportStar(require("./types/bank-account-query"), exports);
|
|
173
173
|
__exportStar(require("./types/mexico-fiscal-regimen"), exports);
|
|
174
|
+
__exportStar(require("./types/mexico-fiscal-regimen-code"), exports);
|
|
174
175
|
__exportStar(require("./types/bridge-customer"), exports);
|
|
175
176
|
__exportStar(require("./types/bridge-transfer"), exports);
|
|
176
177
|
__exportStar(require("./types/bridge-external-account"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum MexicoFiscalRegimenCode {
|
|
2
|
+
Code601 = 601,
|
|
3
|
+
Code603 = 603,
|
|
4
|
+
Code605 = 605,
|
|
5
|
+
Code606 = 606,
|
|
6
|
+
Code607 = 607,
|
|
7
|
+
Code608 = 608,
|
|
8
|
+
Code609 = 609,
|
|
9
|
+
Code610 = 610,
|
|
10
|
+
Code611 = 611,
|
|
11
|
+
Code612 = 612,
|
|
12
|
+
Code614 = 614,
|
|
13
|
+
Code615 = 615,
|
|
14
|
+
Code616 = 616,
|
|
15
|
+
Code620 = 620,
|
|
16
|
+
Code621 = 621,
|
|
17
|
+
Code622 = 622,
|
|
18
|
+
Code623 = 623,
|
|
19
|
+
Code624 = 624,
|
|
20
|
+
Code625 = 625,
|
|
21
|
+
Code626 = 626,
|
|
22
|
+
Code628 = 628,
|
|
23
|
+
Code629 = 629,
|
|
24
|
+
Code630 = 630
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MexicoFiscalRegimenCode = void 0;
|
|
4
|
+
var MexicoFiscalRegimenCode;
|
|
5
|
+
(function (MexicoFiscalRegimenCode) {
|
|
6
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code601"] = 601] = "Code601";
|
|
7
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code603"] = 603] = "Code603";
|
|
8
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code605"] = 605] = "Code605";
|
|
9
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code606"] = 606] = "Code606";
|
|
10
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code607"] = 607] = "Code607";
|
|
11
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code608"] = 608] = "Code608";
|
|
12
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code609"] = 609] = "Code609";
|
|
13
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code610"] = 610] = "Code610";
|
|
14
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code611"] = 611] = "Code611";
|
|
15
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code612"] = 612] = "Code612";
|
|
16
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code614"] = 614] = "Code614";
|
|
17
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code615"] = 615] = "Code615";
|
|
18
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code616"] = 616] = "Code616";
|
|
19
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code620"] = 620] = "Code620";
|
|
20
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code621"] = 621] = "Code621";
|
|
21
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code622"] = 622] = "Code622";
|
|
22
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code623"] = 623] = "Code623";
|
|
23
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code624"] = 624] = "Code624";
|
|
24
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code625"] = 625] = "Code625";
|
|
25
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code626"] = 626] = "Code626";
|
|
26
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code628"] = 628] = "Code628";
|
|
27
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code629"] = 629] = "Code629";
|
|
28
|
+
MexicoFiscalRegimenCode[MexicoFiscalRegimenCode["Code630"] = 630] = "Code630";
|
|
29
|
+
})(MexicoFiscalRegimenCode = exports.MexicoFiscalRegimenCode || (exports.MexicoFiscalRegimenCode = {}));
|
|
@@ -6,9 +6,6 @@ var UserAttribute;
|
|
|
6
6
|
UserAttribute["deleted"] = "deleted";
|
|
7
7
|
UserAttribute["disabled"] = "disabled";
|
|
8
8
|
UserAttribute["banned"] = "banned";
|
|
9
|
-
UserAttribute["beta"] = "beta";
|
|
10
|
-
UserAttribute["alpha"] = "alpha";
|
|
11
|
-
UserAttribute["gamma"] = "gamma";
|
|
12
9
|
UserAttribute["broker"] = "broker";
|
|
13
10
|
UserAttribute["brokerCustomer"] = "brokerCustomer";
|
|
14
11
|
UserAttribute["summedVolumeFees"] = "summedVolumeFees";
|
package/build/types/user.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Country } from "./country";
|
|
2
2
|
import { CountryOfOrigin } from "./country-of-origin";
|
|
3
3
|
import { KYCStatus } from "./kyc-status";
|
|
4
|
-
import { Language } from "./language";
|
|
5
4
|
import { PlatformFeeRange } from "./platform-fee-range";
|
|
6
5
|
import { UserAttribute } from "./user-attribute";
|
|
7
6
|
import { UserType } from "./user-type";
|
|
@@ -22,7 +21,6 @@ export declare type User = {
|
|
|
22
21
|
authIds?: string[];
|
|
23
22
|
type: UserType;
|
|
24
23
|
email: string;
|
|
25
|
-
language: Language;
|
|
26
24
|
phoneNumber: string;
|
|
27
25
|
street1: string;
|
|
28
26
|
street2?: string;
|