@riocrypto/common-server 1.0.2805 → 1.0.2807

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.
@@ -192,6 +192,7 @@ interface OrderDoc extends Document {
192
192
  imported?: boolean;
193
193
  USBankTransferMethod?: "wire" | "ach_push";
194
194
  isAfterHours?: boolean;
195
+ isSurgePricing?: boolean;
195
196
  netPrice: number;
196
197
  requestedNetPrice?: number;
197
198
  payoutAddressId?: string;
@@ -223,6 +223,9 @@ const buildOrder = (mongoose) => {
223
223
  isAfterHours: {
224
224
  type: Boolean,
225
225
  },
226
+ isSurgePricing: {
227
+ type: Boolean,
228
+ },
226
229
  exchangeRateOrders: [
227
230
  {
228
231
  amount: {
@@ -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;
@@ -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.2805",
3
+ "version": "1.0.2807",
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.2606",
31
+ "@riocrypto/common": "1.0.2609",
32
32
  "@slack/web-api": "^7.15.0",
33
33
  "@types/express": "^4.17.25",
34
34
  "axios": "1.16.0",