@riocrypto/common-server 1.0.1357 → 1.0.1359

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.
@@ -15,6 +15,10 @@ interface BankPaymentAttrs {
15
15
  rfc?: string;
16
16
  swiftCode?: string;
17
17
  cci?: string;
18
+ CLABE?: string;
19
+ RUC?: string;
20
+ RFC?: string;
21
+ CCI?: string;
18
22
  status: string;
19
23
  }
20
24
  interface BankPaymentDoc extends Document {
@@ -33,6 +37,10 @@ interface BankPaymentDoc extends Document {
33
37
  rfc?: string;
34
38
  swiftCode?: string;
35
39
  cci?: string;
40
+ CLABE?: string;
41
+ RUC?: string;
42
+ RFC?: string;
43
+ CCI?: string;
36
44
  status: string;
37
45
  }
38
46
  interface BankPaymentModel extends Model<BankPaymentDoc> {
@@ -57,6 +57,18 @@ const buildBankPayment = (mongoose) => {
57
57
  cci: {
58
58
  type: String,
59
59
  },
60
+ CLABE: {
61
+ type: String,
62
+ },
63
+ RUC: {
64
+ type: String,
65
+ },
66
+ RFC: {
67
+ type: String,
68
+ },
69
+ CCI: {
70
+ type: String,
71
+ },
60
72
  }, {
61
73
  toJSON: {
62
74
  transform(doc, ret) {
@@ -2,13 +2,13 @@ import { Mongoose, Model, Document } from "mongoose";
2
2
  interface BitsoBankAccountAttrs {
3
3
  createdAt: Date;
4
4
  userId: string;
5
- clabe: string;
5
+ CLABE: string;
6
6
  approved: boolean;
7
7
  }
8
8
  interface BitsoBankAccountDoc extends Document {
9
9
  createdAt: Date;
10
10
  userId: string;
11
- clabe: string;
11
+ CLABE: string;
12
12
  approved: boolean;
13
13
  }
14
14
  interface BitsoBankAccountModel extends Model<BitsoBankAccountDoc> {
@@ -15,7 +15,7 @@ const buildBitsoBankAccount = (mongoose) => {
15
15
  type: mongoose.Schema.Types.Date,
16
16
  required: true,
17
17
  },
18
- clabe: {
18
+ CLABE: {
19
19
  type: String,
20
20
  required: true,
21
21
  },
@@ -24,11 +24,14 @@ interface UserAttrs {
24
24
  cosignerGroupId?: string;
25
25
  legalRepresentative?: string;
26
26
  cpf?: string;
27
+ CPF?: string;
27
28
  language?: Language;
28
29
  attributes?: UserAttribute[];
29
30
  brokerId?: string;
30
31
  curp?: string;
31
32
  ruc?: string;
33
+ CURP?: string;
34
+ RUC?: string;
32
35
  economicActivity?: string;
33
36
  platformFeeRanges?: {
34
37
  MX?: {
@@ -59,6 +62,7 @@ interface UserAttrs {
59
62
  authorizedPhoneNumbers?: string[];
60
63
  notificationUrl?: string;
61
64
  rfc?: string;
65
+ RFC?: string;
62
66
  countriesToInvoice?: Country[];
63
67
  mexicoFiscalRegimenCode?: number;
64
68
  mexicoFiscalName?: string;
@@ -94,6 +98,9 @@ interface UserDoc extends Document {
94
98
  cpf?: string;
95
99
  curp?: string;
96
100
  ruc?: string;
101
+ CPF?: string;
102
+ CURP?: string;
103
+ RUC?: string;
97
104
  economicActivity?: string;
98
105
  birthday?: Date;
99
106
  language?: Language;
@@ -129,6 +136,7 @@ interface UserDoc extends Document {
129
136
  authorizedPhoneNumbers?: string[];
130
137
  notificationUrl?: string;
131
138
  rfc?: string;
139
+ RFC?: string;
132
140
  mexicoFiscalRegimenCode?: number;
133
141
  mexicoFiscalName?: string;
134
142
  taxId?: string;
@@ -87,6 +87,12 @@ const buildUser = (mongoose) => {
87
87
  curp: {
88
88
  type: String,
89
89
  },
90
+ CPF: {
91
+ type: String,
92
+ },
93
+ CURP: {
94
+ type: String,
95
+ },
90
96
  economicActivity: {
91
97
  type: String,
92
98
  },
@@ -311,6 +317,12 @@ const buildUser = (mongoose) => {
311
317
  ruc: {
312
318
  type: String,
313
319
  },
320
+ RFC: {
321
+ type: String,
322
+ },
323
+ RUC: {
324
+ type: String,
325
+ },
314
326
  mexicoFiscalRegimenCode: {
315
327
  type: Number,
316
328
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1357",
3
+ "version": "1.0.1359",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
- "@riocrypto/common": "^1.0.1195",
30
+ "@riocrypto/common": "^1.0.1196",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",