ravcredit-lib 0.0.26 → 0.0.28

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.
Files changed (68) hide show
  1. package/ng-package.json +7 -0
  2. package/package.json +14 -25
  3. package/src/index.d.ts +61 -0
  4. package/src/lib/ravcredit-lib.component.spec.ts +23 -0
  5. package/src/lib/ravcredit-lib.component.ts +16 -0
  6. package/src/lib/ravcredit-lib.service.spec.ts +16 -0
  7. package/src/lib/ravcredit-lib.service.ts +9 -0
  8. package/src/lib/v1/const/constants.ts +37 -0
  9. package/src/lib/v1/idb/idb.service.spec.ts +16 -0
  10. package/src/lib/v1/idb/indexed-db.service.ts +396 -0
  11. package/src/lib/v1/objects/oAddress.ts +9 -0
  12. package/src/lib/v1/objects/oBusiness.ts +93 -0
  13. package/src/lib/v1/objects/oClient.ts +46 -0
  14. package/src/lib/v1/objects/oConekta.ts +361 -0
  15. package/src/lib/v1/objects/oContract.ts +31 -0
  16. package/src/lib/v1/objects/oContractAll.ts +37 -0
  17. package/src/lib/v1/objects/oCustomer.ts +36 -0
  18. package/src/lib/v1/objects/oDevice.ts +5 -0
  19. package/src/lib/v1/objects/oFinancial.ts +32 -0
  20. package/src/lib/v1/objects/oLogIn.ts +26 -0
  21. package/src/lib/v1/objects/oNewPayment.ts +18 -0
  22. package/src/lib/v1/objects/oNotification.ts +33 -0
  23. package/src/lib/v1/objects/oPassport.ts +60 -0
  24. package/src/lib/v1/objects/oUser.ts +35 -0
  25. package/src/lib/v1/objects/oVerification.ts +79 -0
  26. package/src/lib/v1/util/UtilBusiness.ts +187 -0
  27. package/src/lib/v1/util/UtilClient.ts +300 -0
  28. package/src/lib/v1/util/UtilConekta.ts +97 -0
  29. package/src/lib/v1/util/UtilContract.ts +430 -0
  30. package/src/lib/v1/util/UtilDashboard.ts +19 -0
  31. package/src/lib/v1/util/UtilDynamiCore.ts +752 -0
  32. package/src/lib/v1/util/UtilNotification.ts +46 -0
  33. package/src/lib/v1/util/UtilPassport.ts +33 -0
  34. package/src/lib/v1/util/UtilPayment.ts +22 -0
  35. package/src/lib/v1/util/UtilTime.ts +179 -0
  36. package/src/lib/v1/util/UtilsHttp.ts +25 -0
  37. package/src/lib/v2/constant/constants.ts +125 -0
  38. package/src/lib/v2/constant/messages.ts +28 -0
  39. package/src/lib/v2/enum/EnumAsset.ts +4 -0
  40. package/src/lib/v2/enum/EnumAuth.ts +29 -0
  41. package/src/lib/v2/enum/EnumClient.ts +7 -0
  42. package/src/lib/v2/enum/EnumConekta.ts +14 -0
  43. package/src/lib/v2/enum/EnumDynamic.ts +8 -0
  44. package/src/lib/v2/enum/EnumNotification.ts +1 -0
  45. package/src/lib/v2/enum/EnumPassport.ts +4 -0
  46. package/src/lib/v2/enum/EnumPayment.ts +5 -0
  47. package/src/lib/v2/enum/EnumRoles.ts +7 -0
  48. package/src/lib/v2/enum/EnumToken.ts +11 -0
  49. package/src/lib/v2/enum/EnumUtil.ts +22 -0
  50. package/src/lib/v2/enum/EnumVerification.ts +22 -0
  51. package/src/lib/v2/objects/oAsset.ts +44 -0
  52. package/src/lib/v2/objects/oAws.ts +8 -0
  53. package/src/lib/v2/objects/oCatalog.ts +6 -0
  54. package/src/lib/v2/objects/oClient.ts +36 -0
  55. package/src/lib/v2/objects/oCompany.ts +10 -0
  56. package/src/lib/v2/objects/oContract.ts +10 -0
  57. package/src/lib/v2/objects/oHttp.ts +33 -0
  58. package/src/lib/v2/objects/oMediaDto.ts +10 -0
  59. package/src/lib/v2/objects/oMessaging.ts +10 -0
  60. package/src/lib/v2/objects/oScoreDto.ts +38 -0
  61. package/src/lib/v2/objects/oUtil.ts +68 -0
  62. package/src/public-api.ts +66 -0
  63. package/tsconfig.lib.json +15 -0
  64. package/tsconfig.lib.prod.json +11 -0
  65. package/tsconfig.spec.json +15 -0
  66. package/fesm2022/ravcredit-lib.mjs +0 -2182
  67. package/fesm2022/ravcredit-lib.mjs.map +0 -1
  68. package/index.d.ts +0 -1881
