@riocrypto/common-server 1.0.848 → 1.0.849

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.
@@ -32,6 +32,9 @@ interface UserAttrs {
32
32
  proofOfAddressFile?: string;
33
33
  authorizedPhoneNumbers?: string[];
34
34
  notificationUrl?: string;
35
+ rfc?: string;
36
+ mexicoFiscalRegimenCode?: number;
37
+ mexicoFiscalName?: string;
35
38
  }
36
39
  interface UserModel extends Model<UserDoc> {
37
40
  build(attrs: UserAttrs): UserDoc;
@@ -69,6 +72,9 @@ interface UserDoc extends Document {
69
72
  proofOfAddressFile?: string;
70
73
  authorizedPhoneNumbers?: string[];
71
74
  notificationUrl?: string;
75
+ rfc?: string;
76
+ mexicoFiscalRegimenCode?: number;
77
+ mexicoFiscalName?: string;
72
78
  }
73
79
  declare const buildUser: (mongoose: Mongoose) => UserModel;
74
80
  export { buildUser, UserDoc };
@@ -129,6 +129,15 @@ const buildUser = (mongoose) => {
129
129
  notificationUrl: {
130
130
  type: String,
131
131
  },
132
+ rfc: {
133
+ type: String,
134
+ },
135
+ mexicoFiscalRegimenCode: {
136
+ type: Number,
137
+ },
138
+ mexicoFiscalName: {
139
+ type: String,
140
+ },
132
141
  }, {
133
142
  toJSON: {
134
143
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.848",
3
+ "version": "1.0.849",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.733",
27
+ "@riocrypto/common": "^1.0.734",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",