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,5 @@
|
|
|
1
|
+
import { DynamicCoreDto } from './DynamiCoreDto';
|
|
2
|
+
declare const DynamicUpdateReferenceDto_base: import("@nestjs/mapped-types").MappedType<Partial<DynamicCoreDto>>;
|
|
3
|
+
export declare class DynamicUpdateReferenceDto extends DynamicUpdateReferenceDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BusinessDeadlineDto } from './BusinessDeadlineDto';
|
|
2
|
+
export declare class FinancialProgressDto {
|
|
3
|
+
id: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
date: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class FinancialDto {
|
|
8
|
+
dayCut?: number;
|
|
9
|
+
deadlines: BusinessDeadlineDto;
|
|
10
|
+
finalDate?: number;
|
|
11
|
+
finalPayment?: number;
|
|
12
|
+
financed: number;
|
|
13
|
+
initDate: number;
|
|
14
|
+
initial: number;
|
|
15
|
+
provider: string;
|
|
16
|
+
total: number;
|
|
17
|
+
progress?: FinancialProgressDto[];
|
|
18
|
+
pendingOf: string[];
|
|
19
|
+
interest?: number;
|
|
20
|
+
weeklyPayment: number;
|
|
21
|
+
nextPayment?: number;
|
|
22
|
+
commission_opening?: number;
|
|
23
|
+
credit_type?: string;
|
|
24
|
+
interest_arrears?: number;
|
|
25
|
+
interest_rate?: number;
|
|
26
|
+
amount_commission_opening?: number;
|
|
27
|
+
principal_disbursed?: number;
|
|
28
|
+
expected_disbursed?: number;
|
|
29
|
+
clabe: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
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, Min, ValidateNested } from 'class-validator';
|
|
8
|
+
import { BusinessDeadlineDto } from './BusinessDeadlineDto';
|
|
9
|
+
import { Type } from 'class-transformer';
|
|
10
|
+
export class FinancialProgressDto {
|
|
11
|
+
id;
|
|
12
|
+
amount;
|
|
13
|
+
date;
|
|
14
|
+
}
|
|
15
|
+
__decorate([
|
|
16
|
+
IsString()
|
|
17
|
+
], FinancialProgressDto.prototype, "id", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsNumber()
|
|
20
|
+
], FinancialProgressDto.prototype, "amount", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
IsNumber()
|
|
23
|
+
], FinancialProgressDto.prototype, "date", void 0);
|
|
24
|
+
export class FinancialDto {
|
|
25
|
+
dayCut;
|
|
26
|
+
deadlines;
|
|
27
|
+
finalDate;
|
|
28
|
+
finalPayment;
|
|
29
|
+
financed;
|
|
30
|
+
initDate;
|
|
31
|
+
initial;
|
|
32
|
+
provider;
|
|
33
|
+
total;
|
|
34
|
+
progress;
|
|
35
|
+
pendingOf;
|
|
36
|
+
interest;
|
|
37
|
+
weeklyPayment;
|
|
38
|
+
nextPayment;
|
|
39
|
+
commission_opening;
|
|
40
|
+
credit_type;
|
|
41
|
+
interest_arrears; // intereses moratorios dynamic
|
|
42
|
+
interest_rate; // interes credit dynamic
|
|
43
|
+
amount_commission_opening; // comision por apertura dynamic
|
|
44
|
+
principal_disbursed;
|
|
45
|
+
expected_disbursed;
|
|
46
|
+
clabe;
|
|
47
|
+
}
|
|
48
|
+
__decorate([
|
|
49
|
+
IsOptional(),
|
|
50
|
+
IsNumber()
|
|
51
|
+
], FinancialDto.prototype, "dayCut", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
ValidateNested(),
|
|
54
|
+
Type(() => BusinessDeadlineDto)
|
|
55
|
+
], FinancialDto.prototype, "deadlines", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
IsOptional(),
|
|
58
|
+
IsNumber(),
|
|
59
|
+
Min(0)
|
|
60
|
+
], FinancialDto.prototype, "finalDate", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
IsOptional(),
|
|
63
|
+
IsNumber()
|
|
64
|
+
], FinancialDto.prototype, "finalPayment", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
IsNumber()
|
|
67
|
+
], FinancialDto.prototype, "financed", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
IsNumber()
|
|
70
|
+
], FinancialDto.prototype, "initDate", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
IsNumber()
|
|
73
|
+
], FinancialDto.prototype, "initial", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
IsString()
|
|
76
|
+
], FinancialDto.prototype, "provider", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
IsNumber()
|
|
79
|
+
], FinancialDto.prototype, "total", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
IsOptional(),
|
|
82
|
+
IsArray(),
|
|
83
|
+
ValidateNested({ each: true }),
|
|
84
|
+
Type(() => FinancialProgressDto)
|
|
85
|
+
], FinancialDto.prototype, "progress", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
IsString({ each: true }),
|
|
88
|
+
IsArray(),
|
|
89
|
+
IsOptional()
|
|
90
|
+
], FinancialDto.prototype, "pendingOf", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
IsOptional(),
|
|
93
|
+
IsNumber()
|
|
94
|
+
], FinancialDto.prototype, "interest", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
IsNumber()
|
|
97
|
+
], FinancialDto.prototype, "weeklyPayment", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
IsOptional(),
|
|
100
|
+
IsNumber()
|
|
101
|
+
], FinancialDto.prototype, "nextPayment", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
IsOptional(),
|
|
104
|
+
IsNumber()
|
|
105
|
+
], FinancialDto.prototype, "commission_opening", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
IsOptional(),
|
|
108
|
+
IsString()
|
|
109
|
+
], FinancialDto.prototype, "credit_type", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
IsOptional(),
|
|
112
|
+
IsNumber()
|
|
113
|
+
], FinancialDto.prototype, "interest_arrears", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
IsOptional(),
|
|
116
|
+
IsNumber()
|
|
117
|
+
], FinancialDto.prototype, "interest_rate", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
IsOptional(),
|
|
120
|
+
IsNumber()
|
|
121
|
+
], FinancialDto.prototype, "amount_commission_opening", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
IsOptional(),
|
|
124
|
+
IsNumber()
|
|
125
|
+
], FinancialDto.prototype, "principal_disbursed", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
IsOptional(),
|
|
128
|
+
IsNumber()
|
|
129
|
+
], FinancialDto.prototype, "expected_disbursed", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
IsOptional(),
|
|
132
|
+
IsString()
|
|
133
|
+
], FinancialDto.prototype, "clabe", void 0);
|
|
134
|
+
// export class FinancialPartialDto extends PartialType(FinancialDto) {
|
|
135
|
+
// }
|
|
136
|
+
// export class FinancialDto {
|
|
137
|
+
// @IsNumber()
|
|
138
|
+
// @Min(0)
|
|
139
|
+
// total: number;
|
|
140
|
+
//
|
|
141
|
+
// @IsNumber()
|
|
142
|
+
// @Min(0)
|
|
143
|
+
// initial: number;
|
|
144
|
+
//
|
|
145
|
+
// @ValidateNested({ each: true })
|
|
146
|
+
// @Type(() => BusinessDeadlineDto)
|
|
147
|
+
// deadlines: BusinessDeadlineDto;
|
|
148
|
+
//
|
|
149
|
+
// @IsNumber()
|
|
150
|
+
// @Min(0)
|
|
151
|
+
// @IsOptional()
|
|
152
|
+
// initDate: number = new Date().getTime();
|
|
153
|
+
//
|
|
154
|
+
// @IsNumber()
|
|
155
|
+
// @Min(0)
|
|
156
|
+
// @IsOptional()
|
|
157
|
+
// finalDate: number = new Date().getTime();
|
|
158
|
+
//
|
|
159
|
+
// @IsNumber()
|
|
160
|
+
// weeklyPayment: number;
|
|
161
|
+
//
|
|
162
|
+
// @IsOptional()
|
|
163
|
+
// progress: number = 0;
|
|
164
|
+
//
|
|
165
|
+
// @IsArray()
|
|
166
|
+
// @IsOptional()
|
|
167
|
+
// pendingOf: string[];
|
|
168
|
+
//
|
|
169
|
+
// @IsNumber()
|
|
170
|
+
// @IsOptional()
|
|
171
|
+
// dayCut?: number;
|
|
172
|
+
//
|
|
173
|
+
// @IsNumber()
|
|
174
|
+
// @IsOptional()
|
|
175
|
+
// finalPayment?: number;
|
|
176
|
+
//
|
|
177
|
+
// @IsString()
|
|
178
|
+
// provider: string;
|
|
179
|
+
//
|
|
180
|
+
// @IsNumber()
|
|
181
|
+
// finance: number;
|
|
182
|
+
//
|
|
183
|
+
// @IsNumber()
|
|
184
|
+
// nextPayment: number;
|
|
185
|
+
// }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class NotificationContentDto {
|
|
2
|
+
title: string;
|
|
3
|
+
body: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class NotificationDataDto {
|
|
6
|
+
route: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class NotificationDto {
|
|
9
|
+
id?: string;
|
|
10
|
+
token: string;
|
|
11
|
+
notification: NotificationContentDto;
|
|
12
|
+
data: NotificationDataDto;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
import { cNotificationContentDto, cNotificationDataDto } from '../util/Constants';
|
|
10
|
+
export class NotificationContentDto {
|
|
11
|
+
title = "";
|
|
12
|
+
body = "";
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsString()
|
|
16
|
+
], NotificationContentDto.prototype, "title", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
IsString()
|
|
19
|
+
], NotificationContentDto.prototype, "body", void 0);
|
|
20
|
+
export class NotificationDataDto {
|
|
21
|
+
route = "";
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
IsString()
|
|
25
|
+
], NotificationDataDto.prototype, "route", void 0);
|
|
26
|
+
export class NotificationDto {
|
|
27
|
+
id = "";
|
|
28
|
+
token = "";
|
|
29
|
+
notification = cNotificationContentDto;
|
|
30
|
+
data = cNotificationDataDto;
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
IsOptional(),
|
|
34
|
+
IsString()
|
|
35
|
+
], NotificationDto.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
IsString()
|
|
38
|
+
], NotificationDto.prototype, "token", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ValidateNested(),
|
|
41
|
+
Type(() => NotificationContentDto)
|
|
42
|
+
], NotificationDto.prototype, "notification", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
ValidateNested(),
|
|
45
|
+
Type(() => NotificationDataDto)
|
|
46
|
+
], NotificationDto.prototype, "data", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NotificationDto } from "./NotificationDto";
|
|
2
|
+
declare const DynamicUpdateNotificationDto_base: import("@nestjs/mapped-types").MappedType<Partial<NotificationDto>>;
|
|
3
|
+
export declare class DynamicUpdateNotificationDto extends DynamicUpdateNotificationDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
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, IsString, ValidateNested } from 'class-validator';
|
|
9
|
+
import { OrdCreateAntifraudInfoDto } from './OrdCreateAntifraudInfoDto';
|
|
10
|
+
export class OrdCreatLineItemDto {
|
|
11
|
+
antifraud_info;
|
|
12
|
+
name;
|
|
13
|
+
quantity;
|
|
14
|
+
unit_price;
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
ValidateNested(),
|
|
18
|
+
Type(() => OrdCreateAntifraudInfoDto)
|
|
19
|
+
], OrdCreatLineItemDto.prototype, "antifraud_info", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsString()
|
|
22
|
+
], OrdCreatLineItemDto.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsNumber()
|
|
25
|
+
], OrdCreatLineItemDto.prototype, "quantity", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
IsNumber()
|
|
28
|
+
], OrdCreatLineItemDto.prototype, "unit_price", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { IsString } from 'class-validator';
|
|
8
|
+
export class OrdCreateAntifraudInfoDto {
|
|
9
|
+
newKey;
|
|
10
|
+
}
|
|
11
|
+
__decorate([
|
|
12
|
+
IsString()
|
|
13
|
+
], OrdCreateAntifraudInfoDto.prototype, "newKey", void 0);
|
|
@@ -0,0 +1,20 @@
|
|
|
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, ValidateNested } from 'class-validator';
|
|
8
|
+
import { OrdCreatePymtMetDto } from './OrdCreatePymtMetDto';
|
|
9
|
+
import { Type } from "class-transformer";
|
|
10
|
+
export class OrdCreateChargeDto {
|
|
11
|
+
payment_method;
|
|
12
|
+
amount;
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
ValidateNested(),
|
|
16
|
+
Type(() => OrdCreatePymtMetDto)
|
|
17
|
+
], OrdCreateChargeDto.prototype, "payment_method", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsNumber()
|
|
20
|
+
], OrdCreateChargeDto.prototype, "amount", void 0);
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { IsOptional, IsString } from 'class-validator';
|
|
8
|
+
export class OrdCreateCusInfoDto {
|
|
9
|
+
customer_id;
|
|
10
|
+
name;
|
|
11
|
+
email;
|
|
12
|
+
phone;
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsString(),
|
|
16
|
+
IsOptional()
|
|
17
|
+
], OrdCreateCusInfoDto.prototype, "customer_id", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsString(),
|
|
20
|
+
IsOptional()
|
|
21
|
+
], OrdCreateCusInfoDto.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
IsString(),
|
|
24
|
+
IsOptional()
|
|
25
|
+
], OrdCreateCusInfoDto.prototype, "email", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
IsString(),
|
|
28
|
+
IsOptional()
|
|
29
|
+
], OrdCreateCusInfoDto.prototype, "phone", void 0);
|
|
@@ -0,0 +1,17 @@
|
|
|
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, IsString } from 'class-validator';
|
|
8
|
+
export class OrdCreatePymtMetDto {
|
|
9
|
+
expires_at;
|
|
10
|
+
type;
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
IsNumber()
|
|
14
|
+
], OrdCreatePymtMetDto.prototype, "expires_at", void 0);
|
|
15
|
+
__decorate([
|
|
16
|
+
IsString()
|
|
17
|
+
], OrdCreatePymtMetDto.prototype, "type", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { IsOptional, IsString } from 'class-validator';
|
|
8
|
+
export class PassportAdditionalDto {
|
|
9
|
+
client = "";
|
|
10
|
+
clientID = "";
|
|
11
|
+
credit = "";
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsOptional(),
|
|
15
|
+
IsString()
|
|
16
|
+
], PassportAdditionalDto.prototype, "client", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
IsOptional(),
|
|
19
|
+
IsString()
|
|
20
|
+
], PassportAdditionalDto.prototype, "clientID", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
IsOptional(),
|
|
23
|
+
IsString()
|
|
24
|
+
], PassportAdditionalDto.prototype, "credit", void 0);
|
|
@@ -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 { IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
import { PassportProviders } from './PassportDto';
|
|
10
|
+
import { PassportReferenceDataDto } from './PassportReferenceDataDto';
|
|
11
|
+
export class CreatePassportDto {
|
|
12
|
+
type;
|
|
13
|
+
data;
|
|
14
|
+
references;
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
IsString()
|
|
18
|
+
], CreatePassportDto.prototype, "type", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Type(() => PassportReferenceDataDto),
|
|
21
|
+
ValidateNested({ each: true })
|
|
22
|
+
], CreatePassportDto.prototype, "data", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsOptional(),
|
|
25
|
+
Type(() => PassportProviders),
|
|
26
|
+
ValidateNested({ each: true })
|
|
27
|
+
], CreatePassportDto.prototype, "references", void 0);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PassportReferenceDataDto } from './PassportReferenceDataDto';
|
|
2
|
+
export declare class PassportProviders {
|
|
3
|
+
reference: string;
|
|
4
|
+
centerId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class PassportReferenceCentersDto {
|
|
7
|
+
name: string;
|
|
8
|
+
logo: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class PassportReferenceDto {
|
|
11
|
+
reference: string;
|
|
12
|
+
centers: PassportReferenceCentersDto[];
|
|
13
|
+
centerId: number;
|
|
14
|
+
barcode: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class PassportReferenceResDto {
|
|
17
|
+
type: string;
|
|
18
|
+
data: PassportReferenceDataDto;
|
|
19
|
+
message: string;
|
|
20
|
+
references: PassportReferenceDto[];
|
|
21
|
+
}
|
|
22
|
+
export declare class PassportContract {
|
|
23
|
+
id: string;
|
|
24
|
+
client: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class PassportApiResponseDto {
|
|
27
|
+
reference: PassportReferenceResDto;
|
|
28
|
+
id: string;
|
|
29
|
+
contract: PassportContract;
|
|
30
|
+
}
|