@@ -0,0 +1,93 @@
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
+ getBusinessDataAPI(): oBusinessInfo
12
+ getBusinessDataLocal(): oBusinessInfo
13
+ initFormBusiness(): UntypedFormGroup
14
+ }
15
+
16
+ export interface oSchedule {
17
+ day: string,
18
+ open: number,
19
+ close: number,
20
+ }
21
+
22
+ export interface oDaySchedule {
23
+ open: number,
24
+ close: number,
25
+ }
26
+
27
+ export type oWeekSchedule = {
28
+ monday: oDaySchedule,
29
+ tuesday: oDaySchedule,
30
+ wednesday: oDaySchedule,
31
+ thursday: oDaySchedule,
32
+ friday: oDaySchedule,
33
+ saturday: oDaySchedule,
34
+ sunday: oDaySchedule
35
+ }
36
+
37
+ export interface oBusinessInfo {
38
+ version: string,
39
+ name: string
40
+ desc?: string
41
+ address: oAddress
42
+ phones: string[]
43
+ email: string
44
+ schedule?: oWeekSchedule
45
+ }
46
+
47
+ export interface oBusinessDeadlines {
48
+ weeks: number,
49
+ interest: number
50
+ }
51
+
52
+ export interface oBusinessConfig {
53
+ adminVersion: string,
54
+ mobileVersion: string,
55
+ mobileVersionPrev: string,
56
+ apiVersion: string,
57
+ deadlines: oBusinessDeadlines[]
58
+ downloadsClient: boolean
59
+ passportPaymentReference: boolean
60
+ conektaPaymentReference: boolean
61
+ conektaPaymentLink: boolean
62
+ dynamicPaymentReference: boolean
63
+ apkUrl: string
64
+ version: string
65
+ }
66
+
67
+ export interface oTmpBusinessConfig {
68
+ name?: string
69
+ email?: string
70
+ desc?: string
71
+ street?: string
72
+ neighbor?: string
73
+ cp?: string
74
+ ext?: string
75
+ int?: string
76
+ city?: string
77
+ state?: string
78
+ phones?: string[]
79
+ mondayOpen?: string| number
80
+ mondayClose?: string
81
+ tuesdayOpen?: string
82
+ tuesdayClose?: string
83
+ wednesdayOpen?: string
84
+ wednesdayClose?: string
85
+ thursdayOpen?: string
86
+ thursdayClose?: string
87
+ fridayOpen?: string
88
+ fridayClose?: string
89
+ saturdayOpen?: string
90
+ saturdayClose?: string
91
+ sundayOpen?: string
92
+ sundayClose?: string
93
+ }
@@ -0,0 +1,46 @@
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
+ }
@@ -0,0 +1,361 @@
1
+ import {eConektaRes} from '../../v2/enum/EnumConekta';
2
+
3
+ export interface oConektaResObjChargePaid {
4
+ id: string,
5
+ livemode: boolean
6
+ created_at: number
7
+ currency: string
8
+ payment_method: any
9
+ object: string
10
+ description: string
11
+ status: string
12
+ amount: number
13
+ paid_at: number
14
+ fee: number
15
+ customer_id: string
16
+ order_id: string
17
+ }
18
+
19
+ export interface oConektaCustomerInfo {
20
+ email: string;
21
+ phone: string | null;
22
+ name: string;
23
+ corporate: boolean;
24
+ customer_id: string;
25
+ object: string;
26
+ customer_custom_reference: string | null;
27
+ }
28
+
29
+ export interface oConektaChannel {
30
+ segment: string;
31
+ checkout_request_id: string;
32
+ checkout_request_type: string;
33
+ id: string;
34
+ }
35
+
36
+ export interface oConektaCheckout {
37
+ id: string;
38
+ name: string;
39
+ livemode: boolean;
40
+ emails_sent: number;
41
+ success_url: string;
42
+ failure_url: string;
43
+ payments_limit_count: number | null;
44
+ paid_payments_count: number;
45
+ status: string;
46
+ type: string;
47
+ recurrent: boolean;
48
+ starts_at: number;
49
+ expires_at: number;
50
+ allowed_payment_methods: string[];
51
+ needs_shipping_contact: boolean;
52
+ redirection_time: number | null;
53
+ metadata: object;
54
+ can_not_expire: boolean;
55
+ object: string;
56
+ is_redirect_on_failure: boolean;
57
+ slug: string;
58
+ url: string;
59
+ }
60
+
61
+ export interface oConektaLineItem {
62
+ name: string;
63
+ description: string | null;
64
+ unit_price: number;
65
+ quantity: number;
66
+ sku: string | null;
67
+ tags: string[] | null;
68
+ brand: string | null;
69
+ type: string | null;
70
+ object: string;
71
+ id: string;
72
+ parent_id: string;
73
+ metadata: object;
74
+ antifraud_info: object;
75
+ }
76
+
77
+ export interface oConektaLineItems {
78
+ object: string;
79
+ has_more: boolean;
80
+ total: number;
81
+ data: oConektaLineItem[];
82
+ }
83
+
84
+ export interface oConektaCharges {
85
+ object: string;
86
+ has_more: boolean;
87
+ total: number;
88
+ data: oConektaChargeData[];
89
+ }
90
+
91
+ export interface oConektaPaymentMethod {
92
+ service_name: string;
93
+ barcode_url: string;
94
+ store: string;
95
+ auth_code: number;
96
+ object: string;
97
+ type: string;
98
+ expires_at: number;
99
+ store_name: string;
100
+ reference: string;
101
+ cashier_id: string;
102
+ }
103
+
104
+ export interface oConektaChargeData {
105
+ id: string;
106
+ livemode: boolean;
107
+ created_at: number;
108
+ currency: string;
109
+ failure_code: string | null;
110
+ failure_message: string | null;
111
+ channel: oConektaChannel;
112
+ payment_method: oConektaPaymentMethod;
113
+ object: string;
114
+ device_fingerprint: string;
115
+ description: string;
116
+ is_refundable: boolean;
117
+ reference_id: string | null;
118
+ status: string;
119
+ amount: number;
120
+ paid_at: number;
121
+ customer_id: string;
122
+ order_id: string;
123
+ is_button_premia: boolean;
124
+ refunds: string | null;
125
+ }
126
+
127
+ export interface oConektaResObjOrderPaid {
128
+ livemode: boolean
129
+ amount: number
130
+ currency: string
131
+ payment_status: string
132
+ amount_refunded: number
133
+ customer_info: oConektaCustomerInfo,
134
+ object: string
135
+ id: string
136
+ metadata: any
137
+ is_refundable: boolean
138
+ created_at: number
139
+ updated_at: number
140
+ line_items: any
141
+ charges: any
142
+ }
143
+
144
+ export interface oConektaCustomerInfo {
145
+ email: string;
146
+ phone: string | null;
147
+ name: string;
148
+ corporate: boolean;
149
+ customer_id: string;
150
+ object: string;
151
+ customer_custom_reference: string | null;
152
+ }
153
+
154
+ export interface oConektaOrder {
155
+ livemode: boolean;
156
+ amount: number;
157
+ currency: string;
158
+ payment_status: string;
159
+ amount_refunded: number;
160
+ customer_info: oConektaCustomerInfo;
161
+ shipping_contact: string | null;
162
+ channel: oConektaChannel;
163
+ fiscal_entity: string | null;
164
+ object: string;
165
+ id: string;
166
+ metadata: object;
167
+ is_refundable: boolean;
168
+ created_at: number;
169
+ updated_at: number;
170
+ checkout: oConektaCheckout;
171
+ is_button_premia: boolean;
172
+ line_items: oConektaLineItems;
173
+ shipping_lines: string | null;
174
+ tax_lines: string | null;
175
+ discount_lines: string | null;
176
+ charges: oConektaCharges;
177
+ }
178
+
179
+ export interface oConektaOrdersResponse {
180
+ next_page_url: string | null;
181
+ previous_page_url: string | null;
182
+ has_more: boolean;
183
+ object: string;
184
+ data: oConektaOrder[];
185
+ }
186
+
187
+ /******************************************************* Order Create */
188
+ export interface oConektaNewOrderCustomerInfo {
189
+ customer_id: string;
190
+ }
191
+
192
+ export interface oConektaNewOrderPymMethod {
193
+ expires_at: number;
194
+ type: string;
195
+ }
196
+
197
+ export interface oConektaNewOrderCharge {
198
+ payment_method: oConektaNewOrderPymMethod;
199
+ amount: number;
200
+ }
201
+
202
+ export interface oConektaNewOrderAntifraudInfo {
203
+ newKey: string;
204
+ }
205
+
206
+ export interface oConektaNewOrderLineItem {
207
+ antifraud_info: oConektaNewOrderAntifraudInfo;
208
+ name: string;
209
+ quantity: number;
210
+ unit_price: number;
211
+ }
212
+
213
+ export interface oConektaOrderCreate {
214
+ customer_info: oConektaNewOrderCustomerInfo;
215
+ charges: oConektaNewOrderCharge[];
216
+ currency: string;
217
+ line_items: oConektaNewOrderLineItem[];
218
+ }
219
+
220
+ export interface oConektaNewOrder {
221
+ data: oConektaOrderCreate;
222
+ date?: number,
223
+ id: string
224
+ }
225
+
226
+ /* ****************************************************************************** */
227
+
228
+ export interface oConektaResPrevAttr {
229
+ status: string
230
+ }
231
+
232
+ export interface oConektaResData {
233
+ object: oConektaResObjChargePaid | oConektaResObjOrderPaid
234
+ previous_attributes: oConektaResPrevAttr
235
+ }
236
+
237
+ export interface iConektaResObjChargePaidMethod {
238
+ barcode_url: string
239
+ expires_at: number
240
+ object: string
241
+ reference: string
242
+ service_name: string
243
+ store: string
244
+ type: string
245
+ }
246
+
247
+ export interface iConektaResObjChargePaid {
248
+ id: string,
249
+ livemode: boolean
250
+ created_at: number
251
+ currency: string
252
+ payment_method: iConektaResObjChargePaidMethod
253
+ object: string
254
+ description: string
255
+ status: string
256
+ amount: number
257
+ paid_at: number
258
+ fee: number
259
+ customer_id: string
260
+ order_id: string
261
+ }
262
+
263
+ export interface iConektaResPrevAttr {
264
+ status: string;
265
+ }
266
+
267
+ export interface iConektaResData {
268
+ object: iConektaResObjChargePaid;
269
+ previous_attributes: iConektaResPrevAttr;
270
+ }
271
+
272
+ export interface oConektaRes {
273
+ client_id?: string
274
+ data: iConektaResData
275
+ livemode: false,
276
+ webhook_status: string
277
+ webhook_logs: any[],
278
+ id: string
279
+ object: string
280
+ type: eConektaRes
281
+ created_at: number
282
+ }
283
+
284
+ /******************************************************* New reference res */
285
+ export interface iConektaSources {
286
+ type: string,
287
+ expires_at?: number
288
+ }
289
+
290
+ export interface iOxxorecurrentSourcesData {
291
+ id: string,
292
+ object: string,
293
+ type: string,
294
+ provider: string,
295
+ reference: string,
296
+ barcode: string,
297
+ barcode_url: string,
298
+ expires_at: number,
299
+ created_at: number,
300
+ parent_id: string
301
+ }
302
+
303
+ export interface iOxxoRecurrentSources {
304
+ object: string,
305
+ has_more: boolean,
306
+ total: number,
307
+ data: iOxxorecurrentSourcesData[]
308
+ }
309
+
310
+ export interface iConektaRecurrent {
311
+ corporate: boolean,
312
+ created_at: number,
313
+ customer_reference?: string
314
+ email: string
315
+ id: string
316
+ livemode: boolean,
317
+ name: string
318
+ phone: string
319
+ object: string
320
+ custom_id: string,
321
+ payment_sources: iOxxoRecurrentSources
322
+ }
323
+
324
+ //
325
+ // {
326
+ // data: {
327
+ // object: {
328
+ // id: '66bf1b25e341ed00158a169a',
329
+ // livemode: false,
330
+ // created_at: 1723800357,
331
+ // currency: 'MXN',
332
+ // payment_method: [Object],
333
+ // object: 'charge',
334
+ // description: 'Payment from order',
335
+ // status: 'paid',
336
+ // amount: 28125,
337
+ // paid_at: 1723800396,
338
+ // fee: 1273,
339
+ // customer_id: '',
340
+ // order_id: 'ord_2wTWbvyFgywHDvTZg'
341
+ // },
342
+ // previous_attributes: { status: 'pending_payment' }
343
+ // },
344
+ // livemode: false,
345
+ // webhook_status: 'pending',
346
+ // webhook_logs: [
347
+ // {
348
+ // id: 'webhl_2wTWcRE8ThHpvG1QQ',
349
+ // url: 'https://b1b6-2806-230-2610-b3ed-dcbe-6d32-758f-17c6.ngrok-free.app/api/v1/webhook',
350
+ // failed_attempts: 0,
351
+ // last_http_response_status: -1,
352
+ // response_data: null,
353
+ // object: 'webhook_log',
354
+ // last_attempted_at: 0
355
+ // }
356
+ // ],
357
+ // id: '66bf1b4c2973ff0001dff653',
358
+ // object: 'event',
359
+ // type: 'charge.paid',
360
+ // created_at: 1723800396
361
+ // }
@@ -0,0 +1,31 @@
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
+
@@ -0,0 +1,37 @@
1
+ import {oClient} from "./oClient";
2
+ import {oContract} from "./oContract";
3
+ import {IDCAccount} from '../util/UtilDynamiCore';
4
+ import { tyClientContract } from "../../v2/objects/oUtil";
5
+
6
+ export interface iContractAll {
7
+
8
+ getAllLocal(): Promise<void>
9
+
10
+ getAllServer(): Promise<void>
11
+
12
+ getDynamicTransactionsManual(account: number): Promise<boolean>
13
+
14
+ createNewReferenceDynamic(client: tyClientContract): Promise<boolean>
15
+
16
+ createNewReferenceConekta(client: tyClientContract): Promise<void>
17
+
18
+ createNewReferencePassport(client: tyClientContract): Promise<void>
19
+
20
+ referenceCreated(response: boolean, provider: string): void
21
+
22
+ getColumnName(column: string): string
23
+
24
+ searchDynamicAccount(client: tyClientContract): Promise<IDCAccount | null>
25
+
26
+ updateClient(client: Partial<oClient>): Promise<boolean>
27
+
28
+ updateContract(id: string, contract: Partial<oContract>): Promise<boolean>
29
+
30
+ deleteClient(client: oClient): Promise<boolean>
31
+
32
+ deleteContract(contract: oContract): Promise<boolean>
33
+
34
+ updateClientAppAccess(client: Partial<oClient>, id: string): Promise<boolean>
35
+
36
+ calcTotal(contract: oContract): number
37
+ }
@@ -0,0 +1,36 @@
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
+ // }
@@ -0,0 +1,5 @@
1
+ export interface oDevice {
2
+ device: string,
3
+ id?: string,
4
+ IMEI: string
5
+ }
@@ -0,0 +1,32 @@
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
+ }
@@ -0,0 +1,26 @@
1
+ import {WritableSignal} from "@angular/core";
2
+
3
+ export interface iAuthConfig {
4
+ title: string;
5
+ desc: string;
6
+ data: boolean;
7
+ }
8
+
9
+ export interface ISignIn {
10
+ username: WritableSignal<string>
11
+ password: WritableSignal<string>
12
+
13
+ login(credentials: oAuth, destination: string): Promise<void>
14
+
15
+ success(): void
16
+ }
17
+
18
+ export interface oAuth {
19
+ username: string,
20
+ password: string
21
+ }
22
+
23
+ export interface oAuthRes {
24
+ status: number
25
+ data: {}
26
+ }
@@ -0,0 +1,18 @@
1
+ import {oContract} from "./oContract";
2
+ import {oClient} from "./oClient";
3
+
4
+ export interface iNewPayment {
5
+ getContract(): Promise<void>;
6
+
7
+ getContractApi(): Promise<oContract>;
8
+
9
+ getClient(contract: oContract): Promise<void>;
10
+
11
+ getClientApi(contract: oContract): Promise<oClient>;
12
+
13
+ getParams(): Promise<void>
14
+
15
+ getAccount(): Promise<boolean>
16
+
17
+ createPayment(): Promise<string>;
18
+ }