ravcredit-api-dtos 0.0.1
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/dist/index.d.ts +70 -0
- package/dist/index.js +71 -0
- package/dist/lib/v1/DTO/AddressDto.d.ts +9 -0
- package/dist/lib/v1/DTO/AddressDto.js +39 -0
- package/dist/lib/v1/DTO/AmortizationDto.d.ts +21 -0
- package/dist/lib/v1/DTO/AmortizationDto.js +82 -0
- package/dist/lib/v1/DTO/AssetDto.d.ts +43 -0
- package/dist/lib/v1/DTO/AssetDto.js +146 -0
- package/dist/lib/v1/DTO/AuthAdminDto.d.ts +7 -0
- package/dist/lib/v1/DTO/AuthAdminDto.js +29 -0
- package/dist/lib/v1/DTO/AuthClientDto.d.ts +4 -0
- package/dist/lib/v1/DTO/AuthClientDto.js +22 -0
- package/dist/lib/v1/DTO/BusinessConfigDto.d.ts +15 -0
- package/dist/lib/v1/DTO/BusinessConfigDto.js +71 -0
- package/dist/lib/v1/DTO/BusinessConfigUpdateDto.d.ts +5 -0
- package/dist/lib/v1/DTO/BusinessConfigUpdateDto.js +4 -0
- package/dist/lib/v1/DTO/BusinessDeadlineDto.d.ts +4 -0
- package/dist/lib/v1/DTO/BusinessDeadlineDto.js +17 -0
- package/dist/lib/v1/DTO/BusinessInfoDto.d.ts +11 -0
- package/dist/lib/v1/DTO/BusinessInfoDto.js +47 -0
- package/dist/lib/v1/DTO/BusinessInfoUpdateDto.d.ts +5 -0
- package/dist/lib/v1/DTO/BusinessInfoUpdateDto.js +4 -0
- package/dist/lib/v1/DTO/CatalogDto.d.ts +6 -0
- package/dist/lib/v1/DTO/CatalogDto.js +25 -0
- package/dist/lib/v1/DTO/ClientDto.d.ts +77 -0
- package/dist/lib/v1/DTO/ClientDto.js +286 -0
- package/dist/lib/v1/DTO/CompanyDto.d.ts +8 -0
- package/dist/lib/v1/DTO/CompanyDto.js +32 -0
- package/dist/lib/v1/DTO/ConektaChannelDto.d.ts +6 -0
- package/dist/lib/v1/DTO/ConektaChannelDto.js +25 -0
- package/dist/lib/v1/DTO/ConektaChargeDataDto.d.ts +24 -0
- package/dist/lib/v1/DTO/ConektaChargeDataDto.js +98 -0
- package/dist/lib/v1/DTO/ConektaChargesDto.d.ts +7 -0
- package/dist/lib/v1/DTO/ConektaChargesDto.js +29 -0
- package/dist/lib/v1/DTO/ConektaCheckoutDto.d.ts +24 -0
- package/dist/lib/v1/DTO/ConektaCheckoutDto.js +101 -0
- package/dist/lib/v1/DTO/ConektaCustomerInfoDto.d.ts +9 -0
- package/dist/lib/v1/DTO/ConektaCustomerInfoDto.js +39 -0
- package/dist/lib/v1/DTO/ConektaDto.d.ts +95 -0
- package/dist/lib/v1/DTO/ConektaDto.js +339 -0
- package/dist/lib/v1/DTO/ConektaLineItemDto.d.ts +15 -0
- package/dist/lib/v1/DTO/ConektaLineItemDto.js +67 -0
- package/dist/lib/v1/DTO/ConektaLineItemsDto.d.ts +7 -0
- package/dist/lib/v1/DTO/ConektaLineItemsDto.js +29 -0
- package/dist/lib/v1/DTO/ConektaNewOrderDto.d.ts +7 -0
- package/dist/lib/v1/DTO/ConektaNewOrderDto.js +27 -0
- package/dist/lib/v1/DTO/ConektaOrdCreateDto.d.ts +9 -0
- package/dist/lib/v1/DTO/ConektaOrdCreateDto.js +34 -0
- package/dist/lib/v1/DTO/ConektaOrderDto.d.ts +29 -0
- package/dist/lib/v1/DTO/ConektaOrderDto.js +113 -0
- package/dist/lib/v1/DTO/ConektaOrderSpeiDto.d.ts +7 -0
- package/dist/lib/v1/DTO/ConektaOrderSpeiDto.js +27 -0
- package/dist/lib/v1/DTO/ConektaOrdersResponseDto.d.ts +8 -0
- package/dist/lib/v1/DTO/ConektaOrdersResponseDto.js +35 -0
- package/dist/lib/v1/DTO/ConektaPaymentDto.d.ts +8 -0
- package/dist/lib/v1/DTO/ConektaPaymentDto.js +29 -0
- package/dist/lib/v1/DTO/ConektaPaymentMethodDto.d.ts +13 -0
- package/dist/lib/v1/DTO/ConektaPaymentMethodDto.js +53 -0
- package/dist/lib/v1/DTO/ConektaPaymentSourcesDto.d.ts +4 -0
- package/dist/lib/v1/DTO/ConektaPaymentSourcesDto.js +18 -0
- package/dist/lib/v1/DTO/ConektaUpdateDto.d.ts +8 -0
- package/dist/lib/v1/DTO/ConektaUpdateDto.js +26 -0
- package/dist/lib/v1/DTO/ContractDto.d.ts +39 -0
- package/dist/lib/v1/DTO/ContractDto.js +139 -0
- package/dist/lib/v1/DTO/ContractUpdateDto.d.ts +5 -0
- package/dist/lib/v1/DTO/ContractUpdateDto.js +4 -0
- package/dist/lib/v1/DTO/CustomerDto.d.ts +17 -0
- package/dist/lib/v1/DTO/CustomerDto.js +66 -0
- package/dist/lib/v1/DTO/DeviceDto.d.ts +5 -0
- package/dist/lib/v1/DTO/DeviceDto.js +22 -0
- package/dist/lib/v1/DTO/DynamiCoreCreditDto.d.ts +47 -0
- package/dist/lib/v1/DTO/DynamiCoreCreditDto.js +170 -0
- package/dist/lib/v1/DTO/DynamiCoreDto.d.ts +473 -0
- package/dist/lib/v1/DTO/DynamiCoreDto.js +1603 -0
- package/dist/lib/v1/DTO/DynamicUpdateReferenceDto.d.ts +5 -0
- package/dist/lib/v1/DTO/DynamicUpdateReferenceDto.js +4 -0
- package/dist/lib/v1/DTO/FinancialDto.d.ts +30 -0
- package/dist/lib/v1/DTO/FinancialDto.js +185 -0
- package/dist/lib/v1/DTO/NotificationDto.d.ts +13 -0
- package/dist/lib/v1/DTO/NotificationDto.js +46 -0
- package/dist/lib/v1/DTO/NotificationUpdateDto.d.ts +5 -0
- package/dist/lib/v1/DTO/NotificationUpdateDto.js +4 -0
- package/dist/lib/v1/DTO/OrdCreatLineItemDto.d.ts +7 -0
- package/dist/lib/v1/DTO/OrdCreatLineItemDto.js +28 -0
- package/dist/lib/v1/DTO/OrdCreateAntifraudInfoDto.d.ts +3 -0
- package/dist/lib/v1/DTO/OrdCreateAntifraudInfoDto.js +13 -0
- package/dist/lib/v1/DTO/OrdCreateChargeDto.d.ts +5 -0
- package/dist/lib/v1/DTO/OrdCreateChargeDto.js +20 -0
- package/dist/lib/v1/DTO/OrdCreateCusInfoDto.d.ts +6 -0
- package/dist/lib/v1/DTO/OrdCreateCusInfoDto.js +29 -0
- package/dist/lib/v1/DTO/OrdCreatePymtMetDto.d.ts +4 -0
- package/dist/lib/v1/DTO/OrdCreatePymtMetDto.js +17 -0
- package/dist/lib/v1/DTO/PartialClientDto.d.ts +5 -0
- package/dist/lib/v1/DTO/PartialClientDto.js +4 -0
- package/dist/lib/v1/DTO/PassportAdditionalDto.d.ts +5 -0
- package/dist/lib/v1/DTO/PassportAdditionalDto.js +24 -0
- package/dist/lib/v1/DTO/PassportCreateDto.d.ts +7 -0
- package/dist/lib/v1/DTO/PassportCreateDto.js +27 -0
- package/dist/lib/v1/DTO/PassportDto.d.ts +30 -0
- package/dist/lib/v1/DTO/PassportDto.js +145 -0
- package/dist/lib/v1/DTO/PassportGlobalDto.d.ts +7 -0
- package/dist/lib/v1/DTO/PassportGlobalDto.js +27 -0
- package/dist/lib/v1/DTO/PassportReferenceDataDto.d.ts +8 -0
- package/dist/lib/v1/DTO/PassportReferenceDataDto.js +33 -0
- package/dist/lib/v1/DTO/PayLinkResDto.d.ts +61 -0
- package/dist/lib/v1/DTO/PayLinkResDto.js +174 -0
- package/dist/lib/v1/DTO/PayOrderResAlternaDto.d.ts +175 -0
- package/dist/lib/v1/DTO/PayOrderResAlternaDto.js +399 -0
- package/dist/lib/v1/DTO/PayOrderResOxxoDto.d.ts +46 -0
- package/dist/lib/v1/DTO/PayOrderResOxxoDto.js +290 -0
- package/dist/lib/v1/DTO/PaymentLinkDto.d.ts +37 -0
- package/dist/lib/v1/DTO/PaymentLinkDto.js +170 -0
- package/dist/lib/v1/DTO/ScheduleDto.d.ts +6 -0
- package/dist/lib/v1/DTO/ScheduleDto.js +25 -0
- package/dist/lib/v1/DTO/ScoreDto.d.ts +29 -0
- package/dist/lib/v1/DTO/ScoreDto.js +97 -0
- package/dist/lib/v1/DTO/UserCreateDto.d.ts +10 -0
- package/dist/lib/v1/DTO/UserCreateDto.js +52 -0
- package/dist/lib/v1/DTO/UserDto.d.ts +14 -0
- package/dist/lib/v1/DTO/UserDto.js +53 -0
- package/dist/lib/v1/DTO/UserUpdateDto.d.ts +5 -0
- package/dist/lib/v1/DTO/UserUpdateDto.js +4 -0
- package/dist/lib/v1/DTO/WeekScheduleDto.d.ts +13 -0
- package/dist/lib/v1/DTO/WeekScheduleDto.js +65 -0
- package/dist/lib/v1/core/Crypt.d.ts +4 -0
- package/dist/lib/v1/core/Crypt.js +9 -0
- package/dist/lib/v1/core/Validators.d.ts +10 -0
- package/dist/lib/v1/core/Validators.js +31 -0
- package/dist/lib/v1/util/Constants.d.ts +89 -0
- package/dist/lib/v1/util/Constants.js +388 -0
- package/dist/lib/v1/util/Cors.d.ts +2 -0
- package/dist/lib/v1/util/Cors.js +5 -0
- package/dist/lib/v1/util/ExternalPaths.d.ts +28 -0
- package/dist/lib/v1/util/ExternalPaths.js +28 -0
- package/dist/lib/v1/util/FactoryClient.d.ts +11 -0
- package/dist/lib/v1/util/FactoryClient.js +108 -0
- package/dist/lib/v1/util/FactoryUser.d.ts +6 -0
- package/dist/lib/v1/util/FactoryUser.js +43 -0
- package/dist/lib/v1/util/FactoryUtil.d.ts +3 -0
- package/dist/lib/v1/util/FactoryUtil.js +6 -0
- package/dist/lib/v1/util/FirestorePaths.d.ts +13 -0
- package/dist/lib/v1/util/FirestorePaths.js +13 -0
- package/dist/lib/v1/util/Http.d.ts +0 -0
- package/dist/lib/v1/util/Http.js +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { IsArray, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
import { PassportReferenceDataDto } from './PassportReferenceDataDto';
|
|
10
|
+
export class PassportProviders {
|
|
11
|
+
reference;
|
|
12
|
+
centerId;
|
|
13
|
+
}
|
|
14
|
+
export class PassportReferenceCentersDto {
|
|
15
|
+
name;
|
|
16
|
+
logo;
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
IsString()
|
|
20
|
+
], PassportReferenceCentersDto.prototype, "name", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
IsString()
|
|
23
|
+
], PassportReferenceCentersDto.prototype, "logo", void 0);
|
|
24
|
+
export class PassportReferenceDto {
|
|
25
|
+
reference;
|
|
26
|
+
centers;
|
|
27
|
+
centerId;
|
|
28
|
+
barcode;
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
IsString()
|
|
32
|
+
], PassportReferenceDto.prototype, "reference", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
IsArray(),
|
|
35
|
+
ValidateNested({ each: true }),
|
|
36
|
+
Type(() => PassportReferenceCentersDto)
|
|
37
|
+
], PassportReferenceDto.prototype, "centers", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
IsNumber()
|
|
40
|
+
], PassportReferenceDto.prototype, "centerId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
IsString()
|
|
43
|
+
], PassportReferenceDto.prototype, "barcode", void 0);
|
|
44
|
+
export class PassportReferenceResDto {
|
|
45
|
+
type;
|
|
46
|
+
data;
|
|
47
|
+
message;
|
|
48
|
+
references;
|
|
49
|
+
}
|
|
50
|
+
__decorate([
|
|
51
|
+
IsString()
|
|
52
|
+
], PassportReferenceResDto.prototype, "type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
ValidateNested(),
|
|
55
|
+
Type(() => PassportReferenceDataDto)
|
|
56
|
+
], PassportReferenceResDto.prototype, "data", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
IsString()
|
|
59
|
+
], PassportReferenceResDto.prototype, "message", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
IsArray(),
|
|
62
|
+
ValidateNested({ each: true }),
|
|
63
|
+
Type(() => PassportReferenceDto)
|
|
64
|
+
], PassportReferenceResDto.prototype, "references", void 0);
|
|
65
|
+
export class PassportContract {
|
|
66
|
+
id;
|
|
67
|
+
client;
|
|
68
|
+
}
|
|
69
|
+
__decorate([
|
|
70
|
+
IsString()
|
|
71
|
+
], PassportContract.prototype, "id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
IsString()
|
|
74
|
+
], PassportContract.prototype, "client", void 0);
|
|
75
|
+
export class PassportApiResponseDto {
|
|
76
|
+
reference;
|
|
77
|
+
id;
|
|
78
|
+
contract;
|
|
79
|
+
}
|
|
80
|
+
__decorate([
|
|
81
|
+
IsOptional(),
|
|
82
|
+
ValidateNested({ each: true }),
|
|
83
|
+
Type(() => PassportReferenceResDto)
|
|
84
|
+
], PassportApiResponseDto.prototype, "reference", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
IsString()
|
|
87
|
+
], PassportApiResponseDto.prototype, "id", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
ValidateNested({ each: true }),
|
|
90
|
+
Type(() => PassportContract)
|
|
91
|
+
], PassportApiResponseDto.prototype, "contract", void 0);
|
|
92
|
+
// export interface iPassportAdditional {
|
|
93
|
+
// client: string;
|
|
94
|
+
// clientID: string;
|
|
95
|
+
// credit: string;
|
|
96
|
+
// }
|
|
97
|
+
//
|
|
98
|
+
// export interface iPassportReferenceData {
|
|
99
|
+
// name: string;
|
|
100
|
+
// email: string;
|
|
101
|
+
// amount: number;
|
|
102
|
+
// expirationDate: string;
|
|
103
|
+
// additional: iPassportAdditional;
|
|
104
|
+
// }
|
|
105
|
+
//
|
|
106
|
+
// export interface iPassportReference {
|
|
107
|
+
// type: string;
|
|
108
|
+
// data: iPassportReferenceData;
|
|
109
|
+
// }
|
|
110
|
+
//
|
|
111
|
+
// export interface iPassportResponseData {
|
|
112
|
+
// name: string;
|
|
113
|
+
// email: string;
|
|
114
|
+
// amount: number;
|
|
115
|
+
// expirationDate: string;
|
|
116
|
+
// additional: iPassportAdditional;
|
|
117
|
+
// }
|
|
118
|
+
//
|
|
119
|
+
// export interface iPassportReferenceCenters {
|
|
120
|
+
// name: string;
|
|
121
|
+
// logo: string;
|
|
122
|
+
// }
|
|
123
|
+
//
|
|
124
|
+
// export interface iPassportReference {
|
|
125
|
+
// reference: string
|
|
126
|
+
// centers: iPassportReferenceCenters[],
|
|
127
|
+
// centerId: number,
|
|
128
|
+
// barcode: string
|
|
129
|
+
// }
|
|
130
|
+
//
|
|
131
|
+
// export interface iPassportResponse {
|
|
132
|
+
// type: string;
|
|
133
|
+
// data: iPassportResponseData;
|
|
134
|
+
// message: string;
|
|
135
|
+
// references: iPassportReference[];
|
|
136
|
+
// }
|
|
137
|
+
//
|
|
138
|
+
// export interface iPassportApiResponse {
|
|
139
|
+
// response: any,
|
|
140
|
+
// id: string
|
|
141
|
+
// contract: {
|
|
142
|
+
// id: string
|
|
143
|
+
// client: string
|
|
144
|
+
// },
|
|
145
|
+
// }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Type } from 'class-transformer';
|
|
8
|
+
import { IsNumber, IsOptional, ValidateNested } from 'class-validator';
|
|
9
|
+
import { CreatePassportDto } from './PassportCreateDto';
|
|
10
|
+
import { ContractDto } from './ContractDto';
|
|
11
|
+
export class GlobalPassportDTO {
|
|
12
|
+
passport;
|
|
13
|
+
contract;
|
|
14
|
+
date;
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
Type(() => CreatePassportDto),
|
|
18
|
+
ValidateNested({ each: true })
|
|
19
|
+
], GlobalPassportDTO.prototype, "passport", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Type(() => ContractDto),
|
|
22
|
+
ValidateNested({ each: true })
|
|
23
|
+
], GlobalPassportDTO.prototype, "contract", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsNumber(),
|
|
26
|
+
IsOptional()
|
|
27
|
+
], GlobalPassportDTO.prototype, "date", void 0);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
import { PassportAdditionalDto } from './PassportAdditionalDto';
|
|
10
|
+
export class PassportReferenceDataDto {
|
|
11
|
+
name;
|
|
12
|
+
email;
|
|
13
|
+
amount;
|
|
14
|
+
expirationDate;
|
|
15
|
+
additional;
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
IsString()
|
|
19
|
+
], PassportReferenceDataDto.prototype, "name", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsString()
|
|
22
|
+
], PassportReferenceDataDto.prototype, "email", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsNumber()
|
|
25
|
+
], PassportReferenceDataDto.prototype, "amount", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
IsString(),
|
|
28
|
+
IsOptional()
|
|
29
|
+
], PassportReferenceDataDto.prototype, "expirationDate", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Type(() => PassportAdditionalDto),
|
|
32
|
+
ValidateNested({ each: true })
|
|
33
|
+
], PassportReferenceDataDto.prototype, "additional", void 0);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { MetadataDto } from './PaymentLinkDto';
|
|
2
|
+
export declare class PayLinkResDto {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
livemode: boolean;
|
|
6
|
+
emails_sent: number;
|
|
7
|
+
success_url: string;
|
|
8
|
+
failure_url: string;
|
|
9
|
+
paid_payments_count: number;
|
|
10
|
+
sms_sent: number;
|
|
11
|
+
status: string;
|
|
12
|
+
type: string;
|
|
13
|
+
recurrent: boolean;
|
|
14
|
+
starts_at: number;
|
|
15
|
+
expires_at: number;
|
|
16
|
+
allowed_payment_methods: string[];
|
|
17
|
+
exclude_card_networks: any[];
|
|
18
|
+
needs_shipping_contact: boolean;
|
|
19
|
+
monthly_installments_options: any[];
|
|
20
|
+
monthly_installments_enabled: boolean;
|
|
21
|
+
force_3ds_flow: boolean;
|
|
22
|
+
metadata: MetadataDto;
|
|
23
|
+
can_not_expire: boolean;
|
|
24
|
+
object: string;
|
|
25
|
+
is_redirect_on_failure: boolean;
|
|
26
|
+
slug: string;
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
{
|
|
31
|
+
"id": "ba4643ac-d7fa-4eba-8e4a-690393b67810",
|
|
32
|
+
"name": "Link de pago RavCredit",
|
|
33
|
+
"livemode": false,
|
|
34
|
+
"emails_sent": 0,
|
|
35
|
+
"success_url": "",
|
|
36
|
+
"failure_url": "",
|
|
37
|
+
"paid_payments_count": 0,
|
|
38
|
+
"sms_sent": 0,
|
|
39
|
+
"status": "Issued",
|
|
40
|
+
"type": "PaymentLink",
|
|
41
|
+
"recurrent": false,
|
|
42
|
+
"starts_at": 1721455200,
|
|
43
|
+
"expires_at": 1721958153,
|
|
44
|
+
"allowed_payment_methods": [
|
|
45
|
+
"cash",
|
|
46
|
+
"card",
|
|
47
|
+
"bank_transfer"
|
|
48
|
+
],
|
|
49
|
+
"exclude_card_networks": [],
|
|
50
|
+
"needs_shipping_contact": false,
|
|
51
|
+
"monthly_installments_options": [],
|
|
52
|
+
"monthly_installments_enabled": false,
|
|
53
|
+
"force_3ds_flow": false,
|
|
54
|
+
"metadata": {},
|
|
55
|
+
"can_not_expire": false,
|
|
56
|
+
"object": "checkout",
|
|
57
|
+
"is_redirect_on_failure": false,
|
|
58
|
+
"slug": "ba4643acd7fa4eba8e4a690393b67810",
|
|
59
|
+
"url": "https://pay.conekta.com/link/ba4643acd7fa4eba8e4a690393b67810"
|
|
60
|
+
}
|
|
61
|
+
*/
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { IsArray, IsBoolean, IsNumber, IsString, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
import { MetadataDto } from './PaymentLinkDto';
|
|
10
|
+
import { cMetadataDto } from '../util/Constants';
|
|
11
|
+
export class PayLinkResDto {
|
|
12
|
+
id = "";
|
|
13
|
+
name = "";
|
|
14
|
+
livemode = false;
|
|
15
|
+
emails_sent = 0;
|
|
16
|
+
success_url = "";
|
|
17
|
+
failure_url = "";
|
|
18
|
+
paid_payments_count = 0;
|
|
19
|
+
sms_sent = 0;
|
|
20
|
+
status = "";
|
|
21
|
+
type = "";
|
|
22
|
+
recurrent = false;
|
|
23
|
+
starts_at = 0;
|
|
24
|
+
expires_at = 0;
|
|
25
|
+
allowed_payment_methods = [];
|
|
26
|
+
exclude_card_networks = []; // Assuming empty array or any type for now
|
|
27
|
+
needs_shipping_contact = false;
|
|
28
|
+
monthly_installments_options = []; // Assuming empty array or any type for now
|
|
29
|
+
monthly_installments_enabled = false;
|
|
30
|
+
force_3ds_flow = false;
|
|
31
|
+
metadata = cMetadataDto;
|
|
32
|
+
can_not_expire = false;
|
|
33
|
+
object = "";
|
|
34
|
+
is_redirect_on_failure = false;
|
|
35
|
+
slug = "";
|
|
36
|
+
url = "";
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
IsString()
|
|
40
|
+
], PayLinkResDto.prototype, "id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
IsString()
|
|
43
|
+
], PayLinkResDto.prototype, "name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsBoolean()
|
|
46
|
+
], PayLinkResDto.prototype, "livemode", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
IsNumber()
|
|
49
|
+
], PayLinkResDto.prototype, "emails_sent", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
IsString()
|
|
52
|
+
], PayLinkResDto.prototype, "success_url", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
IsString()
|
|
55
|
+
], PayLinkResDto.prototype, "failure_url", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
IsNumber()
|
|
58
|
+
], PayLinkResDto.prototype, "paid_payments_count", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
IsNumber()
|
|
61
|
+
], PayLinkResDto.prototype, "sms_sent", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
IsString()
|
|
64
|
+
], PayLinkResDto.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
IsString()
|
|
67
|
+
], PayLinkResDto.prototype, "type", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
IsBoolean()
|
|
70
|
+
], PayLinkResDto.prototype, "recurrent", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
IsNumber()
|
|
73
|
+
], PayLinkResDto.prototype, "starts_at", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
IsNumber()
|
|
76
|
+
], PayLinkResDto.prototype, "expires_at", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
IsArray(),
|
|
79
|
+
IsString({ each: true })
|
|
80
|
+
], PayLinkResDto.prototype, "allowed_payment_methods", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
IsArray()
|
|
83
|
+
], PayLinkResDto.prototype, "exclude_card_networks", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
IsBoolean()
|
|
86
|
+
], PayLinkResDto.prototype, "needs_shipping_contact", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
IsArray()
|
|
89
|
+
], PayLinkResDto.prototype, "monthly_installments_options", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
IsBoolean()
|
|
92
|
+
], PayLinkResDto.prototype, "monthly_installments_enabled", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
IsBoolean()
|
|
95
|
+
], PayLinkResDto.prototype, "force_3ds_flow", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
ValidateNested(),
|
|
98
|
+
Type(() => MetadataDto)
|
|
99
|
+
], PayLinkResDto.prototype, "metadata", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
IsBoolean()
|
|
102
|
+
], PayLinkResDto.prototype, "can_not_expire", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
IsString()
|
|
105
|
+
], PayLinkResDto.prototype, "object", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
IsBoolean()
|
|
108
|
+
], PayLinkResDto.prototype, "is_redirect_on_failure", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
IsString()
|
|
111
|
+
], PayLinkResDto.prototype, "slug", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
IsString()
|
|
114
|
+
], PayLinkResDto.prototype, "url", void 0);
|
|
115
|
+
// export interface payLinkResDto {
|
|
116
|
+
// "id": string
|
|
117
|
+
// "name": string
|
|
118
|
+
// "livemode": boolean
|
|
119
|
+
// "emails_sent": number
|
|
120
|
+
// "success_url": string
|
|
121
|
+
// "failure_url": string
|
|
122
|
+
// "paid_payments_count": number
|
|
123
|
+
// "sms_sent": number
|
|
124
|
+
// "status": string
|
|
125
|
+
// "type": string
|
|
126
|
+
// "recurrent": boolean
|
|
127
|
+
// "starts_at": number
|
|
128
|
+
// "expires_at": number
|
|
129
|
+
// "allowed_payment_methods": string[],
|
|
130
|
+
// "exclude_card_networks": [],
|
|
131
|
+
// "needs_shipping_contact": boolean
|
|
132
|
+
// "monthly_installments_options": [],
|
|
133
|
+
// "monthly_installments_enabled": boolean
|
|
134
|
+
// "force_3ds_flow": boolean
|
|
135
|
+
// "metadata": iMetadata,
|
|
136
|
+
// "can_not_expire": boolean
|
|
137
|
+
// "object": string
|
|
138
|
+
// "is_redirect_on_failure": boolean
|
|
139
|
+
// "slug": string
|
|
140
|
+
// "url": string
|
|
141
|
+
// }
|
|
142
|
+
/**
|
|
143
|
+
{
|
|
144
|
+
"id": "ba4643ac-d7fa-4eba-8e4a-690393b67810",
|
|
145
|
+
"name": "Link de pago RavCredit",
|
|
146
|
+
"livemode": false,
|
|
147
|
+
"emails_sent": 0,
|
|
148
|
+
"success_url": "",
|
|
149
|
+
"failure_url": "",
|
|
150
|
+
"paid_payments_count": 0,
|
|
151
|
+
"sms_sent": 0,
|
|
152
|
+
"status": "Issued",
|
|
153
|
+
"type": "PaymentLink",
|
|
154
|
+
"recurrent": false,
|
|
155
|
+
"starts_at": 1721455200,
|
|
156
|
+
"expires_at": 1721958153,
|
|
157
|
+
"allowed_payment_methods": [
|
|
158
|
+
"cash",
|
|
159
|
+
"card",
|
|
160
|
+
"bank_transfer"
|
|
161
|
+
],
|
|
162
|
+
"exclude_card_networks": [],
|
|
163
|
+
"needs_shipping_contact": false,
|
|
164
|
+
"monthly_installments_options": [],
|
|
165
|
+
"monthly_installments_enabled": false,
|
|
166
|
+
"force_3ds_flow": false,
|
|
167
|
+
"metadata": {},
|
|
168
|
+
"can_not_expire": false,
|
|
169
|
+
"object": "checkout",
|
|
170
|
+
"is_redirect_on_failure": false,
|
|
171
|
+
"slug": "ba4643acd7fa4eba8e4a690393b67810",
|
|
172
|
+
"url": "https://pay.conekta.com/link/ba4643acd7fa4eba8e4a690393b67810"
|
|
173
|
+
}
|
|
174
|
+
*/
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { CustomerInfoDto } from "./CustomerDto";
|
|
2
|
+
import { MetadataDto } from './PaymentLinkDto';
|
|
3
|
+
export declare enum eAlternaStores {
|
|
4
|
+
'7Eleven' = "7 Eleven",
|
|
5
|
+
'Ahorro' = "Farmacias del Ahorro",
|
|
6
|
+
'CircleK' = "CIRCLE K",
|
|
7
|
+
'Elektra' = "Tiendas Extra",
|
|
8
|
+
'Benavides' = "Farmacia Benavides",
|
|
9
|
+
'Soriana' = "Soriana",
|
|
10
|
+
'Waldos' = "WALDO'S",
|
|
11
|
+
'Eleczion' = "ELECZION",
|
|
12
|
+
'Kiosko' = "Super Kiosko",
|
|
13
|
+
'FBazar' = "Farmacias Bazar",
|
|
14
|
+
'Wolworth' = "Wolworth",
|
|
15
|
+
'DelSol' = "Del Sol",
|
|
16
|
+
'Yepas' = "Yepas",
|
|
17
|
+
'FDios' = "Farmacias De Dios",
|
|
18
|
+
'FNosarco' = "Farmacias Nosarco",
|
|
19
|
+
'FSantaCruz' = "Farmacias Santa Cruz",
|
|
20
|
+
'FCentro' = "Farmacentro",
|
|
21
|
+
'FGyM' = "Farmacias GyM",
|
|
22
|
+
'FFcoAsis' = "Farmacias San Francisco de Asis",
|
|
23
|
+
'FUnion' = "Farmacias Union",
|
|
24
|
+
'FZapotlan' = "Farmacias Zapotlan",
|
|
25
|
+
'Ftodo' = "Farmatodo",
|
|
26
|
+
'AlSuper' = "Al Super"
|
|
27
|
+
}
|
|
28
|
+
export declare class AlternaLineItemsDataDto {
|
|
29
|
+
line_item: string;
|
|
30
|
+
parent_id: string;
|
|
31
|
+
metadata: any;
|
|
32
|
+
antifraud_info: any;
|
|
33
|
+
}
|
|
34
|
+
export declare class AlternaLineItemsDto {
|
|
35
|
+
object: string;
|
|
36
|
+
has_more: boolean;
|
|
37
|
+
total: number;
|
|
38
|
+
data: AlternaLineItemsDataDto[];
|
|
39
|
+
}
|
|
40
|
+
export declare class AlternaChargesDataMethodsDto {
|
|
41
|
+
service_name: string;
|
|
42
|
+
barcode_url: string;
|
|
43
|
+
object: string;
|
|
44
|
+
type: string;
|
|
45
|
+
expires_at: number;
|
|
46
|
+
store_names: string[];
|
|
47
|
+
store_name: string;
|
|
48
|
+
reference: string;
|
|
49
|
+
}
|
|
50
|
+
export declare class ChargesDataDto {
|
|
51
|
+
id: string;
|
|
52
|
+
livemode: boolean;
|
|
53
|
+
created_at: number;
|
|
54
|
+
currency: string;
|
|
55
|
+
payment_method: AlternaChargesDataMethodsDto;
|
|
56
|
+
object: string;
|
|
57
|
+
description: string;
|
|
58
|
+
status: string;
|
|
59
|
+
amount: number;
|
|
60
|
+
fee: number;
|
|
61
|
+
customer_id: string;
|
|
62
|
+
order_id: string;
|
|
63
|
+
}
|
|
64
|
+
export declare class ChargesDto {
|
|
65
|
+
object: string;
|
|
66
|
+
has_more: boolean;
|
|
67
|
+
total: number;
|
|
68
|
+
data: ChargesDataDto[];
|
|
69
|
+
}
|
|
70
|
+
export declare class PayOrderResAlternaDto {
|
|
71
|
+
livemode: boolean;
|
|
72
|
+
amount: number;
|
|
73
|
+
currency: string;
|
|
74
|
+
payment_status: string;
|
|
75
|
+
amount_refunded: number;
|
|
76
|
+
customer_info: CustomerInfoDto;
|
|
77
|
+
object: string;
|
|
78
|
+
id: string;
|
|
79
|
+
metadata: MetadataDto;
|
|
80
|
+
is_refundable: boolean;
|
|
81
|
+
created_at: number;
|
|
82
|
+
updated_at: number;
|
|
83
|
+
line_items: AlternaLineItemsDto;
|
|
84
|
+
charges: ChargesDto;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
"livemode": false,
|
|
88
|
+
"amount": 23000,
|
|
89
|
+
"currency": "MXN",
|
|
90
|
+
"payment_status": "pending_payment",
|
|
91
|
+
"amount_refunded": 0,
|
|
92
|
+
"customer_info": {**
|
|
93
|
+
"email": "jorge.martinez@conekta.com",**
|
|
94
|
+
"phone": "+5218181818181",**
|
|
95
|
+
"name": "Jorge Martínez",**
|
|
96
|
+
"object": "customer_info"
|
|
97
|
+
},
|
|
98
|
+
"object": "order",
|
|
99
|
+
"id": "ord_2tbtp8ubDPjNbrRDZ",
|
|
100
|
+
"metadata": {
|
|
101
|
+
"datos_extra": "1234"
|
|
102
|
+
},
|
|
103
|
+
"is_refundable": false,
|
|
104
|
+
"created_at": 1680030285,
|
|
105
|
+
"updated_at": 1680030285,
|
|
106
|
+
"line_items": {
|
|
107
|
+
"object": "list",
|
|
108
|
+
"has_more": false,
|
|
109
|
+
"total": 1,
|
|
110
|
+
"data": [
|
|
111
|
+
{
|
|
112
|
+
line_item_2tbtp8ubDPjNbrRDX",
|
|
113
|
+
"parent_id": "ord_2tbtp8ubDPjNbrRDZ",
|
|
114
|
+
"metadata": {},
|
|
115
|
+
"antifraud_info": {}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"charges": {
|
|
120
|
+
"object": "list",
|
|
121
|
+
"has_more": false,
|
|
122
|
+
"total": 1,
|
|
123
|
+
"data": [
|
|
124
|
+
{
|
|
125
|
+
"id": "64233a4dd2d40c0018b967a6",
|
|
126
|
+
"livemode": false,
|
|
127
|
+
"created_at": 1680030285,
|
|
128
|
+
"currency": "MXN",
|
|
129
|
+
"payment_method": {
|
|
130
|
+
"service_name": "Cash",
|
|
131
|
+
"barcode_url": "https://barcodes.conekta.com/sandbox_reference.png",**
|
|
132
|
+
"object": "cash_payment",
|
|
133
|
+
"type": "cash",**
|
|
134
|
+
"expires_at": 1680138259,**
|
|
135
|
+
"store_names": [**
|
|
136
|
+
"7 Eleven",
|
|
137
|
+
"Farmacias del Ahorro",
|
|
138
|
+
"CIRCLE K",
|
|
139
|
+
"Tiendas Extra",
|
|
140
|
+
"Farmacia Benavides"
|
|
141
|
+
"Soriana"
|
|
142
|
+
"WALDO'S",
|
|
143
|
+
"ELECZION",
|
|
144
|
+
"Super Kiosko"
|
|
145
|
+
"Farmacias Bazar"
|
|
146
|
+
"Wolworth",
|
|
147
|
+
"Del Sol",
|
|
148
|
+
"Yepas",
|
|
149
|
+
"Farmacias De Dios",
|
|
150
|
+
"Farmacias Nosarco",
|
|
151
|
+
"Farmacias Santa Cruz",
|
|
152
|
+
"Farmacentro",
|
|
153
|
+
"Farmacias GyM",
|
|
154
|
+
"Farmacias San Francisco de Asis",
|
|
155
|
+
"Farmacias Union",
|
|
156
|
+
"Farmacias Zapotlan",
|
|
157
|
+
"Farmatodo",
|
|
158
|
+
"Al Super"
|
|
159
|
+
],
|
|
160
|
+
"store_name": "[\"7 Eleven\",\"Farmacias del Ahorro\",\"CIRCLE K\",\"Tiendas Extra\",\"Farmacia Benavides\",\"Soriana\",\"WALDO'S\",\"ELECZION\",\"Wolworth\",\"Del Sol\",\"Yepas\",\"Farmacias De Dios\",\"Farmacias Nosarco\",\"Farmacias Santa Cruz\",\"Farmacentro\",\"Farmacias GyM\",\"Farmacias San Francisco de Asis\",\"Farmacias Union\",\"Farmacias Zapotlan\",\"Farmatodo\",\"Super Kiosko\",\"Farmacias Bazar\",\"Al Super\"]",
|
|
161
|
+
"reference": "7647156830217265"
|
|
162
|
+
},
|
|
163
|
+
"object": "charge",
|
|
164
|
+
"description": "Payment from order",
|
|
165
|
+
"status": "pending_payment",**
|
|
166
|
+
"amount": 23000,**
|
|
167
|
+
"fee": 987,**
|
|
168
|
+
"customer_id": "",
|
|
169
|
+
"order_id": "ord_2tbtp8ubDPjNbrRDZ"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
*/
|