@riocrypto/common-server 1.0.2631 → 1.0.2633

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.
@@ -1,4 +1,4 @@
1
- import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, Country, Fiat, Side, Crypto, DeferredPaymentType } from "@riocrypto/common";
1
+ import { OnboardingStatus, PlatformFeeRange, UserAttribute, UserType, CountryOfOrigin, Country, Fiat, Side, Crypto, DeferredPaymentType, MexicoInvoicingMethod } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface UserAttrs {
4
4
  createdAt: Date;
@@ -84,7 +84,7 @@ interface UserAttrs {
84
84
  };
85
85
  invoicing?: {
86
86
  MX: {
87
- shouldInvoice: boolean;
87
+ method?: MexicoInvoicingMethod;
88
88
  fiscalName?: string;
89
89
  fiscalRegimenCode?: number;
90
90
  taxId?: string;
@@ -232,7 +232,7 @@ interface UserDoc extends Document {
232
232
  };
233
233
  invoicing?: {
234
234
  MX: {
235
- shouldInvoice: boolean;
235
+ method?: MexicoInvoicingMethod;
236
236
  fiscalName?: string;
237
237
  taxId?: string;
238
238
  fiscalRegimenCode?: number;
@@ -283,8 +283,8 @@ const buildUser = (mongoose) => {
283
283
  },
284
284
  invoicing: {
285
285
  MX: {
286
- shouldInvoice: {
287
- type: Boolean,
286
+ method: {
287
+ type: String,
288
288
  },
289
289
  fiscalName: {
290
290
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2631",
3
+ "version": "1.0.2633",
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.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2429",
31
+ "@riocrypto/common": "^1.0.2436",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",