ravcredit-lib 0.0.19 → 0.0.21
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/fesm2022/ravcredit-lib.mjs +2127 -0
- package/fesm2022/ravcredit-lib.mjs.map +1 -0
- package/index.d.ts +1734 -0
- package/package.json +25 -14
- package/ng-package.json +0 -7
- package/src/index.d.ts +0 -45
- package/src/lib/ravcredit-lib.component.spec.ts +0 -23
- package/src/lib/ravcredit-lib.component.ts +0 -16
- package/src/lib/ravcredit-lib.service.spec.ts +0 -16
- package/src/lib/ravcredit-lib.service.ts +0 -9
- package/src/lib/v1/const/constants.ts +0 -35
- package/src/lib/v1/idb/idb.service.spec.ts +0 -16
- package/src/lib/v1/idb/indexed-db.service.ts +0 -396
- package/src/lib/v1/objects/oAddress.ts +0 -19
- package/src/lib/v1/objects/oBusiness.ts +0 -112
- package/src/lib/v1/objects/oClient.ts +0 -46
- package/src/lib/v1/objects/oConekta.ts +0 -408
- package/src/lib/v1/objects/oContract.ts +0 -31
- package/src/lib/v1/objects/oContractAll.ts +0 -38
- package/src/lib/v1/objects/oCustomer.ts +0 -36
- package/src/lib/v1/objects/oDevice.ts +0 -5
- package/src/lib/v1/objects/oFinancial.ts +0 -32
- package/src/lib/v1/objects/oGlobal.ts +0 -192
- package/src/lib/v1/objects/oLogIn.ts +0 -43
- package/src/lib/v1/objects/oNewPayment.ts +0 -18
- package/src/lib/v1/objects/oNotification.ts +0 -34
- package/src/lib/v1/objects/oPassport.ts +0 -65
- package/src/lib/v1/objects/oUser.ts +0 -35
- package/src/lib/v1/objects/oVerification.ts +0 -100
- package/src/lib/v1/util/UtilBusiness.ts +0 -186
- package/src/lib/v1/util/UtilClient.ts +0 -295
- package/src/lib/v1/util/UtilConekta.ts +0 -97
- package/src/lib/v1/util/UtilContract.ts +0 -432
- package/src/lib/v1/util/UtilDashboard.ts +0 -19
- package/src/lib/v1/util/UtilDynamiCore.ts +0 -752
- package/src/lib/v1/util/UtilNotification.ts +0 -46
- package/src/lib/v1/util/UtilPassport.ts +0 -32
- package/src/lib/v1/util/UtilPayment.ts +0 -22
- package/src/lib/v1/util/UtilTime.ts +0 -179
- package/src/lib/v1/util/UtilsHttp.ts +0 -25
- package/src/lib/v2/const/constants.ts +0 -37
- package/src/lib/v2/messaging/messaging.ts +0 -10
- package/src/lib/v2/objects/oAsset.ts +0 -48
- package/src/lib/v2/objects/oAws.ts +0 -8
- package/src/lib/v2/objects/oCatalog.ts +0 -6
- package/src/lib/v2/objects/oClient.ts +0 -37
- package/src/lib/v2/objects/oCompany.ts +0 -10
- package/src/lib/v2/objects/oContract.ts +0 -10
- package/src/lib/v2/objects/oMediaDto.ts +0 -10
- package/src/lib/v2/objects/oScoreDto.ts +0 -40
- package/src/public-api.ts +0 -45
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import {oAddress} from "./oAddress";
|
|
2
|
-
import {WritableSignal} from "@angular/core";
|
|
3
|
-
import {UntypedFormGroup} from "@angular/forms";
|
|
4
|
-
|
|
5
|
-
export interface iBusinessInfo {
|
|
6
|
-
address: WritableSignal<oAddress>
|
|
7
|
-
schedule: WritableSignal<oSchedule>
|
|
8
|
-
businessData: WritableSignal<oBusinessInfo>
|
|
9
|
-
|
|
10
|
-
updateBusinessData(data: oBusinessInfo): boolean
|
|
11
|
-
|
|
12
|
-
getBusinessDataAPI(): oBusinessInfo
|
|
13
|
-
|
|
14
|
-
getBusinessDataLocal(): oBusinessInfo
|
|
15
|
-
|
|
16
|
-
initFormBusiness(): UntypedFormGroup
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface oSchedule {
|
|
20
|
-
day: string,
|
|
21
|
-
open: number,
|
|
22
|
-
close: number,
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type weekSchedule = {
|
|
26
|
-
monday: {
|
|
27
|
-
open?: string,
|
|
28
|
-
close?: string
|
|
29
|
-
},
|
|
30
|
-
tuesday: {
|
|
31
|
-
open?: string,
|
|
32
|
-
close?: string
|
|
33
|
-
},
|
|
34
|
-
wednesday: {
|
|
35
|
-
open?: string,
|
|
36
|
-
close?: string
|
|
37
|
-
},
|
|
38
|
-
thursday: {
|
|
39
|
-
open?: string,
|
|
40
|
-
close?: string
|
|
41
|
-
},
|
|
42
|
-
friday: {
|
|
43
|
-
open?: string,
|
|
44
|
-
close?: string
|
|
45
|
-
},
|
|
46
|
-
saturday: {
|
|
47
|
-
open?: string,
|
|
48
|
-
close?: string
|
|
49
|
-
},
|
|
50
|
-
sunday: {
|
|
51
|
-
open?: string,
|
|
52
|
-
close?: string
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface oBusinessInfo {
|
|
57
|
-
version: string,
|
|
58
|
-
name: string
|
|
59
|
-
desc?: string
|
|
60
|
-
address: oAddress
|
|
61
|
-
phones: string[]
|
|
62
|
-
email: string
|
|
63
|
-
schedule?: weekSchedule
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface oBusinessDeadlines {
|
|
67
|
-
weeks: number,
|
|
68
|
-
interest: number
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface oBusinessConfig {
|
|
72
|
-
adminVersion: string,
|
|
73
|
-
mobileVersion: string,
|
|
74
|
-
mobileVersionPrev: string,
|
|
75
|
-
apiVersion: string,
|
|
76
|
-
deadlines: oBusinessDeadlines[]
|
|
77
|
-
downloadsClient: boolean
|
|
78
|
-
passportPaymentReference: boolean
|
|
79
|
-
conektaPaymentReference: boolean
|
|
80
|
-
conektaPaymentLink: boolean
|
|
81
|
-
dynamicPaymentReference: boolean
|
|
82
|
-
apkUrl: string
|
|
83
|
-
version: string
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface oTmpBusinessConfig {
|
|
87
|
-
name?: string
|
|
88
|
-
email?: string
|
|
89
|
-
desc?: string
|
|
90
|
-
street?: string
|
|
91
|
-
neighbor?: string
|
|
92
|
-
cp?: string
|
|
93
|
-
ext?: string
|
|
94
|
-
int?: string
|
|
95
|
-
city?: string
|
|
96
|
-
state?: string
|
|
97
|
-
phones?: string[]
|
|
98
|
-
mondayOpen?: string
|
|
99
|
-
mondayClose?: string
|
|
100
|
-
tuesdayOpen?: string
|
|
101
|
-
tuesdayClose?: string
|
|
102
|
-
wednesdayOpen?: string
|
|
103
|
-
wednesdayClose?: string
|
|
104
|
-
thursdayOpen?: string
|
|
105
|
-
thursdayClose?: string
|
|
106
|
-
fridayOpen?: string
|
|
107
|
-
fridayClose?: string
|
|
108
|
-
saturdayOpen?: string
|
|
109
|
-
saturdayClose?: string
|
|
110
|
-
sundayOpen?: string
|
|
111
|
-
sundayClose?: string
|
|
112
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export interface oClientPayments {
|
|
2
|
-
date: number;
|
|
3
|
-
dayPayment: number;
|
|
4
|
-
amount: number;
|
|
5
|
-
id: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface oUserReference {
|
|
9
|
-
name: string,
|
|
10
|
-
phone: string,
|
|
11
|
-
relationship: string
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface oClientReferences {
|
|
15
|
-
date?: number;
|
|
16
|
-
amount?: number;
|
|
17
|
-
id: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface oClient {
|
|
22
|
-
id: string
|
|
23
|
-
name: string,
|
|
24
|
-
username: string,
|
|
25
|
-
password?: string,
|
|
26
|
-
email: string,
|
|
27
|
-
phone: string,
|
|
28
|
-
curp: string,
|
|
29
|
-
contract?: string,
|
|
30
|
-
createdAt?: number,
|
|
31
|
-
lastLogin?: number,
|
|
32
|
-
contract_temporary?: string,
|
|
33
|
-
exists?: boolean
|
|
34
|
-
conekta_id?: string
|
|
35
|
-
dynamic_id?: number | string
|
|
36
|
-
dynamic_account?: string | number,
|
|
37
|
-
dynamic_ref?: string,
|
|
38
|
-
passport_id?: string
|
|
39
|
-
payments?: oClientPayments[],
|
|
40
|
-
reference?: string,
|
|
41
|
-
references?: oClientReferences[],
|
|
42
|
-
token?: string
|
|
43
|
-
userReferences: oUserReference[],
|
|
44
|
-
contractUrl?: string,
|
|
45
|
-
status: string
|
|
46
|
-
}
|
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
export enum eConektaRes {
|
|
2
|
-
CUSTOMER_CREATED = 'customer.created',
|
|
3
|
-
ORDER_PENDING_PAYMENT = 'order.pending_payment',
|
|
4
|
-
ORDER_CREATED = 'order.created',
|
|
5
|
-
CHARGE_CREATED = 'charge.created',
|
|
6
|
-
ORDER_PAID = 'order.paid',
|
|
7
|
-
CHARGE_PAID = 'charge.paid',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum eConektaOrderStatus {
|
|
11
|
-
expired = 'expired',
|
|
12
|
-
paid = 'paid',
|
|
13
|
-
pending_payment = 'pending_payment',
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface oConektaResObjChargePaid {
|
|
17
|
-
id: string,
|
|
18
|
-
livemode: boolean
|
|
19
|
-
created_at: number
|
|
20
|
-
currency: string
|
|
21
|
-
payment_method: any
|
|
22
|
-
object: string
|
|
23
|
-
description: string
|
|
24
|
-
status: string
|
|
25
|
-
amount: number
|
|
26
|
-
paid_at: number
|
|
27
|
-
fee: number
|
|
28
|
-
customer_id: string
|
|
29
|
-
order_id: string
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface oConektaCustomerInfo {
|
|
33
|
-
email: string;
|
|
34
|
-
phone: string | null;
|
|
35
|
-
name: string;
|
|
36
|
-
corporate: boolean;
|
|
37
|
-
customer_id: string;
|
|
38
|
-
object: string;
|
|
39
|
-
customer_custom_reference: string | null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface oConektaChannel {
|
|
43
|
-
segment: string;
|
|
44
|
-
checkout_request_id: string;
|
|
45
|
-
checkout_request_type: string;
|
|
46
|
-
id: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface oConektaCheckout {
|
|
50
|
-
id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
livemode: boolean;
|
|
53
|
-
emails_sent: number;
|
|
54
|
-
success_url: string;
|
|
55
|
-
failure_url: string;
|
|
56
|
-
payments_limit_count: number | null;
|
|
57
|
-
paid_payments_count: number;
|
|
58
|
-
status: string;
|
|
59
|
-
type: string;
|
|
60
|
-
recurrent: boolean;
|
|
61
|
-
starts_at: number;
|
|
62
|
-
expires_at: number;
|
|
63
|
-
allowed_payment_methods: string[];
|
|
64
|
-
needs_shipping_contact: boolean;
|
|
65
|
-
redirection_time: number | null;
|
|
66
|
-
metadata: object;
|
|
67
|
-
can_not_expire: boolean;
|
|
68
|
-
object: string;
|
|
69
|
-
is_redirect_on_failure: boolean;
|
|
70
|
-
slug: string;
|
|
71
|
-
url: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface oConektaLineItem {
|
|
75
|
-
name: string;
|
|
76
|
-
description: string | null;
|
|
77
|
-
unit_price: number;
|
|
78
|
-
quantity: number;
|
|
79
|
-
sku: string | null;
|
|
80
|
-
tags: string[] | null;
|
|
81
|
-
brand: string | null;
|
|
82
|
-
type: string | null;
|
|
83
|
-
object: string;
|
|
84
|
-
id: string;
|
|
85
|
-
parent_id: string;
|
|
86
|
-
metadata: object;
|
|
87
|
-
antifraud_info: object;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface oConektaLineItems {
|
|
91
|
-
object: string;
|
|
92
|
-
has_more: boolean;
|
|
93
|
-
total: number;
|
|
94
|
-
data: oConektaLineItem[];
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface oConektaCharges {
|
|
98
|
-
object: string;
|
|
99
|
-
has_more: boolean;
|
|
100
|
-
total: number;
|
|
101
|
-
data: oConektaChargeData[];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface oConektaPaymentMethod {
|
|
105
|
-
service_name: string;
|
|
106
|
-
barcode_url: string;
|
|
107
|
-
store: string;
|
|
108
|
-
auth_code: number;
|
|
109
|
-
object: string;
|
|
110
|
-
type: string;
|
|
111
|
-
expires_at: number;
|
|
112
|
-
store_name: string;
|
|
113
|
-
reference: string;
|
|
114
|
-
cashier_id: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface oConektaChargeData {
|
|
118
|
-
id: string;
|
|
119
|
-
livemode: boolean;
|
|
120
|
-
created_at: number;
|
|
121
|
-
currency: string;
|
|
122
|
-
failure_code: string | null;
|
|
123
|
-
failure_message: string | null;
|
|
124
|
-
channel: oConektaChannel;
|
|
125
|
-
payment_method: oConektaPaymentMethod;
|
|
126
|
-
object: string;
|
|
127
|
-
device_fingerprint: string;
|
|
128
|
-
description: string;
|
|
129
|
-
is_refundable: boolean;
|
|
130
|
-
reference_id: string | null;
|
|
131
|
-
status: string;
|
|
132
|
-
amount: number;
|
|
133
|
-
paid_at: number;
|
|
134
|
-
customer_id: string;
|
|
135
|
-
order_id: string;
|
|
136
|
-
is_button_premia: boolean;
|
|
137
|
-
refunds: string | null;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface oConektaResObjOrderPaid {
|
|
141
|
-
livemode: boolean
|
|
142
|
-
amount: number
|
|
143
|
-
currency: string
|
|
144
|
-
payment_status: string
|
|
145
|
-
amount_refunded: number
|
|
146
|
-
customer_info: oConektaCustomerInfo,
|
|
147
|
-
object: string
|
|
148
|
-
id: string
|
|
149
|
-
metadata: any
|
|
150
|
-
is_refundable: boolean
|
|
151
|
-
created_at: number
|
|
152
|
-
updated_at: number
|
|
153
|
-
line_items: any
|
|
154
|
-
charges: any
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface oConektaCustomerInfo {
|
|
158
|
-
email: string;
|
|
159
|
-
phone: string | null;
|
|
160
|
-
name: string;
|
|
161
|
-
corporate: boolean;
|
|
162
|
-
customer_id: string;
|
|
163
|
-
object: string;
|
|
164
|
-
customer_custom_reference: string | null;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface oConektaOrder {
|
|
168
|
-
livemode: boolean;
|
|
169
|
-
amount: number;
|
|
170
|
-
currency: string;
|
|
171
|
-
payment_status: string;
|
|
172
|
-
amount_refunded: number;
|
|
173
|
-
customer_info: oConektaCustomerInfo;
|
|
174
|
-
shipping_contact: string | null;
|
|
175
|
-
channel: oConektaChannel;
|
|
176
|
-
fiscal_entity: string | null;
|
|
177
|
-
object: string;
|
|
178
|
-
id: string;
|
|
179
|
-
metadata: object;
|
|
180
|
-
is_refundable: boolean;
|
|
181
|
-
created_at: number;
|
|
182
|
-
updated_at: number;
|
|
183
|
-
checkout: oConektaCheckout;
|
|
184
|
-
is_button_premia: boolean;
|
|
185
|
-
line_items: oConektaLineItems;
|
|
186
|
-
shipping_lines: string | null;
|
|
187
|
-
tax_lines: string | null;
|
|
188
|
-
discount_lines: string | null;
|
|
189
|
-
charges: oConektaCharges;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface oConektaOrdersResponse {
|
|
193
|
-
next_page_url: string | null;
|
|
194
|
-
previous_page_url: string | null;
|
|
195
|
-
has_more: boolean;
|
|
196
|
-
object: string;
|
|
197
|
-
data: oConektaOrder[];
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/******************************************************* Order Create */
|
|
201
|
-
export interface oConektaNewOrderCustomerInfo {
|
|
202
|
-
customer_id: string;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export interface oConektaNewOrderPymMethod {
|
|
206
|
-
expires_at: number;
|
|
207
|
-
type: string;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export interface oConektaNewOrderCharge {
|
|
211
|
-
payment_method: oConektaNewOrderPymMethod;
|
|
212
|
-
amount: number;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface oConektaNewOrderAntifraudInfo {
|
|
216
|
-
newKey: string;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export interface oConektaNewOrderLineItem {
|
|
220
|
-
antifraud_info: oConektaNewOrderAntifraudInfo;
|
|
221
|
-
name: string;
|
|
222
|
-
quantity: number;
|
|
223
|
-
unit_price: number;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export interface oConektaOrderCreate {
|
|
227
|
-
customer_info: oConektaNewOrderCustomerInfo;
|
|
228
|
-
charges: oConektaNewOrderCharge[];
|
|
229
|
-
currency: string;
|
|
230
|
-
line_items: oConektaNewOrderLineItem[];
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface oConektaNewOrder {
|
|
234
|
-
data: oConektaOrderCreate;
|
|
235
|
-
date?: number,
|
|
236
|
-
id: string
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/* ****************************************************************************** */
|
|
240
|
-
|
|
241
|
-
export interface oConektaResPrevAttr {
|
|
242
|
-
status: string
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export interface oConektaResData {
|
|
246
|
-
object: oConektaResObjChargePaid | oConektaResObjOrderPaid
|
|
247
|
-
previous_attributes: oConektaResPrevAttr
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export interface iConektaResObjChargePaidMethod {
|
|
251
|
-
barcode_url: string
|
|
252
|
-
expires_at: number
|
|
253
|
-
object: string
|
|
254
|
-
reference: string
|
|
255
|
-
service_name: string
|
|
256
|
-
store: string
|
|
257
|
-
type: string
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface iConektaResObjChargePaid {
|
|
261
|
-
id: string,
|
|
262
|
-
livemode: boolean
|
|
263
|
-
created_at: number
|
|
264
|
-
currency: string
|
|
265
|
-
payment_method: iConektaResObjChargePaidMethod
|
|
266
|
-
object: string
|
|
267
|
-
description: string
|
|
268
|
-
status: string
|
|
269
|
-
amount: number
|
|
270
|
-
paid_at: number
|
|
271
|
-
fee: number
|
|
272
|
-
customer_id: string
|
|
273
|
-
order_id: string
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export interface iConektaResPrevAttr {
|
|
277
|
-
status: string;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export interface iConektaResData {
|
|
281
|
-
object: iConektaResObjChargePaid;
|
|
282
|
-
previous_attributes: iConektaResPrevAttr;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface oConektaRes {
|
|
286
|
-
client_id?: string
|
|
287
|
-
data: iConektaResData
|
|
288
|
-
livemode: false,
|
|
289
|
-
webhook_status: string
|
|
290
|
-
webhook_logs: any[],
|
|
291
|
-
id: string
|
|
292
|
-
object: string
|
|
293
|
-
type: eConektaRes
|
|
294
|
-
created_at: number
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/******************************************************* New reference res */
|
|
298
|
-
export interface iConektaSources {
|
|
299
|
-
type: string,
|
|
300
|
-
expires_at?: number
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export interface iOxxorecurrentSourcesData {
|
|
304
|
-
id: string,
|
|
305
|
-
object: string,
|
|
306
|
-
type: string,
|
|
307
|
-
provider: string,
|
|
308
|
-
reference: string,
|
|
309
|
-
barcode: string,
|
|
310
|
-
barcode_url: string,
|
|
311
|
-
expires_at: number,
|
|
312
|
-
created_at: number,
|
|
313
|
-
parent_id: string
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export interface iOxxoRecurrentSources {
|
|
317
|
-
object: string,
|
|
318
|
-
has_more: boolean,
|
|
319
|
-
total: number,
|
|
320
|
-
data: iOxxorecurrentSourcesData[]
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export interface iConektaRecurrent {
|
|
324
|
-
corporate: boolean,
|
|
325
|
-
created_at: number,
|
|
326
|
-
customer_reference?: string
|
|
327
|
-
email: string
|
|
328
|
-
id: string
|
|
329
|
-
livemode: boolean,
|
|
330
|
-
name: string
|
|
331
|
-
phone: string
|
|
332
|
-
object: string
|
|
333
|
-
custom_id: string,
|
|
334
|
-
payment_sources: iOxxoRecurrentSources
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
/******************************************************* New reference constant */
|
|
338
|
-
export const cOxxorecurrentSourcesData: iOxxorecurrentSourcesData = {
|
|
339
|
-
id: "",
|
|
340
|
-
object: "",
|
|
341
|
-
type: "",
|
|
342
|
-
provider: "",
|
|
343
|
-
reference: "",
|
|
344
|
-
barcode: "",
|
|
345
|
-
barcode_url: "",
|
|
346
|
-
expires_at: 0,
|
|
347
|
-
created_at: 0,
|
|
348
|
-
parent_id: ""
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
export const cOxxoRecurrentSources: iOxxoRecurrentSources = {
|
|
352
|
-
object: "",
|
|
353
|
-
has_more: false,
|
|
354
|
-
total: 0,
|
|
355
|
-
data: []
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
export const cConektaRecurrent: iConektaRecurrent = {
|
|
359
|
-
livemode: false,
|
|
360
|
-
name: "",
|
|
361
|
-
email: "",
|
|
362
|
-
phone: "",
|
|
363
|
-
id: "",
|
|
364
|
-
object: "",
|
|
365
|
-
created_at: 0,
|
|
366
|
-
corporate: false,
|
|
367
|
-
custom_id: "",
|
|
368
|
-
payment_sources: cOxxoRecurrentSources
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
//
|
|
372
|
-
// {
|
|
373
|
-
// data: {
|
|
374
|
-
// object: {
|
|
375
|
-
// id: '66bf1b25e341ed00158a169a',
|
|
376
|
-
// livemode: false,
|
|
377
|
-
// created_at: 1723800357,
|
|
378
|
-
// currency: 'MXN',
|
|
379
|
-
// payment_method: [Object],
|
|
380
|
-
// object: 'charge',
|
|
381
|
-
// description: 'Payment from order',
|
|
382
|
-
// status: 'paid',
|
|
383
|
-
// amount: 28125,
|
|
384
|
-
// paid_at: 1723800396,
|
|
385
|
-
// fee: 1273,
|
|
386
|
-
// customer_id: '',
|
|
387
|
-
// order_id: 'ord_2wTWbvyFgywHDvTZg'
|
|
388
|
-
// },
|
|
389
|
-
// previous_attributes: { status: 'pending_payment' }
|
|
390
|
-
// },
|
|
391
|
-
// livemode: false,
|
|
392
|
-
// webhook_status: 'pending',
|
|
393
|
-
// webhook_logs: [
|
|
394
|
-
// {
|
|
395
|
-
// id: 'webhl_2wTWcRE8ThHpvG1QQ',
|
|
396
|
-
// url: 'https://b1b6-2806-230-2610-b3ed-dcbe-6d32-758f-17c6.ngrok-free.app/api/v1/webhook',
|
|
397
|
-
// failed_attempts: 0,
|
|
398
|
-
// last_http_response_status: -1,
|
|
399
|
-
// response_data: null,
|
|
400
|
-
// object: 'webhook_log',
|
|
401
|
-
// last_attempted_at: 0
|
|
402
|
-
// }
|
|
403
|
-
// ],
|
|
404
|
-
// id: '66bf1b4c2973ff0001dff653',
|
|
405
|
-
// object: 'event',
|
|
406
|
-
// type: 'charge.paid',
|
|
407
|
-
// created_at: 1723800396
|
|
408
|
-
// }
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {oAddress} from "./oAddress";
|
|
2
|
-
import {oDevice} from "./oDevice";
|
|
3
|
-
import {oFinancial} from "./oFinancial";
|
|
4
|
-
import {oAsset} from '../../v2/objects/oAsset';
|
|
5
|
-
|
|
6
|
-
export interface iContract {
|
|
7
|
-
createContract(data: any, monthlyPay: number, finalPayment: number): Promise<void>
|
|
8
|
-
|
|
9
|
-
editContract(): void
|
|
10
|
-
|
|
11
|
-
verifyClient(clientCurp: string): Promise<void>
|
|
12
|
-
|
|
13
|
-
dataClient(client: string): void
|
|
14
|
-
|
|
15
|
-
referenceAdded(reference: number): Promise<void>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface oContract {
|
|
19
|
-
id: string
|
|
20
|
-
dynamicAccount?: number
|
|
21
|
-
client: string
|
|
22
|
-
address: oAddress
|
|
23
|
-
device: oDevice
|
|
24
|
-
financial: oFinancial
|
|
25
|
-
createdAt?: number
|
|
26
|
-
lastPayment?: number
|
|
27
|
-
by: string,
|
|
28
|
-
active: boolean,
|
|
29
|
-
photo?: string,
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {tyClientContract} from "./oGlobal";
|
|
2
|
-
// import {IDCAccount} from "../util/UtilDynamiCore";
|
|
3
|
-
import {oClient} from "./oClient";
|
|
4
|
-
import {oContract} from "./oContract";
|
|
5
|
-
import {IDCAccount} from '../util/UtilDynamiCore';
|
|
6
|
-
|
|
7
|
-
export interface iContractAll {
|
|
8
|
-
|
|
9
|
-
getAllLocal(): Promise<void>
|
|
10
|
-
|
|
11
|
-
getAllServer(): Promise<void>
|
|
12
|
-
|
|
13
|
-
getDynamicTransactionsManual(account: number): Promise<boolean>
|
|
14
|
-
|
|
15
|
-
createNewReferenceDynamic(client: tyClientContract): Promise<boolean>
|
|
16
|
-
|
|
17
|
-
createNewReferenceConekta(client: tyClientContract): Promise<void>
|
|
18
|
-
|
|
19
|
-
createNewReferencePassport(client: tyClientContract): Promise<void>
|
|
20
|
-
|
|
21
|
-
referenceCreated(response: boolean, provider: string): void
|
|
22
|
-
|
|
23
|
-
getColumnName(column: string): string
|
|
24
|
-
|
|
25
|
-
searchDynamicAccount(client: tyClientContract): Promise<IDCAccount | null>
|
|
26
|
-
|
|
27
|
-
updateClient(client: Partial<oClient>): Promise<boolean>
|
|
28
|
-
|
|
29
|
-
updateContract(id: string, contract: Partial<oContract>): Promise<boolean>
|
|
30
|
-
|
|
31
|
-
deleteClient(client: oClient): Promise<boolean>
|
|
32
|
-
|
|
33
|
-
deleteContract(contract: oContract): Promise<boolean>
|
|
34
|
-
|
|
35
|
-
updateClientAppAccess(client: Partial<oClient>, id: string): Promise<boolean>
|
|
36
|
-
|
|
37
|
-
calcTotal(contract: oContract): number
|
|
38
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface oCustomer {
|
|
2
|
-
livemode: boolean
|
|
3
|
-
name: string
|
|
4
|
-
email: string
|
|
5
|
-
phone: string
|
|
6
|
-
id: string
|
|
7
|
-
object: string
|
|
8
|
-
created_at: number
|
|
9
|
-
corporate: boolean
|
|
10
|
-
custom_reference: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export interface oCustomerInfo {
|
|
15
|
-
customer_id: string
|
|
16
|
-
name?: string
|
|
17
|
-
email?: string
|
|
18
|
-
phone?: string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//
|
|
22
|
-
// export interface iCustomerInfo = Pick<iCustomer, email | id | name | phone> {
|
|
23
|
-
//
|
|
24
|
-
// customer_id:string
|
|
25
|
-
// }
|
|
26
|
-
// {
|
|
27
|
-
// livemode: false,
|
|
28
|
-
// name: Vicente Mendoza,
|
|
29
|
-
// email: vicente.mendoza@conekta.com,
|
|
30
|
-
// phone: 5566982093,
|
|
31
|
-
// id: cus_2wHtqBNsSggaYdfXu,
|
|
32
|
-
// object: customer,
|
|
33
|
-
// created_at: 1721258796,
|
|
34
|
-
// corporate: false,
|
|
35
|
-
// custom_reference:
|
|
36
|
-
// }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {oBusinessDeadlines} from "./oBusiness";
|
|
2
|
-
|
|
3
|
-
export interface oFinancialProgress {
|
|
4
|
-
id: string;
|
|
5
|
-
amount: number;
|
|
6
|
-
date: number
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface oFinancial {
|
|
10
|
-
total: number,
|
|
11
|
-
initial: number,
|
|
12
|
-
deadlines: oBusinessDeadlines, // length = installments
|
|
13
|
-
initDate?: number
|
|
14
|
-
finalDate?: number
|
|
15
|
-
weeklyPayment: number
|
|
16
|
-
dayCut?: number
|
|
17
|
-
finalPayment?: number
|
|
18
|
-
progress?: oFinancialProgress[],
|
|
19
|
-
pendingOf: string[]
|
|
20
|
-
interest: number,
|
|
21
|
-
provider: string
|
|
22
|
-
financed: number,
|
|
23
|
-
nextPayment: number,
|
|
24
|
-
amount_commission_opening?: number // comision por apertura dynamic
|
|
25
|
-
principal_disbursed?: number // :/
|
|
26
|
-
expected_disbursed?: number // :/
|
|
27
|
-
credit_type?: string // -----------------------
|
|
28
|
-
interest_rate?: number // anual interest credit dynamic %
|
|
29
|
-
commission_opening?: number, // comision por apertura de credito %
|
|
30
|
-
interest_arrears?: number, // intereses moratorios dynamic bps
|
|
31
|
-
clabe?: string
|
|
32
|
-
}
|