ravcredit-lib 0.0.11 → 0.0.13
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 +2088 -0
- package/fesm2022/ravcredit-lib.mjs.map +1 -0
- package/index.d.ts +1654 -0
- package/package.json +25 -13
- package/ng-package.json +0 -7
- 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/dto/AddressDto.ts +0 -27
- package/src/lib/v1/dto/BusinessDeadlineDto.ts +0 -9
- package/src/lib/v1/dto/ConektaDto.ts +0 -386
- package/src/lib/v1/dto/ContractDto.ts +0 -46
- package/src/lib/v1/dto/CustomerDto.ts +0 -47
- package/src/lib/v1/dto/DeviceDto.ts +0 -13
- package/src/lib/v1/dto/DynamiCoreDto.ts +0 -1017
- package/src/lib/v1/dto/FinancialDto.ts +0 -156
- package/src/lib/v1/dto/PassportDto.ts +0 -143
- package/src/lib/v1/dto/PayLinkResDto.ts +0 -144
- package/src/lib/v1/dto/PayOrderResAlternaDto.ts +0 -348
- package/src/lib/v1/dto/PayOrderResOxxoDto.ts +0 -254
- package/src/lib/v1/dto/PaymentLinkDto.ts +0 -161
- package/src/lib/v1/dto/ScheduleDto.ts +0 -17
- package/src/lib/v1/dto/UserDto.ts +0 -27
- package/src/lib/v1/dto/WeekScheduleDTO.ts +0 -46
- 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 -30
- 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 -186
- 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 -48
- package/src/lib/v1/util/UtilBusiness.ts +0 -186
- package/src/lib/v1/util/UtilClient.ts +0 -285
- package/src/lib/v1/util/UtilConekta.ts +0 -97
- package/src/lib/v1/util/UtilContract.ts +0 -386
- 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 -181
- package/src/lib/v1/util/UtilsHttp.ts +0 -11
- package/src/lib/v2/const/constants.ts +0 -38
- package/src/lib/v2/messaging/messaging.ts +0 -10
- package/src/public-api.ts +0 -37
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { IsArray, IsNumber, IsOptional, IsString, Min, ValidateNested } from 'class-validator';
|
|
2
|
-
import { BusinessDeadlineDto } from './BusinessDeadlineDto';
|
|
3
|
-
import { Type } from 'class-transformer';
|
|
4
|
-
|
|
5
|
-
export class FinancialProgressDto {
|
|
6
|
-
@IsString()
|
|
7
|
-
id: string;
|
|
8
|
-
|
|
9
|
-
@IsNumber()
|
|
10
|
-
amount: number;
|
|
11
|
-
|
|
12
|
-
@IsNumber()
|
|
13
|
-
date: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export class FinancialDto {
|
|
17
|
-
@IsOptional()
|
|
18
|
-
@IsNumber()
|
|
19
|
-
dayCut?: number;
|
|
20
|
-
|
|
21
|
-
@ValidateNested()
|
|
22
|
-
@Type(() => BusinessDeadlineDto)
|
|
23
|
-
deadlines: BusinessDeadlineDto;
|
|
24
|
-
|
|
25
|
-
@IsOptional()
|
|
26
|
-
@IsNumber()
|
|
27
|
-
@Min(0)
|
|
28
|
-
finalDate?: number;
|
|
29
|
-
|
|
30
|
-
@IsOptional()
|
|
31
|
-
@IsNumber()
|
|
32
|
-
finalPayment?: number;
|
|
33
|
-
|
|
34
|
-
@IsNumber()
|
|
35
|
-
financed: number;
|
|
36
|
-
|
|
37
|
-
@IsNumber()
|
|
38
|
-
initDate: number;
|
|
39
|
-
|
|
40
|
-
@IsNumber()
|
|
41
|
-
initial: number;
|
|
42
|
-
|
|
43
|
-
@IsString()
|
|
44
|
-
provider: string;
|
|
45
|
-
|
|
46
|
-
@IsNumber()
|
|
47
|
-
total: number;
|
|
48
|
-
|
|
49
|
-
@IsOptional()
|
|
50
|
-
@IsArray()
|
|
51
|
-
@ValidateNested({ each: true })
|
|
52
|
-
@Type(() => FinancialProgressDto)
|
|
53
|
-
progress?: FinancialProgressDto[];
|
|
54
|
-
|
|
55
|
-
@IsString({ each: true })
|
|
56
|
-
@IsArray()
|
|
57
|
-
@IsOptional()
|
|
58
|
-
pendingOf: string[];
|
|
59
|
-
|
|
60
|
-
@IsOptional()
|
|
61
|
-
@IsNumber()
|
|
62
|
-
interest?: number;
|
|
63
|
-
|
|
64
|
-
@IsNumber()
|
|
65
|
-
weeklyPayment: number;
|
|
66
|
-
|
|
67
|
-
@IsOptional()
|
|
68
|
-
@IsNumber()
|
|
69
|
-
nextPayment?: number;
|
|
70
|
-
|
|
71
|
-
@IsOptional()
|
|
72
|
-
@IsNumber()
|
|
73
|
-
commission_opening?: number;
|
|
74
|
-
|
|
75
|
-
@IsOptional()
|
|
76
|
-
@IsString()
|
|
77
|
-
credit_type?: string;
|
|
78
|
-
|
|
79
|
-
@IsOptional()
|
|
80
|
-
@IsNumber()
|
|
81
|
-
interest_arrears?: number; // intereses moratorios dynamic
|
|
82
|
-
|
|
83
|
-
@IsOptional()
|
|
84
|
-
@IsNumber()
|
|
85
|
-
interest_rate?: number; // interes credit dynamic
|
|
86
|
-
|
|
87
|
-
@IsOptional()
|
|
88
|
-
@IsNumber()
|
|
89
|
-
amount_commission_opening?: number; // comision por apertura dynamic
|
|
90
|
-
|
|
91
|
-
@IsOptional()
|
|
92
|
-
@IsNumber()
|
|
93
|
-
principal_disbursed?: number;
|
|
94
|
-
|
|
95
|
-
@IsOptional()
|
|
96
|
-
@IsNumber()
|
|
97
|
-
expected_disbursed?: number;
|
|
98
|
-
|
|
99
|
-
@IsOptional()
|
|
100
|
-
@IsString()
|
|
101
|
-
clabe: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// export class FinancialPartialDto extends PartialType(FinancialDto) {
|
|
105
|
-
// }
|
|
106
|
-
|
|
107
|
-
// export class FinancialDto {
|
|
108
|
-
// @IsNumber()
|
|
109
|
-
// @Min(0)
|
|
110
|
-
// total: number;
|
|
111
|
-
//
|
|
112
|
-
// @IsNumber()
|
|
113
|
-
// @Min(0)
|
|
114
|
-
// initial: number;
|
|
115
|
-
//
|
|
116
|
-
// @ValidateNested({ each: true })
|
|
117
|
-
// @Type(() => BusinessDeadlineDto)
|
|
118
|
-
// deadlines: BusinessDeadlineDto;
|
|
119
|
-
//
|
|
120
|
-
// @IsNumber()
|
|
121
|
-
// @Min(0)
|
|
122
|
-
// @IsOptional()
|
|
123
|
-
// initDate: number = new Date().getTime();
|
|
124
|
-
//
|
|
125
|
-
// @IsNumber()
|
|
126
|
-
// @Min(0)
|
|
127
|
-
// @IsOptional()
|
|
128
|
-
// finalDate: number = new Date().getTime();
|
|
129
|
-
//
|
|
130
|
-
// @IsNumber()
|
|
131
|
-
// weeklyPayment: number;
|
|
132
|
-
//
|
|
133
|
-
// @IsOptional()
|
|
134
|
-
// progress: number = 0;
|
|
135
|
-
//
|
|
136
|
-
// @IsArray()
|
|
137
|
-
// @IsOptional()
|
|
138
|
-
// pendingOf: string[];
|
|
139
|
-
//
|
|
140
|
-
// @IsNumber()
|
|
141
|
-
// @IsOptional()
|
|
142
|
-
// dayCut?: number;
|
|
143
|
-
//
|
|
144
|
-
// @IsNumber()
|
|
145
|
-
// @IsOptional()
|
|
146
|
-
// finalPayment?: number;
|
|
147
|
-
//
|
|
148
|
-
// @IsString()
|
|
149
|
-
// provider: string;
|
|
150
|
-
//
|
|
151
|
-
// @IsNumber()
|
|
152
|
-
// finance: number;
|
|
153
|
-
//
|
|
154
|
-
// @IsNumber()
|
|
155
|
-
// nextPayment: number;
|
|
156
|
-
// }
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { IsArray, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
2
|
-
import { Type } from 'class-transformer';
|
|
3
|
-
import { PassportReferenceDataDto } from '../features/passport/dto/passport-reference-data.dto';
|
|
4
|
-
|
|
5
|
-
export class PassportProviders {
|
|
6
|
-
reference: string;
|
|
7
|
-
centerId: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const PassportProviderPassport: PassportProviders = {
|
|
11
|
-
reference: '73407124368',
|
|
12
|
-
centerId: 'passport',
|
|
13
|
-
};
|
|
14
|
-
export const PassportProviderConekta: PassportProviders = {
|
|
15
|
-
reference: '93003831529864',
|
|
16
|
-
centerId: 'conekta',
|
|
17
|
-
};
|
|
18
|
-
export const PassportProviderEnefevo: PassportProviders = {
|
|
19
|
-
reference: '10003016999899152802369',
|
|
20
|
-
centerId: 'enefevo',
|
|
21
|
-
};
|
|
22
|
-
export const PassportProviderPespay: PassportProviders = {
|
|
23
|
-
reference: '10003016999899167453',
|
|
24
|
-
centerId: 'pespay',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export class PassportReferenceCentersDto {
|
|
28
|
-
@IsString()
|
|
29
|
-
name: string;
|
|
30
|
-
|
|
31
|
-
@IsString()
|
|
32
|
-
logo: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export class PassportReferenceDto {
|
|
36
|
-
@IsString()
|
|
37
|
-
reference: string;
|
|
38
|
-
|
|
39
|
-
@IsArray()
|
|
40
|
-
@ValidateNested({ each: true })
|
|
41
|
-
@Type(() => PassportReferenceCentersDto)
|
|
42
|
-
centers: PassportReferenceCentersDto[];
|
|
43
|
-
|
|
44
|
-
@IsNumber()
|
|
45
|
-
centerId: number;
|
|
46
|
-
|
|
47
|
-
@IsString()
|
|
48
|
-
barcode: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export class PassportReferenceResDto {
|
|
52
|
-
@IsString()
|
|
53
|
-
type: string;
|
|
54
|
-
|
|
55
|
-
@ValidateNested()
|
|
56
|
-
@Type(() => PassportReferenceDataDto)
|
|
57
|
-
data: PassportReferenceDataDto;
|
|
58
|
-
|
|
59
|
-
@IsString()
|
|
60
|
-
message: string;
|
|
61
|
-
|
|
62
|
-
@IsArray()
|
|
63
|
-
@ValidateNested({ each: true })
|
|
64
|
-
@Type(() => PassportReferenceDto)
|
|
65
|
-
references: PassportReferenceDto[];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export class PassportContract {
|
|
69
|
-
@IsString()
|
|
70
|
-
id: string;
|
|
71
|
-
|
|
72
|
-
@IsString()
|
|
73
|
-
client: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export class PassportApiResponseDto {
|
|
77
|
-
@IsOptional()
|
|
78
|
-
@ValidateNested({ each: true })
|
|
79
|
-
@Type(() => PassportReferenceResDto)
|
|
80
|
-
reference: PassportReferenceResDto;
|
|
81
|
-
|
|
82
|
-
@IsString()
|
|
83
|
-
id: string;
|
|
84
|
-
|
|
85
|
-
@ValidateNested({ each: true })
|
|
86
|
-
@Type(() => PassportContract)
|
|
87
|
-
contract: PassportContract;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// export interface iPassportAdditional {
|
|
91
|
-
// client: string;
|
|
92
|
-
// clientID: string;
|
|
93
|
-
// credit: string;
|
|
94
|
-
// }
|
|
95
|
-
//
|
|
96
|
-
// export interface iPassportReferenceData {
|
|
97
|
-
// name: string;
|
|
98
|
-
// email: string;
|
|
99
|
-
// amount: number;
|
|
100
|
-
// expirationDate: string;
|
|
101
|
-
// additional: iPassportAdditional;
|
|
102
|
-
// }
|
|
103
|
-
//
|
|
104
|
-
// export interface iPassportReference {
|
|
105
|
-
// type: string;
|
|
106
|
-
// data: iPassportReferenceData;
|
|
107
|
-
// }
|
|
108
|
-
//
|
|
109
|
-
// export interface iPassportResponseData {
|
|
110
|
-
// name: string;
|
|
111
|
-
// email: string;
|
|
112
|
-
// amount: number;
|
|
113
|
-
// expirationDate: string;
|
|
114
|
-
// additional: iPassportAdditional;
|
|
115
|
-
// }
|
|
116
|
-
//
|
|
117
|
-
// export interface iPassportReferenceCenters {
|
|
118
|
-
// name: string;
|
|
119
|
-
// logo: string;
|
|
120
|
-
// }
|
|
121
|
-
//
|
|
122
|
-
// export interface iPassportReference {
|
|
123
|
-
// reference: string
|
|
124
|
-
// centers: iPassportReferenceCenters[],
|
|
125
|
-
// centerId: number,
|
|
126
|
-
// barcode: string
|
|
127
|
-
// }
|
|
128
|
-
//
|
|
129
|
-
// export interface iPassportResponse {
|
|
130
|
-
// type: string;
|
|
131
|
-
// data: iPassportResponseData;
|
|
132
|
-
// message: string;
|
|
133
|
-
// references: iPassportReference[];
|
|
134
|
-
// }
|
|
135
|
-
//
|
|
136
|
-
// export interface iPassportApiResponse {
|
|
137
|
-
// response: any,
|
|
138
|
-
// id: string
|
|
139
|
-
// contract: {
|
|
140
|
-
// id: string
|
|
141
|
-
// client: string
|
|
142
|
-
// },
|
|
143
|
-
// }
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { IsArray, IsBoolean, IsNumber, IsString, ValidateNested } from 'class-validator';
|
|
2
|
-
import { Type } from 'class-transformer';
|
|
3
|
-
import { MetadataDto } from './PaymentLinkDto';
|
|
4
|
-
|
|
5
|
-
export class PayLinkResDto {
|
|
6
|
-
@IsString()
|
|
7
|
-
id: string;
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
name: string;
|
|
11
|
-
|
|
12
|
-
@IsBoolean()
|
|
13
|
-
livemode: boolean;
|
|
14
|
-
|
|
15
|
-
@IsNumber()
|
|
16
|
-
emails_sent: number;
|
|
17
|
-
|
|
18
|
-
@IsString()
|
|
19
|
-
success_url: string;
|
|
20
|
-
|
|
21
|
-
@IsString()
|
|
22
|
-
failure_url: string;
|
|
23
|
-
|
|
24
|
-
@IsNumber()
|
|
25
|
-
paid_payments_count: number;
|
|
26
|
-
|
|
27
|
-
@IsNumber()
|
|
28
|
-
sms_sent: number;
|
|
29
|
-
|
|
30
|
-
@IsString()
|
|
31
|
-
status: string;
|
|
32
|
-
|
|
33
|
-
@IsString()
|
|
34
|
-
type: string;
|
|
35
|
-
|
|
36
|
-
@IsBoolean()
|
|
37
|
-
recurrent: boolean;
|
|
38
|
-
|
|
39
|
-
@IsNumber()
|
|
40
|
-
starts_at: number;
|
|
41
|
-
|
|
42
|
-
@IsNumber()
|
|
43
|
-
expires_at: number;
|
|
44
|
-
|
|
45
|
-
@IsArray()
|
|
46
|
-
@IsString({ each: true })
|
|
47
|
-
allowed_payment_methods: string[];
|
|
48
|
-
|
|
49
|
-
@IsArray()
|
|
50
|
-
exclude_card_networks: any[]; // Assuming empty array or any type for now
|
|
51
|
-
|
|
52
|
-
@IsBoolean()
|
|
53
|
-
needs_shipping_contact: boolean;
|
|
54
|
-
|
|
55
|
-
@IsArray()
|
|
56
|
-
monthly_installments_options: any[]; // Assuming empty array or any type for now
|
|
57
|
-
|
|
58
|
-
@IsBoolean()
|
|
59
|
-
monthly_installments_enabled: boolean;
|
|
60
|
-
|
|
61
|
-
@IsBoolean()
|
|
62
|
-
force_3ds_flow: boolean;
|
|
63
|
-
|
|
64
|
-
@ValidateNested()
|
|
65
|
-
@Type(() => MetadataDto)
|
|
66
|
-
metadata: MetadataDto;
|
|
67
|
-
|
|
68
|
-
@IsBoolean()
|
|
69
|
-
can_not_expire: boolean;
|
|
70
|
-
|
|
71
|
-
@IsString()
|
|
72
|
-
object: string;
|
|
73
|
-
|
|
74
|
-
@IsBoolean()
|
|
75
|
-
is_redirect_on_failure: boolean;
|
|
76
|
-
|
|
77
|
-
@IsString()
|
|
78
|
-
slug: string;
|
|
79
|
-
|
|
80
|
-
@IsString()
|
|
81
|
-
url: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// export interface payLinkResDto {
|
|
85
|
-
// "id": string
|
|
86
|
-
// "name": string
|
|
87
|
-
// "livemode": boolean
|
|
88
|
-
// "emails_sent": number
|
|
89
|
-
// "success_url": string
|
|
90
|
-
// "failure_url": string
|
|
91
|
-
// "paid_payments_count": number
|
|
92
|
-
// "sms_sent": number
|
|
93
|
-
// "status": string
|
|
94
|
-
// "type": string
|
|
95
|
-
// "recurrent": boolean
|
|
96
|
-
// "starts_at": number
|
|
97
|
-
// "expires_at": number
|
|
98
|
-
// "allowed_payment_methods": string[],
|
|
99
|
-
// "exclude_card_networks": [],
|
|
100
|
-
// "needs_shipping_contact": boolean
|
|
101
|
-
// "monthly_installments_options": [],
|
|
102
|
-
// "monthly_installments_enabled": boolean
|
|
103
|
-
// "force_3ds_flow": boolean
|
|
104
|
-
// "metadata": iMetadata,
|
|
105
|
-
// "can_not_expire": boolean
|
|
106
|
-
// "object": string
|
|
107
|
-
// "is_redirect_on_failure": boolean
|
|
108
|
-
// "slug": string
|
|
109
|
-
// "url": string
|
|
110
|
-
// }
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
{
|
|
114
|
-
"id": "ba4643ac-d7fa-4eba-8e4a-690393b67810",
|
|
115
|
-
"name": "Link de pago RavCredit",
|
|
116
|
-
"livemode": false,
|
|
117
|
-
"emails_sent": 0,
|
|
118
|
-
"success_url": "",
|
|
119
|
-
"failure_url": "",
|
|
120
|
-
"paid_payments_count": 0,
|
|
121
|
-
"sms_sent": 0,
|
|
122
|
-
"status": "Issued",
|
|
123
|
-
"type": "PaymentLink",
|
|
124
|
-
"recurrent": false,
|
|
125
|
-
"starts_at": 1721455200,
|
|
126
|
-
"expires_at": 1721958153,
|
|
127
|
-
"allowed_payment_methods": [
|
|
128
|
-
"cash",
|
|
129
|
-
"card",
|
|
130
|
-
"bank_transfer"
|
|
131
|
-
],
|
|
132
|
-
"exclude_card_networks": [],
|
|
133
|
-
"needs_shipping_contact": false,
|
|
134
|
-
"monthly_installments_options": [],
|
|
135
|
-
"monthly_installments_enabled": false,
|
|
136
|
-
"force_3ds_flow": false,
|
|
137
|
-
"metadata": {},
|
|
138
|
-
"can_not_expire": false,
|
|
139
|
-
"object": "checkout",
|
|
140
|
-
"is_redirect_on_failure": false,
|
|
141
|
-
"slug": "ba4643acd7fa4eba8e4a690393b67810",
|
|
142
|
-
"url": "https://pay.conekta.com/link/ba4643acd7fa4eba8e4a690393b67810"
|
|
143
|
-
}
|
|
144
|
-
*/
|