@riocrypto/common-server 1.0.2805 → 1.0.2806
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/models/user.d.ts +15 -3
- package/build/models/user.js +14 -0
- package/package.json +2 -2
package/build/models/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, Country, Fiat, Side, Crypto, DeferredPaymentType, MexicoInvoicingMethod } from "@riocrypto/common";
|
|
1
|
+
import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, Country, Fiat, Side, Crypto, DeferredPaymentType, MexicoInvoicingMethod, ColombiaInvoicingMethod } from "@riocrypto/common";
|
|
2
2
|
import { Mongoose, Model, Document, HydratedDocument } from "mongoose";
|
|
3
3
|
interface UserAttrs {
|
|
4
4
|
createdAt: Date;
|
|
@@ -87,13 +87,19 @@ interface UserAttrs {
|
|
|
87
87
|
country?: CountryOfOrigin;
|
|
88
88
|
};
|
|
89
89
|
invoicing?: {
|
|
90
|
-
MX
|
|
90
|
+
MX?: {
|
|
91
91
|
method?: MexicoInvoicingMethod;
|
|
92
92
|
fiscalName?: string;
|
|
93
93
|
fiscalRegimenCode?: number;
|
|
94
94
|
taxId?: string;
|
|
95
95
|
postalCode?: string;
|
|
96
96
|
};
|
|
97
|
+
CO?: {
|
|
98
|
+
method?: ColombiaInvoicingMethod;
|
|
99
|
+
fiscalName?: string;
|
|
100
|
+
taxId?: string;
|
|
101
|
+
postalCode?: string;
|
|
102
|
+
};
|
|
97
103
|
};
|
|
98
104
|
quotationTime?: number;
|
|
99
105
|
referrerId?: string;
|
|
@@ -245,13 +251,19 @@ interface UserDoc extends Document {
|
|
|
245
251
|
country?: CountryOfOrigin;
|
|
246
252
|
};
|
|
247
253
|
invoicing?: {
|
|
248
|
-
MX
|
|
254
|
+
MX?: {
|
|
249
255
|
method?: MexicoInvoicingMethod;
|
|
250
256
|
fiscalName?: string;
|
|
251
257
|
taxId?: string;
|
|
252
258
|
fiscalRegimenCode?: number;
|
|
253
259
|
postalCode?: string;
|
|
254
260
|
};
|
|
261
|
+
CO?: {
|
|
262
|
+
method?: ColombiaInvoicingMethod;
|
|
263
|
+
fiscalName?: string;
|
|
264
|
+
taxId?: string;
|
|
265
|
+
postalCode?: string;
|
|
266
|
+
};
|
|
255
267
|
};
|
|
256
268
|
quotationTime?: number;
|
|
257
269
|
referrerId?: string;
|
package/build/models/user.js
CHANGED
|
@@ -299,6 +299,20 @@ const buildUser = (mongoose) => {
|
|
|
299
299
|
type: String,
|
|
300
300
|
},
|
|
301
301
|
},
|
|
302
|
+
CO: {
|
|
303
|
+
method: {
|
|
304
|
+
type: String,
|
|
305
|
+
},
|
|
306
|
+
fiscalName: {
|
|
307
|
+
type: String,
|
|
308
|
+
},
|
|
309
|
+
taxId: {
|
|
310
|
+
type: String,
|
|
311
|
+
},
|
|
312
|
+
postalCode: {
|
|
313
|
+
type: String,
|
|
314
|
+
},
|
|
315
|
+
},
|
|
302
316
|
},
|
|
303
317
|
businessData: {
|
|
304
318
|
type: Object,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2806",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.6.0",
|
|
29
29
|
"@google-cloud/storage": "^7.19.0",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.10.3",
|
|
31
|
-
"@riocrypto/common": "1.0.
|
|
31
|
+
"@riocrypto/common": "1.0.2608",
|
|
32
32
|
"@slack/web-api": "^7.15.0",
|
|
33
33
|
"@types/express": "^4.17.25",
|
|
34
34
|
"axios": "1.16.0",
|