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,139 @@
|
|
|
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 { IsBoolean, IsEnum, IsNumber, IsOptional, IsString, Validate, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Transform, Type } from 'class-transformer';
|
|
9
|
+
import { AddressDto } from './AddressDto';
|
|
10
|
+
import { DeviceDto } from './DeviceDto';
|
|
11
|
+
import { FinancialDto } from './FinancialDto';
|
|
12
|
+
import { IsStringOrNumber } from "../core/Validators";
|
|
13
|
+
import { CompanyDto } from './CompanyDto';
|
|
14
|
+
import { oAssetDto } from './AssetDto';
|
|
15
|
+
import { eContractStatus } from 'ravcredit-lib';
|
|
16
|
+
export class ContractDto {
|
|
17
|
+
id;
|
|
18
|
+
client;
|
|
19
|
+
address;
|
|
20
|
+
device;
|
|
21
|
+
financial;
|
|
22
|
+
createdAt;
|
|
23
|
+
lastPayment;
|
|
24
|
+
by;
|
|
25
|
+
status;
|
|
26
|
+
active;
|
|
27
|
+
dynamicAccount;
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
IsString()
|
|
31
|
+
], ContractDto.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
IsString()
|
|
34
|
+
], ContractDto.prototype, "client", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
ValidateNested(),
|
|
37
|
+
Type(() => AddressDto)
|
|
38
|
+
], ContractDto.prototype, "address", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ValidateNested(),
|
|
41
|
+
Type(() => DeviceDto)
|
|
42
|
+
], ContractDto.prototype, "device", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
ValidateNested(),
|
|
45
|
+
Type(() => FinancialDto)
|
|
46
|
+
], ContractDto.prototype, "financial", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
IsNumber()
|
|
49
|
+
], ContractDto.prototype, "createdAt", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
IsNumber()
|
|
52
|
+
], ContractDto.prototype, "lastPayment", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
IsString()
|
|
55
|
+
], ContractDto.prototype, "by", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
IsBoolean(),
|
|
58
|
+
IsOptional()
|
|
59
|
+
], ContractDto.prototype, "status", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
IsBoolean()
|
|
62
|
+
], ContractDto.prototype, "active", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
IsOptional(),
|
|
65
|
+
Validate(IsStringOrNumber)
|
|
66
|
+
], ContractDto.prototype, "dynamicAccount", void 0);
|
|
67
|
+
export class ContractV2Dto extends ContractDto {
|
|
68
|
+
company = new CompanyDto();
|
|
69
|
+
contract_status = eContractStatus.APPROVED; // Or your default enum value
|
|
70
|
+
asset = new oAssetDto();
|
|
71
|
+
}
|
|
72
|
+
__decorate([
|
|
73
|
+
ValidateNested(),
|
|
74
|
+
Type(() => CompanyDto)
|
|
75
|
+
], ContractV2Dto.prototype, "company", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
IsEnum(eContractStatus)
|
|
78
|
+
], ContractV2Dto.prototype, "contract_status", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
ValidateNested(),
|
|
81
|
+
Type(() => oAssetDto)
|
|
82
|
+
], ContractV2Dto.prototype, "asset", void 0);
|
|
83
|
+
export class ContractDto2 {
|
|
84
|
+
id;
|
|
85
|
+
client;
|
|
86
|
+
address;
|
|
87
|
+
device;
|
|
88
|
+
financial;
|
|
89
|
+
createdAt;
|
|
90
|
+
lastPayment;
|
|
91
|
+
photo;
|
|
92
|
+
by;
|
|
93
|
+
active = true;
|
|
94
|
+
}
|
|
95
|
+
__decorate([
|
|
96
|
+
Transform(({ value }) => value.trim()),
|
|
97
|
+
IsString()
|
|
98
|
+
], ContractDto2.prototype, "id", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
Transform(({ value }) => value.trim()),
|
|
101
|
+
IsString()
|
|
102
|
+
], ContractDto2.prototype, "client", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
ValidateNested({ each: true }),
|
|
105
|
+
Type(() => AddressDto)
|
|
106
|
+
], ContractDto2.prototype, "address", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
ValidateNested({ each: true }),
|
|
109
|
+
Type(() => DeviceDto)
|
|
110
|
+
], ContractDto2.prototype, "device", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
Type(() => FinancialDto),
|
|
113
|
+
ValidateNested({ each: true })
|
|
114
|
+
], ContractDto2.prototype, "financial", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
IsNumber(),
|
|
117
|
+
IsOptional()
|
|
118
|
+
], ContractDto2.prototype, "createdAt", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
IsNumber(),
|
|
121
|
+
IsOptional()
|
|
122
|
+
], ContractDto2.prototype, "lastPayment", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
IsString(),
|
|
125
|
+
IsOptional()
|
|
126
|
+
], ContractDto2.prototype, "photo", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
IsString()
|
|
129
|
+
], ContractDto2.prototype, "by", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
IsOptional(),
|
|
132
|
+
IsBoolean()
|
|
133
|
+
], ContractDto2.prototype, "active", void 0);
|
|
134
|
+
export class PaymentVerificationDTO {
|
|
135
|
+
id;
|
|
136
|
+
}
|
|
137
|
+
__decorate([
|
|
138
|
+
IsString()
|
|
139
|
+
], PaymentVerificationDTO.prototype, "id", void 0);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class CustomerDto {
|
|
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
|
+
export declare class CustomerInfoDto {
|
|
13
|
+
customer_id: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
email?: string;
|
|
16
|
+
phone?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
8
|
+
export class CustomerDto {
|
|
9
|
+
livemode;
|
|
10
|
+
name;
|
|
11
|
+
email;
|
|
12
|
+
phone;
|
|
13
|
+
id;
|
|
14
|
+
object;
|
|
15
|
+
created_at;
|
|
16
|
+
corporate;
|
|
17
|
+
custom_reference;
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
IsBoolean()
|
|
21
|
+
], CustomerDto.prototype, "livemode", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
IsString()
|
|
24
|
+
], CustomerDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
IsString()
|
|
27
|
+
], CustomerDto.prototype, "email", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsString()
|
|
30
|
+
], CustomerDto.prototype, "phone", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
IsString()
|
|
33
|
+
], CustomerDto.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsString()
|
|
36
|
+
], CustomerDto.prototype, "object", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
IsNumber()
|
|
39
|
+
], CustomerDto.prototype, "created_at", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
IsBoolean()
|
|
42
|
+
], CustomerDto.prototype, "corporate", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
IsString()
|
|
45
|
+
], CustomerDto.prototype, "custom_reference", void 0);
|
|
46
|
+
export class CustomerInfoDto {
|
|
47
|
+
customer_id;
|
|
48
|
+
name;
|
|
49
|
+
email;
|
|
50
|
+
phone;
|
|
51
|
+
}
|
|
52
|
+
__decorate([
|
|
53
|
+
IsString()
|
|
54
|
+
], CustomerInfoDto.prototype, "customer_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
IsOptional(),
|
|
57
|
+
IsString()
|
|
58
|
+
], CustomerInfoDto.prototype, "name", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
IsOptional(),
|
|
61
|
+
IsString()
|
|
62
|
+
], CustomerInfoDto.prototype, "email", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
IsOptional(),
|
|
65
|
+
IsString()
|
|
66
|
+
], CustomerInfoDto.prototype, "phone", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
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 DeviceDto {
|
|
9
|
+
device;
|
|
10
|
+
id;
|
|
11
|
+
IMEI;
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsString()
|
|
15
|
+
], DeviceDto.prototype, "device", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
IsString(),
|
|
18
|
+
IsOptional()
|
|
19
|
+
], DeviceDto.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsString()
|
|
22
|
+
], DeviceDto.prototype, "IMEI", void 0);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credit DTO
|
|
3
|
+
* */
|
|
4
|
+
export declare class IDCCreditPropertiesDTO {
|
|
5
|
+
start_date: string;
|
|
6
|
+
principal_disbursed: number;
|
|
7
|
+
expected_disbursed: number;
|
|
8
|
+
amount_commission_opening: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class IDCCreditConfigDTO {
|
|
11
|
+
contract: string;
|
|
12
|
+
credit_type: string;
|
|
13
|
+
interest_rate: number;
|
|
14
|
+
installments: number;
|
|
15
|
+
periodicity: string;
|
|
16
|
+
interest_base: string;
|
|
17
|
+
commission_opening: number;
|
|
18
|
+
financed_amount: number;
|
|
19
|
+
interest_arrears: number;
|
|
20
|
+
}
|
|
21
|
+
export declare class IDCCreditDTO {
|
|
22
|
+
id: number;
|
|
23
|
+
group: number;
|
|
24
|
+
company: number;
|
|
25
|
+
client: number;
|
|
26
|
+
created_at: string;
|
|
27
|
+
currency: string;
|
|
28
|
+
status: string;
|
|
29
|
+
properties: IDCCreditPropertiesDTO;
|
|
30
|
+
product: number;
|
|
31
|
+
enabled: string;
|
|
32
|
+
config: IDCCreditConfigDTO;
|
|
33
|
+
amount: number;
|
|
34
|
+
type: string;
|
|
35
|
+
identifier: null | string;
|
|
36
|
+
start_at: null | string;
|
|
37
|
+
}
|
|
38
|
+
export declare class IDCPaymentDto {
|
|
39
|
+
operation: number;
|
|
40
|
+
account: string;
|
|
41
|
+
date: string;
|
|
42
|
+
amount: number;
|
|
43
|
+
external_id: string;
|
|
44
|
+
dst_account: string;
|
|
45
|
+
extras: object;
|
|
46
|
+
reference: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
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 { IsDateString, IsNumber, IsObject, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
/**
|
|
10
|
+
* Credit DTO
|
|
11
|
+
* */
|
|
12
|
+
export class IDCCreditPropertiesDTO {
|
|
13
|
+
start_date;
|
|
14
|
+
principal_disbursed;
|
|
15
|
+
expected_disbursed;
|
|
16
|
+
amount_commission_opening;
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
IsString()
|
|
20
|
+
], IDCCreditPropertiesDTO.prototype, "start_date", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
IsNumber()
|
|
23
|
+
], IDCCreditPropertiesDTO.prototype, "principal_disbursed", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsNumber()
|
|
26
|
+
], IDCCreditPropertiesDTO.prototype, "expected_disbursed", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
IsNumber()
|
|
29
|
+
], IDCCreditPropertiesDTO.prototype, "amount_commission_opening", void 0);
|
|
30
|
+
export class IDCCreditConfigDTO {
|
|
31
|
+
contract;
|
|
32
|
+
credit_type;
|
|
33
|
+
interest_rate;
|
|
34
|
+
installments;
|
|
35
|
+
periodicity;
|
|
36
|
+
interest_base;
|
|
37
|
+
commission_opening;
|
|
38
|
+
financed_amount;
|
|
39
|
+
interest_arrears;
|
|
40
|
+
}
|
|
41
|
+
__decorate([
|
|
42
|
+
IsString()
|
|
43
|
+
], IDCCreditConfigDTO.prototype, "contract", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsString()
|
|
46
|
+
], IDCCreditConfigDTO.prototype, "credit_type", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
IsNumber()
|
|
49
|
+
], IDCCreditConfigDTO.prototype, "interest_rate", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
IsNumber()
|
|
52
|
+
], IDCCreditConfigDTO.prototype, "installments", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
IsString()
|
|
55
|
+
], IDCCreditConfigDTO.prototype, "periodicity", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
IsString()
|
|
58
|
+
], IDCCreditConfigDTO.prototype, "interest_base", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
IsNumber()
|
|
61
|
+
], IDCCreditConfigDTO.prototype, "commission_opening", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
IsNumber()
|
|
64
|
+
], IDCCreditConfigDTO.prototype, "financed_amount", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
IsNumber()
|
|
67
|
+
], IDCCreditConfigDTO.prototype, "interest_arrears", void 0);
|
|
68
|
+
export class IDCCreditDTO {
|
|
69
|
+
id;
|
|
70
|
+
group;
|
|
71
|
+
company;
|
|
72
|
+
client;
|
|
73
|
+
created_at;
|
|
74
|
+
currency;
|
|
75
|
+
status;
|
|
76
|
+
properties;
|
|
77
|
+
product;
|
|
78
|
+
enabled;
|
|
79
|
+
config;
|
|
80
|
+
amount;
|
|
81
|
+
type;
|
|
82
|
+
identifier;
|
|
83
|
+
start_at;
|
|
84
|
+
}
|
|
85
|
+
__decorate([
|
|
86
|
+
IsNumber()
|
|
87
|
+
], IDCCreditDTO.prototype, "id", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
IsNumber()
|
|
90
|
+
], IDCCreditDTO.prototype, "group", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
IsNumber()
|
|
93
|
+
], IDCCreditDTO.prototype, "company", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
IsNumber()
|
|
96
|
+
], IDCCreditDTO.prototype, "client", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
IsDateString()
|
|
99
|
+
], IDCCreditDTO.prototype, "created_at", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
IsString()
|
|
102
|
+
], IDCCreditDTO.prototype, "currency", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
IsString()
|
|
105
|
+
], IDCCreditDTO.prototype, "status", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
ValidateNested(),
|
|
108
|
+
Type(() => IDCCreditPropertiesDTO)
|
|
109
|
+
], IDCCreditDTO.prototype, "properties", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
IsNumber()
|
|
112
|
+
], IDCCreditDTO.prototype, "product", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
IsString()
|
|
115
|
+
], IDCCreditDTO.prototype, "enabled", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
ValidateNested(),
|
|
118
|
+
Type(() => IDCCreditConfigDTO)
|
|
119
|
+
], IDCCreditDTO.prototype, "config", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
IsNumber()
|
|
122
|
+
], IDCCreditDTO.prototype, "amount", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
IsString()
|
|
125
|
+
], IDCCreditDTO.prototype, "type", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
IsOptional(),
|
|
128
|
+
IsString()
|
|
129
|
+
], IDCCreditDTO.prototype, "identifier", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
IsOptional(),
|
|
132
|
+
IsString()
|
|
133
|
+
], IDCCreditDTO.prototype, "start_at", void 0);
|
|
134
|
+
/* Credit payment */
|
|
135
|
+
export class IDCPaymentDto {
|
|
136
|
+
operation;
|
|
137
|
+
account;
|
|
138
|
+
date;
|
|
139
|
+
amount;
|
|
140
|
+
external_id;
|
|
141
|
+
dst_account;
|
|
142
|
+
extras;
|
|
143
|
+
reference;
|
|
144
|
+
}
|
|
145
|
+
__decorate([
|
|
146
|
+
IsNumber()
|
|
147
|
+
], IDCPaymentDto.prototype, "operation", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
IsString()
|
|
150
|
+
], IDCPaymentDto.prototype, "account", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
IsString()
|
|
153
|
+
], IDCPaymentDto.prototype, "date", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
IsNumber()
|
|
156
|
+
], IDCPaymentDto.prototype, "amount", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
IsOptional(),
|
|
159
|
+
IsString()
|
|
160
|
+
], IDCPaymentDto.prototype, "external_id", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
IsString()
|
|
163
|
+
], IDCPaymentDto.prototype, "dst_account", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
IsOptional(),
|
|
166
|
+
IsObject()
|
|
167
|
+
], IDCPaymentDto.prototype, "extras", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
IsString()
|
|
170
|
+
], IDCPaymentDto.prototype, "reference", void 0);
|