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,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 } from 'class-validator';
|
|
8
|
+
export class BusinessDeadlineDto {
|
|
9
|
+
weeks = 0;
|
|
10
|
+
interest = 0;
|
|
11
|
+
}
|
|
12
|
+
__decorate([
|
|
13
|
+
IsNumber()
|
|
14
|
+
], BusinessDeadlineDto.prototype, "weeks", void 0);
|
|
15
|
+
__decorate([
|
|
16
|
+
IsNumber()
|
|
17
|
+
], BusinessDeadlineDto.prototype, "interest", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AddressDto } from './AddressDto';
|
|
2
|
+
import { WeekScheduleDto } from './WeekScheduleDto';
|
|
3
|
+
export declare class BusinessInfoDto {
|
|
4
|
+
version: string;
|
|
5
|
+
name: string;
|
|
6
|
+
address: AddressDto;
|
|
7
|
+
phones: string[];
|
|
8
|
+
email: string;
|
|
9
|
+
schedule: WeekScheduleDto;
|
|
10
|
+
desc: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { ArrayMinSize, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
8
|
+
import { Type } from "class-transformer";
|
|
9
|
+
import { AddressDto } from './AddressDto';
|
|
10
|
+
import { WeekScheduleDto } from './WeekScheduleDto';
|
|
11
|
+
import { cAddressDto, cWeekScheduleDTO } from '../util/Constants';
|
|
12
|
+
export class BusinessInfoDto {
|
|
13
|
+
version = "";
|
|
14
|
+
name = "";
|
|
15
|
+
address = cAddressDto;
|
|
16
|
+
phones = [];
|
|
17
|
+
email = "";
|
|
18
|
+
schedule = cWeekScheduleDTO;
|
|
19
|
+
desc = "";
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
IsOptional(),
|
|
23
|
+
IsString()
|
|
24
|
+
], BusinessInfoDto.prototype, "version", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
IsString()
|
|
27
|
+
], BusinessInfoDto.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
IsOptional(),
|
|
30
|
+
Type(() => AddressDto)
|
|
31
|
+
], BusinessInfoDto.prototype, "address", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
ArrayMinSize(1),
|
|
34
|
+
Type(() => String)
|
|
35
|
+
], BusinessInfoDto.prototype, "phones", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
IsString()
|
|
38
|
+
], BusinessInfoDto.prototype, "email", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsOptional(),
|
|
41
|
+
Type(() => WeekScheduleDto),
|
|
42
|
+
ValidateNested({ each: true })
|
|
43
|
+
], BusinessInfoDto.prototype, "schedule", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsOptional(),
|
|
46
|
+
IsString()
|
|
47
|
+
], BusinessInfoDto.prototype, "desc", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
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, IsNumber } from 'class-validator';
|
|
8
|
+
export class CatalogDto {
|
|
9
|
+
name = "";
|
|
10
|
+
description = "";
|
|
11
|
+
id = "";
|
|
12
|
+
createdAt = 0;
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsString()
|
|
16
|
+
], CatalogDto.prototype, "name", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
IsString()
|
|
19
|
+
], CatalogDto.prototype, "description", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsString()
|
|
22
|
+
], CatalogDto.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsNumber()
|
|
25
|
+
], CatalogDto.prototype, "createdAt", void 0);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ScoreDto, ScoreNoHitDto } from "./ScoreDto";
|
|
2
|
+
import { NotificationDto } from './NotificationDto';
|
|
3
|
+
import { eIdentityTypes, eVerificationStep } from 'ravcredit-lib';
|
|
4
|
+
export declare class ClientPaymentsDto {
|
|
5
|
+
date: number;
|
|
6
|
+
dayPayment: number;
|
|
7
|
+
amount: number;
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class UserReferenceDto {
|
|
11
|
+
name: string;
|
|
12
|
+
phone: string;
|
|
13
|
+
relationship: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class ClientReferencesDto {
|
|
16
|
+
date?: number;
|
|
17
|
+
amount?: number;
|
|
18
|
+
id: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
type?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class ClientDto {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
username: any;
|
|
26
|
+
email: string;
|
|
27
|
+
phone: string;
|
|
28
|
+
curp: string;
|
|
29
|
+
contract?: string;
|
|
30
|
+
password: string;
|
|
31
|
+
createdAt?: number;
|
|
32
|
+
lastLogin?: number;
|
|
33
|
+
payments?: ClientPaymentsDto[];
|
|
34
|
+
reference?: string;
|
|
35
|
+
references?: ClientReferencesDto[];
|
|
36
|
+
token?: string;
|
|
37
|
+
userReferences?: UserReferenceDto[];
|
|
38
|
+
notifications?: NotificationDto[];
|
|
39
|
+
contractUrl?: string;
|
|
40
|
+
exists?: boolean;
|
|
41
|
+
contract_temporary?: string;
|
|
42
|
+
status: string;
|
|
43
|
+
conekta_id?: string;
|
|
44
|
+
passport_id?: string;
|
|
45
|
+
dynamic_id?: string;
|
|
46
|
+
dynamic_account?: string;
|
|
47
|
+
dynamic_ref?: string;
|
|
48
|
+
score?: any;
|
|
49
|
+
}
|
|
50
|
+
export declare class CurpDto {
|
|
51
|
+
curp: string;
|
|
52
|
+
}
|
|
53
|
+
export declare class MediaIdentityDto {
|
|
54
|
+
url: string;
|
|
55
|
+
name: eIdentityTypes;
|
|
56
|
+
active: boolean;
|
|
57
|
+
metadata: any;
|
|
58
|
+
uploaded: number;
|
|
59
|
+
}
|
|
60
|
+
export declare class oClientV2Dto extends ClientDto {
|
|
61
|
+
score: ScoreDto;
|
|
62
|
+
seller_id?: string;
|
|
63
|
+
scoreNoHit?: ScoreNoHitDto;
|
|
64
|
+
study_degree?: string;
|
|
65
|
+
mediaSelfie?: MediaIdentityDto;
|
|
66
|
+
mediaAddress?: MediaIdentityDto;
|
|
67
|
+
mediaWithDevice?: MediaIdentityDto;
|
|
68
|
+
mediaSelfieBack?: MediaIdentityDto;
|
|
69
|
+
identityVerification?: eVerificationStep;
|
|
70
|
+
}
|
|
71
|
+
export declare class UpdateNotificationSimpleDto {
|
|
72
|
+
token: string;
|
|
73
|
+
id: string;
|
|
74
|
+
}
|
|
75
|
+
export declare class NotificationSubscription {
|
|
76
|
+
token: string[];
|
|
77
|
+
}
|
|
@@ -0,0 +1,286 @@
|
|
|
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 { IsArray, IsBoolean, IsEnum, IsNumber, IsOptional, IsString, Validate, ValidateNested } from 'class-validator';
|
|
9
|
+
import { ScoreDto, ScoreNoHitDto } from "./ScoreDto";
|
|
10
|
+
import { eIdentityTypes, eVerificationStep } from 'ravcredit-lib';
|
|
11
|
+
import { IsStringOrNumber } from '../core/Validators';
|
|
12
|
+
export class ClientPaymentsDto {
|
|
13
|
+
date = 0;
|
|
14
|
+
dayPayment = 0;
|
|
15
|
+
amount = 0;
|
|
16
|
+
id = "";
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
IsNumber()
|
|
20
|
+
], ClientPaymentsDto.prototype, "date", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
IsNumber()
|
|
23
|
+
], ClientPaymentsDto.prototype, "dayPayment", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsNumber()
|
|
26
|
+
], ClientPaymentsDto.prototype, "amount", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
IsString()
|
|
29
|
+
], ClientPaymentsDto.prototype, "id", void 0);
|
|
30
|
+
export class UserReferenceDto {
|
|
31
|
+
name = "";
|
|
32
|
+
phone = "";
|
|
33
|
+
relationship = "";
|
|
34
|
+
}
|
|
35
|
+
__decorate([
|
|
36
|
+
IsString()
|
|
37
|
+
], UserReferenceDto.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
IsString()
|
|
40
|
+
], UserReferenceDto.prototype, "phone", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
IsString()
|
|
43
|
+
], UserReferenceDto.prototype, "relationship", void 0);
|
|
44
|
+
export class ClientReferencesDto {
|
|
45
|
+
date;
|
|
46
|
+
amount;
|
|
47
|
+
id;
|
|
48
|
+
url;
|
|
49
|
+
type;
|
|
50
|
+
}
|
|
51
|
+
__decorate([
|
|
52
|
+
IsOptional(),
|
|
53
|
+
IsNumber()
|
|
54
|
+
], ClientReferencesDto.prototype, "date", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
IsOptional(),
|
|
57
|
+
IsNumber()
|
|
58
|
+
], ClientReferencesDto.prototype, "amount", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
IsString()
|
|
61
|
+
], ClientReferencesDto.prototype, "id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
IsOptional(),
|
|
64
|
+
IsString()
|
|
65
|
+
], ClientReferencesDto.prototype, "url", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
IsOptional(),
|
|
68
|
+
IsString()
|
|
69
|
+
], ClientReferencesDto.prototype, "type", void 0);
|
|
70
|
+
export class ClientDto {
|
|
71
|
+
id;
|
|
72
|
+
name;
|
|
73
|
+
username;
|
|
74
|
+
email;
|
|
75
|
+
phone;
|
|
76
|
+
curp;
|
|
77
|
+
contract;
|
|
78
|
+
password;
|
|
79
|
+
createdAt;
|
|
80
|
+
lastLogin;
|
|
81
|
+
payments;
|
|
82
|
+
reference;
|
|
83
|
+
references;
|
|
84
|
+
token;
|
|
85
|
+
userReferences;
|
|
86
|
+
notifications;
|
|
87
|
+
contractUrl;
|
|
88
|
+
exists;
|
|
89
|
+
contract_temporary;
|
|
90
|
+
status;
|
|
91
|
+
conekta_id;
|
|
92
|
+
passport_id;
|
|
93
|
+
dynamic_id;
|
|
94
|
+
dynamic_account;
|
|
95
|
+
dynamic_ref;
|
|
96
|
+
score;
|
|
97
|
+
}
|
|
98
|
+
__decorate([
|
|
99
|
+
IsString(),
|
|
100
|
+
IsOptional()
|
|
101
|
+
], ClientDto.prototype, "id", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
IsString()
|
|
104
|
+
], ClientDto.prototype, "name", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
Validate(IsStringOrNumber)
|
|
107
|
+
], ClientDto.prototype, "username", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
IsString()
|
|
110
|
+
], ClientDto.prototype, "email", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
IsString()
|
|
113
|
+
], ClientDto.prototype, "phone", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
IsString()
|
|
116
|
+
], ClientDto.prototype, "curp", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
IsString(),
|
|
119
|
+
IsOptional()
|
|
120
|
+
], ClientDto.prototype, "contract", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
IsString(),
|
|
123
|
+
IsOptional()
|
|
124
|
+
], ClientDto.prototype, "password", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
IsNumber(),
|
|
127
|
+
IsOptional()
|
|
128
|
+
], ClientDto.prototype, "createdAt", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
IsNumber(),
|
|
131
|
+
IsOptional()
|
|
132
|
+
], ClientDto.prototype, "lastLogin", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
IsArray(),
|
|
135
|
+
IsOptional()
|
|
136
|
+
], ClientDto.prototype, "payments", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
IsOptional()
|
|
139
|
+
], ClientDto.prototype, "reference", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
IsArray(),
|
|
142
|
+
IsOptional()
|
|
143
|
+
], ClientDto.prototype, "references", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
IsOptional(),
|
|
146
|
+
IsString()
|
|
147
|
+
], ClientDto.prototype, "token", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
IsArray()
|
|
150
|
+
], ClientDto.prototype, "userReferences", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
IsOptional(),
|
|
153
|
+
IsArray()
|
|
154
|
+
], ClientDto.prototype, "notifications", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
IsString(),
|
|
157
|
+
IsOptional()
|
|
158
|
+
], ClientDto.prototype, "contractUrl", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
IsOptional()
|
|
161
|
+
], ClientDto.prototype, "exists", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
IsOptional()
|
|
164
|
+
], ClientDto.prototype, "contract_temporary", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
IsString()
|
|
167
|
+
], ClientDto.prototype, "status", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
IsString(),
|
|
170
|
+
IsOptional()
|
|
171
|
+
], ClientDto.prototype, "conekta_id", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
IsString(),
|
|
174
|
+
IsOptional()
|
|
175
|
+
], ClientDto.prototype, "passport_id", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
IsNumber(),
|
|
178
|
+
IsOptional()
|
|
179
|
+
], ClientDto.prototype, "dynamic_id", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
IsNumber(),
|
|
182
|
+
IsOptional()
|
|
183
|
+
], ClientDto.prototype, "dynamic_account", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
IsNumber(),
|
|
186
|
+
IsOptional()
|
|
187
|
+
], ClientDto.prototype, "dynamic_ref", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
IsOptional()
|
|
190
|
+
], ClientDto.prototype, "score", void 0);
|
|
191
|
+
export class CurpDto {
|
|
192
|
+
curp = "";
|
|
193
|
+
}
|
|
194
|
+
__decorate([
|
|
195
|
+
IsString()
|
|
196
|
+
], CurpDto.prototype, "curp", void 0);
|
|
197
|
+
export class MediaIdentityDto {
|
|
198
|
+
url = "";
|
|
199
|
+
name = eIdentityTypes.SELFIE; // Replace with your default if needed
|
|
200
|
+
active = false;
|
|
201
|
+
metadata = null;
|
|
202
|
+
uploaded = 0;
|
|
203
|
+
}
|
|
204
|
+
__decorate([
|
|
205
|
+
IsString()
|
|
206
|
+
], MediaIdentityDto.prototype, "url", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
IsEnum(eIdentityTypes)
|
|
209
|
+
], MediaIdentityDto.prototype, "name", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
IsBoolean()
|
|
212
|
+
], MediaIdentityDto.prototype, "active", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
IsOptional()
|
|
215
|
+
], MediaIdentityDto.prototype, "metadata", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
IsNumber()
|
|
218
|
+
], MediaIdentityDto.prototype, "uploaded", void 0);
|
|
219
|
+
export class oClientV2Dto extends ClientDto {
|
|
220
|
+
score = new ScoreDto();
|
|
221
|
+
seller_id = "";
|
|
222
|
+
scoreNoHit = new ScoreNoHitDto();
|
|
223
|
+
study_degree = "";
|
|
224
|
+
mediaSelfie = new MediaIdentityDto();
|
|
225
|
+
mediaAddress = new MediaIdentityDto();
|
|
226
|
+
mediaWithDevice = new MediaIdentityDto();
|
|
227
|
+
mediaSelfieBack = new MediaIdentityDto();
|
|
228
|
+
identityVerification = eVerificationStep.IDLE;
|
|
229
|
+
}
|
|
230
|
+
__decorate([
|
|
231
|
+
ValidateNested(),
|
|
232
|
+
Type(() => ScoreDto)
|
|
233
|
+
], oClientV2Dto.prototype, "score", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
IsOptional(),
|
|
236
|
+
IsString()
|
|
237
|
+
], oClientV2Dto.prototype, "seller_id", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
IsOptional(),
|
|
240
|
+
ValidateNested(),
|
|
241
|
+
Type(() => ScoreNoHitDto)
|
|
242
|
+
], oClientV2Dto.prototype, "scoreNoHit", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
IsOptional(),
|
|
245
|
+
IsString()
|
|
246
|
+
], oClientV2Dto.prototype, "study_degree", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
IsOptional(),
|
|
249
|
+
ValidateNested(),
|
|
250
|
+
Type(() => MediaIdentityDto)
|
|
251
|
+
], oClientV2Dto.prototype, "mediaSelfie", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
IsOptional(),
|
|
254
|
+
ValidateNested(),
|
|
255
|
+
Type(() => MediaIdentityDto)
|
|
256
|
+
], oClientV2Dto.prototype, "mediaAddress", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
IsOptional(),
|
|
259
|
+
ValidateNested(),
|
|
260
|
+
Type(() => MediaIdentityDto)
|
|
261
|
+
], oClientV2Dto.prototype, "mediaWithDevice", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
IsOptional(),
|
|
264
|
+
ValidateNested(),
|
|
265
|
+
Type(() => MediaIdentityDto)
|
|
266
|
+
], oClientV2Dto.prototype, "mediaSelfieBack", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
IsOptional(),
|
|
269
|
+
IsEnum(eVerificationStep)
|
|
270
|
+
], oClientV2Dto.prototype, "identityVerification", void 0);
|
|
271
|
+
export class UpdateNotificationSimpleDto {
|
|
272
|
+
token = "";
|
|
273
|
+
id = "";
|
|
274
|
+
}
|
|
275
|
+
__decorate([
|
|
276
|
+
IsString()
|
|
277
|
+
], UpdateNotificationSimpleDto.prototype, "token", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
IsString()
|
|
280
|
+
], UpdateNotificationSimpleDto.prototype, "id", void 0);
|
|
281
|
+
export class NotificationSubscription {
|
|
282
|
+
token = [];
|
|
283
|
+
}
|
|
284
|
+
__decorate([
|
|
285
|
+
IsString()
|
|
286
|
+
], NotificationSubscription.prototype, "token", void 0);
|
|
@@ -0,0 +1,32 @@
|
|
|
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, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
import { AddressDto } from './AddressDto';
|
|
10
|
+
export class CompanyDto {
|
|
11
|
+
name = "";
|
|
12
|
+
id = "";
|
|
13
|
+
rfc = "";
|
|
14
|
+
taxRegime = "";
|
|
15
|
+
address = new AddressDto();
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
IsString()
|
|
19
|
+
], CompanyDto.prototype, "name", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsString()
|
|
22
|
+
], CompanyDto.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsString()
|
|
25
|
+
], CompanyDto.prototype, "rfc", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
IsString()
|
|
28
|
+
], CompanyDto.prototype, "taxRegime", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
ValidateNested(),
|
|
31
|
+
Type(() => AddressDto)
|
|
32
|
+
], CompanyDto.prototype, "address", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
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 ConektaChannelDto {
|
|
9
|
+
segment;
|
|
10
|
+
checkout_request_id;
|
|
11
|
+
checkout_request_type;
|
|
12
|
+
id;
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsString()
|
|
16
|
+
], ConektaChannelDto.prototype, "segment", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
IsString()
|
|
19
|
+
], ConektaChannelDto.prototype, "checkout_request_id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsString()
|
|
22
|
+
], ConektaChannelDto.prototype, "checkout_request_type", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
IsString()
|
|
25
|
+
], ConektaChannelDto.prototype, "id", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ConektaChannelDto } from './ConektaChannelDto';
|
|
2
|
+
import { ConektaPaymentMethodDto } from './ConektaPaymentMethodDto';
|
|
3
|
+
export declare class ConektaChargeDataDto {
|
|
4
|
+
id: string;
|
|
5
|
+
livemode: boolean;
|
|
6
|
+
created_at: number;
|
|
7
|
+
currency: string;
|
|
8
|
+
failure_code: string | null;
|
|
9
|
+
failure_message: string | null;
|
|
10
|
+
channel: ConektaChannelDto;
|
|
11
|
+
payment_method: ConektaPaymentMethodDto;
|
|
12
|
+
object: string;
|
|
13
|
+
device_fingerprint: string;
|
|
14
|
+
description: string;
|
|
15
|
+
is_refundable: boolean;
|
|
16
|
+
reference_id: string | null;
|
|
17
|
+
status: string;
|
|
18
|
+
amount: number;
|
|
19
|
+
paid_at: number;
|
|
20
|
+
customer_id: string;
|
|
21
|
+
order_id: string;
|
|
22
|
+
is_button_premia: boolean;
|
|
23
|
+
refunds: string | null;
|
|
24
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { IsBoolean, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
9
|
+
import { ConektaChannelDto } from './ConektaChannelDto';
|
|
10
|
+
import { ConektaPaymentMethodDto } from './ConektaPaymentMethodDto';
|
|
11
|
+
export class ConektaChargeDataDto {
|
|
12
|
+
id;
|
|
13
|
+
livemode;
|
|
14
|
+
created_at;
|
|
15
|
+
currency;
|
|
16
|
+
failure_code;
|
|
17
|
+
failure_message;
|
|
18
|
+
channel;
|
|
19
|
+
payment_method;
|
|
20
|
+
object;
|
|
21
|
+
device_fingerprint;
|
|
22
|
+
description;
|
|
23
|
+
is_refundable;
|
|
24
|
+
reference_id;
|
|
25
|
+
status;
|
|
26
|
+
amount;
|
|
27
|
+
paid_at;
|
|
28
|
+
customer_id;
|
|
29
|
+
order_id;
|
|
30
|
+
is_button_premia;
|
|
31
|
+
refunds;
|
|
32
|
+
}
|
|
33
|
+
__decorate([
|
|
34
|
+
IsString()
|
|
35
|
+
], ConektaChargeDataDto.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
IsBoolean()
|
|
38
|
+
], ConektaChargeDataDto.prototype, "livemode", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsNumber()
|
|
41
|
+
], ConektaChargeDataDto.prototype, "created_at", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
IsString()
|
|
44
|
+
], ConektaChargeDataDto.prototype, "currency", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
IsOptional(),
|
|
47
|
+
IsString()
|
|
48
|
+
], ConektaChargeDataDto.prototype, "failure_code", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
IsOptional(),
|
|
51
|
+
IsString()
|
|
52
|
+
], ConektaChargeDataDto.prototype, "failure_message", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
ValidateNested(),
|
|
55
|
+
Type(() => ConektaChannelDto)
|
|
56
|
+
], ConektaChargeDataDto.prototype, "channel", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
ValidateNested(),
|
|
59
|
+
Type(() => ConektaPaymentMethodDto)
|
|
60
|
+
], ConektaChargeDataDto.prototype, "payment_method", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
IsString()
|
|
63
|
+
], ConektaChargeDataDto.prototype, "object", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
IsString()
|
|
66
|
+
], ConektaChargeDataDto.prototype, "device_fingerprint", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
IsString()
|
|
69
|
+
], ConektaChargeDataDto.prototype, "description", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
IsBoolean()
|
|
72
|
+
], ConektaChargeDataDto.prototype, "is_refundable", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
IsOptional(),
|
|
75
|
+
IsString()
|
|
76
|
+
], ConektaChargeDataDto.prototype, "reference_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
IsString()
|
|
79
|
+
], ConektaChargeDataDto.prototype, "status", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
IsNumber()
|
|
82
|
+
], ConektaChargeDataDto.prototype, "amount", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
IsNumber()
|
|
85
|
+
], ConektaChargeDataDto.prototype, "paid_at", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
IsString()
|
|
88
|
+
], ConektaChargeDataDto.prototype, "customer_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
IsString()
|
|
91
|
+
], ConektaChargeDataDto.prototype, "order_id", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
IsBoolean()
|
|
94
|
+
], ConektaChargeDataDto.prototype, "is_button_premia", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
IsOptional(),
|
|
97
|
+
IsString()
|
|
98
|
+
], ConektaChargeDataDto.prototype, "refunds", void 0);
|