ravcredit-lib 0.0.58 → 0.0.59

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/index.d.ts CHANGED
@@ -127,1195 +127,1174 @@ declare enum eConektaOrderType {
127
127
  SPEI = "SPEI"
128
128
  }
129
129
 
130
- interface oDevice {
131
- device: string;
132
- id?: string;
133
- IMEI: string;
130
+ declare enum eClientStatus {
131
+ ACTIVE = "active",
132
+ COMPLETED = "completed",
133
+ PAUSED = "paused",
134
+ CANCELED = "canceled",
135
+ LATE = "late"
134
136
  }
135
-
136
- interface oFinancialProgress {
137
- id: string;
138
- amount: number;
139
- date: number;
137
+ declare enum eIdentityTypes {
138
+ SELFIE = "SELFIE",
139
+ IDENTITY_FRONT = "IDENTITY_FRONT",
140
+ IDENTITY_BACK = "IDENTITY_BACK",
141
+ PASSPORT_FRONT = "PASSPORT_FRONT",
142
+ PASSPORT_BACK = "PASSPORT_BACK",
143
+ SERVICE = "SERVICE",
144
+ WITH_DEVICE = "WITH_DEVICE",
145
+ NONE = "NONE"
140
146
  }
141
- interface oFinancial {
142
- total: number;
143
- initial: number;
144
- deadlines: oBusinessDeadlines;
145
- initDate?: number;
146
- finalDate?: number;
147
- weeklyPayment: number;
148
- dayCut?: number;
149
- finalPayment?: number;
150
- progress?: oFinancialProgress[];
151
- pendingOf: string[];
152
- interest: number;
153
- provider: string;
154
- financed: number;
155
- nextPayment: number;
156
- amount_commission_opening?: number;
157
- principal_disbursed?: number;
158
- expected_disbursed?: number;
159
- credit_type?: string;
160
- interest_rate?: number;
161
- commission_opening?: number;
162
- interest_arrears?: number;
163
- clabe?: string;
147
+
148
+ interface oMediaIdentity {
149
+ url: string;
150
+ name: eIdentityTypes;
151
+ active: boolean;
152
+ metadata: any;
153
+ uploaded: number;
164
154
  }
165
155
 
166
- interface iContract {
167
- createContract(data: any, monthlyPay: number, finalPayment: number): Promise<void>;
168
- editContract(): void;
169
- verifyClient(clientCurp: string): Promise<void>;
170
- dataClient(client: string): void;
171
- referenceAdded(reference: number): Promise<void>;
156
+ interface oScoreAddress {
157
+ CP: string;
158
+ ciudad: string;
159
+ estado: string;
160
+ domicilio: string;
161
+ coloniaPoblacion: string;
162
+ delegacionMunicipio: string;
172
163
  }
173
- interface oContract {
174
- id: string;
175
- dynamicAccount?: number;
176
- client: string;
177
- address: oAddress;
178
- device: oDevice;
179
- financial: oFinancial;
180
- createdAt?: number;
181
- lastPayment?: number;
182
- by: string;
183
- active: boolean;
184
- photo?: string;
164
+ interface oScoreHit {
165
+ valor: string;
166
+ }
167
+ interface oScoreNoHit {
168
+ date: string;
169
+ score: string;
170
+ message: string;
171
+ evaluation: string;
172
+ }
173
+ interface oScoreGeneral {
174
+ nombres: string;
175
+ apellidoMaterno: string;
176
+ apellidoPaterno: string;
177
+ fechaNacimiento: string;
178
+ }
179
+ interface oScore {
180
+ domicilio: oScoreAddress;
181
+ scoreNoHit: oScoreHit;
182
+ folioConsulta: string;
183
+ datosGenerales: oScoreGeneral;
184
+ }
185
+ interface oScoreReference {
186
+ name: string;
187
+ score: number;
185
188
  }
186
189
 
187
- declare enum eReferenceStatusRav {
188
- "Disponible" = "Disponible",
189
- "Active" = "Activo con credito vigente",
190
- "ActiveEnded" = "Activo sin credito vigente",
191
- "Registered" = "Registrado",
192
- "NonRegistered" = "No registrado",
193
- "NonVerified" = "No verificado",
194
- "Rejected" = "Rechazado",
195
- "Pending" = "Pendiente"
190
+ declare enum eVerificationStep {
191
+ IDLE = "IDLE",
192
+ ERROR = "ERROR",
193
+ COMPLETED = "COMPLETED",
194
+ IN_PROGRESS = "IN_PROGRESS",
195
+ INVALID = "INVALID",
196
+ SUSPENDED = "SUSPENDED",
197
+ CANCELLED = "CANCELLED"
196
198
  }
197
- declare enum eAccountDynamicStatus {
198
- "OK" = "Con cuenta activa",
199
- "NOK" = "Sin cuenta activa"
199
+ declare enum eVerificationStatus {
200
+ APPROVED = "approved",
201
+ CANCELLED = "cancelled"
200
202
  }
201
- declare enum eClientDynamicStatus {
202
- "Active" = "Active",
203
- "Pending" = "Pending",
204
- "Accepted" = "Accepted",
205
- "Rejected" = "Rejected",
206
- "approved" = "Aprobado"
203
+ declare enum eVerificationChannel {
204
+ SMS = "sms",
205
+ WHATSAPP = "whatsapp",
206
+ CALL = "call",
207
+ EMAIL = "email",
208
+ SNA = "sna"
207
209
  }
208
- declare const cClientDynamicStatus: {
209
- Active: {
210
- value: string;
211
- viewValue: string;
212
- };
213
- Pending: {
214
- value: string;
215
- viewValue: string;
216
- };
217
- Accepted: {
218
- value: string;
219
- viewValue: string;
220
- };
221
- Rejected: {
222
- value: string;
223
- viewValue: string;
224
- };
225
- Idle: {
226
- value: string;
227
- viewValue: string;
228
- };
229
- };
230
- declare enum eContractSteps {
231
- "idle" = "idle",
232
- "general" = "General",
233
- "address" = "Address",
234
- "device" = "Device",
235
- "financial" = "Financial",
236
- "app" = "App"
210
+
211
+ declare enum eProcessStatus {
212
+ IDLE = "IDLE",
213
+ ERROR = "ERROR",
214
+ CANCELED = "CANCELED",
215
+ COMPLETE = "COMPLETE",
216
+ PROCESSING = "PROCESSING",
217
+ WAITING = "WAITING"
237
218
  }
238
- type partialIDCData = Pick<IDCClient, "pii" | "client_type">;
239
- interface IDCCharge {
240
- barcode_url: string;
241
- currency: string;
242
- expires_at: number;
243
- object: string;
244
- quantity: number;
245
- reference: string;
246
- service_name: string;
247
- store_name: string;
248
- type: string;
249
- unit_price: number;
219
+ declare enum eRequestVerb {
220
+ POST = "POST",
221
+ GET = "GET",
222
+ PATCH = "PATCH",
223
+ DELETE = "DELETE"
250
224
  }
251
- interface IDCGeneratedReference {
252
- account: number;
253
- active: number;
225
+ declare enum eGCActions {
226
+ Create = "Create",
227
+ Update = "Update",
228
+ Remove = "Remove",
229
+ LoginTime = "UpdateLogIn"
230
+ }
231
+ declare enum eOrderType {
232
+ DYNAMIC_REFERENCE = "DYNAMIC_REFERENCE",
233
+ DYNAMIC_SPEI = "DYNAMIC_SPEI",
234
+ CONEKTA_REFERENCE = "CONEKTA_REFERENCE",
235
+ CONEKTA_SPEI = "CONEKTA_SPEI",
236
+ PASSPORT_REFERENCE = "PASSPORT_REFERENCE"
237
+ }
238
+
239
+ interface oClientPayments {
240
+ date: number;
241
+ dayPayment: number;
254
242
  amount: number;
255
- channel: string;
256
- charge: IDCCharge;
257
- company: number;
258
- config?: any;
259
243
  id: string;
260
- operation: number;
261
244
  }
262
- declare const cIDCDataPii: IDCDataPii;
263
- /**
264
- * Base customer for create customer with DynamiCore provider
265
- * */
266
- declare const cIDCCustomer: partialIDCData;
267
- interface IDCDataPii {
268
- icc: string;
269
- rfc: string;
270
- city: string;
271
- curp: string;
272
- sex: string;
273
- days: string;
274
- step: string;
275
- ticket: string;
276
- evidence: string;
277
- proof_of_address: string;
278
- score_interno: string;
279
- imei: string;
245
+ interface oUserReference {
280
246
  name: string;
281
- term: string;
282
- brand: string;
283
- email: string;
284
- model: string;
285
247
  phone: string;
286
- score: any;
287
- state: string;
288
- amount: string;
289
- colony: string;
290
- estado: any;
291
- gender: string;
292
- period: string;
293
- street: string;
294
- num_ext: string;
295
- num_int: string;
296
- zipcode: string;
297
- financed: string;
298
- house_is: string;
299
- lastname: string;
300
- type_job: string;
301
- birthdate: string;
302
- birthstate: string;
303
- dicio_data: string;
304
- dicio_step: any;
305
- secondname: string;
306
- nationality: string;
307
- seller_name: string;
308
- down_payment: string;
309
- municipality: string;
310
- score_no_hit: string;
311
- study_degree: string;
312
- branch_office: string;
313
- identity_data: any;
314
- interest_rate: string;
315
- marital_status: string;
316
- monthly_income: string;
317
- motherlastname: string;
318
- score_rcc_fico: string;
319
- identity_selfie: any;
320
- amount_by_period: string;
321
- identity_id_back: any;
322
- identity_id_front: any;
323
- economic_dependents: string;
324
- identity_id_request: any;
325
- identity_verification: any;
326
- is_address_ine_currently_live: string;
327
- fotografia_del_cliente_con_el_equipo?: string;
248
+ relationship: string;
328
249
  }
329
- interface IDCAccountProps {
330
- clabe: string | number;
331
- pagaqui: string | number;
332
- start_date: string;
333
- expected_disbursed: number;
334
- reference_pagaaqui: string;
335
- principal_disbursed: number;
336
- amount_commission_opening: number;
337
- seller_name?: string;
250
+ interface oClientReferences {
251
+ date?: number;
252
+ amount?: number;
253
+ id: string;
254
+ url?: string;
255
+ type?: eOrderType;
338
256
  }
339
- interface IDCAccountConfig {
340
- contract: string;
341
- credit_type: string;
342
- periodicity: string;
343
- installments: number;
344
- interest_base: string;
345
- interest_rate: number;
346
- interest_arrears: number;
347
- commission_opening: number;
348
- financed_amount?: number;
257
+ interface oClient extends oClientBase {
258
+ score: oScore;
259
+ seller_id?: string;
260
+ scoreNoHit?: oScoreNoHit;
261
+ study_degree?: string;
262
+ mediaSelfie?: oMediaIdentity;
263
+ mediaAddress?: oMediaIdentity;
264
+ mediaWithDevice?: oMediaIdentity;
265
+ mediaSelfieBack?: oMediaIdentity;
266
+ identityVerification?: eVerificationStep;
349
267
  }
350
- interface IDCAccount {
351
- id: number;
352
- group: number;
353
- company: number;
354
- client: number;
355
- created_at: string;
356
- currency: string | number;
357
- status: string;
358
- properties: IDCAccountProps;
359
- product: number;
360
- enabled: string | number;
361
- config: IDCAccountConfig;
268
+
269
+ interface oClientPaymentsBase {
270
+ date: number;
271
+ dayPayment: number;
362
272
  amount: number;
363
- type: string;
364
- identifier: string;
365
- start_at: string;
366
- el: any;
367
- client_id: string | number;
273
+ id: string;
368
274
  }
369
- interface IDCTxnRowExtras {
370
- reference: string;
371
- transaction: string;
275
+ interface oUserReferenceBase {
276
+ name: string;
277
+ phone: string;
278
+ relationship: string;
372
279
  }
373
- interface IDCTxnRow {
280
+ interface oClientBase {
374
281
  id: string;
375
- created_at: string;
376
- seq: number;
377
- created: string;
378
- last4: string;
379
- response: any;
380
- transaction_id: string;
381
- contrapart: string;
382
- reference: string;
383
- external_reference: any;
384
- extras: IDCTxnRowExtras;
385
282
  name: string;
386
- debit: number;
387
- credit: number;
388
- amount: number;
283
+ username: string;
284
+ password?: string;
285
+ email: string;
286
+ phone: string;
287
+ curp: string;
288
+ contract?: string;
289
+ createdAt?: number;
290
+ lastLogin?: number;
291
+ contract_temporary?: string;
292
+ exists?: boolean;
293
+ conekta_id?: string;
294
+ dynamic_id?: number | string;
295
+ dynamic_account?: string | number;
296
+ dynamic_ref?: string;
297
+ passport_id?: string;
298
+ payments?: oClientPaymentsBase[];
299
+ reference?: string;
300
+ references?: oClientReferences[];
301
+ token?: string;
302
+ userReferences: oUserReferenceBase[];
303
+ contractUrl?: string;
304
+ status: string;
389
305
  }
390
- interface IDCTxnHeader {
391
- name: string;
392
- type: string;
393
- label?: string;
394
- money?: string;
395
- format?: string;
306
+
307
+ interface oConektaResObjChargePaid {
308
+ id: string;
309
+ livemode: boolean;
310
+ created_at: number;
311
+ currency: string;
312
+ payment_method: any;
313
+ object: string;
314
+ description: string;
315
+ status: string;
316
+ amount: number;
317
+ paid_at: number;
318
+ fee: number;
319
+ customer_id: string;
320
+ order_id: string;
396
321
  }
397
- interface IDCTxn {
398
- rows: IDCTxnRow[];
399
- headers: IDCTxnHeader[];
322
+ interface oConektaChannel {
323
+ segment: string;
324
+ checkout_request_id: string;
325
+ checkout_request_type: string;
326
+ id: string;
400
327
  }
401
- interface IDCMntryCycle {
402
- date: string;
403
- late: number;
404
- paid: number;
405
- past: string | boolean;
406
- cycle: string | number;
407
- amount: number;
408
- detail: any;
328
+ interface oConektaCheckout {
329
+ id: string;
330
+ name: string;
331
+ livemode: boolean;
332
+ emails_sent: number;
333
+ success_url: string;
334
+ failure_url: string;
335
+ payments_limit_count: number | null;
336
+ paid_payments_count: number;
409
337
  status: string;
338
+ type: string;
339
+ recurrent: boolean;
340
+ starts_at: number;
341
+ expires_at: number;
342
+ allowed_payment_methods: string[];
343
+ needs_shipping_contact: boolean;
344
+ redirection_time: number | null;
345
+ metadata: object;
346
+ can_not_expire: boolean;
347
+ object: string;
348
+ is_redirect_on_failure: boolean;
349
+ slug: string;
350
+ url: string;
410
351
  }
411
- interface IDCMntryPymtAllPaidTotal {
412
- amount: string;
413
- cycles: string;
414
- }
415
- interface IDCMntryPymtAll {
416
- late: number;
417
- total: number;
418
- va_cp: number;
419
- actual: number;
420
- cycles: IDCMntryCycle[];
421
- vencido: number;
422
- paid_total: IDCMntryPymtAllPaidTotal;
423
- total_amount: number;
352
+ interface oConektaLineItem {
353
+ name: string;
354
+ description: string | null;
355
+ unit_price: number;
356
+ quantity: number;
357
+ sku: string | null;
358
+ tags: string[] | null;
359
+ brand: string | null;
360
+ type: string | null;
361
+ object: string;
362
+ id: string;
363
+ parent_id: string;
364
+ metadata: object;
365
+ antifraud_info: object;
424
366
  }
425
- interface IDCMntryPymtDue {
367
+ interface oConektaLineItems {
368
+ object: string;
369
+ has_more: boolean;
426
370
  total: number;
427
- cycles: IDCMntryCycle[];
428
- new_cycle: IDCMntryCycle;
429
- old_cycle: IDCMntryCycle;
430
- total_amount: number;
431
- }
432
- interface IDCMntryPymtOpen extends IDCMntryPymtDue {
371
+ data: oConektaLineItem[];
433
372
  }
434
- interface IDCMntryPymtPaid {
373
+ interface oConektaCharges {
374
+ object: string;
375
+ has_more: boolean;
435
376
  total: number;
436
- cycles: IDCMntryCycle[] | any[];
437
- new_cycle: any;
438
- old_cycle: any;
439
- total_amount: number;
440
- }
441
- interface IDCMntryPymtDueTax {
442
- expected: number;
377
+ data: oConektaChargeData[];
443
378
  }
444
- interface IDCMntryPymtPymt {
445
- paid: number;
446
- expected: number;
379
+ interface oConektaPaymentMethod {
380
+ service_name: string;
381
+ barcode_url: string;
382
+ store: string;
383
+ auth_code: number;
384
+ object: string;
385
+ type: string;
386
+ expires_at: number;
387
+ store_name: string;
388
+ reference: string;
389
+ cashier_id: string;
390
+ clabe?: string;
447
391
  }
448
- interface IDCMntryPymtCal {
449
- due: IDCMntryPymtDue;
450
- date: string;
451
- past: string;
452
- cycle: number;
453
- balance: number;
454
- due_tax: IDCMntryPymtDueTax;
455
- payment: IDCMntryPymtPymt;
456
- interest: IDCMntryPymtPymt;
457
- principal: IDCMntryPymtPymt;
458
- payment_tax: IDCMntryPymtPymt;
459
- interest_tax: IDCMntryPymtPymt;
460
- final_balance: number;
461
- payment_total: IDCMntryPymtPymt;
462
- principal_tax: IDCMntryPymtPymt;
463
- }
464
- interface IDCMntryPymt {
465
- all: IDCMntryPymtAll;
466
- due: IDCMntryPymtDue;
467
- open: IDCMntryPymtOpen;
468
- paid: IDCMntryPymtPaid;
469
- payment_calendar: IDCMntryPymtCal[];
470
- }
471
- interface IDCClient {
472
- id: number;
473
- company: number;
392
+ interface oConektaChargeData {
393
+ id: string;
394
+ livemode: boolean;
395
+ created_at: number;
396
+ currency: string;
397
+ failure_code: string | null;
398
+ failure_message: string | null;
399
+ channel: oConektaChannel;
400
+ payment_method: oConektaPaymentMethod;
401
+ object: string;
402
+ device_fingerprint: string;
403
+ description: string;
404
+ is_refundable: boolean;
405
+ reference_id: string | null;
474
406
  status: string;
475
- external_id: string;
476
- pii: IDCDataPii;
477
- client_type: number;
478
- created_at: string;
479
- pd: number;
480
- username: string;
481
- group: number;
407
+ amount: number;
408
+ paid_at: number;
409
+ customer_id: string;
410
+ order_id: string;
411
+ is_button_premia: boolean;
412
+ refunds: string | null;
482
413
  }
483
- interface IDCMsg {
484
- code: number;
485
- total: number;
486
- data: IDCClient[] | IDCAccount[] | IDCTxn[] | IDCTxn | IDCMntryPymt | IDCCredit[] | IDCTransaction[];
487
- transaction?: string;
414
+ interface oConektaResObjOrderPaid {
415
+ livemode: boolean;
416
+ amount: number;
417
+ currency: string;
418
+ payment_status: string;
419
+ amount_refunded: number;
420
+ customer_info: oConektaCustomerInfo;
421
+ object: string;
422
+ id: string;
423
+ metadata: any;
424
+ is_refundable: boolean;
425
+ created_at: number;
426
+ updated_at: number;
427
+ line_items: any;
428
+ charges: any;
488
429
  }
489
- interface IDynamiCore {
490
- status: string;
491
- message: IDCMsg;
430
+ interface oConektaCustomerInfo {
431
+ email: string;
432
+ phone: string | null;
433
+ name: string;
434
+ corporate: boolean;
435
+ customer_id: string;
436
+ object: string;
437
+ customer_custom_reference: string | null;
492
438
  }
493
- /**
494
- * Interfaces for request (base)
495
- * */
496
- interface IDCClientObjFilter {
439
+ interface oConektaCustomerInfo {
440
+ email: string;
441
+ phone: string | null;
497
442
  name: string;
498
- filter: string[] | number[];
499
- type: string;
500
- sort: string;
443
+ corporate: boolean;
444
+ customer_id: string;
445
+ object: string;
446
+ customer_custom_reference: string | null;
501
447
  }
502
- interface IDCClientQuery {
503
- filters: IDCClientObjFilter[];
448
+ interface oConektaOrder {
449
+ livemode: boolean;
450
+ amount: number;
451
+ currency: string;
452
+ payment_status: string;
453
+ amount_refunded: number;
454
+ customer_info: oConektaCustomerInfo;
455
+ shipping_contact: string | null;
456
+ channel: oConektaChannel;
457
+ fiscal_entity: string | null;
458
+ object: string;
459
+ id: string;
460
+ metadata: object;
461
+ is_refundable: boolean;
462
+ created_at: number;
463
+ updated_at: number;
464
+ checkout: oConektaCheckout;
465
+ is_button_premia: boolean;
466
+ line_items: oConektaLineItems;
467
+ shipping_lines: string | null;
468
+ tax_lines: string | null;
469
+ discount_lines: string | null;
470
+ charges: oConektaCharges;
504
471
  }
505
- interface IDCClientPiiFilter {
506
- limit: number;
507
- page: number;
508
- query: IDCClientQuery;
472
+ interface oConektaOrdersResponse {
473
+ next_page_url: string | null;
474
+ previous_page_url: string | null;
475
+ has_more: boolean;
476
+ object: string;
477
+ data: oConektaOrder[];
509
478
  }
510
- interface IDCOxxoRefItem {
511
- name: string;
512
- unit_price: number;
513
- quantity: number;
479
+ /******************************************************* Order Create */
480
+ interface oConektaNewOrderCustomerInfo {
481
+ customer_id?: string;
482
+ name?: string;
483
+ email?: string;
484
+ phone?: string;
485
+ corporate?: any;
486
+ date_of_birth?: any;
487
+ national_id?: any;
488
+ object?: any;
514
489
  }
515
- interface IDCOxxoRefPymtMth {
490
+ interface oConektaNewOrderPymMethod {
491
+ expires_at: number;
516
492
  type: string;
517
493
  }
518
- interface IDCOxxoRef {
519
- account: number;
520
- operation: number;
521
- customer_info: IDCRefCustInfo;
522
- items: IDCOxxoRefItem;
523
- payment_method: IDCOxxoRefPymtMth;
524
- }
525
- /**
526
- * DynamiCore Reference Interface
527
- * */
528
- interface IDCRefCustInfo {
529
- name: string;
530
- email: string;
531
- phone: string | number;
494
+ interface oConektaNewOrderCharge {
495
+ payment_method: oConektaNewOrderPymMethod;
496
+ amount: number;
532
497
  }
533
- /**
534
- * DynamiCore Reference
535
- * */
536
- interface IDCRefCustInfo {
537
- name: string;
538
- email: string;
539
- phone: string | number;
498
+ interface oConektaNewOrderAntifraudInfo {
499
+ newKey: string;
540
500
  }
541
- interface IDCRefItems {
501
+ interface oConektaNewOrderLineItem {
502
+ antifraud_info: oConektaNewOrderAntifraudInfo;
542
503
  name: string;
543
- unit_price: number;
544
504
  quantity: number;
505
+ unit_price: number;
545
506
  }
546
- interface IDCRefPymtMethod {
547
- type: string;
507
+ interface oConektaOrderCreate {
508
+ customer_info: oConektaNewOrderCustomerInfo;
509
+ charges: oConektaNewOrderCharge[];
510
+ currency: string;
511
+ line_items: oConektaNewOrderLineItem[];
548
512
  }
549
- interface IDCNewReference {
513
+ interface oConektaNewOrder {
514
+ data: oConektaOrderCreate;
515
+ date?: number;
550
516
  id: string;
551
- data: IDCReference;
517
+ }
518
+ interface oConektaOrderSpei {
519
+ data: oConektaOrderCreate;
552
520
  date?: number;
521
+ client: oClientBase;
553
522
  }
554
- interface IDCReference {
555
- account: number;
556
- operation: number;
557
- customer_info: IDCRefCustInfo;
558
- items: IDCRefItems;
559
- payment_method: IDCRefPymtMethod;
523
+ interface oConektaResPrevAttr {
524
+ status: string;
560
525
  }
561
- /**
562
- * Interfaces to Credits
563
- * */
564
- interface IDCCreditProperties {
565
- start_date: string;
566
- principal_disbursed: number;
567
- expected_disbursed: number;
568
- amount_commission_opening: number;
526
+ interface oConektaResData {
527
+ object: oConektaResObjChargePaid | oConektaResObjOrderPaid;
528
+ previous_attributes: oConektaResPrevAttr;
569
529
  }
570
- interface IDCCreditConfig {
571
- contract: string;
572
- credit_type: string;
573
- interest_rate: number;
574
- installments: number;
575
- periodicity: string;
576
- interest_base: string;
577
- commission_opening: number;
578
- financed_amount: number;
579
- interest_arrears: number;
530
+ interface iConektaResObjChargePaidMethod {
531
+ barcode_url: string;
532
+ expires_at: number;
533
+ object: string;
534
+ reference: string;
535
+ service_name: string;
536
+ store: string;
537
+ type: string;
580
538
  }
581
- interface IDCCredit {
582
- id: number;
583
- group: number;
584
- company: number;
585
- client: number;
586
- created_at: string;
539
+ interface iConektaResObjChargePaid {
540
+ id: string;
541
+ livemode: boolean;
542
+ created_at: number;
587
543
  currency: string;
544
+ payment_method: iConektaResObjChargePaidMethod;
545
+ object: string;
546
+ description: string;
588
547
  status: string;
589
- properties: IDCCreditProperties;
590
- product: number;
591
- enabled: string;
592
- config: IDCCreditConfig;
593
548
  amount: number;
594
- type: string;
595
- identifier: null | string;
596
- start_at: null | string;
549
+ paid_at: number;
550
+ fee: number;
551
+ customer_id: string;
552
+ order_id: string;
597
553
  }
598
- /**
599
- * Payments
600
- * */
601
- interface IDCPayment {
602
- operation: number;
603
- account: string;
604
- date: string;
605
- amount: number;
606
- external_id?: string;
607
- dst_account: string;
608
- extras?: object;
609
- reference: string;
554
+ interface iConektaResPrevAttr {
555
+ status: string;
610
556
  }
611
- declare const cIDCPayment: IDCPayment;
612
- /**
613
- * Transactions
614
- * */
615
- interface IDCTransaction {
616
- data: [number, {
617
- transaction: string;
618
- }];
557
+ interface iConektaResData {
558
+ object: iConektaResObjChargePaid;
559
+ previous_attributes: iConektaResPrevAttr;
619
560
  }
620
- declare const cIDCCharge: IDCCharge;
621
- declare const cIDCGeneratedReference: IDCGeneratedReference;
622
- /**
623
- * Common Factory Dynamic
624
- * */
625
- declare class FactoryDynamiCore {
626
- static CreateReferenceBody(client: oClientBase, contract: oContract, dateTime?: number): IDCNewReference | null;
627
- static CreateEmptyCustomer(): partialIDCData;
628
- static CreateCustomerFromOClient(client: oClientBase, contract: oContract): partialIDCData;
629
- static CreateDynamicCredit(client: oClientBase, contract: oContract, clientDynamic: IDCClient): Partial<IDCCredit> | null;
630
- static CreatePayment(contract: oContract, clientDynamic: IDCAccount): IDCPayment;
631
- static getNextDateTime(): string;
632
- static getIsoDate(): string;
633
- static FormPayment(contract: oContract, account: IDCAccount): {
634
- amount: UntypedFormControl;
635
- };
561
+ interface oConektaRes {
562
+ client_id?: string;
563
+ data: iConektaResData;
564
+ livemode: false;
565
+ webhook_status: string;
566
+ webhook_logs: any[];
567
+ id: string;
568
+ object: string;
569
+ type: eConektaRes;
570
+ created_at: number;
636
571
  }
637
-
638
- declare enum eRoles {
639
- Administrator = "Administrator",
640
- Seller = "Seller",
641
- Consultant = "Consultant",
642
- Client = "Client",
643
- User = "User"
572
+ /******************************************************* New reference res */
573
+ interface iConektaSources {
574
+ type: string;
575
+ expires_at?: number;
644
576
  }
645
-
646
- type tyClientContract = oClientBase & oContract;
647
- interface oContractMetrics {
577
+ interface iOxxorecurrentSourcesData {
578
+ id: string;
579
+ object: string;
580
+ type: string;
581
+ provider: string;
582
+ reference: string;
583
+ barcode: string;
584
+ barcode_url: string;
585
+ expires_at: number;
586
+ created_at: number;
587
+ parent_id: string;
588
+ }
589
+ interface iOxxoRecurrentSources {
590
+ object: string;
591
+ has_more: boolean;
648
592
  total: number;
649
- activated: number;
650
- paused: number;
651
- completed: number;
652
- canceled: number;
653
- late: number;
654
- dynamicCount: number;
655
- passportCount: number;
656
- conektaCount: number;
657
- rateTotal: number;
658
- rateActive: number;
659
- ratePaused: number;
660
- rateComplete: number;
661
- rateCanceled: number;
662
- rateLate: number;
593
+ data: iOxxorecurrentSourcesData[];
663
594
  }
664
- interface HasUnsavedChanges {
665
- hasUnsavedChanges(): boolean;
595
+ interface iConektaRecurrent {
596
+ corporate: boolean;
597
+ created_at: number;
598
+ customer_reference?: string;
599
+ email: string;
600
+ id: string;
601
+ livemode: boolean;
602
+ name: string;
603
+ phone: string;
604
+ object: string;
605
+ custom_id: string;
606
+ payment_sources: iOxxoRecurrentSources;
666
607
  }
667
- interface oPaymentDates {
668
- week: number;
669
- date: number;
608
+ interface oConektaOrderResponseSpei {
609
+ livemode: boolean;
610
+ amount: number;
611
+ currency: string;
612
+ payment_status: string;
613
+ amount_refunded: number;
614
+ split_payment: any;
615
+ customer_info: CustomerInfoSpei;
616
+ shipping_contact: any;
617
+ channel: any;
618
+ fiscal_entity: any;
619
+ object: string;
620
+ id: string;
621
+ metadata: Record<string, any>;
622
+ is_refundable: boolean;
623
+ processing_mode: any;
624
+ created_at: number;
625
+ updated_at: number;
626
+ line_items: LineItemListSpei;
627
+ shipping_lines: any;
628
+ tax_lines: any;
629
+ discount_lines: any;
630
+ charges: ChargeListSpei;
670
631
  }
671
- interface iInformativeDialog {
672
- message: string;
673
- title: string;
674
- cancel: string;
675
- continue: string;
632
+ interface CustomerInfoSpei {
633
+ email: string;
634
+ phone: string;
635
+ name: string;
636
+ corporate: any;
637
+ customer_id: any;
638
+ date_of_birth: any;
639
+ national_id: any;
640
+ object: string;
676
641
  }
677
- interface iSnackBarMessage {
678
- message: string;
679
- action: string;
680
- config: MatSnackBarConfig;
642
+ interface LineItemListSpei {
643
+ object: string;
644
+ has_more: boolean;
645
+ total: number;
646
+ data: LineItemSpei[];
681
647
  }
682
- interface iOptionsSelect {
683
- viewValue: String;
684
- value: String;
648
+ interface LineItemSpei {
649
+ name: string;
650
+ description: any;
651
+ unit_price: number;
652
+ quantity: number;
653
+ sku: any;
654
+ tags: any;
655
+ brand: any;
656
+ type: any;
657
+ object: string;
658
+ id: string;
659
+ parent_id: string;
660
+ metadata: Record<string, any>;
661
+ antifraud_info: {
662
+ [key: string]: string;
663
+ };
685
664
  }
686
- interface iSelect {
687
- viewValue: eRoles;
688
- value: eRoles;
665
+ interface ChargeListSpei {
666
+ object: string;
667
+ has_more: boolean;
668
+ total: number;
669
+ data: ChargeSpei[];
689
670
  }
690
- interface iConfigUUID {
691
- client_uuid?: string;
692
- contract_uuid: string;
671
+ interface ChargeSpei {
672
+ id: string;
673
+ livemode: boolean;
674
+ created_at: number;
675
+ currency: string;
676
+ failure_code: any;
677
+ failure_message: any;
678
+ monthly_installments: any;
679
+ device_fingerprint: any;
680
+ session_id: any;
681
+ channel: any;
682
+ payment_method: BankTransferPaymentSpei;
683
+ object: string;
684
+ description: string;
685
+ is_refundable: boolean;
686
+ reference_id: any;
687
+ status: string;
688
+ amount: number;
689
+ paid_at: any;
690
+ customer_id: string;
691
+ order_id: string;
692
+ refunds: any;
693
693
  }
694
- interface iPaymentDelay {
695
- today: number;
696
- nextPayment: number;
697
- daysDelay: number;
698
- late: boolean;
694
+ interface BankTransferPaymentSpei {
695
+ clabe: string;
696
+ bank: string;
697
+ issuing_account_holder_name: any;
698
+ issuing_account_tax_id: any;
699
+ issuing_account_bank: any;
700
+ issuing_account_number: any;
701
+ receiving_account_holder_name: any;
702
+ receiving_account_tax_id: any;
703
+ receiving_account_number: string;
704
+ receiving_account_bank: string;
705
+ reference_number: any;
706
+ description: any;
707
+ tracking_code: any;
708
+ executed_at: any;
709
+ payment_attempts: any[];
710
+ object: string;
711
+ type: string;
712
+ expires_at: number;
699
713
  }
700
-
701
- declare const cClient: oClientBase;
702
- interface oClientConekta {
703
- ravcredit: oClientBase;
704
- conekta: iConektaRecurrent;
714
+ interface oConektaMixOrder {
715
+ id: string;
716
+ name: string;
717
+ currency: string;
718
+ amount: number;
719
+ created_at: number;
720
+ updated_at: number;
721
+ clabe?: string;
722
+ reference?: string;
723
+ debit?: string;
724
+ credit?: string;
725
+ payment_status: string;
726
+ barcode_url?: string;
705
727
  }
706
- declare const cUserReference: oUserReference;
707
- declare const cClientConekta: oClientConekta;
708
- interface iClientContract {
709
- client: oClientBase;
710
- contract: oContract;
728
+
729
+ interface oDevice {
730
+ device: string;
731
+ id?: string;
732
+ IMEI: string;
711
733
  }
712
- declare const cClientContract: iClientContract;
713
- declare class FactoryClient {
714
- static CreateClientToConektaObj(data: oClientBase): any;
715
- static CreateClientFromFormObj(data: any, client?: oClientBase): oClientBase;
716
- static CreateClientConektaObj(data: oClientBase, finalDate: number): {
717
- name: string;
718
- email: string;
719
- phone: string;
720
- contract: string | undefined;
721
- client_id: string;
722
- payment_sources: iConektaSources[];
723
- };
724
- static MapperConektaClient(client: oClientBase, conekta: iConektaRecurrent): iClientContract;
725
- static MapperTypeContCli_Client(_client: tyClientContract): oClientBase;
726
- static MapperDynamicClient(dynamic: IDCClient, client: oClientBase, contract: oContract, clientDyn?: IDCClient, account?: IDCAccount): iClientContract;
727
- static MapperFinancialContract(contract: oContract, account: IDCAccount): oFinancial;
728
- static CheckEmail: (email: string) => boolean;
734
+
735
+ interface oFinancialProgress {
736
+ id: string;
737
+ amount: number;
738
+ date: number;
729
739
  }
730
- declare enum eIdentityTypes {
731
- SELFIE = "SELFIE",
732
- IDENTITY_FRONT = "IDENTITY_FRONT",
733
- IDENTITY_BACK = "IDENTITY_BACK",
734
- PASSPORT_FRONT = "PASSPORT_FRONT",
735
- PASSPORT_BACK = "PASSPORT_BACK",
736
- SERVICE = "SERVICE",
737
- WITH_DEVICE = "WITH_DEVICE"
740
+ interface oFinancial {
741
+ total: number;
742
+ initial: number;
743
+ deadlines: oBusinessDeadlines;
744
+ initDate?: number;
745
+ finalDate?: number;
746
+ weeklyPayment: number;
747
+ dayCut?: number;
748
+ finalPayment?: number;
749
+ progress?: oFinancialProgress[];
750
+ pendingOf: string[];
751
+ interest: number;
752
+ provider: string;
753
+ financed: number;
754
+ nextPayment: number;
755
+ amount_commission_opening?: number;
756
+ principal_disbursed?: number;
757
+ expected_disbursed?: number;
758
+ credit_type?: string;
759
+ interest_rate?: number;
760
+ commission_opening?: number;
761
+ interest_arrears?: number;
762
+ clabe?: string;
738
763
  }
739
764
 
740
- interface oMediaIdentity {
741
- url: string;
742
- name: eIdentityTypes;
765
+ interface iContract {
766
+ createContract(data: any, monthlyPay: number, finalPayment: number): Promise<void>;
767
+ editContract(): void;
768
+ verifyClient(clientCurp: string): Promise<void>;
769
+ dataClient(client: string): void;
770
+ referenceAdded(reference: number): Promise<void>;
771
+ }
772
+ interface oContract {
773
+ id: string;
774
+ dynamicAccount?: number;
775
+ client: string;
776
+ address: oAddress;
777
+ device: oDevice;
778
+ financial: oFinancial;
779
+ createdAt?: number;
780
+ lastPayment?: number;
781
+ by: string;
743
782
  active: boolean;
744
- metadata: any;
745
- uploaded: number;
783
+ photo?: string;
746
784
  }
747
785
 
748
- interface oScoreAddress {
749
- CP: string;
750
- ciudad: string;
751
- estado: string;
752
- domicilio: string;
753
- coloniaPoblacion: string;
754
- delegacionMunicipio: string;
755
- }
756
- interface oScoreHit {
757
- valor: string;
758
- }
759
- interface oScoreNoHit {
760
- date: string;
761
- score: string;
762
- message: string;
763
- evaluation: string;
764
- }
765
- interface oScoreGeneral {
766
- nombres: string;
767
- apellidoMaterno: string;
768
- apellidoPaterno: string;
769
- fechaNacimiento: string;
770
- }
771
- interface oScore {
772
- domicilio: oScoreAddress;
773
- scoreNoHit: oScoreHit;
774
- folioConsulta: string;
775
- datosGenerales: oScoreGeneral;
786
+ declare enum eReferenceStatusRav {
787
+ "Disponible" = "Disponible",
788
+ "Active" = "Activo con credito vigente",
789
+ "ActiveEnded" = "Activo sin credito vigente",
790
+ "Registered" = "Registrado",
791
+ "NonRegistered" = "No registrado",
792
+ "NonVerified" = "No verificado",
793
+ "Rejected" = "Rechazado",
794
+ "Pending" = "Pendiente"
776
795
  }
777
- interface oScoreReference {
778
- name: string;
779
- score: number;
796
+ declare enum eAccountDynamicStatus {
797
+ "OK" = "Con cuenta activa",
798
+ "NOK" = "Sin cuenta activa"
780
799
  }
781
-
782
- declare enum eVerificationStep {
783
- IDLE = "IDLE",
784
- ERROR = "ERROR",
785
- COMPLETED = "COMPLETED",
786
- IN_PROGRESS = "IN_PROGRESS",
787
- INVALID = "INVALID",
788
- SUSPENDED = "SUSPENDED",
789
- CANCELLED = "CANCELLED"
800
+ declare enum eClientDynamicStatus {
801
+ "Active" = "Active",
802
+ "Pending" = "Pending",
803
+ "Accepted" = "Accepted",
804
+ "Rejected" = "Rejected",
805
+ "approved" = "Aprobado"
790
806
  }
791
- declare enum eVerificationStatus {
792
- APPROVED = "approved",
793
- CANCELLED = "cancelled"
807
+ declare const cClientDynamicStatus: {
808
+ Active: {
809
+ value: string;
810
+ viewValue: string;
811
+ };
812
+ Pending: {
813
+ value: string;
814
+ viewValue: string;
815
+ };
816
+ Accepted: {
817
+ value: string;
818
+ viewValue: string;
819
+ };
820
+ Rejected: {
821
+ value: string;
822
+ viewValue: string;
823
+ };
824
+ Idle: {
825
+ value: string;
826
+ viewValue: string;
827
+ };
828
+ };
829
+ declare enum eContractSteps {
830
+ "idle" = "idle",
831
+ "general" = "General",
832
+ "address" = "Address",
833
+ "device" = "Device",
834
+ "financial" = "Financial",
835
+ "app" = "App"
794
836
  }
795
- declare enum eVerificationChannel {
796
- SMS = "sms",
797
- WHATSAPP = "whatsapp",
798
- CALL = "call",
799
- EMAIL = "email",
800
- SNA = "sna"
837
+ type partialIDCData = Pick<IDCClient, "pii" | "client_type">;
838
+ interface IDCCharge {
839
+ barcode_url: string;
840
+ currency: string;
841
+ expires_at: number;
842
+ object: string;
843
+ quantity: number;
844
+ reference: string;
845
+ service_name: string;
846
+ store_name: string;
847
+ type: string;
848
+ unit_price: number;
801
849
  }
802
-
803
- declare enum eProcessStatus {
804
- IDLE = "IDLE",
805
- ERROR = "ERROR",
806
- CANCELED = "CANCELED",
807
- COMPLETE = "COMPLETE",
808
- PROCESSING = "PROCESSING",
809
- WAITING = "WAITING"
850
+ interface IDCGeneratedReference {
851
+ account: number;
852
+ active: number;
853
+ amount: number;
854
+ channel: string;
855
+ charge: IDCCharge;
856
+ company: number;
857
+ config?: any;
858
+ id: string;
859
+ operation: number;
810
860
  }
811
- declare enum eRequestVerb {
812
- POST = "POST",
813
- GET = "GET",
814
- PATCH = "PATCH",
815
- DELETE = "DELETE"
861
+ declare const cIDCDataPii: IDCDataPii;
862
+ /**
863
+ * Base customer for create customer with DynamiCore provider
864
+ * */
865
+ declare const cIDCCustomer: partialIDCData;
866
+ interface IDCDataPii {
867
+ icc: string;
868
+ rfc: string;
869
+ city: string;
870
+ curp: string;
871
+ sex: string;
872
+ days: string;
873
+ step: string;
874
+ ticket: string;
875
+ evidence: string;
876
+ proof_of_address: string;
877
+ score_interno: string;
878
+ imei: string;
879
+ name: string;
880
+ term: string;
881
+ brand: string;
882
+ email: string;
883
+ model: string;
884
+ phone: string;
885
+ score: any;
886
+ state: string;
887
+ amount: string;
888
+ colony: string;
889
+ estado: any;
890
+ gender: string;
891
+ period: string;
892
+ street: string;
893
+ num_ext: string;
894
+ num_int: string;
895
+ zipcode: string;
896
+ financed: string;
897
+ house_is: string;
898
+ lastname: string;
899
+ type_job: string;
900
+ birthdate: string;
901
+ birthstate: string;
902
+ dicio_data: string;
903
+ dicio_step: any;
904
+ secondname: string;
905
+ nationality: string;
906
+ seller_name: string;
907
+ down_payment: string;
908
+ municipality: string;
909
+ score_no_hit: string;
910
+ study_degree: string;
911
+ branch_office: string;
912
+ identity_data: any;
913
+ interest_rate: string;
914
+ marital_status: string;
915
+ monthly_income: string;
916
+ motherlastname: string;
917
+ score_rcc_fico: string;
918
+ identity_selfie: any;
919
+ amount_by_period: string;
920
+ identity_id_back: any;
921
+ identity_id_front: any;
922
+ economic_dependents: string;
923
+ identity_id_request: any;
924
+ identity_verification: any;
925
+ is_address_ine_currently_live: string;
926
+ fotografia_del_cliente_con_el_equipo?: string;
816
927
  }
817
- declare enum eGCActions {
818
- Create = "Create",
819
- Update = "Update",
820
- Remove = "Remove",
821
- LoginTime = "UpdateLogIn"
928
+ interface IDCAccountProps {
929
+ clabe: string | number;
930
+ pagaqui: string | number;
931
+ start_date: string;
932
+ expected_disbursed: number;
933
+ reference_pagaaqui: string;
934
+ principal_disbursed: number;
935
+ amount_commission_opening: number;
936
+ seller_name?: string;
822
937
  }
823
- declare enum eOrderType {
824
- DYNAMIC_REFERENCE = "DYNAMIC_REFERENCE",
825
- DYNAMIC_SPEI = "DYNAMIC_SPEI",
826
- CONEKTA_REFERENCE = "CONEKTA_REFERENCE",
827
- CONEKTA_SPEI = "CONEKTA_SPEI",
828
- PASSPORT_REFERENCE = "PASSPORT_REFERENCE"
938
+ interface IDCAccountConfig {
939
+ contract: string;
940
+ credit_type: string;
941
+ periodicity: string;
942
+ installments: number;
943
+ interest_base: string;
944
+ interest_rate: number;
945
+ interest_arrears: number;
946
+ commission_opening: number;
947
+ financed_amount?: number;
829
948
  }
830
-
831
- interface oClientPayments$1 {
832
- date: number;
833
- dayPayment: number;
949
+ interface IDCAccount {
950
+ id: number;
951
+ group: number;
952
+ company: number;
953
+ client: number;
954
+ created_at: string;
955
+ currency: string | number;
956
+ status: string;
957
+ properties: IDCAccountProps;
958
+ product: number;
959
+ enabled: string | number;
960
+ config: IDCAccountConfig;
834
961
  amount: number;
835
- id: string;
962
+ type: string;
963
+ identifier: string;
964
+ start_at: string;
965
+ el: any;
966
+ client_id: string | number;
836
967
  }
837
- interface oUserReference$1 {
838
- name: string;
839
- phone: string;
840
- relationship: string;
968
+ interface IDCTxnRowExtras {
969
+ reference: string;
970
+ transaction: string;
841
971
  }
842
- interface oClientReferences {
843
- date?: number;
844
- amount?: number;
972
+ interface IDCTxnRow {
845
973
  id: string;
846
- url?: string;
847
- type?: eOrderType;
848
- }
849
- interface oClient extends oClientBase {
850
- score: oScore;
851
- seller_id?: string;
852
- scoreNoHit?: oScoreNoHit;
853
- study_degree?: string;
854
- mediaSelfie?: oMediaIdentity;
855
- mediaAddress?: oMediaIdentity;
856
- mediaWithDevice?: oMediaIdentity;
857
- mediaSelfieBack?: oMediaIdentity;
858
- identityVerification?: eVerificationStep;
859
- }
860
-
861
- interface oClientPayments {
862
- date: number;
863
- dayPayment: number;
974
+ created_at: string;
975
+ seq: number;
976
+ created: string;
977
+ last4: string;
978
+ response: any;
979
+ transaction_id: string;
980
+ contrapart: string;
981
+ reference: string;
982
+ external_reference: any;
983
+ extras: IDCTxnRowExtras;
984
+ name: string;
985
+ debit: number;
986
+ credit: number;
864
987
  amount: number;
865
- id: string;
866
988
  }
867
- interface oUserReference {
989
+ interface IDCTxnHeader {
868
990
  name: string;
869
- phone: string;
870
- relationship: string;
991
+ type: string;
992
+ label?: string;
993
+ money?: string;
994
+ format?: string;
871
995
  }
872
- interface oClientBase {
873
- id: string;
874
- name: string;
875
- username: string;
876
- password?: string;
877
- email: string;
878
- phone: string;
879
- curp: string;
880
- contract?: string;
881
- createdAt?: number;
882
- lastLogin?: number;
883
- contract_temporary?: string;
884
- exists?: boolean;
885
- conekta_id?: string;
886
- dynamic_id?: number | string;
887
- dynamic_account?: string | number;
888
- dynamic_ref?: string;
889
- passport_id?: string;
890
- payments?: oClientPayments[];
891
- reference?: string;
892
- references?: oClientReferences[];
893
- token?: string;
894
- userReferences: oUserReference[];
895
- contractUrl?: string;
896
- status: string;
996
+ interface IDCTxn {
997
+ rows: IDCTxnRow[];
998
+ headers: IDCTxnHeader[];
897
999
  }
898
-
899
- interface oConektaResObjChargePaid {
900
- id: string;
901
- livemode: boolean;
902
- created_at: number;
903
- currency: string;
904
- payment_method: any;
905
- object: string;
906
- description: string;
907
- status: string;
1000
+ interface IDCMntryCycle {
1001
+ date: string;
1002
+ late: number;
1003
+ paid: number;
1004
+ past: string | boolean;
1005
+ cycle: string | number;
908
1006
  amount: number;
909
- paid_at: number;
910
- fee: number;
911
- customer_id: string;
912
- order_id: string;
913
- }
914
- interface oConektaChannel {
915
- segment: string;
916
- checkout_request_id: string;
917
- checkout_request_type: string;
918
- id: string;
919
- }
920
- interface oConektaCheckout {
921
- id: string;
922
- name: string;
923
- livemode: boolean;
924
- emails_sent: number;
925
- success_url: string;
926
- failure_url: string;
927
- payments_limit_count: number | null;
928
- paid_payments_count: number;
1007
+ detail: any;
929
1008
  status: string;
930
- type: string;
931
- recurrent: boolean;
932
- starts_at: number;
933
- expires_at: number;
934
- allowed_payment_methods: string[];
935
- needs_shipping_contact: boolean;
936
- redirection_time: number | null;
937
- metadata: object;
938
- can_not_expire: boolean;
939
- object: string;
940
- is_redirect_on_failure: boolean;
941
- slug: string;
942
- url: string;
943
1009
  }
944
- interface oConektaLineItem {
945
- name: string;
946
- description: string | null;
947
- unit_price: number;
948
- quantity: number;
949
- sku: string | null;
950
- tags: string[] | null;
951
- brand: string | null;
952
- type: string | null;
953
- object: string;
954
- id: string;
955
- parent_id: string;
956
- metadata: object;
957
- antifraud_info: object;
1010
+ interface IDCMntryPymtAllPaidTotal {
1011
+ amount: string;
1012
+ cycles: string;
958
1013
  }
959
- interface oConektaLineItems {
960
- object: string;
961
- has_more: boolean;
1014
+ interface IDCMntryPymtAll {
1015
+ late: number;
962
1016
  total: number;
963
- data: oConektaLineItem[];
1017
+ va_cp: number;
1018
+ actual: number;
1019
+ cycles: IDCMntryCycle[];
1020
+ vencido: number;
1021
+ paid_total: IDCMntryPymtAllPaidTotal;
1022
+ total_amount: number;
964
1023
  }
965
- interface oConektaCharges {
966
- object: string;
967
- has_more: boolean;
1024
+ interface IDCMntryPymtDue {
968
1025
  total: number;
969
- data: oConektaChargeData[];
1026
+ cycles: IDCMntryCycle[];
1027
+ new_cycle: IDCMntryCycle;
1028
+ old_cycle: IDCMntryCycle;
1029
+ total_amount: number;
970
1030
  }
971
- interface oConektaPaymentMethod {
972
- service_name: string;
973
- barcode_url: string;
974
- store: string;
975
- auth_code: number;
976
- object: string;
977
- type: string;
978
- expires_at: number;
979
- store_name: string;
980
- reference: string;
981
- cashier_id: string;
982
- clabe?: string;
1031
+ interface IDCMntryPymtOpen extends IDCMntryPymtDue {
983
1032
  }
984
- interface oConektaChargeData {
985
- id: string;
986
- livemode: boolean;
987
- created_at: number;
988
- currency: string;
989
- failure_code: string | null;
990
- failure_message: string | null;
991
- channel: oConektaChannel;
992
- payment_method: oConektaPaymentMethod;
993
- object: string;
994
- device_fingerprint: string;
995
- description: string;
996
- is_refundable: boolean;
997
- reference_id: string | null;
1033
+ interface IDCMntryPymtPaid {
1034
+ total: number;
1035
+ cycles: IDCMntryCycle[] | any[];
1036
+ new_cycle: any;
1037
+ old_cycle: any;
1038
+ total_amount: number;
1039
+ }
1040
+ interface IDCMntryPymtDueTax {
1041
+ expected: number;
1042
+ }
1043
+ interface IDCMntryPymtPymt {
1044
+ paid: number;
1045
+ expected: number;
1046
+ }
1047
+ interface IDCMntryPymtCal {
1048
+ due: IDCMntryPymtDue;
1049
+ date: string;
1050
+ past: string;
1051
+ cycle: number;
1052
+ balance: number;
1053
+ due_tax: IDCMntryPymtDueTax;
1054
+ payment: IDCMntryPymtPymt;
1055
+ interest: IDCMntryPymtPymt;
1056
+ principal: IDCMntryPymtPymt;
1057
+ payment_tax: IDCMntryPymtPymt;
1058
+ interest_tax: IDCMntryPymtPymt;
1059
+ final_balance: number;
1060
+ payment_total: IDCMntryPymtPymt;
1061
+ principal_tax: IDCMntryPymtPymt;
1062
+ }
1063
+ interface IDCMntryPymt {
1064
+ all: IDCMntryPymtAll;
1065
+ due: IDCMntryPymtDue;
1066
+ open: IDCMntryPymtOpen;
1067
+ paid: IDCMntryPymtPaid;
1068
+ payment_calendar: IDCMntryPymtCal[];
1069
+ }
1070
+ interface IDCClient {
1071
+ id: number;
1072
+ company: number;
998
1073
  status: string;
999
- amount: number;
1000
- paid_at: number;
1001
- customer_id: string;
1002
- order_id: string;
1003
- is_button_premia: boolean;
1004
- refunds: string | null;
1074
+ external_id: string;
1075
+ pii: IDCDataPii;
1076
+ client_type: number;
1077
+ created_at: string;
1078
+ pd: number;
1079
+ username: string;
1080
+ group: number;
1005
1081
  }
1006
- interface oConektaResObjOrderPaid {
1007
- livemode: boolean;
1008
- amount: number;
1009
- currency: string;
1010
- payment_status: string;
1011
- amount_refunded: number;
1012
- customer_info: oConektaCustomerInfo;
1013
- object: string;
1014
- id: string;
1015
- metadata: any;
1016
- is_refundable: boolean;
1017
- created_at: number;
1018
- updated_at: number;
1019
- line_items: any;
1020
- charges: any;
1082
+ interface IDCMsg {
1083
+ code: number;
1084
+ total: number;
1085
+ data: IDCClient[] | IDCAccount[] | IDCTxn[] | IDCTxn | IDCMntryPymt | IDCCredit[] | IDCTransaction[];
1086
+ transaction?: string;
1021
1087
  }
1022
- interface oConektaCustomerInfo {
1023
- email: string;
1024
- phone: string | null;
1025
- name: string;
1026
- corporate: boolean;
1027
- customer_id: string;
1028
- object: string;
1029
- customer_custom_reference: string | null;
1088
+ interface IDynamiCore {
1089
+ status: string;
1090
+ message: IDCMsg;
1030
1091
  }
1031
- interface oConektaCustomerInfo {
1032
- email: string;
1033
- phone: string | null;
1092
+ /**
1093
+ * Interfaces for request (base)
1094
+ * */
1095
+ interface IDCClientObjFilter {
1034
1096
  name: string;
1035
- corporate: boolean;
1036
- customer_id: string;
1037
- object: string;
1038
- customer_custom_reference: string | null;
1097
+ filter: string[] | number[];
1098
+ type: string;
1099
+ sort: string;
1039
1100
  }
1040
- interface oConektaOrder {
1041
- livemode: boolean;
1042
- amount: number;
1043
- currency: string;
1044
- payment_status: string;
1045
- amount_refunded: number;
1046
- customer_info: oConektaCustomerInfo;
1047
- shipping_contact: string | null;
1048
- channel: oConektaChannel;
1049
- fiscal_entity: string | null;
1050
- object: string;
1051
- id: string;
1052
- metadata: object;
1053
- is_refundable: boolean;
1054
- created_at: number;
1055
- updated_at: number;
1056
- checkout: oConektaCheckout;
1057
- is_button_premia: boolean;
1058
- line_items: oConektaLineItems;
1059
- shipping_lines: string | null;
1060
- tax_lines: string | null;
1061
- discount_lines: string | null;
1062
- charges: oConektaCharges;
1101
+ interface IDCClientQuery {
1102
+ filters: IDCClientObjFilter[];
1063
1103
  }
1064
- interface oConektaOrdersResponse {
1065
- next_page_url: string | null;
1066
- previous_page_url: string | null;
1067
- has_more: boolean;
1068
- object: string;
1069
- data: oConektaOrder[];
1104
+ interface IDCClientPiiFilter {
1105
+ limit: number;
1106
+ page: number;
1107
+ query: IDCClientQuery;
1070
1108
  }
1071
- /******************************************************* Order Create */
1072
- interface oConektaNewOrderCustomerInfo {
1073
- customer_id?: string;
1074
- name?: string;
1075
- email?: string;
1076
- phone?: string;
1077
- corporate?: any;
1078
- date_of_birth?: any;
1079
- national_id?: any;
1080
- object?: any;
1109
+ interface IDCOxxoRefItem {
1110
+ name: string;
1111
+ unit_price: number;
1112
+ quantity: number;
1081
1113
  }
1082
- interface oConektaNewOrderPymMethod {
1083
- expires_at: number;
1114
+ interface IDCOxxoRefPymtMth {
1084
1115
  type: string;
1085
1116
  }
1086
- interface oConektaNewOrderCharge {
1087
- payment_method: oConektaNewOrderPymMethod;
1088
- amount: number;
1117
+ interface IDCOxxoRef {
1118
+ account: number;
1119
+ operation: number;
1120
+ customer_info: IDCRefCustInfo;
1121
+ items: IDCOxxoRefItem;
1122
+ payment_method: IDCOxxoRefPymtMth;
1089
1123
  }
1090
- interface oConektaNewOrderAntifraudInfo {
1091
- newKey: string;
1124
+ /**
1125
+ * DynamiCore Reference Interface
1126
+ * */
1127
+ interface IDCRefCustInfo {
1128
+ name: string;
1129
+ email: string;
1130
+ phone: string | number;
1092
1131
  }
1093
- interface oConektaNewOrderLineItem {
1094
- antifraud_info: oConektaNewOrderAntifraudInfo;
1132
+ /**
1133
+ * DynamiCore Reference
1134
+ * */
1135
+ interface IDCRefCustInfo {
1136
+ name: string;
1137
+ email: string;
1138
+ phone: string | number;
1139
+ }
1140
+ interface IDCRefItems {
1095
1141
  name: string;
1096
- quantity: number;
1097
1142
  unit_price: number;
1143
+ quantity: number;
1098
1144
  }
1099
- interface oConektaOrderCreate {
1100
- customer_info: oConektaNewOrderCustomerInfo;
1101
- charges: oConektaNewOrderCharge[];
1102
- currency: string;
1103
- line_items: oConektaNewOrderLineItem[];
1145
+ interface IDCRefPymtMethod {
1146
+ type: string;
1104
1147
  }
1105
- interface oConektaNewOrder {
1106
- data: oConektaOrderCreate;
1107
- date?: number;
1148
+ interface IDCNewReference {
1108
1149
  id: string;
1109
- }
1110
- interface oConektaOrderSpei {
1111
- data: oConektaOrderCreate;
1150
+ data: IDCReference;
1112
1151
  date?: number;
1113
- client: oClientBase;
1114
1152
  }
1115
- interface oConektaResPrevAttr {
1116
- status: string;
1153
+ interface IDCReference {
1154
+ account: number;
1155
+ operation: number;
1156
+ customer_info: IDCRefCustInfo;
1157
+ items: IDCRefItems;
1158
+ payment_method: IDCRefPymtMethod;
1117
1159
  }
1118
- interface oConektaResData {
1119
- object: oConektaResObjChargePaid | oConektaResObjOrderPaid;
1120
- previous_attributes: oConektaResPrevAttr;
1160
+ /**
1161
+ * Interfaces to Credits
1162
+ * */
1163
+ interface IDCCreditProperties {
1164
+ start_date: string;
1165
+ principal_disbursed: number;
1166
+ expected_disbursed: number;
1167
+ amount_commission_opening: number;
1121
1168
  }
1122
- interface iConektaResObjChargePaidMethod {
1123
- barcode_url: string;
1124
- expires_at: number;
1125
- object: string;
1126
- reference: string;
1127
- service_name: string;
1128
- store: string;
1129
- type: string;
1169
+ interface IDCCreditConfig {
1170
+ contract: string;
1171
+ credit_type: string;
1172
+ interest_rate: number;
1173
+ installments: number;
1174
+ periodicity: string;
1175
+ interest_base: string;
1176
+ commission_opening: number;
1177
+ financed_amount: number;
1178
+ interest_arrears: number;
1130
1179
  }
1131
- interface iConektaResObjChargePaid {
1132
- id: string;
1133
- livemode: boolean;
1134
- created_at: number;
1180
+ interface IDCCredit {
1181
+ id: number;
1182
+ group: number;
1183
+ company: number;
1184
+ client: number;
1185
+ created_at: string;
1135
1186
  currency: string;
1136
- payment_method: iConektaResObjChargePaidMethod;
1137
- object: string;
1138
- description: string;
1139
1187
  status: string;
1188
+ properties: IDCCreditProperties;
1189
+ product: number;
1190
+ enabled: string;
1191
+ config: IDCCreditConfig;
1140
1192
  amount: number;
1141
- paid_at: number;
1142
- fee: number;
1143
- customer_id: string;
1144
- order_id: string;
1145
- }
1146
- interface iConektaResPrevAttr {
1147
- status: string;
1193
+ type: string;
1194
+ identifier: null | string;
1195
+ start_at: null | string;
1148
1196
  }
1149
- interface iConektaResData {
1150
- object: iConektaResObjChargePaid;
1151
- previous_attributes: iConektaResPrevAttr;
1197
+ /**
1198
+ * Payments
1199
+ * */
1200
+ interface IDCPayment {
1201
+ operation: number;
1202
+ account: string;
1203
+ date: string;
1204
+ amount: number;
1205
+ external_id?: string;
1206
+ dst_account: string;
1207
+ extras?: object;
1208
+ reference: string;
1152
1209
  }
1153
- interface oConektaRes {
1154
- client_id?: string;
1155
- data: iConektaResData;
1156
- livemode: false;
1157
- webhook_status: string;
1158
- webhook_logs: any[];
1159
- id: string;
1160
- object: string;
1161
- type: eConektaRes;
1162
- created_at: number;
1210
+ declare const cIDCPayment: IDCPayment;
1211
+ /**
1212
+ * Transactions
1213
+ * */
1214
+ interface IDCTransaction {
1215
+ data: [number, {
1216
+ transaction: string;
1217
+ }];
1163
1218
  }
1164
- /******************************************************* New reference res */
1165
- interface iConektaSources {
1166
- type: string;
1167
- expires_at?: number;
1219
+ declare const cIDCCharge: IDCCharge;
1220
+ declare const cIDCGeneratedReference: IDCGeneratedReference;
1221
+ /**
1222
+ * Common Factory Dynamic
1223
+ * */
1224
+ declare class FactoryDynamiCore {
1225
+ static CreateReferenceBody(client: oClientBase, contract: oContract, dateTime?: number): IDCNewReference | null;
1226
+ static CreateEmptyCustomer(): partialIDCData;
1227
+ static CreateCustomerFromOClient(client: oClientBase, contract: oContract): partialIDCData;
1228
+ static CreateDynamicCredit(client: oClientBase, contract: oContract, clientDynamic: IDCClient): Partial<IDCCredit> | null;
1229
+ static CreatePayment(contract: oContract, clientDynamic: IDCAccount): IDCPayment;
1230
+ static getNextDateTime(): string;
1231
+ static getIsoDate(): string;
1232
+ static FormPayment(contract: oContract, account: IDCAccount): {
1233
+ amount: UntypedFormControl;
1234
+ };
1168
1235
  }
1169
- interface iOxxorecurrentSourcesData {
1170
- id: string;
1171
- object: string;
1172
- type: string;
1173
- provider: string;
1174
- reference: string;
1175
- barcode: string;
1176
- barcode_url: string;
1177
- expires_at: number;
1178
- created_at: number;
1179
- parent_id: string;
1236
+
1237
+ declare enum eRoles {
1238
+ Administrator = "Administrator",
1239
+ Seller = "Seller",
1240
+ Consultant = "Consultant",
1241
+ Client = "Client",
1242
+ User = "User"
1180
1243
  }
1181
- interface iOxxoRecurrentSources {
1182
- object: string;
1183
- has_more: boolean;
1244
+
1245
+ type tyClientContract = oClientBase & oContract;
1246
+ interface oContractMetrics {
1184
1247
  total: number;
1185
- data: iOxxorecurrentSourcesData[];
1186
- }
1187
- interface iConektaRecurrent {
1188
- corporate: boolean;
1189
- created_at: number;
1190
- customer_reference?: string;
1191
- email: string;
1192
- id: string;
1193
- livemode: boolean;
1194
- name: string;
1195
- phone: string;
1196
- object: string;
1197
- custom_id: string;
1198
- payment_sources: iOxxoRecurrentSources;
1248
+ activated: number;
1249
+ paused: number;
1250
+ completed: number;
1251
+ canceled: number;
1252
+ late: number;
1253
+ dynamicCount: number;
1254
+ passportCount: number;
1255
+ conektaCount: number;
1256
+ rateTotal: number;
1257
+ rateActive: number;
1258
+ ratePaused: number;
1259
+ rateComplete: number;
1260
+ rateCanceled: number;
1261
+ rateLate: number;
1199
1262
  }
1200
- interface oConektaOrderResponseSpei {
1201
- livemode: boolean;
1202
- amount: number;
1203
- currency: string;
1204
- payment_status: string;
1205
- amount_refunded: number;
1206
- split_payment: any;
1207
- customer_info: CustomerInfoSpei;
1208
- shipping_contact: any;
1209
- channel: any;
1210
- fiscal_entity: any;
1211
- object: string;
1212
- id: string;
1213
- metadata: Record<string, any>;
1214
- is_refundable: boolean;
1215
- processing_mode: any;
1216
- created_at: number;
1217
- updated_at: number;
1218
- line_items: LineItemListSpei;
1219
- shipping_lines: any;
1220
- tax_lines: any;
1221
- discount_lines: any;
1222
- charges: ChargeListSpei;
1263
+ interface HasUnsavedChanges {
1264
+ hasUnsavedChanges(): boolean;
1223
1265
  }
1224
- interface CustomerInfoSpei {
1225
- email: string;
1226
- phone: string;
1227
- name: string;
1228
- corporate: any;
1229
- customer_id: any;
1230
- date_of_birth: any;
1231
- national_id: any;
1232
- object: string;
1266
+ interface oPaymentDates {
1267
+ week: number;
1268
+ date: number;
1233
1269
  }
1234
- interface LineItemListSpei {
1235
- object: string;
1236
- has_more: boolean;
1237
- total: number;
1238
- data: LineItemSpei[];
1270
+ interface iInformativeDialog {
1271
+ message: string;
1272
+ title: string;
1273
+ cancel: string;
1274
+ continue: string;
1239
1275
  }
1240
- interface LineItemSpei {
1241
- name: string;
1242
- description: any;
1243
- unit_price: number;
1244
- quantity: number;
1245
- sku: any;
1246
- tags: any;
1247
- brand: any;
1248
- type: any;
1249
- object: string;
1250
- id: string;
1251
- parent_id: string;
1252
- metadata: Record<string, any>;
1253
- antifraud_info: {
1254
- [key: string]: string;
1255
- };
1276
+ interface iSnackBarMessage {
1277
+ message: string;
1278
+ action: string;
1279
+ config: MatSnackBarConfig;
1256
1280
  }
1257
- interface ChargeListSpei {
1258
- object: string;
1259
- has_more: boolean;
1260
- total: number;
1261
- data: ChargeSpei[];
1281
+ interface iOptionsSelect {
1282
+ viewValue: String;
1283
+ value: String;
1262
1284
  }
1263
- interface ChargeSpei {
1264
- id: string;
1265
- livemode: boolean;
1266
- created_at: number;
1267
- currency: string;
1268
- failure_code: any;
1269
- failure_message: any;
1270
- monthly_installments: any;
1271
- device_fingerprint: any;
1272
- session_id: any;
1273
- channel: any;
1274
- payment_method: BankTransferPaymentSpei;
1275
- object: string;
1276
- description: string;
1277
- is_refundable: boolean;
1278
- reference_id: any;
1279
- status: string;
1280
- amount: number;
1281
- paid_at: any;
1282
- customer_id: string;
1283
- order_id: string;
1284
- refunds: any;
1285
+ interface iSelect {
1286
+ viewValue: eRoles;
1287
+ value: eRoles;
1285
1288
  }
1286
- interface BankTransferPaymentSpei {
1287
- clabe: string;
1288
- bank: string;
1289
- issuing_account_holder_name: any;
1290
- issuing_account_tax_id: any;
1291
- issuing_account_bank: any;
1292
- issuing_account_number: any;
1293
- receiving_account_holder_name: any;
1294
- receiving_account_tax_id: any;
1295
- receiving_account_number: string;
1296
- receiving_account_bank: string;
1297
- reference_number: any;
1298
- description: any;
1299
- tracking_code: any;
1300
- executed_at: any;
1301
- payment_attempts: any[];
1302
- object: string;
1303
- type: string;
1304
- expires_at: number;
1289
+ interface iConfigUUID {
1290
+ client_uuid?: string;
1291
+ contract_uuid: string;
1305
1292
  }
1306
- interface oConektaMixOrder {
1307
- id: string;
1308
- name: string;
1309
- currency: string;
1310
- amount: number;
1311
- created_at: number;
1312
- updated_at: number;
1313
- clabe?: string;
1314
- reference?: string;
1315
- debit?: string;
1316
- credit?: string;
1317
- payment_status: string;
1318
- barcode_url?: string;
1293
+ interface iPaymentDelay {
1294
+ today: number;
1295
+ nextPayment: number;
1296
+ daysDelay: number;
1297
+ late: boolean;
1319
1298
  }
1320
1299
 
1321
1300
  interface iContractAll {
@@ -1516,6 +1495,33 @@ interface IVerificationData {
1516
1495
  VerificationCode?: string;
1517
1496
  }
1518
1497
 
1498
+ interface oClientConekta {
1499
+ ravcredit: oClientBase;
1500
+ conekta: iConektaRecurrent;
1501
+ }
1502
+ interface iClientContract {
1503
+ client: oClientBase;
1504
+ contract: oContract;
1505
+ }
1506
+ declare const cClientContract: iClientContract;
1507
+ declare class FactoryClient {
1508
+ static CreateClientToConektaObj(data: oClientBase): any;
1509
+ static CreateClientFromFormObj(data: any, client?: oClientBase): oClientBase;
1510
+ static CreateClientConektaObj(data: oClientBase, finalDate: number): {
1511
+ name: string;
1512
+ email: string;
1513
+ phone: string;
1514
+ contract: string | undefined;
1515
+ client_id: string;
1516
+ payment_sources: iConektaSources[];
1517
+ };
1518
+ static MapperConektaClient(client: oClientBase, conekta: iConektaRecurrent): iClientContract;
1519
+ static MapperTypeContCli_Client(_client: tyClientContract): oClientBase;
1520
+ static MapperDynamicClient(dynamic: IDCClient, client: oClientBase, contract: oContract, clientDyn?: IDCClient, account?: IDCAccount): iClientContract;
1521
+ static MapperFinancialContract(contract: oContract, account: IDCAccount): oFinancial;
1522
+ static CheckEmail: (email: string) => boolean;
1523
+ }
1524
+
1519
1525
  declare class UtilsHttp {
1520
1526
  static CreateHeadersRavcreditApi(token: string): {
1521
1527
  'Content-Type': string;
@@ -1594,14 +1600,14 @@ declare const cDevice: oDevice;
1594
1600
  declare const cFinancial: oFinancial;
1595
1601
  declare const cContract: oContract;
1596
1602
  declare class FactoryContract {
1597
- static FormClient(client?: oClientBase): {
1603
+ static FormClient(client?: oClient): {
1598
1604
  name: UntypedFormControl;
1599
1605
  email: UntypedFormControl;
1600
1606
  phone: UntypedFormControl;
1601
1607
  curp: UntypedFormControl;
1602
1608
  userReferences: UntypedFormArray;
1603
1609
  };
1604
- static CreateUserReferenceFormObj(user: oUserReference): {
1610
+ static CreateUserReferenceFormObj(user: oUserReferenceBase): {
1605
1611
  name: UntypedFormControl;
1606
1612
  phone: UntypedFormControl;
1607
1613
  relationship: UntypedFormControl;
@@ -1824,6 +1830,22 @@ declare const cPaymentDelay: iPaymentDelay;
1824
1830
  declare const snackBarConfigAction: MatSnackBarConfig;
1825
1831
  declare const snackBarConfigNoAction: MatSnackBarConfig;
1826
1832
  declare const snackBarConfigNoActionLong: MatSnackBarConfig;
1833
+ declare const cAddress: oAddress;
1834
+ declare const cOxxoRecurrentSourcesData: iOxxorecurrentSourcesData;
1835
+ declare const cOxxoRecurrentSources: iOxxoRecurrentSources;
1836
+ declare const cConektaRecurrent: iConektaRecurrent;
1837
+ declare const cAuthConfig: iAuthConfig;
1838
+ declare const cDaySchedule: oDaySchedule;
1839
+ declare const cResponse: oResponse;
1840
+ declare const cClientBase: oClientBase;
1841
+ declare const cScoreAddress: oScoreAddress;
1842
+ declare const cScoreHit: oScoreHit;
1843
+ declare const cScoreGeneral: oScoreGeneral;
1844
+ declare const cScore: oScore;
1845
+ declare const cMediaIdentity: oMediaIdentity;
1846
+ declare const cClient: oClient;
1847
+ declare const cUserReference: oUserReference;
1848
+ declare const cClientConekta: oClientConekta;
1827
1849
  declare const cTyClientContract: {
1828
1850
  id: string;
1829
1851
  dynamicAccount?: number;
@@ -1836,6 +1858,15 @@ declare const cTyClientContract: {
1836
1858
  by: string;
1837
1859
  active: boolean;
1838
1860
  photo?: string;
1861
+ score: oScore;
1862
+ seller_id?: string;
1863
+ scoreNoHit?: ravcredit_lib.oScoreNoHit;
1864
+ study_degree?: string;
1865
+ mediaSelfie?: oMediaIdentity;
1866
+ mediaAddress?: oMediaIdentity;
1867
+ mediaWithDevice?: oMediaIdentity;
1868
+ mediaSelfieBack?: oMediaIdentity;
1869
+ identityVerification?: ravcredit_lib.eVerificationStep;
1839
1870
  name: string;
1840
1871
  username: string;
1841
1872
  password?: string;
@@ -1851,21 +1882,14 @@ declare const cTyClientContract: {
1851
1882
  dynamic_account?: string | number;
1852
1883
  dynamic_ref?: string;
1853
1884
  passport_id?: string;
1854
- payments?: oClientPayments[];
1885
+ payments?: oClientPaymentsBase[];
1855
1886
  reference?: string;
1856
1887
  references?: ravcredit_lib.oClientReferences[];
1857
1888
  token?: string;
1858
- userReferences: oUserReference[];
1889
+ userReferences: oUserReferenceBase[];
1859
1890
  contractUrl?: string;
1860
1891
  status: string;
1861
1892
  };
1862
- declare const cAddress: oAddress;
1863
- declare const cOxxoRecurrentSourcesData: iOxxorecurrentSourcesData;
1864
- declare const cOxxoRecurrentSources: iOxxoRecurrentSources;
1865
- declare const cConektaRecurrent: iConektaRecurrent;
1866
- declare const cAuthConfig: iAuthConfig;
1867
- declare const cDaySchedule: oDaySchedule;
1868
- declare const cResponse: oResponse;
1869
1893
 
1870
1894
  declare const ErrorMessages: {
1871
1895
  NotFound: string;
@@ -2004,14 +2028,6 @@ declare enum eAuthType {
2004
2028
  FUNCTION = "FUNCTION"
2005
2029
  }
2006
2030
 
2007
- declare enum eClientStatus {
2008
- ACTIVE = "active",
2009
- COMPLETED = "completed",
2010
- PAUSED = "paused",
2011
- CANCELED = "canceled",
2012
- LATE = "late"
2013
- }
2014
-
2015
2031
  declare enum EnumDynamicClientStatus {
2016
2032
  ACCEPTED = "Accepted",
2017
2033
  PENDING = "Pending",
@@ -2041,5 +2057,5 @@ interface oPayloadToken {
2041
2057
  role: eRoles;
2042
2058
  }
2043
2059
 
2044
- export { EnumDynamicClientStatus, ErrorMessages, FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROLES_KEY, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, TIME_FORMAT_TABLE, UtilGeneral, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, cResponse, cSchedule, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dateFormatSimple, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbConektaSpeiStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eAuthType2, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaOrderType, eConektaRes, eContractStatus, eContractSteps, eDestinationType, eGCActions, eIdentityTypes, eLoginStatus, eNotificationType, eOrderType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRequestVerb, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, timeFormatTable, week };
2045
- export type { BankTransferPaymentSpei, ChargeListSpei, ChargeSpei, CustomerInfoSpei, HasUnsavedChanges, IBaseVerification, IDCAccount, IDCAccountConfig, IDCAccountProps, IDCCharge, IDCClient, IDCClientObjFilter, IDCClientPiiFilter, IDCClientQuery, IDCCredit, IDCCreditConfig, IDCCreditProperties, IDCDataPii, IDCGeneratedReference, IDCMntryCycle, IDCMntryPymt, IDCMntryPymtAll, IDCMntryPymtAllPaidTotal, IDCMntryPymtCal, IDCMntryPymtDue, IDCMntryPymtDueTax, IDCMntryPymtOpen, IDCMntryPymtPaid, IDCMntryPymtPymt, IDCMsg, IDCNewReference, IDCOxxoRef, IDCOxxoRefItem, IDCOxxoRefPymtMth, IDCPayment, IDCRefCustInfo, IDCRefItems, IDCRefPymtMethod, IDCReference, IDCTransaction, IDCTxn, IDCTxnHeader, IDCTxnRow, IDCTxnRowExtras, IDynamiCore, ILambdaResponse, ISendCodeAttempt, ISignIn, IVerificationCheckSms, IVerificationData, IVerificationSms, LineItemListSpei, LineItemSpei, Tokens, iAuthConfig, iBusinessInfo, iClientContract, iConektaRecurrent, iConektaResData, iConektaResObjChargePaid, iConektaResObjChargePaidMethod, iConektaResPrevAttr, iConektaSources, iConfigUUID, iContract, iContractAll, iGlobalPassport, iInformativeDialog, iNewPayment, iOptionsSelect, iOxxoRecurrentSources, iOxxorecurrentSourcesData, iPassportAdditional, iPassportReference, iPassportReferenceCenters, iPassportReferenceData, iPassportReferenceRes, iPassportResponse, iPassportResponseData, iPaymentDelay, iSelect, iServiceUser, iSnackBarMessage, iUser, oAddress, oAsset, oAssetBrand, oAssetCategory, oAssetOffer, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oCatalog, oClient, oClientConekta, oClientPayments$1 as oClientPayments, oClientReferences, oCompany, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaMixOrder, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrderResponseSpei, oConektaOrderSpei, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oContractV2, oCustomer, oCustomerInfo, oDaySchedule, oDevice, oFinancial, oFinancialProgress, oMediaIdentity, oMessaging, oMessagingData, oNotification, oNotificationResponses, oPayloadToken, oPaymentDates, oPaymentGlobal, oPaymentOption, oResponse, oResponseFuncEmail, oSchedule, oScore, oScoreAddress, oScoreGeneral, oScoreHit, oScoreNoHit, oScoreReference, oTmpBusinessConfig, oUser, oUserReference$1 as oUserReference, oWeekSchedule, partialIDCData, tyClientContract };
2060
+ export { EnumDynamicClientStatus, ErrorMessages, FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROLES_KEY, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, TIME_FORMAT_TABLE, UtilGeneral, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientBase, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cMediaIdentity, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, cResponse, cSchedule, cScore, cScoreAddress, cScoreGeneral, cScoreHit, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dateFormatSimple, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbConektaSpeiStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eAuthType2, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaOrderType, eConektaRes, eContractStatus, eContractSteps, eDestinationType, eGCActions, eIdentityTypes, eLoginStatus, eNotificationType, eOrderType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRequestVerb, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, timeFormatTable, week };
2061
+ export type { BankTransferPaymentSpei, ChargeListSpei, ChargeSpei, CustomerInfoSpei, HasUnsavedChanges, IBaseVerification, IDCAccount, IDCAccountConfig, IDCAccountProps, IDCCharge, IDCClient, IDCClientObjFilter, IDCClientPiiFilter, IDCClientQuery, IDCCredit, IDCCreditConfig, IDCCreditProperties, IDCDataPii, IDCGeneratedReference, IDCMntryCycle, IDCMntryPymt, IDCMntryPymtAll, IDCMntryPymtAllPaidTotal, IDCMntryPymtCal, IDCMntryPymtDue, IDCMntryPymtDueTax, IDCMntryPymtOpen, IDCMntryPymtPaid, IDCMntryPymtPymt, IDCMsg, IDCNewReference, IDCOxxoRef, IDCOxxoRefItem, IDCOxxoRefPymtMth, IDCPayment, IDCRefCustInfo, IDCRefItems, IDCRefPymtMethod, IDCReference, IDCTransaction, IDCTxn, IDCTxnHeader, IDCTxnRow, IDCTxnRowExtras, IDynamiCore, ILambdaResponse, ISendCodeAttempt, ISignIn, IVerificationCheckSms, IVerificationData, IVerificationSms, LineItemListSpei, LineItemSpei, Tokens, iAuthConfig, iBusinessInfo, iClientContract, iConektaRecurrent, iConektaResData, iConektaResObjChargePaid, iConektaResObjChargePaidMethod, iConektaResPrevAttr, iConektaSources, iConfigUUID, iContract, iContractAll, iGlobalPassport, iInformativeDialog, iNewPayment, iOptionsSelect, iOxxoRecurrentSources, iOxxorecurrentSourcesData, iPassportAdditional, iPassportReference, iPassportReferenceCenters, iPassportReferenceData, iPassportReferenceRes, iPassportResponse, iPassportResponseData, iPaymentDelay, iSelect, iServiceUser, iSnackBarMessage, iUser, oAddress, oAsset, oAssetBrand, oAssetCategory, oAssetOffer, oAuth, oAuthRes, oBusinessConfig, oBusinessDeadlines, oBusinessInfo, oCatalog, oClient, oClientConekta, oClientPayments, oClientReferences, oCompany, oConektaChannel, oConektaChargeData, oConektaCharges, oConektaCheckout, oConektaCustomerInfo, oConektaLineItem, oConektaLineItems, oConektaMixOrder, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrderResponseSpei, oConektaOrderSpei, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oContractV2, oCustomer, oCustomerInfo, oDaySchedule, oDevice, oFinancial, oFinancialProgress, oMediaIdentity, oMessaging, oMessagingData, oNotification, oNotificationResponses, oPayloadToken, oPaymentDates, oPaymentGlobal, oPaymentOption, oResponse, oResponseFuncEmail, oSchedule, oScore, oScoreAddress, oScoreGeneral, oScoreHit, oScoreNoHit, oScoreReference, oTmpBusinessConfig, oUser, oUserReference, oWeekSchedule, partialIDCData, tyClientContract };