@cuenca-mx/cuenca-js 0.0.14-dev11 → 0.0.14-dev12
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/{data-92aab1cc.cjs → data-e4c28528.cjs} +13 -0
- package/build/{data-7e8b28c6.mjs → data-fa5e8a84.mjs} +13 -1
- package/build/index.cjs +408 -35
- package/build/index.mjs +377 -4
- package/build/requests/index.cjs +3 -2
- package/build/requests/index.mjs +3 -3
- package/build/types/index.cjs +80 -26
- package/build/types/index.mjs +49 -2
- package/build/umd/cuenca.umd.js +1 -1
- package/build/{identities-21139389.cjs → vulnerableActivity-8f7d19e6.cjs} +388 -194
- package/build/{identities-2fdef0f0.mjs → vulnerableActivity-e1e6fdf0.mjs} +381 -194
- package/build/{walletTransactionRequest-d488d4ff.cjs → walletTransactionRequest-7a9ae1a7.cjs} +106 -1
- package/build/{walletTransactionRequest-158d4fc6.mjs → walletTransactionRequest-dcc77215.mjs} +106 -2
- package/package.json +3 -2
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var errors_index = require('./errors/index.cjs');
|
|
4
|
-
var data = require('./data-
|
|
5
|
-
|
|
6
|
-
class PageSize {
|
|
7
|
-
constructor(size) {
|
|
8
|
-
this.maxSize = 100;
|
|
9
|
-
this._ps = size;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
get size() {
|
|
13
|
-
return this._pageSize;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
set _ps(value) {
|
|
17
|
-
let validatedPageSize = this.maxSize;
|
|
18
|
-
if (value && value > 0 && value <= this.maxSize) {
|
|
19
|
-
validatedPageSize = value;
|
|
20
|
-
}
|
|
21
|
-
this._pageSize = validatedPageSize;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
4
|
+
var data = require('./data-e4c28528.cjs');
|
|
24
5
|
|
|
25
6
|
class QueryParams {
|
|
26
7
|
constructor({
|
|
@@ -92,156 +73,144 @@ class AccountQuery extends QueryParams {
|
|
|
92
73
|
}
|
|
93
74
|
}
|
|
94
75
|
|
|
95
|
-
class
|
|
96
|
-
constructor({
|
|
76
|
+
class AlertQuery extends QueryParams {
|
|
77
|
+
constructor({
|
|
78
|
+
agent,
|
|
79
|
+
comments,
|
|
80
|
+
committeeMeetingDate,
|
|
81
|
+
count,
|
|
82
|
+
hasQuestionnaire,
|
|
83
|
+
inProcess,
|
|
84
|
+
status,
|
|
85
|
+
typeOfFilter,
|
|
86
|
+
transactionDate,
|
|
87
|
+
...args
|
|
88
|
+
}) {
|
|
97
89
|
super(args);
|
|
98
|
-
this.
|
|
90
|
+
this.agent = agent;
|
|
91
|
+
this.comments = comments;
|
|
92
|
+
this.committeeMeetingDate = committeeMeetingDate;
|
|
93
|
+
this.count = count;
|
|
94
|
+
this.hasQuestionnaire = hasQuestionnaire;
|
|
95
|
+
this.inProcess = inProcess;
|
|
96
|
+
this.status = status;
|
|
97
|
+
this.typeOfFilter = typeOfFilter;
|
|
98
|
+
this.transactionDate = transactionDate;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
toObject() {
|
|
102
102
|
return Object.assign(super.toObject(), {
|
|
103
|
-
|
|
103
|
+
agent: this.agent,
|
|
104
|
+
comments: this.comments,
|
|
105
|
+
committee_meeting_date: this.committeeMeetingDate,
|
|
106
|
+
count: this.count,
|
|
107
|
+
has_questionnaire: this.hasQuestionnaire,
|
|
108
|
+
in_process: this.inProcess,
|
|
109
|
+
status: this.status,
|
|
110
|
+
transaction_date: this.transactionDate,
|
|
111
|
+
type_of_filter: this.typeOfFilter,
|
|
104
112
|
});
|
|
105
113
|
}
|
|
106
114
|
}
|
|
107
115
|
|
|
108
|
-
class
|
|
109
|
-
constructor({
|
|
116
|
+
class ApiKeyQuery extends QueryParams {
|
|
117
|
+
constructor({ active, ...args }) {
|
|
110
118
|
super(args);
|
|
111
|
-
this.
|
|
119
|
+
this.active = active;
|
|
112
120
|
}
|
|
113
121
|
|
|
114
122
|
toObject() {
|
|
115
123
|
return Object.assign(super.toObject(), {
|
|
116
|
-
|
|
124
|
+
active: this.active,
|
|
117
125
|
});
|
|
118
126
|
}
|
|
119
127
|
}
|
|
120
128
|
|
|
121
|
-
class
|
|
122
|
-
constructor({
|
|
129
|
+
class BalanceEntryQuery extends QueryParams {
|
|
130
|
+
constructor({
|
|
131
|
+
fundingInstrumentUri,
|
|
132
|
+
count = false,
|
|
133
|
+
walletId = 'default',
|
|
134
|
+
...args
|
|
135
|
+
}) {
|
|
123
136
|
super(args);
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
137
|
+
this.fundingInstrumentUri = fundingInstrumentUri;
|
|
138
|
+
this.count = count;
|
|
139
|
+
this.walletId = walletId;
|
|
126
140
|
}
|
|
127
141
|
|
|
128
142
|
toObject() {
|
|
129
143
|
return Object.assign(super.toObject(), {
|
|
130
|
-
|
|
131
|
-
|
|
144
|
+
wallet_id: this.walletId,
|
|
145
|
+
funding_instrument_uri: this.fundingInstrumentUri,
|
|
146
|
+
count: this.count,
|
|
132
147
|
});
|
|
133
148
|
}
|
|
134
149
|
}
|
|
135
150
|
|
|
136
|
-
class
|
|
137
|
-
constructor({
|
|
138
|
-
accountNumber,
|
|
139
|
-
idempotencyKey,
|
|
140
|
-
trackingKey,
|
|
141
|
-
network,
|
|
142
|
-
...args
|
|
143
|
-
}) {
|
|
151
|
+
class BillPaymentQuery extends QueryParams {
|
|
152
|
+
constructor({ accountNumber, ...args }) {
|
|
144
153
|
super(args);
|
|
145
154
|
this.accountNumber = accountNumber;
|
|
146
|
-
this.idempotencyKey = idempotencyKey;
|
|
147
|
-
this.trackingKey = trackingKey;
|
|
148
|
-
this.network = network;
|
|
149
155
|
}
|
|
150
156
|
|
|
151
157
|
toObject() {
|
|
152
158
|
return Object.assign(super.toObject(), {
|
|
153
159
|
account_number: this.accountNumber,
|
|
154
|
-
idempotency_key: this.idempotencyKey,
|
|
155
|
-
tracking_key: this.trackingKey,
|
|
156
|
-
network: this.network,
|
|
157
160
|
});
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
163
|
|
|
161
|
-
class
|
|
162
|
-
constructor({
|
|
163
|
-
fundingInstrumentUri,
|
|
164
|
-
count = false,
|
|
165
|
-
walletId = 'default',
|
|
166
|
-
...args
|
|
167
|
-
}) {
|
|
164
|
+
class BridgeAccountQuery extends QueryParams {
|
|
165
|
+
constructor({ emailAddress, ...args }) {
|
|
168
166
|
super(args);
|
|
169
|
-
this.
|
|
170
|
-
this.count = count;
|
|
171
|
-
this.walletId = walletId;
|
|
167
|
+
this.emailAddress = emailAddress;
|
|
172
168
|
}
|
|
173
169
|
|
|
174
170
|
toObject() {
|
|
175
171
|
return Object.assign(super.toObject(), {
|
|
176
|
-
|
|
177
|
-
funding_instrument_uri: this.fundingInstrumentUri,
|
|
178
|
-
count: this.count,
|
|
172
|
+
email_address: this.emailAddress,
|
|
179
173
|
});
|
|
180
174
|
}
|
|
181
175
|
}
|
|
182
176
|
|
|
183
|
-
class
|
|
184
|
-
constructor({
|
|
185
|
-
agent,
|
|
186
|
-
comments,
|
|
187
|
-
committeeMeetingDate,
|
|
188
|
-
count,
|
|
189
|
-
hasQuestionnaire,
|
|
190
|
-
inProcess,
|
|
191
|
-
status,
|
|
192
|
-
typeOfFilter,
|
|
193
|
-
transactionDate,
|
|
194
|
-
...args
|
|
195
|
-
}) {
|
|
177
|
+
class BridgeBankAccountQuery extends QueryParams {
|
|
178
|
+
constructor({ accountId, ...args }) {
|
|
196
179
|
super(args);
|
|
197
|
-
this.
|
|
198
|
-
this.comments = comments;
|
|
199
|
-
this.committeeMeetingDate = committeeMeetingDate;
|
|
200
|
-
this.count = count;
|
|
201
|
-
this.hasQuestionnaire = hasQuestionnaire;
|
|
202
|
-
this.inProcess = inProcess;
|
|
203
|
-
this.status = status;
|
|
204
|
-
this.typeOfFilter = typeOfFilter;
|
|
205
|
-
this.transactionDate = transactionDate;
|
|
180
|
+
this.accountId = accountId;
|
|
206
181
|
}
|
|
207
182
|
|
|
208
183
|
toObject() {
|
|
209
184
|
return Object.assign(super.toObject(), {
|
|
210
|
-
|
|
211
|
-
comments: this.comments,
|
|
212
|
-
committee_meeting_date: this.committeeMeetingDate,
|
|
213
|
-
count: this.count,
|
|
214
|
-
has_questionnaire: this.hasQuestionnaire,
|
|
215
|
-
in_process: this.inProcess,
|
|
216
|
-
status: this.status,
|
|
217
|
-
transaction_date: this.transactionDate,
|
|
218
|
-
type_of_filter: this.typeOfFilter,
|
|
185
|
+
account_id: this.accountId,
|
|
219
186
|
});
|
|
220
187
|
}
|
|
221
188
|
}
|
|
222
189
|
|
|
223
|
-
class
|
|
224
|
-
constructor({
|
|
190
|
+
class BridgeQuery extends QueryParams {
|
|
191
|
+
constructor({ accountId, ...args }) {
|
|
225
192
|
super(args);
|
|
226
|
-
this.
|
|
193
|
+
this.accountId = accountId;
|
|
227
194
|
}
|
|
228
195
|
|
|
229
196
|
toObject() {
|
|
230
197
|
return Object.assign(super.toObject(), {
|
|
231
|
-
|
|
198
|
+
account: this.accountId,
|
|
232
199
|
});
|
|
233
200
|
}
|
|
234
201
|
}
|
|
235
202
|
|
|
236
|
-
class
|
|
237
|
-
constructor({
|
|
203
|
+
class BridgeTransactionQuery extends BridgeQuery {
|
|
204
|
+
constructor({ status, type, ...args }) {
|
|
238
205
|
super(args);
|
|
239
|
-
this.
|
|
206
|
+
this.status = status;
|
|
207
|
+
this.type = type;
|
|
240
208
|
}
|
|
241
209
|
|
|
242
210
|
toObject() {
|
|
243
211
|
return Object.assign(super.toObject(), {
|
|
244
|
-
|
|
212
|
+
status: this.status,
|
|
213
|
+
type: this.type,
|
|
245
214
|
});
|
|
246
215
|
}
|
|
247
216
|
}
|
|
@@ -261,47 +230,43 @@ class CardsQuery extends QueryParams {
|
|
|
261
230
|
}
|
|
262
231
|
}
|
|
263
232
|
|
|
264
|
-
class
|
|
265
|
-
constructor({
|
|
233
|
+
class CardTransactionQuery extends QueryParams {
|
|
234
|
+
constructor({ cardUri, ...args }) {
|
|
266
235
|
super(args);
|
|
267
|
-
this.
|
|
236
|
+
this.cardUri = cardUri;
|
|
268
237
|
}
|
|
269
238
|
|
|
270
239
|
toObject() {
|
|
271
240
|
return Object.assign(super.toObject(), {
|
|
272
|
-
|
|
241
|
+
card_uri: this.cardUri,
|
|
273
242
|
});
|
|
274
243
|
}
|
|
275
244
|
}
|
|
276
245
|
|
|
277
|
-
class
|
|
278
|
-
constructor({
|
|
246
|
+
class TransactionQuery extends QueryParams {
|
|
247
|
+
constructor({ status, ...args }) {
|
|
279
248
|
super(args);
|
|
280
|
-
this.emailAddress = emailAddress;
|
|
281
|
-
this.hasCurpDocument = hasCurpDocument;
|
|
282
|
-
this.phoneNumber = phoneNumber;
|
|
283
249
|
this.status = status;
|
|
284
250
|
}
|
|
285
251
|
|
|
286
252
|
toObject() {
|
|
287
253
|
return Object.assign(super.toObject(), {
|
|
288
|
-
email_address: this.emailAddress,
|
|
289
|
-
has_curp_document: this.hasCurpDocument,
|
|
290
|
-
phone_number: this.phoneNumber,
|
|
291
254
|
status: this.status,
|
|
292
255
|
});
|
|
293
256
|
}
|
|
294
257
|
}
|
|
295
258
|
|
|
296
|
-
class
|
|
297
|
-
constructor({
|
|
259
|
+
class DepositQuery extends TransactionQuery {
|
|
260
|
+
constructor({ trackingKey, network, ...args }) {
|
|
298
261
|
super(args);
|
|
299
|
-
this.
|
|
262
|
+
this.trackingKey = trackingKey;
|
|
263
|
+
this.network = network;
|
|
300
264
|
}
|
|
301
265
|
|
|
302
266
|
toObject() {
|
|
303
267
|
return Object.assign(super.toObject(), {
|
|
304
|
-
|
|
268
|
+
tracking_key: this.trackingKey,
|
|
269
|
+
network: this.network,
|
|
305
270
|
});
|
|
306
271
|
}
|
|
307
272
|
}
|
|
@@ -340,74 +305,162 @@ class StatementQuery extends QueryParams {
|
|
|
340
305
|
}
|
|
341
306
|
}
|
|
342
307
|
|
|
343
|
-
class
|
|
344
|
-
constructor({
|
|
308
|
+
class TransferQuery extends TransactionQuery {
|
|
309
|
+
constructor({
|
|
310
|
+
accountNumber,
|
|
311
|
+
idempotencyKey,
|
|
312
|
+
trackingKey,
|
|
313
|
+
network,
|
|
314
|
+
...args
|
|
315
|
+
}) {
|
|
345
316
|
super(args);
|
|
346
|
-
this.
|
|
317
|
+
this.accountNumber = accountNumber;
|
|
318
|
+
this.idempotencyKey = idempotencyKey;
|
|
319
|
+
this.trackingKey = trackingKey;
|
|
320
|
+
this.network = network;
|
|
347
321
|
}
|
|
348
322
|
|
|
349
323
|
toObject() {
|
|
350
324
|
return Object.assign(super.toObject(), {
|
|
351
|
-
|
|
325
|
+
account_number: this.accountNumber,
|
|
326
|
+
idempotency_key: this.idempotencyKey,
|
|
327
|
+
tracking_key: this.trackingKey,
|
|
328
|
+
network: this.network,
|
|
352
329
|
});
|
|
353
330
|
}
|
|
354
331
|
}
|
|
355
332
|
|
|
356
|
-
class
|
|
357
|
-
constructor({
|
|
333
|
+
class UserQuery extends QueryParams {
|
|
334
|
+
constructor({ emailAddress, hasCurpDocument, phoneNumber, status, ...args }) {
|
|
358
335
|
super(args);
|
|
359
|
-
this.
|
|
336
|
+
this.emailAddress = emailAddress;
|
|
337
|
+
this.hasCurpDocument = hasCurpDocument;
|
|
338
|
+
this.phoneNumber = phoneNumber;
|
|
339
|
+
this.status = status;
|
|
360
340
|
}
|
|
361
341
|
|
|
362
342
|
toObject() {
|
|
363
343
|
return Object.assign(super.toObject(), {
|
|
364
|
-
|
|
344
|
+
email_address: this.emailAddress,
|
|
345
|
+
has_curp_document: this.hasCurpDocument,
|
|
346
|
+
phone_number: this.phoneNumber,
|
|
347
|
+
status: this.status,
|
|
365
348
|
});
|
|
366
349
|
}
|
|
367
350
|
}
|
|
368
351
|
|
|
369
|
-
class
|
|
370
|
-
constructor({
|
|
352
|
+
class WalletQuery extends QueryParams {
|
|
353
|
+
constructor({ active, ...args }) {
|
|
371
354
|
super(args);
|
|
372
|
-
this.
|
|
355
|
+
this.active = active;
|
|
373
356
|
}
|
|
374
357
|
|
|
375
358
|
toObject() {
|
|
376
359
|
return Object.assign(super.toObject(), {
|
|
377
|
-
|
|
360
|
+
active: this.active,
|
|
378
361
|
});
|
|
379
362
|
}
|
|
380
363
|
}
|
|
381
364
|
|
|
382
|
-
class
|
|
383
|
-
constructor({
|
|
365
|
+
class WalletTransactionQuery extends QueryParams {
|
|
366
|
+
constructor({ walletUri, ...args }) {
|
|
384
367
|
super(args);
|
|
385
|
-
this.
|
|
386
|
-
this.type = type;
|
|
368
|
+
this.walletUri = walletUri;
|
|
387
369
|
}
|
|
388
370
|
|
|
389
371
|
toObject() {
|
|
390
372
|
return Object.assign(super.toObject(), {
|
|
391
|
-
|
|
392
|
-
type: this.type,
|
|
373
|
+
wallet_uri: this.walletUri,
|
|
393
374
|
});
|
|
394
375
|
}
|
|
395
376
|
}
|
|
396
377
|
|
|
397
|
-
class
|
|
398
|
-
constructor({
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
378
|
+
class Address {
|
|
379
|
+
constructor({
|
|
380
|
+
city,
|
|
381
|
+
colonia,
|
|
382
|
+
country,
|
|
383
|
+
createdAt,
|
|
384
|
+
extNumber,
|
|
385
|
+
fullName,
|
|
386
|
+
intNumber,
|
|
387
|
+
postalCode,
|
|
388
|
+
state,
|
|
389
|
+
street,
|
|
390
|
+
}) {
|
|
391
|
+
this.city = city;
|
|
392
|
+
this.colonia = colonia;
|
|
393
|
+
this.country = country;
|
|
394
|
+
this.createdAt = data.dateToUTC(createdAt);
|
|
395
|
+
this.extNumber = extNumber;
|
|
396
|
+
this.fullName = fullName;
|
|
397
|
+
this.intNumber = intNumber;
|
|
398
|
+
this.postalCode = postalCode;
|
|
399
|
+
this.state = state;
|
|
400
|
+
this.street = street;
|
|
403
401
|
}
|
|
404
402
|
|
|
405
|
-
static fromObject = ({
|
|
406
|
-
new
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
403
|
+
static fromObject = ({ city, colonia, country, state, street, ...obj }) =>
|
|
404
|
+
new Address({
|
|
405
|
+
city,
|
|
406
|
+
colonia,
|
|
407
|
+
country,
|
|
408
|
+
state,
|
|
409
|
+
street,
|
|
410
|
+
createdAt: obj.created_at,
|
|
411
|
+
extNumber: obj.ext_number,
|
|
412
|
+
fullName: obj.full_name,
|
|
413
|
+
intNumber: obj.int_number,
|
|
414
|
+
postalCode: obj.postal_code,
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
class AlertLog {
|
|
419
|
+
constructor({ agent, createdAt, status, updatedAt, comments }) {
|
|
420
|
+
this.agent = agent;
|
|
421
|
+
this.comments = comments;
|
|
422
|
+
this.createdAt = data.dateToUTC(createdAt);
|
|
423
|
+
this.updatedAt = data.dateToUTC(updatedAt);
|
|
424
|
+
this.status = data.enumValueFromString(data.AlertStatus, status);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
static fromObject = ({ agent, comments, status, ...obj }) =>
|
|
428
|
+
new AlertLog({
|
|
429
|
+
agent,
|
|
430
|
+
comments,
|
|
431
|
+
status,
|
|
432
|
+
createdAt: obj.created_at,
|
|
433
|
+
updatedAt: obj.updated_at,
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
class Audit {
|
|
438
|
+
constructor({ hasAudit, auditProvider, auditDate, auditComments }) {
|
|
439
|
+
this.hasAudit = hasAudit;
|
|
440
|
+
this.auditProvider = auditProvider;
|
|
441
|
+
this.auditDate = data.dateToUTC(auditDate);
|
|
442
|
+
this.auditComments = auditComments;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
static fromObject = ({ ...obj }) =>
|
|
446
|
+
new Audit({
|
|
447
|
+
hasAudit: obj.has_audit,
|
|
448
|
+
auditProvider: obj.audit_provider,
|
|
449
|
+
auditDate: obj.audit_date,
|
|
450
|
+
auditComments: obj.audit_comments,
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
class BusinessDetails {
|
|
455
|
+
constructor({ accountUsageDescription, businessDescription }) {
|
|
456
|
+
this.accountUsageDescription = accountUsageDescription;
|
|
457
|
+
this.businessDescription = businessDescription;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
static fromObject = ({ ...obj }) =>
|
|
461
|
+
new BusinessDetails({
|
|
462
|
+
accountUsageDescription: obj.account_usage_description,
|
|
463
|
+
businessDescription: obj.business_description,
|
|
411
464
|
});
|
|
412
465
|
}
|
|
413
466
|
|
|
@@ -454,62 +507,196 @@ class KYCFile {
|
|
|
454
507
|
});
|
|
455
508
|
}
|
|
456
509
|
|
|
457
|
-
class
|
|
510
|
+
class License {
|
|
458
511
|
constructor({
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
extNumber,
|
|
464
|
-
fullName,
|
|
465
|
-
intNumber,
|
|
466
|
-
postalCode,
|
|
467
|
-
state,
|
|
468
|
-
street,
|
|
512
|
+
licenseRequired,
|
|
513
|
+
supervisoryEntity,
|
|
514
|
+
licenseType,
|
|
515
|
+
licenseDate,
|
|
469
516
|
}) {
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
517
|
+
this.licenseRequired = licenseRequired;
|
|
518
|
+
this.supervisoryEntity = supervisoryEntity;
|
|
519
|
+
this.licenseType = licenseType;
|
|
520
|
+
this.licenseDate = data.dateToUTC(licenseDate);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
static fromObject = ({ ...obj }) =>
|
|
524
|
+
new License({
|
|
525
|
+
licenseRequired: obj.license_required,
|
|
526
|
+
supervisoryEntity: obj.supervisory_entity,
|
|
527
|
+
licenseType: obj.license_type,
|
|
528
|
+
licenseDate: obj.license_date,
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
class PhysicalPerson {
|
|
533
|
+
constructor({ names, curp, rfc, firstSurname, secondSurname }) {
|
|
534
|
+
this.names = names;
|
|
535
|
+
this.curp = curp;
|
|
536
|
+
this.rfc = rfc;
|
|
537
|
+
this.firstSurname = firstSurname;
|
|
538
|
+
this.secondSurname = secondSurname;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
static fromObject = ({ names, curp, rfc, ...obj }) => {
|
|
542
|
+
return new PhysicalPerson({
|
|
543
|
+
names,
|
|
544
|
+
curp,
|
|
545
|
+
rfc,
|
|
546
|
+
firstSurname: obj.first_surname,
|
|
547
|
+
secondSurname: obj.second_surname,
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
class LegalRepresentatives extends PhysicalPerson {
|
|
553
|
+
constructor({
|
|
554
|
+
names,
|
|
555
|
+
curp,
|
|
556
|
+
rfc,
|
|
557
|
+
firstSurname,
|
|
558
|
+
secondSurname,
|
|
559
|
+
job,
|
|
560
|
+
phoneNumber,
|
|
561
|
+
emailAddress,
|
|
562
|
+
address,
|
|
563
|
+
}) {
|
|
564
|
+
super({ names, curp, rfc, firstSurname, secondSurname });
|
|
565
|
+
this.job = job;
|
|
566
|
+
this.phoneNumber = phoneNumber;
|
|
567
|
+
this.emailAddress = emailAddress;
|
|
568
|
+
this.setAddress = address;
|
|
480
569
|
}
|
|
481
570
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
571
|
+
get address() {
|
|
572
|
+
return this._address;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
set setAddress(value) {
|
|
576
|
+
if (!value) return;
|
|
577
|
+
this._address = Address.fromObject(value);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
static fromObject = ({ job, address, ...obj }) =>
|
|
581
|
+
new LegalRepresentatives({
|
|
582
|
+
address,
|
|
583
|
+
job,
|
|
584
|
+
phoneNumber: obj.phone_number,
|
|
585
|
+
emailAddress: obj.email_address,
|
|
586
|
+
...PhysicalPerson.fromObject(obj),
|
|
494
587
|
});
|
|
495
588
|
}
|
|
496
589
|
|
|
497
|
-
class
|
|
498
|
-
constructor({
|
|
499
|
-
|
|
500
|
-
this.
|
|
501
|
-
this.createdAt = data.dateToUTC(createdAt);
|
|
502
|
-
this.updatedAt = data.dateToUTC(updatedAt);
|
|
503
|
-
this.status = data.enumValueFromString(data.AlertStatus, status);
|
|
590
|
+
class ShareholderPhysical extends PhysicalPerson {
|
|
591
|
+
constructor({ names, curp, rfc, firstSurname, secondSurname, percentage }) {
|
|
592
|
+
super({ names, curp, rfc, firstSurname, secondSurname });
|
|
593
|
+
this.percentage = percentage;
|
|
504
594
|
}
|
|
505
595
|
|
|
506
|
-
static fromObject = ({
|
|
507
|
-
new
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
596
|
+
static fromObject = ({ percentage, ...obj }) => {
|
|
597
|
+
return new ShareholderPhysical({
|
|
598
|
+
percentage,
|
|
599
|
+
...PhysicalPerson.fromObject(obj),
|
|
600
|
+
});
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// Asegúrate de tener las clases ShareholderPhysical y LegalRepresentative importadas correctamente
|
|
605
|
+
|
|
606
|
+
class ShareholderMoral {
|
|
607
|
+
constructor({ name, percentage, shareholders, legalRepresentatives }) {
|
|
608
|
+
this.name = name;
|
|
609
|
+
this.percentage = percentage;
|
|
610
|
+
this.setShareholders = shareholders;
|
|
611
|
+
this.setLegalRepresentatives = legalRepresentatives;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
get shareholders() {
|
|
615
|
+
return this._shareholders;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
set setShareholders(value) {
|
|
619
|
+
if (!value) return;
|
|
620
|
+
this._shareholders = ShareholderPhysical.fromObject(value);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
get legalRepresentatives() {
|
|
624
|
+
return this._legalRepresentatives;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
set setLegalRepresentatives(value) {
|
|
628
|
+
if (!value) return;
|
|
629
|
+
this._legalRepresentatives = LegalRepresentatives.fromObject(value);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
static fromObject = ({ name, percentage, shareholders, ...obj }) => {
|
|
633
|
+
return new ShareholderMoral({
|
|
634
|
+
name,
|
|
635
|
+
percentage,
|
|
636
|
+
shareholders: shareholders || [],
|
|
637
|
+
legalRepresentatives: obj.legal_representatives || [],
|
|
638
|
+
});
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
class TransactionalProfileServices {
|
|
643
|
+
constructor({
|
|
644
|
+
speiTransfersNum,
|
|
645
|
+
speiTransfersAmount,
|
|
646
|
+
internalTransfersNum,
|
|
647
|
+
internalTransfersAmount,
|
|
648
|
+
}) {
|
|
649
|
+
this.speiTransfersNum = speiTransfersNum;
|
|
650
|
+
this.speiTransfersAmount = speiTransfersAmount;
|
|
651
|
+
this.internalTransfersNum = internalTransfersNum;
|
|
652
|
+
this.internalTransfersAmount = internalTransfersAmount;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
static fromObject = ({ ...obj }) =>
|
|
656
|
+
new TransactionalProfileServices({
|
|
657
|
+
speiTransfersNum: obj.spei_transfers_num,
|
|
658
|
+
speiTransfersAmount: obj.spei_transfers_amount,
|
|
659
|
+
internalTransfersNum: obj.internal_transfers_num,
|
|
660
|
+
internalTransfersAmount: obj.internal_transfers_amount,
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
class TOSAgreements {
|
|
665
|
+
constructor({ ip, location, type, version }) {
|
|
666
|
+
this.ip = ip;
|
|
667
|
+
this.location = location;
|
|
668
|
+
this.type = type;
|
|
669
|
+
this.version = version;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
static fromObject = ({ ip, location, type, version }) =>
|
|
673
|
+
new TOSAgreements({
|
|
674
|
+
ip,
|
|
675
|
+
location,
|
|
676
|
+
type,
|
|
677
|
+
version,
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
class VulnerableActivity {
|
|
682
|
+
constructor({
|
|
683
|
+
isVulnerableActivity,
|
|
684
|
+
hasSatRegister,
|
|
685
|
+
satRegisteredDate,
|
|
686
|
+
isInCompliance,
|
|
687
|
+
}) {
|
|
688
|
+
this.isVulnerableActivity = isVulnerableActivity;
|
|
689
|
+
this.hasSatRegister = hasSatRegister;
|
|
690
|
+
this.satRegisteredDate = data.dateToUTC(satRegisteredDate);
|
|
691
|
+
this.isInCompliance = isInCompliance;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
static fromObject = ({ ...obj }) =>
|
|
695
|
+
new VulnerableActivity({
|
|
696
|
+
isVulnerableActivity: obj.is_vulnerable_activity,
|
|
697
|
+
hasSatRegister: obj.has_sat_register,
|
|
698
|
+
satRegisteredDate: obj.sat_registered_date,
|
|
699
|
+
isInCompliance: obj.is_in_compliance,
|
|
513
700
|
});
|
|
514
701
|
}
|
|
515
702
|
|
|
@@ -518,22 +705,29 @@ exports.Address = Address;
|
|
|
518
705
|
exports.AlertLog = AlertLog;
|
|
519
706
|
exports.AlertQuery = AlertQuery;
|
|
520
707
|
exports.ApiKeyQuery = ApiKeyQuery;
|
|
708
|
+
exports.Audit = Audit;
|
|
521
709
|
exports.BalanceEntryQuery = BalanceEntryQuery;
|
|
522
710
|
exports.BillPaymentQuery = BillPaymentQuery;
|
|
523
711
|
exports.BridgeAccountQuery = BridgeAccountQuery;
|
|
524
712
|
exports.BridgeBankAccountQuery = BridgeBankAccountQuery;
|
|
525
713
|
exports.BridgeQuery = BridgeQuery;
|
|
526
714
|
exports.BridgeTransactionQuery = BridgeTransactionQuery;
|
|
715
|
+
exports.BusinessDetails = BusinessDetails;
|
|
527
716
|
exports.CardTransactionQuery = CardTransactionQuery;
|
|
528
717
|
exports.CardsQuery = CardsQuery;
|
|
529
718
|
exports.DepositQuery = DepositQuery;
|
|
530
719
|
exports.KYCFile = KYCFile;
|
|
531
|
-
exports.
|
|
720
|
+
exports.LegalRepresentatives = LegalRepresentatives;
|
|
721
|
+
exports.License = License;
|
|
532
722
|
exports.QueryParams = QueryParams;
|
|
723
|
+
exports.ShareholderMoral = ShareholderMoral;
|
|
533
724
|
exports.StatementQuery = StatementQuery;
|
|
534
725
|
exports.TOSAgreements = TOSAgreements;
|
|
535
726
|
exports.TransactionQuery = TransactionQuery;
|
|
727
|
+
exports.TransactionalProfileServices = TransactionalProfileServices;
|
|
536
728
|
exports.TransferQuery = TransferQuery;
|
|
537
729
|
exports.UserQuery = UserQuery;
|
|
730
|
+
exports.VerificationError = VerificationError;
|
|
731
|
+
exports.VulnerableActivity = VulnerableActivity;
|
|
538
732
|
exports.WalletQuery = WalletQuery;
|
|
539
733
|
exports.WalletTransactionQuery = WalletTransactionQuery;
|