ravcredit-lib 0.0.16 → 0.0.18
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/ng-package.json +7 -0
- package/package.json +14 -25
- package/src/lib/ravcredit-lib.component.spec.ts +23 -0
- package/src/lib/ravcredit-lib.component.ts +16 -0
- package/src/lib/ravcredit-lib.service.spec.ts +16 -0
- package/src/lib/ravcredit-lib.service.ts +9 -0
- package/src/lib/v1/const/constants.ts +35 -0
- package/src/lib/v1/idb/idb.service.spec.ts +16 -0
- package/src/lib/v1/idb/indexed-db.service.ts +396 -0
- package/src/lib/v1/objects/oAddress.ts +19 -0
- package/src/lib/v1/objects/oBusiness.ts +112 -0
- package/src/lib/v1/objects/oClient.ts +46 -0
- package/src/lib/v1/objects/oConekta.ts +408 -0
- package/src/lib/v1/objects/oContract.ts +31 -0
- package/src/lib/v1/objects/oContractAll.ts +38 -0
- package/src/lib/v1/objects/oCustomer.ts +36 -0
- package/src/lib/v1/objects/oDevice.ts +5 -0
- package/src/lib/v1/objects/oFinancial.ts +32 -0
- package/src/lib/v1/objects/oGlobal.ts +192 -0
- package/src/lib/v1/objects/oLogIn.ts +43 -0
- package/src/lib/v1/objects/oNewPayment.ts +18 -0
- package/src/lib/v1/objects/oNotification.ts +34 -0
- package/src/lib/v1/objects/oPassport.ts +65 -0
- package/src/lib/v1/objects/oUser.ts +35 -0
- package/src/lib/v1/objects/oVerification.ts +100 -0
- package/src/lib/v1/util/UtilBusiness.ts +186 -0
- package/src/lib/v1/util/UtilClient.ts +295 -0
- package/src/lib/v1/util/UtilConekta.ts +97 -0
- package/src/lib/v1/util/UtilContract.ts +431 -0
- package/src/lib/v1/util/UtilDashboard.ts +19 -0
- package/src/lib/v1/util/UtilDynamiCore.ts +752 -0
- package/src/lib/v1/util/UtilNotification.ts +46 -0
- package/src/lib/v1/util/UtilPassport.ts +32 -0
- package/src/lib/v1/util/UtilPayment.ts +22 -0
- package/src/lib/v1/util/UtilTime.ts +179 -0
- package/src/lib/v1/util/UtilsHttp.ts +25 -0
- package/src/lib/v2/const/constants.ts +37 -0
- package/src/lib/v2/messaging/messaging.ts +10 -0
- package/src/lib/v2/objects/oAsset.ts +49 -0
- package/src/lib/v2/objects/oAws.ts +8 -0
- package/src/lib/v2/objects/oCatalog.ts +6 -0
- package/src/lib/v2/objects/oClient.ts +84 -0
- package/src/lib/v2/objects/oCompany.ts +10 -0
- package/src/lib/v2/objects/oContract.ts +10 -0
- package/src/public-api.ts +43 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/fesm2022/ravcredit-lib.mjs +0 -2106
- package/fesm2022/ravcredit-lib.mjs.map +0 -1
- package/index.d.ts +0 -1748
package/index.d.ts
DELETED
|
@@ -1,1748 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { WritableSignal, Injector } from '@angular/core';
|
|
3
|
-
import { UntypedFormGroup, UntypedFormControl, UntypedFormArray } from '@angular/forms';
|
|
4
|
-
import { MatSnackBarConfig } from '@angular/material/snack-bar';
|
|
5
|
-
import * as idb from 'idb';
|
|
6
|
-
import { IDBPDatabase } from 'idb';
|
|
7
|
-
|
|
8
|
-
declare class RavcreditLibService {
|
|
9
|
-
constructor();
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RavcreditLibService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RavcreditLibService>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare class RavcreditLibComponent {
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RavcreditLibComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RavcreditLibComponent, "lib-ravcredit-lib", never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface oAddress {
|
|
20
|
-
street: string;
|
|
21
|
-
city: string;
|
|
22
|
-
neighbor: string;
|
|
23
|
-
zip: string;
|
|
24
|
-
ext: string;
|
|
25
|
-
int: string;
|
|
26
|
-
state: string;
|
|
27
|
-
}
|
|
28
|
-
declare const cAddress: oAddress;
|
|
29
|
-
|
|
30
|
-
interface iBusinessInfo {
|
|
31
|
-
address: WritableSignal<oAddress>;
|
|
32
|
-
schedule: WritableSignal<oSchedule>;
|
|
33
|
-
businessData: WritableSignal<oBusinessInfo>;
|
|
34
|
-
updateBusinessData(data: oBusinessInfo): boolean;
|
|
35
|
-
getBusinessDataAPI(): oBusinessInfo;
|
|
36
|
-
getBusinessDataLocal(): oBusinessInfo;
|
|
37
|
-
initFormBusiness(): UntypedFormGroup;
|
|
38
|
-
}
|
|
39
|
-
interface oSchedule {
|
|
40
|
-
day: string;
|
|
41
|
-
open: number;
|
|
42
|
-
close: number;
|
|
43
|
-
}
|
|
44
|
-
type weekSchedule = {
|
|
45
|
-
monday: {
|
|
46
|
-
open?: string;
|
|
47
|
-
close?: string;
|
|
48
|
-
};
|
|
49
|
-
tuesday: {
|
|
50
|
-
open?: string;
|
|
51
|
-
close?: string;
|
|
52
|
-
};
|
|
53
|
-
wednesday: {
|
|
54
|
-
open?: string;
|
|
55
|
-
close?: string;
|
|
56
|
-
};
|
|
57
|
-
thursday: {
|
|
58
|
-
open?: string;
|
|
59
|
-
close?: string;
|
|
60
|
-
};
|
|
61
|
-
friday: {
|
|
62
|
-
open?: string;
|
|
63
|
-
close?: string;
|
|
64
|
-
};
|
|
65
|
-
saturday: {
|
|
66
|
-
open?: string;
|
|
67
|
-
close?: string;
|
|
68
|
-
};
|
|
69
|
-
sunday: {
|
|
70
|
-
open?: string;
|
|
71
|
-
close?: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
interface oBusinessInfo {
|
|
75
|
-
version: string;
|
|
76
|
-
name: string;
|
|
77
|
-
desc?: string;
|
|
78
|
-
address: oAddress;
|
|
79
|
-
phones: string[];
|
|
80
|
-
email: string;
|
|
81
|
-
schedule?: weekSchedule;
|
|
82
|
-
}
|
|
83
|
-
interface oBusinessDeadlines {
|
|
84
|
-
weeks: number;
|
|
85
|
-
interest: number;
|
|
86
|
-
}
|
|
87
|
-
interface oBusinessConfig {
|
|
88
|
-
adminVersion: string;
|
|
89
|
-
mobileVersion: string;
|
|
90
|
-
mobileVersionPrev: string;
|
|
91
|
-
apiVersion: string;
|
|
92
|
-
deadlines: oBusinessDeadlines[];
|
|
93
|
-
downloadsClient: boolean;
|
|
94
|
-
passportPaymentReference: boolean;
|
|
95
|
-
conektaPaymentReference: boolean;
|
|
96
|
-
conektaPaymentLink: boolean;
|
|
97
|
-
dynamicPaymentReference: boolean;
|
|
98
|
-
apkUrl: string;
|
|
99
|
-
version: string;
|
|
100
|
-
}
|
|
101
|
-
interface oTmpBusinessConfig {
|
|
102
|
-
name?: string;
|
|
103
|
-
email?: string;
|
|
104
|
-
desc?: string;
|
|
105
|
-
street?: string;
|
|
106
|
-
neighbor?: string;
|
|
107
|
-
cp?: string;
|
|
108
|
-
ext?: string;
|
|
109
|
-
int?: string;
|
|
110
|
-
city?: string;
|
|
111
|
-
state?: string;
|
|
112
|
-
phones?: string[];
|
|
113
|
-
mondayOpen?: string;
|
|
114
|
-
mondayClose?: string;
|
|
115
|
-
tuesdayOpen?: string;
|
|
116
|
-
tuesdayClose?: string;
|
|
117
|
-
wednesdayOpen?: string;
|
|
118
|
-
wednesdayClose?: string;
|
|
119
|
-
thursdayOpen?: string;
|
|
120
|
-
thursdayClose?: string;
|
|
121
|
-
fridayOpen?: string;
|
|
122
|
-
fridayClose?: string;
|
|
123
|
-
saturdayOpen?: string;
|
|
124
|
-
saturdayClose?: string;
|
|
125
|
-
sundayOpen?: string;
|
|
126
|
-
sundayClose?: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
interface oClientPayments {
|
|
130
|
-
date: number;
|
|
131
|
-
dayPayment: number;
|
|
132
|
-
amount: number;
|
|
133
|
-
id: string;
|
|
134
|
-
}
|
|
135
|
-
interface oUserReference {
|
|
136
|
-
name: string;
|
|
137
|
-
phone: string;
|
|
138
|
-
relationship: string;
|
|
139
|
-
}
|
|
140
|
-
interface oClientReferences {
|
|
141
|
-
date?: number;
|
|
142
|
-
amount?: number;
|
|
143
|
-
id: string;
|
|
144
|
-
url?: string;
|
|
145
|
-
}
|
|
146
|
-
interface oClient {
|
|
147
|
-
id: string;
|
|
148
|
-
name: string;
|
|
149
|
-
username: string;
|
|
150
|
-
password?: string;
|
|
151
|
-
email: string;
|
|
152
|
-
phone: string;
|
|
153
|
-
curp: string;
|
|
154
|
-
contract?: string;
|
|
155
|
-
createdAt?: number;
|
|
156
|
-
lastLogin?: number;
|
|
157
|
-
contract_temporary?: string;
|
|
158
|
-
exists?: boolean;
|
|
159
|
-
conekta_id?: string;
|
|
160
|
-
dynamic_id?: number | string;
|
|
161
|
-
dynamic_account?: string | number;
|
|
162
|
-
dynamic_ref?: string;
|
|
163
|
-
passport_id?: string;
|
|
164
|
-
payments?: oClientPayments[];
|
|
165
|
-
reference?: string;
|
|
166
|
-
references?: oClientReferences[];
|
|
167
|
-
token?: string;
|
|
168
|
-
userReferences: oUserReference[];
|
|
169
|
-
contractUrl?: string;
|
|
170
|
-
status: string;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
declare enum eConektaRes {
|
|
174
|
-
CUSTOMER_CREATED = "customer.created",
|
|
175
|
-
ORDER_PENDING_PAYMENT = "order.pending_payment",
|
|
176
|
-
ORDER_CREATED = "order.created",
|
|
177
|
-
CHARGE_CREATED = "charge.created",
|
|
178
|
-
ORDER_PAID = "order.paid",
|
|
179
|
-
CHARGE_PAID = "charge.paid"
|
|
180
|
-
}
|
|
181
|
-
declare enum eConektaOrderStatus {
|
|
182
|
-
expired = "expired",
|
|
183
|
-
paid = "paid",
|
|
184
|
-
pending_payment = "pending_payment"
|
|
185
|
-
}
|
|
186
|
-
interface oConektaResObjChargePaid {
|
|
187
|
-
id: string;
|
|
188
|
-
livemode: boolean;
|
|
189
|
-
created_at: number;
|
|
190
|
-
currency: string;
|
|
191
|
-
payment_method: any;
|
|
192
|
-
object: string;
|
|
193
|
-
description: string;
|
|
194
|
-
status: string;
|
|
195
|
-
amount: number;
|
|
196
|
-
paid_at: number;
|
|
197
|
-
fee: number;
|
|
198
|
-
customer_id: string;
|
|
199
|
-
order_id: string;
|
|
200
|
-
}
|
|
201
|
-
interface oConektaChannel {
|
|
202
|
-
segment: string;
|
|
203
|
-
checkout_request_id: string;
|
|
204
|
-
checkout_request_type: string;
|
|
205
|
-
id: string;
|
|
206
|
-
}
|
|
207
|
-
interface oConektaCheckout {
|
|
208
|
-
id: string;
|
|
209
|
-
name: string;
|
|
210
|
-
livemode: boolean;
|
|
211
|
-
emails_sent: number;
|
|
212
|
-
success_url: string;
|
|
213
|
-
failure_url: string;
|
|
214
|
-
payments_limit_count: number | null;
|
|
215
|
-
paid_payments_count: number;
|
|
216
|
-
status: string;
|
|
217
|
-
type: string;
|
|
218
|
-
recurrent: boolean;
|
|
219
|
-
starts_at: number;
|
|
220
|
-
expires_at: number;
|
|
221
|
-
allowed_payment_methods: string[];
|
|
222
|
-
needs_shipping_contact: boolean;
|
|
223
|
-
redirection_time: number | null;
|
|
224
|
-
metadata: object;
|
|
225
|
-
can_not_expire: boolean;
|
|
226
|
-
object: string;
|
|
227
|
-
is_redirect_on_failure: boolean;
|
|
228
|
-
slug: string;
|
|
229
|
-
url: string;
|
|
230
|
-
}
|
|
231
|
-
interface oConektaLineItem {
|
|
232
|
-
name: string;
|
|
233
|
-
description: string | null;
|
|
234
|
-
unit_price: number;
|
|
235
|
-
quantity: number;
|
|
236
|
-
sku: string | null;
|
|
237
|
-
tags: string[] | null;
|
|
238
|
-
brand: string | null;
|
|
239
|
-
type: string | null;
|
|
240
|
-
object: string;
|
|
241
|
-
id: string;
|
|
242
|
-
parent_id: string;
|
|
243
|
-
metadata: object;
|
|
244
|
-
antifraud_info: object;
|
|
245
|
-
}
|
|
246
|
-
interface oConektaLineItems {
|
|
247
|
-
object: string;
|
|
248
|
-
has_more: boolean;
|
|
249
|
-
total: number;
|
|
250
|
-
data: oConektaLineItem[];
|
|
251
|
-
}
|
|
252
|
-
interface oConektaCharges {
|
|
253
|
-
object: string;
|
|
254
|
-
has_more: boolean;
|
|
255
|
-
total: number;
|
|
256
|
-
data: oConektaChargeData[];
|
|
257
|
-
}
|
|
258
|
-
interface oConektaPaymentMethod {
|
|
259
|
-
service_name: string;
|
|
260
|
-
barcode_url: string;
|
|
261
|
-
store: string;
|
|
262
|
-
auth_code: number;
|
|
263
|
-
object: string;
|
|
264
|
-
type: string;
|
|
265
|
-
expires_at: number;
|
|
266
|
-
store_name: string;
|
|
267
|
-
reference: string;
|
|
268
|
-
cashier_id: string;
|
|
269
|
-
}
|
|
270
|
-
interface oConektaChargeData {
|
|
271
|
-
id: string;
|
|
272
|
-
livemode: boolean;
|
|
273
|
-
created_at: number;
|
|
274
|
-
currency: string;
|
|
275
|
-
failure_code: string | null;
|
|
276
|
-
failure_message: string | null;
|
|
277
|
-
channel: oConektaChannel;
|
|
278
|
-
payment_method: oConektaPaymentMethod;
|
|
279
|
-
object: string;
|
|
280
|
-
device_fingerprint: string;
|
|
281
|
-
description: string;
|
|
282
|
-
is_refundable: boolean;
|
|
283
|
-
reference_id: string | null;
|
|
284
|
-
status: string;
|
|
285
|
-
amount: number;
|
|
286
|
-
paid_at: number;
|
|
287
|
-
customer_id: string;
|
|
288
|
-
order_id: string;
|
|
289
|
-
is_button_premia: boolean;
|
|
290
|
-
refunds: string | null;
|
|
291
|
-
}
|
|
292
|
-
interface oConektaResObjOrderPaid {
|
|
293
|
-
livemode: boolean;
|
|
294
|
-
amount: number;
|
|
295
|
-
currency: string;
|
|
296
|
-
payment_status: string;
|
|
297
|
-
amount_refunded: number;
|
|
298
|
-
customer_info: oConektaCustomerInfo;
|
|
299
|
-
object: string;
|
|
300
|
-
id: string;
|
|
301
|
-
metadata: any;
|
|
302
|
-
is_refundable: boolean;
|
|
303
|
-
created_at: number;
|
|
304
|
-
updated_at: number;
|
|
305
|
-
line_items: any;
|
|
306
|
-
charges: any;
|
|
307
|
-
}
|
|
308
|
-
interface oConektaCustomerInfo {
|
|
309
|
-
email: string;
|
|
310
|
-
phone: string | null;
|
|
311
|
-
name: string;
|
|
312
|
-
corporate: boolean;
|
|
313
|
-
customer_id: string;
|
|
314
|
-
object: string;
|
|
315
|
-
customer_custom_reference: string | null;
|
|
316
|
-
}
|
|
317
|
-
interface oConektaCustomerInfo {
|
|
318
|
-
email: string;
|
|
319
|
-
phone: string | null;
|
|
320
|
-
name: string;
|
|
321
|
-
corporate: boolean;
|
|
322
|
-
customer_id: string;
|
|
323
|
-
object: string;
|
|
324
|
-
customer_custom_reference: string | null;
|
|
325
|
-
}
|
|
326
|
-
interface oConektaOrder {
|
|
327
|
-
livemode: boolean;
|
|
328
|
-
amount: number;
|
|
329
|
-
currency: string;
|
|
330
|
-
payment_status: string;
|
|
331
|
-
amount_refunded: number;
|
|
332
|
-
customer_info: oConektaCustomerInfo;
|
|
333
|
-
shipping_contact: string | null;
|
|
334
|
-
channel: oConektaChannel;
|
|
335
|
-
fiscal_entity: string | null;
|
|
336
|
-
object: string;
|
|
337
|
-
id: string;
|
|
338
|
-
metadata: object;
|
|
339
|
-
is_refundable: boolean;
|
|
340
|
-
created_at: number;
|
|
341
|
-
updated_at: number;
|
|
342
|
-
checkout: oConektaCheckout;
|
|
343
|
-
is_button_premia: boolean;
|
|
344
|
-
line_items: oConektaLineItems;
|
|
345
|
-
shipping_lines: string | null;
|
|
346
|
-
tax_lines: string | null;
|
|
347
|
-
discount_lines: string | null;
|
|
348
|
-
charges: oConektaCharges;
|
|
349
|
-
}
|
|
350
|
-
interface oConektaOrdersResponse {
|
|
351
|
-
next_page_url: string | null;
|
|
352
|
-
previous_page_url: string | null;
|
|
353
|
-
has_more: boolean;
|
|
354
|
-
object: string;
|
|
355
|
-
data: oConektaOrder[];
|
|
356
|
-
}
|
|
357
|
-
/******************************************************* Order Create */
|
|
358
|
-
interface oConektaNewOrderCustomerInfo {
|
|
359
|
-
customer_id: string;
|
|
360
|
-
}
|
|
361
|
-
interface oConektaNewOrderPymMethod {
|
|
362
|
-
expires_at: number;
|
|
363
|
-
type: string;
|
|
364
|
-
}
|
|
365
|
-
interface oConektaNewOrderCharge {
|
|
366
|
-
payment_method: oConektaNewOrderPymMethod;
|
|
367
|
-
amount: number;
|
|
368
|
-
}
|
|
369
|
-
interface oConektaNewOrderAntifraudInfo {
|
|
370
|
-
newKey: string;
|
|
371
|
-
}
|
|
372
|
-
interface oConektaNewOrderLineItem {
|
|
373
|
-
antifraud_info: oConektaNewOrderAntifraudInfo;
|
|
374
|
-
name: string;
|
|
375
|
-
quantity: number;
|
|
376
|
-
unit_price: number;
|
|
377
|
-
}
|
|
378
|
-
interface oConektaOrderCreate {
|
|
379
|
-
customer_info: oConektaNewOrderCustomerInfo;
|
|
380
|
-
charges: oConektaNewOrderCharge[];
|
|
381
|
-
currency: string;
|
|
382
|
-
line_items: oConektaNewOrderLineItem[];
|
|
383
|
-
}
|
|
384
|
-
interface oConektaNewOrder {
|
|
385
|
-
data: oConektaOrderCreate;
|
|
386
|
-
date?: number;
|
|
387
|
-
id: string;
|
|
388
|
-
}
|
|
389
|
-
interface oConektaResPrevAttr {
|
|
390
|
-
status: string;
|
|
391
|
-
}
|
|
392
|
-
interface oConektaResData {
|
|
393
|
-
object: oConektaResObjChargePaid | oConektaResObjOrderPaid;
|
|
394
|
-
previous_attributes: oConektaResPrevAttr;
|
|
395
|
-
}
|
|
396
|
-
interface iConektaResObjChargePaidMethod {
|
|
397
|
-
barcode_url: string;
|
|
398
|
-
expires_at: number;
|
|
399
|
-
object: string;
|
|
400
|
-
reference: string;
|
|
401
|
-
service_name: string;
|
|
402
|
-
store: string;
|
|
403
|
-
type: string;
|
|
404
|
-
}
|
|
405
|
-
interface iConektaResObjChargePaid {
|
|
406
|
-
id: string;
|
|
407
|
-
livemode: boolean;
|
|
408
|
-
created_at: number;
|
|
409
|
-
currency: string;
|
|
410
|
-
payment_method: iConektaResObjChargePaidMethod;
|
|
411
|
-
object: string;
|
|
412
|
-
description: string;
|
|
413
|
-
status: string;
|
|
414
|
-
amount: number;
|
|
415
|
-
paid_at: number;
|
|
416
|
-
fee: number;
|
|
417
|
-
customer_id: string;
|
|
418
|
-
order_id: string;
|
|
419
|
-
}
|
|
420
|
-
interface iConektaResPrevAttr {
|
|
421
|
-
status: string;
|
|
422
|
-
}
|
|
423
|
-
interface iConektaResData {
|
|
424
|
-
object: iConektaResObjChargePaid;
|
|
425
|
-
previous_attributes: iConektaResPrevAttr;
|
|
426
|
-
}
|
|
427
|
-
interface oConektaRes {
|
|
428
|
-
client_id?: string;
|
|
429
|
-
data: iConektaResData;
|
|
430
|
-
livemode: false;
|
|
431
|
-
webhook_status: string;
|
|
432
|
-
webhook_logs: any[];
|
|
433
|
-
id: string;
|
|
434
|
-
object: string;
|
|
435
|
-
type: eConektaRes;
|
|
436
|
-
created_at: number;
|
|
437
|
-
}
|
|
438
|
-
/******************************************************* New reference res */
|
|
439
|
-
interface iConektaSources {
|
|
440
|
-
type: string;
|
|
441
|
-
expires_at?: number;
|
|
442
|
-
}
|
|
443
|
-
interface iOxxorecurrentSourcesData {
|
|
444
|
-
id: string;
|
|
445
|
-
object: string;
|
|
446
|
-
type: string;
|
|
447
|
-
provider: string;
|
|
448
|
-
reference: string;
|
|
449
|
-
barcode: string;
|
|
450
|
-
barcode_url: string;
|
|
451
|
-
expires_at: number;
|
|
452
|
-
created_at: number;
|
|
453
|
-
parent_id: string;
|
|
454
|
-
}
|
|
455
|
-
interface iOxxoRecurrentSources {
|
|
456
|
-
object: string;
|
|
457
|
-
has_more: boolean;
|
|
458
|
-
total: number;
|
|
459
|
-
data: iOxxorecurrentSourcesData[];
|
|
460
|
-
}
|
|
461
|
-
interface iConektaRecurrent {
|
|
462
|
-
corporate: boolean;
|
|
463
|
-
created_at: number;
|
|
464
|
-
customer_reference?: string;
|
|
465
|
-
email: string;
|
|
466
|
-
id: string;
|
|
467
|
-
livemode: boolean;
|
|
468
|
-
name: string;
|
|
469
|
-
phone: string;
|
|
470
|
-
object: string;
|
|
471
|
-
custom_id: string;
|
|
472
|
-
payment_sources: iOxxoRecurrentSources;
|
|
473
|
-
}
|
|
474
|
-
/******************************************************* New reference constant */
|
|
475
|
-
declare const cOxxorecurrentSourcesData: iOxxorecurrentSourcesData;
|
|
476
|
-
declare const cOxxoRecurrentSources: iOxxoRecurrentSources;
|
|
477
|
-
declare const cConektaRecurrent: iConektaRecurrent;
|
|
478
|
-
|
|
479
|
-
interface oDevice {
|
|
480
|
-
device: string;
|
|
481
|
-
id?: string;
|
|
482
|
-
IMEI: string;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
interface oFinancialProgress {
|
|
486
|
-
id: string;
|
|
487
|
-
amount: number;
|
|
488
|
-
date: number;
|
|
489
|
-
}
|
|
490
|
-
interface oFinancial {
|
|
491
|
-
total: number;
|
|
492
|
-
initial: number;
|
|
493
|
-
deadlines: oBusinessDeadlines;
|
|
494
|
-
initDate?: number;
|
|
495
|
-
finalDate?: number;
|
|
496
|
-
weeklyPayment: number;
|
|
497
|
-
dayCut?: number;
|
|
498
|
-
finalPayment?: number;
|
|
499
|
-
progress?: oFinancialProgress[];
|
|
500
|
-
pendingOf: string[];
|
|
501
|
-
interest: number;
|
|
502
|
-
provider: string;
|
|
503
|
-
financed: number;
|
|
504
|
-
nextPayment: number;
|
|
505
|
-
amount_commission_opening?: number;
|
|
506
|
-
principal_disbursed?: number;
|
|
507
|
-
expected_disbursed?: number;
|
|
508
|
-
credit_type?: string;
|
|
509
|
-
interest_rate?: number;
|
|
510
|
-
commission_opening?: number;
|
|
511
|
-
interest_arrears?: number;
|
|
512
|
-
clabe?: string;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
interface iContract {
|
|
516
|
-
createContract(data: any, monthlyPay: number, finalPayment: number): Promise<void>;
|
|
517
|
-
editContract(): void;
|
|
518
|
-
verifyClient(clientCurp: string): Promise<void>;
|
|
519
|
-
dataClient(client: string): void;
|
|
520
|
-
referenceAdded(reference: number): Promise<void>;
|
|
521
|
-
}
|
|
522
|
-
interface oContract {
|
|
523
|
-
id: string;
|
|
524
|
-
dynamicAccount?: number;
|
|
525
|
-
client: string;
|
|
526
|
-
address: oAddress;
|
|
527
|
-
device: oDevice;
|
|
528
|
-
financial: oFinancial;
|
|
529
|
-
createdAt?: number;
|
|
530
|
-
lastPayment?: number;
|
|
531
|
-
by: string;
|
|
532
|
-
active: boolean;
|
|
533
|
-
photo?: string;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
interface iUser {
|
|
537
|
-
pUser: oUser;
|
|
538
|
-
getAllUsers(): void;
|
|
539
|
-
editUser(user: oUser): void;
|
|
540
|
-
deleteUser(user: oUser): void;
|
|
541
|
-
}
|
|
542
|
-
interface oUser {
|
|
543
|
-
id: string;
|
|
544
|
-
username: string;
|
|
545
|
-
name: string;
|
|
546
|
-
password: string;
|
|
547
|
-
role: eRoles;
|
|
548
|
-
lastLogin?: number;
|
|
549
|
-
createdAt?: number;
|
|
550
|
-
access_token: string;
|
|
551
|
-
}
|
|
552
|
-
interface iServiceUser {
|
|
553
|
-
users: WritableSignal<oUser[]>;
|
|
554
|
-
getAllUsersServer(): void;
|
|
555
|
-
createUser(o: oUser): void;
|
|
556
|
-
updateUser(o: oUser): void;
|
|
557
|
-
deleteUser(id: string): void;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
declare const cTopic = "RavCreditClients";
|
|
561
|
-
declare enum eNotificationType {
|
|
562
|
-
GLOBAL = "global",
|
|
563
|
-
USER = "user",
|
|
564
|
-
PAYMENT = "payment"
|
|
565
|
-
}
|
|
566
|
-
interface oNotificationResponses {
|
|
567
|
-
successCount: number;
|
|
568
|
-
failureCount: number;
|
|
569
|
-
}
|
|
570
|
-
interface oNotification {
|
|
571
|
-
ids?: string[];
|
|
572
|
-
type?: string;
|
|
573
|
-
tokens?: string[];
|
|
574
|
-
topic?: string;
|
|
575
|
-
notification: {
|
|
576
|
-
title: string;
|
|
577
|
-
body: string;
|
|
578
|
-
};
|
|
579
|
-
data: any;
|
|
580
|
-
notification_id?: number;
|
|
581
|
-
recipient?: string;
|
|
582
|
-
responses?: oNotificationResponses;
|
|
583
|
-
}
|
|
584
|
-
declare const cNotification: oNotification;
|
|
585
|
-
|
|
586
|
-
declare enum eRoles {
|
|
587
|
-
Administrator = "Administrator",
|
|
588
|
-
Seller = "Seller",
|
|
589
|
-
Consultant = "Consultant"
|
|
590
|
-
}
|
|
591
|
-
declare enum eProcessStatus {
|
|
592
|
-
IDLE = "IDLE",
|
|
593
|
-
ERROR = "ERROR",
|
|
594
|
-
CANCELED = "CANCELED",
|
|
595
|
-
COMPLETE = "COMPLETE",
|
|
596
|
-
PROCESSING = "PROCESSING",
|
|
597
|
-
WAITING = "WAITING"
|
|
598
|
-
}
|
|
599
|
-
declare enum eLoginStatus {
|
|
600
|
-
IDLE = "IDLE",
|
|
601
|
-
ERROR = "ERROR",
|
|
602
|
-
AUTHORIZED = "AUTHORIZED",
|
|
603
|
-
CHECKING = "CHECKING",
|
|
604
|
-
NOAUTHORIZED = "NOAUTHORIZED",
|
|
605
|
-
NOTFOUND = "NOTFOUND",
|
|
606
|
-
ERRORPASSWORD = "ERRORPASSWORD"
|
|
607
|
-
}
|
|
608
|
-
declare enum eClientStatus {
|
|
609
|
-
ACTIVE = "active",
|
|
610
|
-
COMPLETED = "completed",
|
|
611
|
-
PAUSED = "paused",
|
|
612
|
-
CANCELED = "canceled",
|
|
613
|
-
LATE = "late"
|
|
614
|
-
}
|
|
615
|
-
declare const cSingleOptionClientStatus: iOptionsSelect;
|
|
616
|
-
declare const cOptionsClientStatus: iOptionsSelect[];
|
|
617
|
-
interface iOptionsSelect {
|
|
618
|
-
viewValue: String;
|
|
619
|
-
value: String;
|
|
620
|
-
}
|
|
621
|
-
interface iSelect {
|
|
622
|
-
viewValue: eRoles;
|
|
623
|
-
value: eRoles;
|
|
624
|
-
}
|
|
625
|
-
declare const eRolesSelect: iSelect[];
|
|
626
|
-
interface iConfigUUID {
|
|
627
|
-
client_uuid?: string;
|
|
628
|
-
contract_uuid: string;
|
|
629
|
-
}
|
|
630
|
-
interface iPaymentDelay {
|
|
631
|
-
today: number;
|
|
632
|
-
nextPayment: number;
|
|
633
|
-
daysDelay: number;
|
|
634
|
-
late: boolean;
|
|
635
|
-
}
|
|
636
|
-
declare const cPaymentDalay: iPaymentDelay;
|
|
637
|
-
interface oResponse {
|
|
638
|
-
error?: string;
|
|
639
|
-
data: oUser | oUser[] | oBusinessInfo | oAddress | oSchedule | oFinancial | string | iPaymentDelay | oClient | oDevice | iConfigUUID | Response | oNotification;
|
|
640
|
-
}
|
|
641
|
-
interface gResponse {
|
|
642
|
-
status?: boolean;
|
|
643
|
-
path: string;
|
|
644
|
-
statusCode: number;
|
|
645
|
-
error?: string;
|
|
646
|
-
epochTime: number;
|
|
647
|
-
data: any;
|
|
648
|
-
}
|
|
649
|
-
interface gResponseFuncEmail {
|
|
650
|
-
success: boolean;
|
|
651
|
-
message: any;
|
|
652
|
-
}
|
|
653
|
-
declare const snackBarConfigAction: MatSnackBarConfig;
|
|
654
|
-
declare const snackBarConfigNoAction: MatSnackBarConfig;
|
|
655
|
-
interface iInformativeDialog {
|
|
656
|
-
message: string;
|
|
657
|
-
title: string;
|
|
658
|
-
cancel: string;
|
|
659
|
-
continue: string;
|
|
660
|
-
}
|
|
661
|
-
interface iSnackBarMessage {
|
|
662
|
-
message: string;
|
|
663
|
-
action: string;
|
|
664
|
-
config: MatSnackBarConfig;
|
|
665
|
-
}
|
|
666
|
-
type tyClientContract = oClient & oContract;
|
|
667
|
-
declare const cTyClientContract: {
|
|
668
|
-
id: string;
|
|
669
|
-
dynamicAccount?: number;
|
|
670
|
-
client: string;
|
|
671
|
-
address: oAddress;
|
|
672
|
-
device: oDevice;
|
|
673
|
-
financial: oFinancial;
|
|
674
|
-
createdAt?: number;
|
|
675
|
-
lastPayment?: number;
|
|
676
|
-
by: string;
|
|
677
|
-
active: boolean;
|
|
678
|
-
photo?: string;
|
|
679
|
-
name: string;
|
|
680
|
-
username: string;
|
|
681
|
-
password?: string;
|
|
682
|
-
email: string;
|
|
683
|
-
phone: string;
|
|
684
|
-
curp: string;
|
|
685
|
-
contract?: string;
|
|
686
|
-
lastLogin?: number;
|
|
687
|
-
contract_temporary?: string;
|
|
688
|
-
exists?: boolean;
|
|
689
|
-
conekta_id?: string;
|
|
690
|
-
dynamic_id?: number | string;
|
|
691
|
-
dynamic_account?: string | number;
|
|
692
|
-
dynamic_ref?: string;
|
|
693
|
-
passport_id?: string;
|
|
694
|
-
payments?: oClientPayments[];
|
|
695
|
-
reference?: string;
|
|
696
|
-
references?: oClientReferences[];
|
|
697
|
-
token?: string;
|
|
698
|
-
userReferences: oUserReference[];
|
|
699
|
-
contractUrl?: string;
|
|
700
|
-
status: string;
|
|
701
|
-
};
|
|
702
|
-
interface oContractMetrics {
|
|
703
|
-
total: number;
|
|
704
|
-
activated: number;
|
|
705
|
-
paused: number;
|
|
706
|
-
completed: number;
|
|
707
|
-
canceled: number;
|
|
708
|
-
late: number;
|
|
709
|
-
dynamicCount: number;
|
|
710
|
-
passportCount: number;
|
|
711
|
-
conektaCount: number;
|
|
712
|
-
rateTotal: number;
|
|
713
|
-
rateActive: number;
|
|
714
|
-
ratePaused: number;
|
|
715
|
-
rateComplete: number;
|
|
716
|
-
rateCanceled: number;
|
|
717
|
-
rateLate: number;
|
|
718
|
-
}
|
|
719
|
-
interface HasUnsavedChanges {
|
|
720
|
-
hasUnsavedChanges(): boolean;
|
|
721
|
-
}
|
|
722
|
-
interface oPaymentDates {
|
|
723
|
-
week: number;
|
|
724
|
-
date: number;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
declare enum eReferenceStatusRav {
|
|
728
|
-
"Disponible" = "Disponible",
|
|
729
|
-
"Active" = "Activo con credito vigente",
|
|
730
|
-
"ActiveEnded" = "Activo sin credito vigente",
|
|
731
|
-
"Registered" = "Registrado",
|
|
732
|
-
"NonRegistered" = "No registrado",
|
|
733
|
-
"NonVerified" = "No verificado",
|
|
734
|
-
"Rejected" = "Rechazado",
|
|
735
|
-
"Pending" = "Pendiente"
|
|
736
|
-
}
|
|
737
|
-
declare enum eAccountDynamicStatus {
|
|
738
|
-
"OK" = "Con cuenta activa",
|
|
739
|
-
"NOK" = "Sin cuenta activa"
|
|
740
|
-
}
|
|
741
|
-
declare enum eClientDynamicStatus {
|
|
742
|
-
"Active" = "Active",
|
|
743
|
-
"Pending" = "Pending",
|
|
744
|
-
"Accepted" = "Accepted",
|
|
745
|
-
"Rejected" = "Rejected",
|
|
746
|
-
"approved" = "Aprobado"
|
|
747
|
-
}
|
|
748
|
-
declare const cClientDynamicStatus: {
|
|
749
|
-
Active: {
|
|
750
|
-
value: string;
|
|
751
|
-
viewValue: string;
|
|
752
|
-
};
|
|
753
|
-
Pending: {
|
|
754
|
-
value: string;
|
|
755
|
-
viewValue: string;
|
|
756
|
-
};
|
|
757
|
-
Accepted: {
|
|
758
|
-
value: string;
|
|
759
|
-
viewValue: string;
|
|
760
|
-
};
|
|
761
|
-
Rejected: {
|
|
762
|
-
value: string;
|
|
763
|
-
viewValue: string;
|
|
764
|
-
};
|
|
765
|
-
Idle: {
|
|
766
|
-
value: string;
|
|
767
|
-
viewValue: string;
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
|
-
declare enum eContractSteps {
|
|
771
|
-
"idle" = "idle",
|
|
772
|
-
"general" = "General",
|
|
773
|
-
"address" = "Address",
|
|
774
|
-
"device" = "Device",
|
|
775
|
-
"financial" = "Financial",
|
|
776
|
-
"app" = "App"
|
|
777
|
-
}
|
|
778
|
-
type partialIDCData = Pick<IDCClient, "pii" | "client_type">;
|
|
779
|
-
interface IDCCharge {
|
|
780
|
-
barcode_url: string;
|
|
781
|
-
currency: string;
|
|
782
|
-
expires_at: number;
|
|
783
|
-
object: string;
|
|
784
|
-
quantity: number;
|
|
785
|
-
reference: string;
|
|
786
|
-
service_name: string;
|
|
787
|
-
store_name: string;
|
|
788
|
-
type: string;
|
|
789
|
-
unit_price: number;
|
|
790
|
-
}
|
|
791
|
-
interface IDCGeneratedReference {
|
|
792
|
-
account: number;
|
|
793
|
-
active: number;
|
|
794
|
-
amount: number;
|
|
795
|
-
channel: string;
|
|
796
|
-
charge: IDCCharge;
|
|
797
|
-
company: number;
|
|
798
|
-
config?: any;
|
|
799
|
-
id: string;
|
|
800
|
-
operation: number;
|
|
801
|
-
}
|
|
802
|
-
declare const cIDCDataPii: IDCDataPii;
|
|
803
|
-
/**
|
|
804
|
-
* Base customer for create customer with DynamiCore provider
|
|
805
|
-
* */
|
|
806
|
-
declare const cIDCCustomer: partialIDCData;
|
|
807
|
-
interface IDCDataPii {
|
|
808
|
-
icc: string;
|
|
809
|
-
rfc: string;
|
|
810
|
-
city: string;
|
|
811
|
-
curp: string;
|
|
812
|
-
sex: string;
|
|
813
|
-
days: string;
|
|
814
|
-
step: string;
|
|
815
|
-
ticket: string;
|
|
816
|
-
evidence: string;
|
|
817
|
-
proof_of_address: string;
|
|
818
|
-
score_interno: string;
|
|
819
|
-
imei: string;
|
|
820
|
-
name: string;
|
|
821
|
-
term: string;
|
|
822
|
-
brand: string;
|
|
823
|
-
email: string;
|
|
824
|
-
model: string;
|
|
825
|
-
phone: string;
|
|
826
|
-
score: any;
|
|
827
|
-
state: string;
|
|
828
|
-
amount: string;
|
|
829
|
-
colony: string;
|
|
830
|
-
estado: any;
|
|
831
|
-
gender: string;
|
|
832
|
-
period: string;
|
|
833
|
-
street: string;
|
|
834
|
-
num_ext: string;
|
|
835
|
-
num_int: string;
|
|
836
|
-
zipcode: string;
|
|
837
|
-
financed: string;
|
|
838
|
-
house_is: string;
|
|
839
|
-
lastname: string;
|
|
840
|
-
type_job: string;
|
|
841
|
-
birthdate: string;
|
|
842
|
-
birthstate: string;
|
|
843
|
-
dicio_data: string;
|
|
844
|
-
dicio_step: any;
|
|
845
|
-
secondname: string;
|
|
846
|
-
nationality: string;
|
|
847
|
-
seller_name: string;
|
|
848
|
-
down_payment: string;
|
|
849
|
-
municipality: string;
|
|
850
|
-
score_no_hit: string;
|
|
851
|
-
study_degree: string;
|
|
852
|
-
branch_office: string;
|
|
853
|
-
identity_data: any;
|
|
854
|
-
interest_rate: string;
|
|
855
|
-
marital_status: string;
|
|
856
|
-
monthly_income: string;
|
|
857
|
-
motherlastname: string;
|
|
858
|
-
score_rcc_fico: string;
|
|
859
|
-
identity_selfie: any;
|
|
860
|
-
amount_by_period: string;
|
|
861
|
-
identity_id_back: any;
|
|
862
|
-
identity_id_front: any;
|
|
863
|
-
economic_dependents: string;
|
|
864
|
-
identity_id_request: any;
|
|
865
|
-
identity_verification: any;
|
|
866
|
-
is_address_ine_currently_live: string;
|
|
867
|
-
fotografia_del_cliente_con_el_equipo?: string;
|
|
868
|
-
}
|
|
869
|
-
interface IDCAccountProps {
|
|
870
|
-
clabe: string | number;
|
|
871
|
-
pagaqui: string | number;
|
|
872
|
-
start_date: string;
|
|
873
|
-
expected_disbursed: number;
|
|
874
|
-
reference_pagaaqui: string;
|
|
875
|
-
principal_disbursed: number;
|
|
876
|
-
amount_commission_opening: number;
|
|
877
|
-
seller_name?: string;
|
|
878
|
-
}
|
|
879
|
-
interface IDCAccountConfig {
|
|
880
|
-
contract: string;
|
|
881
|
-
credit_type: string;
|
|
882
|
-
periodicity: string;
|
|
883
|
-
installments: number;
|
|
884
|
-
interest_base: string;
|
|
885
|
-
interest_rate: number;
|
|
886
|
-
interest_arrears: number;
|
|
887
|
-
commission_opening: number;
|
|
888
|
-
financed_amount?: number;
|
|
889
|
-
}
|
|
890
|
-
interface IDCAccount {
|
|
891
|
-
id: number;
|
|
892
|
-
group: number;
|
|
893
|
-
company: number;
|
|
894
|
-
client: number;
|
|
895
|
-
created_at: string;
|
|
896
|
-
currency: string | number;
|
|
897
|
-
status: string;
|
|
898
|
-
properties: IDCAccountProps;
|
|
899
|
-
product: number;
|
|
900
|
-
enabled: string | number;
|
|
901
|
-
config: IDCAccountConfig;
|
|
902
|
-
amount: number;
|
|
903
|
-
type: string;
|
|
904
|
-
identifier: string;
|
|
905
|
-
start_at: string;
|
|
906
|
-
el: any;
|
|
907
|
-
client_id: string | number;
|
|
908
|
-
}
|
|
909
|
-
interface IDCTxnRowExtras {
|
|
910
|
-
reference: string;
|
|
911
|
-
transaction: string;
|
|
912
|
-
}
|
|
913
|
-
interface IDCTxnRow {
|
|
914
|
-
id: string;
|
|
915
|
-
created_at: string;
|
|
916
|
-
seq: number;
|
|
917
|
-
created: string;
|
|
918
|
-
last4: string;
|
|
919
|
-
response: any;
|
|
920
|
-
transaction_id: string;
|
|
921
|
-
contrapart: string;
|
|
922
|
-
reference: string;
|
|
923
|
-
external_reference: any;
|
|
924
|
-
extras: IDCTxnRowExtras;
|
|
925
|
-
name: string;
|
|
926
|
-
debit: number;
|
|
927
|
-
credit: number;
|
|
928
|
-
amount: number;
|
|
929
|
-
}
|
|
930
|
-
interface IDCTxnHeader {
|
|
931
|
-
name: string;
|
|
932
|
-
type: string;
|
|
933
|
-
label?: string;
|
|
934
|
-
money?: string;
|
|
935
|
-
format?: string;
|
|
936
|
-
}
|
|
937
|
-
interface IDCTxn {
|
|
938
|
-
rows: IDCTxnRow[];
|
|
939
|
-
headers: IDCTxnHeader[];
|
|
940
|
-
}
|
|
941
|
-
interface IDCMntryCycle {
|
|
942
|
-
date: string;
|
|
943
|
-
late: number;
|
|
944
|
-
paid: number;
|
|
945
|
-
past: string | boolean;
|
|
946
|
-
cycle: string | number;
|
|
947
|
-
amount: number;
|
|
948
|
-
detail: any;
|
|
949
|
-
status: string;
|
|
950
|
-
}
|
|
951
|
-
interface IDCMntryPymtAllPaidTotal {
|
|
952
|
-
amount: string;
|
|
953
|
-
cycles: string;
|
|
954
|
-
}
|
|
955
|
-
interface IDCMntryPymtAll {
|
|
956
|
-
late: number;
|
|
957
|
-
total: number;
|
|
958
|
-
va_cp: number;
|
|
959
|
-
actual: number;
|
|
960
|
-
cycles: IDCMntryCycle[];
|
|
961
|
-
vencido: number;
|
|
962
|
-
paid_total: IDCMntryPymtAllPaidTotal;
|
|
963
|
-
total_amount: number;
|
|
964
|
-
}
|
|
965
|
-
interface IDCMntryPymtDue {
|
|
966
|
-
total: number;
|
|
967
|
-
cycles: IDCMntryCycle[];
|
|
968
|
-
new_cycle: IDCMntryCycle;
|
|
969
|
-
old_cycle: IDCMntryCycle;
|
|
970
|
-
total_amount: number;
|
|
971
|
-
}
|
|
972
|
-
interface IDCMntryPymtOpen extends IDCMntryPymtDue {
|
|
973
|
-
}
|
|
974
|
-
interface IDCMntryPymtPaid {
|
|
975
|
-
total: number;
|
|
976
|
-
cycles: IDCMntryCycle[] | any[];
|
|
977
|
-
new_cycle: any;
|
|
978
|
-
old_cycle: any;
|
|
979
|
-
total_amount: number;
|
|
980
|
-
}
|
|
981
|
-
interface IDCMntryPymtDueTax {
|
|
982
|
-
expected: number;
|
|
983
|
-
}
|
|
984
|
-
interface IDCMntryPymtPymt {
|
|
985
|
-
paid: number;
|
|
986
|
-
expected: number;
|
|
987
|
-
}
|
|
988
|
-
interface IDCMntryPymtCal {
|
|
989
|
-
due: IDCMntryPymtDue;
|
|
990
|
-
date: string;
|
|
991
|
-
past: string;
|
|
992
|
-
cycle: number;
|
|
993
|
-
balance: number;
|
|
994
|
-
due_tax: IDCMntryPymtDueTax;
|
|
995
|
-
payment: IDCMntryPymtPymt;
|
|
996
|
-
interest: IDCMntryPymtPymt;
|
|
997
|
-
principal: IDCMntryPymtPymt;
|
|
998
|
-
payment_tax: IDCMntryPymtPymt;
|
|
999
|
-
interest_tax: IDCMntryPymtPymt;
|
|
1000
|
-
final_balance: number;
|
|
1001
|
-
payment_total: IDCMntryPymtPymt;
|
|
1002
|
-
principal_tax: IDCMntryPymtPymt;
|
|
1003
|
-
}
|
|
1004
|
-
interface IDCMntryPymt {
|
|
1005
|
-
all: IDCMntryPymtAll;
|
|
1006
|
-
due: IDCMntryPymtDue;
|
|
1007
|
-
open: IDCMntryPymtOpen;
|
|
1008
|
-
paid: IDCMntryPymtPaid;
|
|
1009
|
-
payment_calendar: IDCMntryPymtCal[];
|
|
1010
|
-
}
|
|
1011
|
-
interface IDCClient {
|
|
1012
|
-
id: number;
|
|
1013
|
-
company: number;
|
|
1014
|
-
status: string;
|
|
1015
|
-
external_id: string;
|
|
1016
|
-
pii: IDCDataPii;
|
|
1017
|
-
client_type: number;
|
|
1018
|
-
created_at: string;
|
|
1019
|
-
pd: number;
|
|
1020
|
-
username: string;
|
|
1021
|
-
group: number;
|
|
1022
|
-
}
|
|
1023
|
-
interface IDCMsg {
|
|
1024
|
-
code: number;
|
|
1025
|
-
total: number;
|
|
1026
|
-
data: IDCClient[] | IDCAccount[] | IDCTxn[] | IDCTxn | IDCMntryPymt | IDCCredit[] | IDCTransaction[];
|
|
1027
|
-
transaction?: string;
|
|
1028
|
-
}
|
|
1029
|
-
interface IDynamiCore {
|
|
1030
|
-
status: string;
|
|
1031
|
-
message: IDCMsg;
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* Interfaces for request (base)
|
|
1035
|
-
* */
|
|
1036
|
-
interface IDCClientObjFilter {
|
|
1037
|
-
name: string;
|
|
1038
|
-
filter: string[] | number[];
|
|
1039
|
-
type: string;
|
|
1040
|
-
sort: string;
|
|
1041
|
-
}
|
|
1042
|
-
interface IDCClientQuery {
|
|
1043
|
-
filters: IDCClientObjFilter[];
|
|
1044
|
-
}
|
|
1045
|
-
interface IDCClientPiiFilter {
|
|
1046
|
-
limit: number;
|
|
1047
|
-
page: number;
|
|
1048
|
-
query: IDCClientQuery;
|
|
1049
|
-
}
|
|
1050
|
-
interface IDCOxxoRefItem {
|
|
1051
|
-
name: string;
|
|
1052
|
-
unit_price: number;
|
|
1053
|
-
quantity: number;
|
|
1054
|
-
}
|
|
1055
|
-
interface IDCOxxoRefPymtMth {
|
|
1056
|
-
type: string;
|
|
1057
|
-
}
|
|
1058
|
-
interface IDCOxxoRef {
|
|
1059
|
-
account: number;
|
|
1060
|
-
operation: number;
|
|
1061
|
-
customer_info: IDCRefCustInfo;
|
|
1062
|
-
items: IDCOxxoRefItem;
|
|
1063
|
-
payment_method: IDCOxxoRefPymtMth;
|
|
1064
|
-
}
|
|
1065
|
-
/**
|
|
1066
|
-
* DynamiCore Reference Interface
|
|
1067
|
-
* */
|
|
1068
|
-
interface IDCRefCustInfo {
|
|
1069
|
-
name: string;
|
|
1070
|
-
email: string;
|
|
1071
|
-
phone: string | number;
|
|
1072
|
-
}
|
|
1073
|
-
/**
|
|
1074
|
-
* DynamiCore Reference
|
|
1075
|
-
* */
|
|
1076
|
-
interface IDCRefCustInfo {
|
|
1077
|
-
name: string;
|
|
1078
|
-
email: string;
|
|
1079
|
-
phone: string | number;
|
|
1080
|
-
}
|
|
1081
|
-
interface IDCRefItems {
|
|
1082
|
-
name: string;
|
|
1083
|
-
unit_price: number;
|
|
1084
|
-
quantity: number;
|
|
1085
|
-
}
|
|
1086
|
-
interface IDCRefPymtMethod {
|
|
1087
|
-
type: string;
|
|
1088
|
-
}
|
|
1089
|
-
interface IDCNewReference {
|
|
1090
|
-
id: string;
|
|
1091
|
-
data: IDCReference;
|
|
1092
|
-
date?: number;
|
|
1093
|
-
}
|
|
1094
|
-
interface IDCReference {
|
|
1095
|
-
account: number;
|
|
1096
|
-
operation: number;
|
|
1097
|
-
customer_info: IDCRefCustInfo;
|
|
1098
|
-
items: IDCRefItems;
|
|
1099
|
-
payment_method: IDCRefPymtMethod;
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* Interfaces to Credits
|
|
1103
|
-
* */
|
|
1104
|
-
interface IDCCreditProperties {
|
|
1105
|
-
start_date: string;
|
|
1106
|
-
principal_disbursed: number;
|
|
1107
|
-
expected_disbursed: number;
|
|
1108
|
-
amount_commission_opening: number;
|
|
1109
|
-
}
|
|
1110
|
-
interface IDCCreditConfig {
|
|
1111
|
-
contract: string;
|
|
1112
|
-
credit_type: string;
|
|
1113
|
-
interest_rate: number;
|
|
1114
|
-
installments: number;
|
|
1115
|
-
periodicity: string;
|
|
1116
|
-
interest_base: string;
|
|
1117
|
-
commission_opening: number;
|
|
1118
|
-
financed_amount: number;
|
|
1119
|
-
interest_arrears: number;
|
|
1120
|
-
}
|
|
1121
|
-
interface IDCCredit {
|
|
1122
|
-
id: number;
|
|
1123
|
-
group: number;
|
|
1124
|
-
company: number;
|
|
1125
|
-
client: number;
|
|
1126
|
-
created_at: string;
|
|
1127
|
-
currency: string;
|
|
1128
|
-
status: string;
|
|
1129
|
-
properties: IDCCreditProperties;
|
|
1130
|
-
product: number;
|
|
1131
|
-
enabled: string;
|
|
1132
|
-
config: IDCCreditConfig;
|
|
1133
|
-
amount: number;
|
|
1134
|
-
type: string;
|
|
1135
|
-
identifier: null | string;
|
|
1136
|
-
start_at: null | string;
|
|
1137
|
-
}
|
|
1138
|
-
/**
|
|
1139
|
-
* Payments
|
|
1140
|
-
* */
|
|
1141
|
-
interface IDCPayment {
|
|
1142
|
-
operation: number;
|
|
1143
|
-
account: string;
|
|
1144
|
-
date: string;
|
|
1145
|
-
amount: number;
|
|
1146
|
-
external_id?: string;
|
|
1147
|
-
dst_account: string;
|
|
1148
|
-
extras?: object;
|
|
1149
|
-
reference: string;
|
|
1150
|
-
}
|
|
1151
|
-
declare const cIDCPayment: IDCPayment;
|
|
1152
|
-
/**
|
|
1153
|
-
* Transactions
|
|
1154
|
-
* */
|
|
1155
|
-
interface IDCTransaction {
|
|
1156
|
-
data: [number, {
|
|
1157
|
-
transaction: string;
|
|
1158
|
-
}];
|
|
1159
|
-
}
|
|
1160
|
-
declare const cIDCCharge: IDCCharge;
|
|
1161
|
-
declare const cIDCGeneratedReference: IDCGeneratedReference;
|
|
1162
|
-
/**
|
|
1163
|
-
* Common Factory Dynamic
|
|
1164
|
-
* */
|
|
1165
|
-
declare class FactoryDynamiCore {
|
|
1166
|
-
static CreateReferenceBody(client: oClient, contract: oContract, dateTime?: number): IDCNewReference | null;
|
|
1167
|
-
static CreateEmptyCustomer(): partialIDCData;
|
|
1168
|
-
static CreateCustomerFromOClient(client: oClient, contract: oContract): partialIDCData;
|
|
1169
|
-
static CreateDynamicCredit(client: oClient, contract: oContract, clientDynamic: IDCClient): Partial<IDCCredit> | null;
|
|
1170
|
-
static CreatePayment(contract: oContract, clientDynamic: IDCAccount): IDCPayment;
|
|
1171
|
-
static getNextDateTime(): string;
|
|
1172
|
-
static getIsoDate(): string;
|
|
1173
|
-
static FormPayment(contract: oContract, account: IDCAccount): {
|
|
1174
|
-
amount: UntypedFormControl;
|
|
1175
|
-
};
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
interface iContractAll {
|
|
1179
|
-
getAllLocal(): Promise<void>;
|
|
1180
|
-
getAllServer(): Promise<void>;
|
|
1181
|
-
getDynamicTransactionsManual(account: number): Promise<boolean>;
|
|
1182
|
-
createNewReferenceDynamic(client: tyClientContract): Promise<boolean>;
|
|
1183
|
-
createNewReferenceConekta(client: tyClientContract): Promise<void>;
|
|
1184
|
-
createNewReferencePassport(client: tyClientContract): Promise<void>;
|
|
1185
|
-
referenceCreated(response: boolean, provider: string): void;
|
|
1186
|
-
getColumnName(column: string): string;
|
|
1187
|
-
searchDynamicAccount(client: tyClientContract): Promise<IDCAccount | null>;
|
|
1188
|
-
updateClient(client: Partial<oClient>): Promise<boolean>;
|
|
1189
|
-
updateContract(id: string, contract: Partial<oContract>): Promise<boolean>;
|
|
1190
|
-
deleteClient(client: oClient): Promise<boolean>;
|
|
1191
|
-
deleteContract(contract: oContract): Promise<boolean>;
|
|
1192
|
-
updateClientAppAccess(client: Partial<oClient>, id: string): Promise<boolean>;
|
|
1193
|
-
calcTotal(contract: oContract): number;
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
interface oCustomer {
|
|
1197
|
-
livemode: boolean;
|
|
1198
|
-
name: string;
|
|
1199
|
-
email: string;
|
|
1200
|
-
phone: string;
|
|
1201
|
-
id: string;
|
|
1202
|
-
object: string;
|
|
1203
|
-
created_at: number;
|
|
1204
|
-
corporate: boolean;
|
|
1205
|
-
custom_reference: string;
|
|
1206
|
-
}
|
|
1207
|
-
interface oCustomerInfo {
|
|
1208
|
-
customer_id: string;
|
|
1209
|
-
name?: string;
|
|
1210
|
-
email?: string;
|
|
1211
|
-
phone?: string;
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
declare enum eAuthActions {
|
|
1215
|
-
delete = "delete",
|
|
1216
|
-
auth = "auth"
|
|
1217
|
-
}
|
|
1218
|
-
declare enum eAuthType {
|
|
1219
|
-
auth = "auth",
|
|
1220
|
-
login = "login",
|
|
1221
|
-
idle = ""
|
|
1222
|
-
}
|
|
1223
|
-
interface iAuthConfig {
|
|
1224
|
-
title: string;
|
|
1225
|
-
desc: string;
|
|
1226
|
-
data: boolean;
|
|
1227
|
-
}
|
|
1228
|
-
declare const cAuthConfig: iAuthConfig;
|
|
1229
|
-
interface ISignIn {
|
|
1230
|
-
username: WritableSignal<string>;
|
|
1231
|
-
password: WritableSignal<string>;
|
|
1232
|
-
login(credentials: oAuth, destination: string): Promise<void>;
|
|
1233
|
-
success(): void;
|
|
1234
|
-
}
|
|
1235
|
-
interface oAuth {
|
|
1236
|
-
username: string;
|
|
1237
|
-
password: string;
|
|
1238
|
-
}
|
|
1239
|
-
interface oAuthRes {
|
|
1240
|
-
status: number;
|
|
1241
|
-
data: {};
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
interface iNewPayment {
|
|
1245
|
-
getContract(): Promise<void>;
|
|
1246
|
-
getContractApi(): Promise<oContract>;
|
|
1247
|
-
getClient(contract: oContract): Promise<void>;
|
|
1248
|
-
getClientApi(contract: oContract): Promise<oClient>;
|
|
1249
|
-
getParams(): Promise<void>;
|
|
1250
|
-
getAccount(): Promise<boolean>;
|
|
1251
|
-
createPayment(): Promise<string>;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
declare enum ePassportTypes {
|
|
1255
|
-
CREATE = "create_references",
|
|
1256
|
-
SEND = "send_references"
|
|
1257
|
-
}
|
|
1258
|
-
/** *********************************************************************************/
|
|
1259
|
-
interface iPassportAdditional {
|
|
1260
|
-
client?: string;
|
|
1261
|
-
clientID?: string;
|
|
1262
|
-
credit?: string;
|
|
1263
|
-
}
|
|
1264
|
-
interface iPassportReferenceData {
|
|
1265
|
-
name: string;
|
|
1266
|
-
email: string;
|
|
1267
|
-
amount: number;
|
|
1268
|
-
expirationDate: string;
|
|
1269
|
-
additional: iPassportAdditional;
|
|
1270
|
-
}
|
|
1271
|
-
/** Passport request interface base */
|
|
1272
|
-
interface iPassportReference {
|
|
1273
|
-
type: string;
|
|
1274
|
-
data: iPassportReferenceData;
|
|
1275
|
-
}
|
|
1276
|
-
/** Global passport reference aPI */
|
|
1277
|
-
interface iGlobalPassport {
|
|
1278
|
-
passport: iPassportReference;
|
|
1279
|
-
contract: oContract;
|
|
1280
|
-
date?: number;
|
|
1281
|
-
}
|
|
1282
|
-
/** ******************************** */
|
|
1283
|
-
interface iPassportResponseData {
|
|
1284
|
-
name: string;
|
|
1285
|
-
email: string;
|
|
1286
|
-
amount: number;
|
|
1287
|
-
expirationDate: string;
|
|
1288
|
-
additional: iPassportAdditional;
|
|
1289
|
-
}
|
|
1290
|
-
interface iPassportReferenceCenters {
|
|
1291
|
-
name: string;
|
|
1292
|
-
logo: string;
|
|
1293
|
-
}
|
|
1294
|
-
interface iPassportReferenceRes {
|
|
1295
|
-
reference: string;
|
|
1296
|
-
centers: iPassportReferenceCenters[];
|
|
1297
|
-
centerId: number;
|
|
1298
|
-
barcode: string;
|
|
1299
|
-
}
|
|
1300
|
-
/** Passport response interface base */
|
|
1301
|
-
interface iPassportResponse {
|
|
1302
|
-
type: string;
|
|
1303
|
-
data: iPassportResponseData;
|
|
1304
|
-
message: string;
|
|
1305
|
-
references: iPassportReference[];
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
declare enum eVerificationStep {
|
|
1309
|
-
IDLE = "IDLE",
|
|
1310
|
-
ERROR = "ERROR",
|
|
1311
|
-
COMPLETED = "COMPLETED",
|
|
1312
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
1313
|
-
INVALID = "INVALID",
|
|
1314
|
-
SUSPENDED = "SUSPENDED",
|
|
1315
|
-
CANCELLED = "CANCELLED"
|
|
1316
|
-
}
|
|
1317
|
-
declare enum eVerificationStatus {
|
|
1318
|
-
APPROVED = "approved",
|
|
1319
|
-
CANCELLED = "cancelled"
|
|
1320
|
-
}
|
|
1321
|
-
declare enum eVerificationChannel {
|
|
1322
|
-
SMS = "sms",
|
|
1323
|
-
WHATSAPP = "whatsapp",
|
|
1324
|
-
CALL = "call",
|
|
1325
|
-
EMAIL = "email",
|
|
1326
|
-
SNA = "sna"
|
|
1327
|
-
}
|
|
1328
|
-
interface ISendCodeAttempt {
|
|
1329
|
-
time: string;
|
|
1330
|
-
channel: eVerificationChannel;
|
|
1331
|
-
attemptSid: string;
|
|
1332
|
-
}
|
|
1333
|
-
interface IBaseVerification {
|
|
1334
|
-
sid: string;
|
|
1335
|
-
service_sid: string;
|
|
1336
|
-
account_sid: string;
|
|
1337
|
-
to: string;
|
|
1338
|
-
channel: eVerificationChannel;
|
|
1339
|
-
status: eVerificationStatus;
|
|
1340
|
-
valid: boolean;
|
|
1341
|
-
date_created: string;
|
|
1342
|
-
date_updated: string;
|
|
1343
|
-
amount: any;
|
|
1344
|
-
payee: any;
|
|
1345
|
-
}
|
|
1346
|
-
interface IVerificationSms extends IBaseVerification {
|
|
1347
|
-
lookup: any;
|
|
1348
|
-
send_code_attempts: ISendCodeAttempt[];
|
|
1349
|
-
sna: any;
|
|
1350
|
-
url: string;
|
|
1351
|
-
}
|
|
1352
|
-
interface IVerificationCheckSms {
|
|
1353
|
-
sna_attempts_error_codes: any[];
|
|
1354
|
-
}
|
|
1355
|
-
interface IVerificationData {
|
|
1356
|
-
Phone?: string;
|
|
1357
|
-
VerificationCode?: string;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
declare const cClient: oClient;
|
|
1361
|
-
interface oClientConekta {
|
|
1362
|
-
ravcredit: oClient;
|
|
1363
|
-
conekta: iConektaRecurrent;
|
|
1364
|
-
}
|
|
1365
|
-
declare const cUserReference: oUserReference;
|
|
1366
|
-
declare const cClientConekta: oClientConekta;
|
|
1367
|
-
interface iClientContract {
|
|
1368
|
-
client: oClient;
|
|
1369
|
-
contract: oContract;
|
|
1370
|
-
}
|
|
1371
|
-
declare const cClientContract: iClientContract;
|
|
1372
|
-
declare class FactoryClient {
|
|
1373
|
-
static CreateClientToConektaObj(data: oClient): any;
|
|
1374
|
-
static CreateClientFromFormObj(data: any, client?: oClient): oClient;
|
|
1375
|
-
static CreateClientConektaObj(data: oClient, finalDate: number): {
|
|
1376
|
-
name: string;
|
|
1377
|
-
email: string;
|
|
1378
|
-
phone: string;
|
|
1379
|
-
contract: string | undefined;
|
|
1380
|
-
client_id: string;
|
|
1381
|
-
payment_sources: iConektaSources[];
|
|
1382
|
-
};
|
|
1383
|
-
static MapperConektaClient(client: oClient, conekta: iConektaRecurrent): iClientContract;
|
|
1384
|
-
static MapperTypeContCli_Client(_client: tyClientContract): oClient;
|
|
1385
|
-
static MapperDynamicClient(dynamic: IDCClient, client: oClient, contract: oContract, clientDyn?: IDCClient, account?: IDCAccount): iClientContract;
|
|
1386
|
-
static MapperFinancialContract(contract: oContract, account: IDCAccount): oFinancial;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
declare class UtilsHttp {
|
|
1390
|
-
static CreateHeadersRavcreditApi(token: string): {
|
|
1391
|
-
'Content-Type': string;
|
|
1392
|
-
Accept: string;
|
|
1393
|
-
'Access-Control-Allow-Headers': string;
|
|
1394
|
-
Authorization: string;
|
|
1395
|
-
};
|
|
1396
|
-
static CreateSimpleHeadersApi(): {
|
|
1397
|
-
'Content-Type': string;
|
|
1398
|
-
Accept: string;
|
|
1399
|
-
'Access-Control-Allow-Headers': string;
|
|
1400
|
-
};
|
|
1401
|
-
static CreateAwsHeadersApi(): {
|
|
1402
|
-
'Content-Type': string;
|
|
1403
|
-
};
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
declare const cSchedule: oSchedule;
|
|
1407
|
-
declare const cEmptyDay: oSchedule;
|
|
1408
|
-
declare const week: string[];
|
|
1409
|
-
declare const cDefinedSchedule: oSchedule[];
|
|
1410
|
-
declare const cBusinessInfo: oBusinessInfo;
|
|
1411
|
-
declare const cBusinessDeadlines: oBusinessDeadlines;
|
|
1412
|
-
declare const cBusinessConfig: oBusinessConfig;
|
|
1413
|
-
declare class FactoryBusiness {
|
|
1414
|
-
static FormBusinessInfo(info?: oBusinessInfo): {
|
|
1415
|
-
name: UntypedFormControl;
|
|
1416
|
-
email: UntypedFormControl;
|
|
1417
|
-
desc: UntypedFormControl;
|
|
1418
|
-
street: UntypedFormControl;
|
|
1419
|
-
neighbor: UntypedFormControl;
|
|
1420
|
-
cp: UntypedFormControl;
|
|
1421
|
-
ext: UntypedFormControl;
|
|
1422
|
-
int: UntypedFormControl;
|
|
1423
|
-
city: UntypedFormControl;
|
|
1424
|
-
state: UntypedFormControl;
|
|
1425
|
-
phones: UntypedFormControl;
|
|
1426
|
-
mondayOpen: UntypedFormControl;
|
|
1427
|
-
mondayClose: UntypedFormControl;
|
|
1428
|
-
tuesdayOpen: UntypedFormControl;
|
|
1429
|
-
tuesdayClose: UntypedFormControl;
|
|
1430
|
-
wednesdayOpen: UntypedFormControl;
|
|
1431
|
-
wednesdayClose: UntypedFormControl;
|
|
1432
|
-
thursdayOpen: UntypedFormControl;
|
|
1433
|
-
thursdayClose: UntypedFormControl;
|
|
1434
|
-
fridayOpen: UntypedFormControl;
|
|
1435
|
-
fridayClose: UntypedFormControl;
|
|
1436
|
-
saturdayOpen: UntypedFormControl;
|
|
1437
|
-
saturdayClose: UntypedFormControl;
|
|
1438
|
-
sundayOpen: UntypedFormControl;
|
|
1439
|
-
sundayClose: UntypedFormControl;
|
|
1440
|
-
};
|
|
1441
|
-
static CreateBusinessInfoObj(data: oTmpBusinessConfig): oBusinessInfo;
|
|
1442
|
-
static FormDeadlineConfig(data: oBusinessDeadlines): {
|
|
1443
|
-
weeks: UntypedFormControl;
|
|
1444
|
-
interest: UntypedFormControl;
|
|
1445
|
-
};
|
|
1446
|
-
static FormBusinessConfig(config?: oBusinessConfig): {
|
|
1447
|
-
downloadsClient: UntypedFormControl;
|
|
1448
|
-
passportPaymentReference: UntypedFormControl;
|
|
1449
|
-
conektaPaymentReference: UntypedFormControl;
|
|
1450
|
-
conektaPaymentLink: UntypedFormControl;
|
|
1451
|
-
dynamicPaymentReference: UntypedFormControl;
|
|
1452
|
-
deadlines: UntypedFormArray;
|
|
1453
|
-
};
|
|
1454
|
-
static testBusiness(message: string): string;
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
declare enum eProvider {
|
|
1458
|
-
none = "",
|
|
1459
|
-
Conekta = "Conekta",
|
|
1460
|
-
Passport = "Passport",
|
|
1461
|
-
DynamiCore = "DynamiCore"
|
|
1462
|
-
}
|
|
1463
|
-
declare const cDevice: oDevice;
|
|
1464
|
-
declare const cFinancial: oFinancial;
|
|
1465
|
-
declare const cContract: oContract;
|
|
1466
|
-
declare class FactoryContract {
|
|
1467
|
-
static FormClient(client?: oClient): {
|
|
1468
|
-
name: UntypedFormControl;
|
|
1469
|
-
email: UntypedFormControl;
|
|
1470
|
-
phone: UntypedFormControl;
|
|
1471
|
-
curp: UntypedFormControl;
|
|
1472
|
-
userReferences: UntypedFormArray;
|
|
1473
|
-
};
|
|
1474
|
-
static CreateUserReferenceFormObj(user: oUserReference): {
|
|
1475
|
-
name: UntypedFormControl;
|
|
1476
|
-
phone: UntypedFormControl;
|
|
1477
|
-
relationship: UntypedFormControl;
|
|
1478
|
-
};
|
|
1479
|
-
static FormAddress(address?: oAddress): {
|
|
1480
|
-
street: UntypedFormControl;
|
|
1481
|
-
neighbor: UntypedFormControl;
|
|
1482
|
-
cp: UntypedFormControl;
|
|
1483
|
-
ext: UntypedFormControl;
|
|
1484
|
-
int: UntypedFormControl;
|
|
1485
|
-
city: UntypedFormControl;
|
|
1486
|
-
state: UntypedFormControl;
|
|
1487
|
-
};
|
|
1488
|
-
static FormDevice(device?: oDevice): {
|
|
1489
|
-
model: UntypedFormControl;
|
|
1490
|
-
IMEI: UntypedFormControl;
|
|
1491
|
-
ID: UntypedFormControl;
|
|
1492
|
-
};
|
|
1493
|
-
static FormFinancial(financial?: oFinancial): {
|
|
1494
|
-
total: UntypedFormControl;
|
|
1495
|
-
initial: UntypedFormControl;
|
|
1496
|
-
financed: UntypedFormControl;
|
|
1497
|
-
weeklyPayment: UntypedFormControl;
|
|
1498
|
-
deadlines: UntypedFormControl;
|
|
1499
|
-
initDate: UntypedFormControl;
|
|
1500
|
-
provider: UntypedFormControl;
|
|
1501
|
-
credit_type: UntypedFormControl;
|
|
1502
|
-
interest_rate: UntypedFormControl;
|
|
1503
|
-
commission_opening: UntypedFormControl;
|
|
1504
|
-
interest_arrears: UntypedFormControl;
|
|
1505
|
-
amount_commission_opening: UntypedFormControl;
|
|
1506
|
-
principal_disbursed: UntypedFormControl;
|
|
1507
|
-
expected_disbursed: UntypedFormControl;
|
|
1508
|
-
};
|
|
1509
|
-
static CreateContractFromFormObj(data: any, finalPay: number): oContract;
|
|
1510
|
-
static CreateContractToConektaObj(data: oContract, monthlyPay: number, finalPay: number): oContract;
|
|
1511
|
-
static CreateAuthForm(username: string, curp: string): {
|
|
1512
|
-
username: UntypedFormControl;
|
|
1513
|
-
password: UntypedFormControl;
|
|
1514
|
-
};
|
|
1515
|
-
static createPassword(curp: string): string;
|
|
1516
|
-
static MapperTypeContCli_Contract(_contract: tyClientContract): oContract;
|
|
1517
|
-
static MapperSyncContractDynamic(base: oContract, account: IDCAccount): oContract;
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
declare enum ePaymentType {
|
|
1521
|
-
OXXO = "OXXO",
|
|
1522
|
-
ALTERNA = "ALTERNA",
|
|
1523
|
-
OXXO_RECURRENT = "oxxo_recurrent"
|
|
1524
|
-
}
|
|
1525
|
-
declare class FactoryConekta {
|
|
1526
|
-
static createOrder(client: oClient, contract: oContract, dateTime?: number): oConektaNewOrder;
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
declare const ROUTE_NOTIFICATIONS = "notifications";
|
|
1530
|
-
declare const ROUTE_GLOBAL_REFERENCE2 = "/contract-reference";
|
|
1531
|
-
declare const ravCreditFunctions = "https://us-central1-ravcredit-2b079.cloudfunctions.net/CustomerNotification";
|
|
1532
|
-
declare class FactoryNotification {
|
|
1533
|
-
static FormNotification(notification?: oNotification): {
|
|
1534
|
-
title: UntypedFormControl;
|
|
1535
|
-
body: UntypedFormControl;
|
|
1536
|
-
};
|
|
1537
|
-
static CreateGlobalNotificationObj(data: oNotification): any;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
declare class UtilTime {
|
|
1541
|
-
private localeFns;
|
|
1542
|
-
static IsExpired(time: number): boolean;
|
|
1543
|
-
static getDates(initial: number, weeks: number): oPaymentDates[];
|
|
1544
|
-
static getPreviousWeek(): number;
|
|
1545
|
-
static getDayNum(date: Date | number): number;
|
|
1546
|
-
static getDayName(date: Date | number): string;
|
|
1547
|
-
static getMonthName(date: Date | number): string;
|
|
1548
|
-
static getYear(date: Date | number): string;
|
|
1549
|
-
static GetNextPayment(time: number, provider: string): string;
|
|
1550
|
-
static getLocalTimeFromLong(time: number, provider: string): string;
|
|
1551
|
-
static DelayPaymentLast(lastPayment: number, provider: string, injector: Injector): boolean;
|
|
1552
|
-
static GetFactor(provider: string): number;
|
|
1553
|
-
static GetEpochFromFormatedDate(date: string): number;
|
|
1554
|
-
static GetTimeFromString(date: string): string;
|
|
1555
|
-
static GetDateFromString(date: string): string;
|
|
1556
|
-
static SortingByTime(payments: IDCTxnRow[]): IDCTxnRow[];
|
|
1557
|
-
static SortingByTimeConekta(payments: oConektaOrder[]): oConektaOrder[];
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
declare const cContractMetrics: oContractMetrics;
|
|
1561
|
-
|
|
1562
|
-
declare class FactoryPassport {
|
|
1563
|
-
static CreatePassportReference(client: oClient, contract: oContract, dateTime?: number): iGlobalPassport;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
interface oPaymentGlobal {
|
|
1567
|
-
conektaPayment?: oConektaRes;
|
|
1568
|
-
dynamicPayment?: IDCTxnRow[];
|
|
1569
|
-
}
|
|
1570
|
-
declare class FactoryPayment {
|
|
1571
|
-
static CreatePayment(data: oConektaRes | IDCTxnRow[], provider: eProvider): oPaymentGlobal;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
declare class IndexedDbService {
|
|
1575
|
-
indexDbStatus: boolean;
|
|
1576
|
-
iDb: IDBPDatabase<unknown>;
|
|
1577
|
-
constructor();
|
|
1578
|
-
/****************** SIMPLE Transactional - CRUD *************************************/
|
|
1579
|
-
dbGetObject<T>(store: string, data: any): Promise<T>;
|
|
1580
|
-
dbGetAllByStore<T>(store: string, index?: string): Promise<T>;
|
|
1581
|
-
dbAddObject<T>(store: string, data: any): Promise<boolean>;
|
|
1582
|
-
dbRemoveObject<T>(store: string, data: any): Promise<T>;
|
|
1583
|
-
/************************************* AUTH **************************************/
|
|
1584
|
-
dbSignIn(store: string, data: any): Promise<void>;
|
|
1585
|
-
dbSignOut(): Promise<void>;
|
|
1586
|
-
dbAuthorization(): Promise<boolean>;
|
|
1587
|
-
dbGetToken(): Promise<string>;
|
|
1588
|
-
/******************************** Local Storage *************************************/
|
|
1589
|
-
setLocalStorage(k: string, v: string): void;
|
|
1590
|
-
getLocalStorage<T>(k: string): T;
|
|
1591
|
-
removeLocalStorage(k: string): void;
|
|
1592
|
-
getLocalUser(): string | null;
|
|
1593
|
-
/********************************************************************************* **/
|
|
1594
|
-
getPlatformUser(): Promise<string>;
|
|
1595
|
-
getToken(): Promise<string>;
|
|
1596
|
-
addObject<T>(store: string, data: any): Promise<boolean>;
|
|
1597
|
-
patchObject<T>(store: string, data: any): Promise<T>;
|
|
1598
|
-
updateObjectByID<T>(store: string, id: string, data: T): Promise<boolean>;
|
|
1599
|
-
upsertObjectById<T>(store: string, id: string, data: T): Promise<IDBValidKey>;
|
|
1600
|
-
removeObject<T>(store: string, data: any): Promise<T>;
|
|
1601
|
-
deleteObjectByID<T>(store: string, id: string): Promise<T | idb.IDBPCursorWithValue<unknown, [string], string, string, "readwrite"> | null>;
|
|
1602
|
-
cleanAll<T>(store: string): Promise<void>;
|
|
1603
|
-
getObject<T>(store: string, data: any): Promise<T>;
|
|
1604
|
-
addBuildByStore(store: string, data: any[]): Promise<void>;
|
|
1605
|
-
updateObject<T>(store: string, data: any): Promise<void>;
|
|
1606
|
-
getAllByStore<T>(store: string, index?: string): Promise<T>;
|
|
1607
|
-
getAuthUser(): Promise<oUser>;
|
|
1608
|
-
getAuthName(): Promise<string>;
|
|
1609
|
-
getAuthUsername(): Promise<string>;
|
|
1610
|
-
saveDataLocally<T>(contract: oContract, client: oClient, providerData: T): Promise<boolean>;
|
|
1611
|
-
/******************** MERGE **************************************/
|
|
1612
|
-
getAllClientContracts(): Promise<tyClientContract[]>;
|
|
1613
|
-
/******************** MERGE **************************************/
|
|
1614
|
-
dbGetAllClientContracts(): Promise<tyClientContract[]>;
|
|
1615
|
-
/****************** BUSINESS INFO *************************************/
|
|
1616
|
-
getBusinessInfo(): Promise<oBusinessInfo | null>;
|
|
1617
|
-
/****************** BUSINESS CONFIG ************************************/
|
|
1618
|
-
getBusinessConfig(): Promise<oBusinessConfig | null>;
|
|
1619
|
-
updateBusinessConfig(config: oBusinessConfig): Promise<void>;
|
|
1620
|
-
updateBusinessInfo(config: oBusinessInfo): Promise<void>;
|
|
1621
|
-
/**************** NOTIFICATIONS *********************************/
|
|
1622
|
-
getLocalNotifications(): Promise<oNotification[] | null>;
|
|
1623
|
-
updateNotifications(notifications: oNotification[]): Promise<void>;
|
|
1624
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IndexedDbService, never>;
|
|
1625
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IndexedDbService>;
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
declare const keyUserID: string;
|
|
1629
|
-
declare const dbVersion: number;
|
|
1630
|
-
declare const dbName: string;
|
|
1631
|
-
declare const keyPathId: string;
|
|
1632
|
-
declare const dbAuthStore: string;
|
|
1633
|
-
declare const dbUsersStore: string;
|
|
1634
|
-
declare const dbContractsStore: string;
|
|
1635
|
-
declare const dbClientsStore: string;
|
|
1636
|
-
declare const dbBusinessInfo: string;
|
|
1637
|
-
declare const dbBusinessConfig: string;
|
|
1638
|
-
declare const dbConektaClientsStore: string;
|
|
1639
|
-
declare const dbConektaReferencesStore: string;
|
|
1640
|
-
declare const dbPassportReferencesStore: string;
|
|
1641
|
-
declare const dbDynamicReferencesStore: string;
|
|
1642
|
-
declare const dbDynamicAccountStore: string;
|
|
1643
|
-
declare const dbNotificationsStore: string;
|
|
1644
|
-
declare const dbPaymentsStore: string;
|
|
1645
|
-
declare const dbIndexAuth: string;
|
|
1646
|
-
declare const dbIndexUsers: string;
|
|
1647
|
-
declare const dbIndexContracts: string;
|
|
1648
|
-
declare const dbIndexClients: string;
|
|
1649
|
-
declare const dbIndexBusiness: string;
|
|
1650
|
-
declare const dbIndexConektaClients: string;
|
|
1651
|
-
declare const dbIndexConektaClientsRef: string;
|
|
1652
|
-
declare const dbIndexPassportClientsRef: string;
|
|
1653
|
-
declare const dbIndexNotification: string;
|
|
1654
|
-
declare const dbIndexPayments: string;
|
|
1655
|
-
declare const dateFormat = "EEEE, dd MMM yyyy";
|
|
1656
|
-
declare const dateCompleteFormat = "EEEE, dd MMM yyyy hh:mm aaaa";
|
|
1657
|
-
declare const timeFormat = "hh:mm aaaa";
|
|
1658
|
-
declare const expiredPayment = "expiredPayment";
|
|
1659
|
-
|
|
1660
|
-
interface ILambdaResponse {
|
|
1661
|
-
StatusCode: number;
|
|
1662
|
-
VerificationSms?: IVerificationSms;
|
|
1663
|
-
VerificationCheckSms?: IVerificationCheckSms;
|
|
1664
|
-
Error: string;
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
interface oCatalog {
|
|
1668
|
-
name: string;
|
|
1669
|
-
description: string;
|
|
1670
|
-
id: string;
|
|
1671
|
-
createdAt: number;
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
|
-
interface oCompany {
|
|
1675
|
-
name: string;
|
|
1676
|
-
id: string;
|
|
1677
|
-
rfc: string;
|
|
1678
|
-
taxRegime: string;
|
|
1679
|
-
address: oAddress;
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
interface oScoreNoHit {
|
|
1683
|
-
date: string;
|
|
1684
|
-
score: string;
|
|
1685
|
-
message: string;
|
|
1686
|
-
evaluation: string;
|
|
1687
|
-
}
|
|
1688
|
-
interface oScoreReference {
|
|
1689
|
-
name: string;
|
|
1690
|
-
score: number;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
interface oAssetCategory {
|
|
1694
|
-
name: string;
|
|
1695
|
-
id: string;
|
|
1696
|
-
createAt: number;
|
|
1697
|
-
}
|
|
1698
|
-
interface oAssetBrand {
|
|
1699
|
-
name: string;
|
|
1700
|
-
id: string;
|
|
1701
|
-
description: string;
|
|
1702
|
-
}
|
|
1703
|
-
interface oAssetOffer {
|
|
1704
|
-
name: string;
|
|
1705
|
-
id: string;
|
|
1706
|
-
createAt: number;
|
|
1707
|
-
description: string;
|
|
1708
|
-
}
|
|
1709
|
-
declare enum eAssetPeriod {
|
|
1710
|
-
MONTH = "MONTH",
|
|
1711
|
-
WEEK = "WEEK"
|
|
1712
|
-
}
|
|
1713
|
-
interface oPaymentOption {
|
|
1714
|
-
deadline: number;
|
|
1715
|
-
score: oScoreNoHit;
|
|
1716
|
-
period: eAssetPeriod;
|
|
1717
|
-
}
|
|
1718
|
-
interface oAsset {
|
|
1719
|
-
name: string;
|
|
1720
|
-
id: string;
|
|
1721
|
-
createAt: number;
|
|
1722
|
-
category: oAssetCategory;
|
|
1723
|
-
brand: oAssetBrand;
|
|
1724
|
-
price: number;
|
|
1725
|
-
model: string;
|
|
1726
|
-
imageUrl: string[];
|
|
1727
|
-
paymentOption: oPaymentOption[];
|
|
1728
|
-
catalog: oCatalog;
|
|
1729
|
-
offers: oAssetOffer[];
|
|
1730
|
-
score: oScoreReference;
|
|
1731
|
-
IMEI: string;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
declare enum eContractStatus {
|
|
1735
|
-
APPROVED = "APPROVED",
|
|
1736
|
-
DENIED = "DENIED",
|
|
1737
|
-
CANCELED = "CANCELED",
|
|
1738
|
-
PENDING = "PENDING",
|
|
1739
|
-
CHECKING = "CHECKING"
|
|
1740
|
-
}
|
|
1741
|
-
interface oContractV2 extends oContract {
|
|
1742
|
-
company: oCompany;
|
|
1743
|
-
status: eContractStatus;
|
|
1744
|
-
asset: oAsset;
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
export { FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxorecurrentSourcesData, cPaymentDalay, cSchedule, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractStatus, eContractSteps, eLoginStatus, eNotificationType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, timeFormat, week };
|
|
1748
|
-
export type { 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, gResponse, gResponseFuncEmail, 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, oConektaNewOrder, oConektaNewOrderAntifraudInfo, oConektaNewOrderCharge, oConektaNewOrderCustomerInfo, oConektaNewOrderLineItem, oConektaNewOrderPymMethod, oConektaOrder, oConektaOrderCreate, oConektaOrdersResponse, oConektaPaymentMethod, oConektaRes, oConektaResData, oConektaResObjChargePaid, oConektaResObjOrderPaid, oConektaResPrevAttr, oContract, oContractMetrics, oContractV2, oCustomer, oCustomerInfo, oDevice, oFinancial, oFinancialProgress, oNotification, oNotificationResponses, oPaymentDates, oPaymentGlobal, oPaymentOption, oResponse, oSchedule, oTmpBusinessConfig, oUser, oUserReference, partialIDCData, tyClientContract, weekSchedule };
|