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,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 { Type } from 'class-transformer';
|
|
8
|
+
import { IsArray, IsBoolean, IsNumber, IsString, ValidateNested } from 'class-validator';
|
|
9
|
+
import { ConektaChargeDataDto } from './ConektaChargeDataDto';
|
|
10
|
+
export class ConektaChargesDto {
|
|
11
|
+
object;
|
|
12
|
+
has_more;
|
|
13
|
+
total;
|
|
14
|
+
data;
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
IsString()
|
|
18
|
+
], ConektaChargesDto.prototype, "object", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
IsBoolean()
|
|
21
|
+
], ConektaChargesDto.prototype, "has_more", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
IsNumber()
|
|
24
|
+
], ConektaChargesDto.prototype, "total", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
IsArray(),
|
|
27
|
+
ValidateNested({ each: true }),
|
|
28
|
+
Type(() => ConektaChargeDataDto)
|
|
29
|
+
], ConektaChargesDto.prototype, "data", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class ConektaCheckoutDto {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
livemode: boolean;
|
|
5
|
+
emails_sent: number;
|
|
6
|
+
success_url: string;
|
|
7
|
+
failure_url: string;
|
|
8
|
+
payments_limit_count: number | null;
|
|
9
|
+
paid_payments_count: number;
|
|
10
|
+
status: string;
|
|
11
|
+
type: string;
|
|
12
|
+
recurrent: boolean;
|
|
13
|
+
starts_at: number;
|
|
14
|
+
expires_at: number;
|
|
15
|
+
allowed_payment_methods: string[];
|
|
16
|
+
needs_shipping_contact: boolean;
|
|
17
|
+
redirection_time: number | null;
|
|
18
|
+
metadata_: object;
|
|
19
|
+
can_not_expire: boolean;
|
|
20
|
+
object: string;
|
|
21
|
+
is_redirect_on_failure: boolean;
|
|
22
|
+
slug: string;
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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, IsObject, IsOptional, IsString } from 'class-validator';
|
|
8
|
+
export class ConektaCheckoutDto {
|
|
9
|
+
id;
|
|
10
|
+
name;
|
|
11
|
+
livemode;
|
|
12
|
+
emails_sent;
|
|
13
|
+
success_url;
|
|
14
|
+
failure_url;
|
|
15
|
+
payments_limit_count;
|
|
16
|
+
paid_payments_count;
|
|
17
|
+
status;
|
|
18
|
+
type;
|
|
19
|
+
recurrent;
|
|
20
|
+
starts_at;
|
|
21
|
+
expires_at;
|
|
22
|
+
allowed_payment_methods;
|
|
23
|
+
needs_shipping_contact;
|
|
24
|
+
redirection_time;
|
|
25
|
+
metadata_;
|
|
26
|
+
can_not_expire;
|
|
27
|
+
object;
|
|
28
|
+
is_redirect_on_failure;
|
|
29
|
+
slug;
|
|
30
|
+
url;
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
IsString()
|
|
34
|
+
], ConektaCheckoutDto.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
IsString()
|
|
37
|
+
], ConektaCheckoutDto.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
IsBoolean()
|
|
40
|
+
], ConektaCheckoutDto.prototype, "livemode", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
IsNumber()
|
|
43
|
+
], ConektaCheckoutDto.prototype, "emails_sent", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsString()
|
|
46
|
+
], ConektaCheckoutDto.prototype, "success_url", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
IsString()
|
|
49
|
+
], ConektaCheckoutDto.prototype, "failure_url", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
IsOptional(),
|
|
52
|
+
IsNumber()
|
|
53
|
+
], ConektaCheckoutDto.prototype, "payments_limit_count", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
IsNumber()
|
|
56
|
+
], ConektaCheckoutDto.prototype, "paid_payments_count", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
IsString()
|
|
59
|
+
], ConektaCheckoutDto.prototype, "status", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
IsString()
|
|
62
|
+
], ConektaCheckoutDto.prototype, "type", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
IsBoolean()
|
|
65
|
+
], ConektaCheckoutDto.prototype, "recurrent", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
IsNumber()
|
|
68
|
+
], ConektaCheckoutDto.prototype, "starts_at", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
IsNumber()
|
|
71
|
+
], ConektaCheckoutDto.prototype, "expires_at", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
IsArray(),
|
|
74
|
+
IsString({ each: true })
|
|
75
|
+
], ConektaCheckoutDto.prototype, "allowed_payment_methods", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
IsBoolean()
|
|
78
|
+
], ConektaCheckoutDto.prototype, "needs_shipping_contact", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
IsOptional(),
|
|
81
|
+
IsNumber()
|
|
82
|
+
], ConektaCheckoutDto.prototype, "redirection_time", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
IsOptional(),
|
|
85
|
+
IsObject()
|
|
86
|
+
], ConektaCheckoutDto.prototype, "metadata_", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
IsBoolean()
|
|
89
|
+
], ConektaCheckoutDto.prototype, "can_not_expire", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
IsString()
|
|
92
|
+
], ConektaCheckoutDto.prototype, "object", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
IsBoolean()
|
|
95
|
+
], ConektaCheckoutDto.prototype, "is_redirect_on_failure", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
IsString()
|
|
98
|
+
], ConektaCheckoutDto.prototype, "slug", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
IsString()
|
|
101
|
+
], ConektaCheckoutDto.prototype, "url", void 0);
|
|
@@ -0,0 +1,39 @@
|
|
|
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, IsOptional, IsString } from 'class-validator';
|
|
8
|
+
export class ConektaCustomerInfoDto {
|
|
9
|
+
email;
|
|
10
|
+
phone = '';
|
|
11
|
+
name;
|
|
12
|
+
corporate;
|
|
13
|
+
customer_id;
|
|
14
|
+
object;
|
|
15
|
+
customer_custom_reference;
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
IsString()
|
|
19
|
+
], ConektaCustomerInfoDto.prototype, "email", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
IsOptional(),
|
|
22
|
+
IsString()
|
|
23
|
+
], ConektaCustomerInfoDto.prototype, "phone", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsString()
|
|
26
|
+
], ConektaCustomerInfoDto.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
IsBoolean()
|
|
29
|
+
], ConektaCustomerInfoDto.prototype, "corporate", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
IsString()
|
|
32
|
+
], ConektaCustomerInfoDto.prototype, "customer_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
IsString()
|
|
35
|
+
], ConektaCustomerInfoDto.prototype, "object", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
IsOptional(),
|
|
38
|
+
IsString()
|
|
39
|
+
], ConektaCustomerInfoDto.prototype, "customer_custom_reference", void 0);
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare class ConektaResObjChargePaidDto {
|
|
2
|
+
id: string;
|
|
3
|
+
livemode: boolean;
|
|
4
|
+
created_at: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
payment_method: any;
|
|
7
|
+
object: string;
|
|
8
|
+
description: string;
|
|
9
|
+
status: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
paid_at: number;
|
|
12
|
+
fee: number;
|
|
13
|
+
customer_id: string;
|
|
14
|
+
order_id: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class ConektaResObjOrderPaidDto {
|
|
17
|
+
livemode: boolean;
|
|
18
|
+
amount: number;
|
|
19
|
+
currency: string;
|
|
20
|
+
payment_status: string;
|
|
21
|
+
amount_refunded: number;
|
|
22
|
+
customer_info: any;
|
|
23
|
+
object: string;
|
|
24
|
+
id: string;
|
|
25
|
+
metadata: any;
|
|
26
|
+
is_refundable: boolean;
|
|
27
|
+
created_at: number;
|
|
28
|
+
updated_at: number;
|
|
29
|
+
line_items: any;
|
|
30
|
+
charges: any;
|
|
31
|
+
}
|
|
32
|
+
export declare class ConektaResPrevAttrDto {
|
|
33
|
+
status: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class ConektaResDataDto {
|
|
36
|
+
object: ConektaResObjChargePaidDto;
|
|
37
|
+
previous_attributes: ConektaResPrevAttrDto;
|
|
38
|
+
}
|
|
39
|
+
export declare class ConektaResDto {
|
|
40
|
+
client_id?: string;
|
|
41
|
+
data: ConektaResDataDto;
|
|
42
|
+
livemode: boolean;
|
|
43
|
+
webhook_status: string;
|
|
44
|
+
webhook_logs: any[];
|
|
45
|
+
id: string;
|
|
46
|
+
object: string;
|
|
47
|
+
type: string;
|
|
48
|
+
created_at: number;
|
|
49
|
+
}
|
|
50
|
+
export declare class ConektaSourcesDto {
|
|
51
|
+
type: string;
|
|
52
|
+
expires_at: number;
|
|
53
|
+
}
|
|
54
|
+
export declare class ConektaDto {
|
|
55
|
+
name: string;
|
|
56
|
+
email: string;
|
|
57
|
+
phone: string;
|
|
58
|
+
payment_sources: ConektaSourcesDto[];
|
|
59
|
+
}
|
|
60
|
+
export declare class OxxoRecurrentSourcesDataDto {
|
|
61
|
+
id: string;
|
|
62
|
+
object: string;
|
|
63
|
+
type: string;
|
|
64
|
+
provider: string;
|
|
65
|
+
reference: string;
|
|
66
|
+
barcode: string;
|
|
67
|
+
barcode_url: string;
|
|
68
|
+
expires_at: number;
|
|
69
|
+
created_at: number;
|
|
70
|
+
parent_id: string;
|
|
71
|
+
}
|
|
72
|
+
export declare class OxxoRecurrentSourcesDto {
|
|
73
|
+
object: string;
|
|
74
|
+
has_more: boolean;
|
|
75
|
+
total: number;
|
|
76
|
+
data: OxxoRecurrentSourcesDataDto[];
|
|
77
|
+
}
|
|
78
|
+
export declare class ConektaRecurrentDto {
|
|
79
|
+
corporate: boolean;
|
|
80
|
+
created_at: number;
|
|
81
|
+
livemode: boolean;
|
|
82
|
+
name: string;
|
|
83
|
+
email: string;
|
|
84
|
+
phone: string;
|
|
85
|
+
id: string;
|
|
86
|
+
object: string;
|
|
87
|
+
custom_id: string;
|
|
88
|
+
payment_sources: OxxoRecurrentSourcesDto;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Constants
|
|
92
|
+
* */
|
|
93
|
+
export declare const cConektaResPrevAttr: ConektaResPrevAttrDto;
|
|
94
|
+
export declare const cConektaResObjChargePaid: ConektaResObjChargePaidDto;
|
|
95
|
+
export declare const cConektaResData: ConektaResDataDto;
|
|
@@ -0,0 +1,339 @@
|
|
|
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, IsObject, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
8
|
+
import { Type } from 'class-transformer';
|
|
9
|
+
export class ConektaResObjChargePaidDto {
|
|
10
|
+
id;
|
|
11
|
+
livemode;
|
|
12
|
+
created_at;
|
|
13
|
+
currency;
|
|
14
|
+
payment_method;
|
|
15
|
+
object;
|
|
16
|
+
description;
|
|
17
|
+
status;
|
|
18
|
+
amount;
|
|
19
|
+
paid_at;
|
|
20
|
+
fee;
|
|
21
|
+
customer_id;
|
|
22
|
+
order_id;
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
IsString()
|
|
26
|
+
], ConektaResObjChargePaidDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
IsBoolean()
|
|
29
|
+
], ConektaResObjChargePaidDto.prototype, "livemode", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
IsNumber()
|
|
32
|
+
], ConektaResObjChargePaidDto.prototype, "created_at", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
IsString()
|
|
35
|
+
], ConektaResObjChargePaidDto.prototype, "currency", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
IsObject()
|
|
38
|
+
], ConektaResObjChargePaidDto.prototype, "payment_method", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsString()
|
|
41
|
+
], ConektaResObjChargePaidDto.prototype, "object", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
IsString()
|
|
44
|
+
], ConektaResObjChargePaidDto.prototype, "description", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
IsString()
|
|
47
|
+
], ConektaResObjChargePaidDto.prototype, "status", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
IsNumber()
|
|
50
|
+
], ConektaResObjChargePaidDto.prototype, "amount", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
IsNumber()
|
|
53
|
+
], ConektaResObjChargePaidDto.prototype, "paid_at", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
IsNumber()
|
|
56
|
+
], ConektaResObjChargePaidDto.prototype, "fee", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
IsString()
|
|
59
|
+
], ConektaResObjChargePaidDto.prototype, "customer_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
IsString()
|
|
62
|
+
], ConektaResObjChargePaidDto.prototype, "order_id", void 0);
|
|
63
|
+
export class ConektaResObjOrderPaidDto {
|
|
64
|
+
livemode;
|
|
65
|
+
amount;
|
|
66
|
+
currency;
|
|
67
|
+
payment_status;
|
|
68
|
+
amount_refunded;
|
|
69
|
+
customer_info;
|
|
70
|
+
object;
|
|
71
|
+
id;
|
|
72
|
+
metadata;
|
|
73
|
+
is_refundable;
|
|
74
|
+
created_at;
|
|
75
|
+
updated_at;
|
|
76
|
+
line_items;
|
|
77
|
+
charges;
|
|
78
|
+
}
|
|
79
|
+
__decorate([
|
|
80
|
+
IsBoolean()
|
|
81
|
+
], ConektaResObjOrderPaidDto.prototype, "livemode", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
IsNumber()
|
|
84
|
+
], ConektaResObjOrderPaidDto.prototype, "amount", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
IsString()
|
|
87
|
+
], ConektaResObjOrderPaidDto.prototype, "currency", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
IsString()
|
|
90
|
+
], ConektaResObjOrderPaidDto.prototype, "payment_status", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
IsNumber()
|
|
93
|
+
], ConektaResObjOrderPaidDto.prototype, "amount_refunded", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
IsObject()
|
|
96
|
+
], ConektaResObjOrderPaidDto.prototype, "customer_info", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
IsString()
|
|
99
|
+
], ConektaResObjOrderPaidDto.prototype, "object", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
IsString()
|
|
102
|
+
], ConektaResObjOrderPaidDto.prototype, "id", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
IsObject()
|
|
105
|
+
], ConektaResObjOrderPaidDto.prototype, "metadata", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
IsBoolean()
|
|
108
|
+
], ConektaResObjOrderPaidDto.prototype, "is_refundable", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
IsNumber()
|
|
111
|
+
], ConektaResObjOrderPaidDto.prototype, "created_at", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
IsNumber()
|
|
114
|
+
], ConektaResObjOrderPaidDto.prototype, "updated_at", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
IsObject()
|
|
117
|
+
], ConektaResObjOrderPaidDto.prototype, "line_items", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
IsObject()
|
|
120
|
+
], ConektaResObjOrderPaidDto.prototype, "charges", void 0);
|
|
121
|
+
export class ConektaResPrevAttrDto {
|
|
122
|
+
status;
|
|
123
|
+
}
|
|
124
|
+
__decorate([
|
|
125
|
+
IsString()
|
|
126
|
+
], ConektaResPrevAttrDto.prototype, "status", void 0);
|
|
127
|
+
export class ConektaResDataDto {
|
|
128
|
+
object;
|
|
129
|
+
previous_attributes;
|
|
130
|
+
}
|
|
131
|
+
__decorate([
|
|
132
|
+
ValidateNested(),
|
|
133
|
+
Type(() => ConektaResObjChargePaidDto)
|
|
134
|
+
], ConektaResDataDto.prototype, "object", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
ValidateNested(),
|
|
137
|
+
Type(() => ConektaResPrevAttrDto)
|
|
138
|
+
], ConektaResDataDto.prototype, "previous_attributes", void 0);
|
|
139
|
+
export class ConektaResDto {
|
|
140
|
+
client_id;
|
|
141
|
+
data;
|
|
142
|
+
livemode;
|
|
143
|
+
webhook_status;
|
|
144
|
+
webhook_logs;
|
|
145
|
+
id;
|
|
146
|
+
object;
|
|
147
|
+
type; // Assuming eConektaRes is a string
|
|
148
|
+
created_at;
|
|
149
|
+
}
|
|
150
|
+
__decorate([
|
|
151
|
+
IsOptional(),
|
|
152
|
+
IsString()
|
|
153
|
+
], ConektaResDto.prototype, "client_id", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
ValidateNested(),
|
|
156
|
+
Type(() => ConektaResDataDto)
|
|
157
|
+
], ConektaResDto.prototype, "data", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
IsBoolean()
|
|
160
|
+
], ConektaResDto.prototype, "livemode", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
IsString()
|
|
163
|
+
], ConektaResDto.prototype, "webhook_status", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
IsArray(),
|
|
166
|
+
IsOptional()
|
|
167
|
+
], ConektaResDto.prototype, "webhook_logs", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
IsString()
|
|
170
|
+
], ConektaResDto.prototype, "id", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
IsString()
|
|
173
|
+
], ConektaResDto.prototype, "object", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
IsString()
|
|
176
|
+
], ConektaResDto.prototype, "type", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
IsNumber()
|
|
179
|
+
], ConektaResDto.prototype, "created_at", void 0);
|
|
180
|
+
export class ConektaSourcesDto {
|
|
181
|
+
type;
|
|
182
|
+
expires_at;
|
|
183
|
+
}
|
|
184
|
+
__decorate([
|
|
185
|
+
IsString()
|
|
186
|
+
], ConektaSourcesDto.prototype, "type", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
IsNumber()
|
|
189
|
+
], ConektaSourcesDto.prototype, "expires_at", void 0);
|
|
190
|
+
export class ConektaDto {
|
|
191
|
+
name;
|
|
192
|
+
email;
|
|
193
|
+
phone;
|
|
194
|
+
payment_sources;
|
|
195
|
+
}
|
|
196
|
+
__decorate([
|
|
197
|
+
IsString()
|
|
198
|
+
], ConektaDto.prototype, "name", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
IsString()
|
|
201
|
+
], ConektaDto.prototype, "email", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
IsString()
|
|
204
|
+
], ConektaDto.prototype, "phone", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
IsArray(),
|
|
207
|
+
ValidateNested({ each: true }),
|
|
208
|
+
Type(() => ConektaSourcesDto)
|
|
209
|
+
], ConektaDto.prototype, "payment_sources", void 0);
|
|
210
|
+
export class OxxoRecurrentSourcesDataDto {
|
|
211
|
+
id;
|
|
212
|
+
object;
|
|
213
|
+
type;
|
|
214
|
+
provider;
|
|
215
|
+
reference;
|
|
216
|
+
barcode;
|
|
217
|
+
barcode_url;
|
|
218
|
+
expires_at;
|
|
219
|
+
created_at;
|
|
220
|
+
parent_id;
|
|
221
|
+
}
|
|
222
|
+
__decorate([
|
|
223
|
+
IsString()
|
|
224
|
+
], OxxoRecurrentSourcesDataDto.prototype, "id", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
IsString()
|
|
227
|
+
], OxxoRecurrentSourcesDataDto.prototype, "object", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
IsString()
|
|
230
|
+
], OxxoRecurrentSourcesDataDto.prototype, "type", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
IsString()
|
|
233
|
+
], OxxoRecurrentSourcesDataDto.prototype, "provider", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
IsString()
|
|
236
|
+
], OxxoRecurrentSourcesDataDto.prototype, "reference", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
IsString()
|
|
239
|
+
], OxxoRecurrentSourcesDataDto.prototype, "barcode", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
IsString()
|
|
242
|
+
], OxxoRecurrentSourcesDataDto.prototype, "barcode_url", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
IsNumber()
|
|
245
|
+
], OxxoRecurrentSourcesDataDto.prototype, "expires_at", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
IsNumber()
|
|
248
|
+
], OxxoRecurrentSourcesDataDto.prototype, "created_at", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
IsString()
|
|
251
|
+
], OxxoRecurrentSourcesDataDto.prototype, "parent_id", void 0);
|
|
252
|
+
export class OxxoRecurrentSourcesDto {
|
|
253
|
+
object;
|
|
254
|
+
has_more;
|
|
255
|
+
total;
|
|
256
|
+
data;
|
|
257
|
+
}
|
|
258
|
+
__decorate([
|
|
259
|
+
IsString()
|
|
260
|
+
], OxxoRecurrentSourcesDto.prototype, "object", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
IsBoolean()
|
|
263
|
+
], OxxoRecurrentSourcesDto.prototype, "has_more", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
IsNumber()
|
|
266
|
+
], OxxoRecurrentSourcesDto.prototype, "total", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
IsArray(),
|
|
269
|
+
ValidateNested({ each: true }),
|
|
270
|
+
Type(() => OxxoRecurrentSourcesDataDto)
|
|
271
|
+
], OxxoRecurrentSourcesDto.prototype, "data", void 0);
|
|
272
|
+
export class ConektaRecurrentDto {
|
|
273
|
+
corporate;
|
|
274
|
+
created_at;
|
|
275
|
+
livemode;
|
|
276
|
+
name;
|
|
277
|
+
email;
|
|
278
|
+
phone;
|
|
279
|
+
id;
|
|
280
|
+
object;
|
|
281
|
+
custom_id;
|
|
282
|
+
payment_sources;
|
|
283
|
+
}
|
|
284
|
+
__decorate([
|
|
285
|
+
IsBoolean()
|
|
286
|
+
], ConektaRecurrentDto.prototype, "corporate", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
IsNumber()
|
|
289
|
+
], ConektaRecurrentDto.prototype, "created_at", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
IsBoolean()
|
|
292
|
+
], ConektaRecurrentDto.prototype, "livemode", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
IsString()
|
|
295
|
+
], ConektaRecurrentDto.prototype, "name", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
IsString()
|
|
298
|
+
], ConektaRecurrentDto.prototype, "email", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
IsString()
|
|
301
|
+
], ConektaRecurrentDto.prototype, "phone", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
IsString()
|
|
304
|
+
], ConektaRecurrentDto.prototype, "id", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
IsString()
|
|
307
|
+
], ConektaRecurrentDto.prototype, "object", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
IsString()
|
|
310
|
+
], ConektaRecurrentDto.prototype, "custom_id", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
ValidateNested(),
|
|
313
|
+
Type(() => OxxoRecurrentSourcesDto)
|
|
314
|
+
], ConektaRecurrentDto.prototype, "payment_sources", void 0);
|
|
315
|
+
/**
|
|
316
|
+
* Constants
|
|
317
|
+
* */
|
|
318
|
+
export const cConektaResPrevAttr = {
|
|
319
|
+
status: '',
|
|
320
|
+
};
|
|
321
|
+
export const cConektaResObjChargePaid = {
|
|
322
|
+
id: '',
|
|
323
|
+
livemode: false,
|
|
324
|
+
created_at: 0,
|
|
325
|
+
currency: '',
|
|
326
|
+
payment_method: {},
|
|
327
|
+
object: '',
|
|
328
|
+
description: '',
|
|
329
|
+
status: '',
|
|
330
|
+
amount: 0,
|
|
331
|
+
paid_at: 0,
|
|
332
|
+
fee: 0,
|
|
333
|
+
customer_id: '',
|
|
334
|
+
order_id: '',
|
|
335
|
+
};
|
|
336
|
+
export const cConektaResData = {
|
|
337
|
+
object: cConektaResObjChargePaid,
|
|
338
|
+
previous_attributes: cConektaResPrevAttr,
|
|
339
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class ConektaLineItemDto {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string | null;
|
|
4
|
+
unit_price: number;
|
|
5
|
+
quantity: number;
|
|
6
|
+
sku: string | null;
|
|
7
|
+
tags: string[] | null;
|
|
8
|
+
brand: string | null;
|
|
9
|
+
type: string | null;
|
|
10
|
+
object: string;
|
|
11
|
+
id: string;
|
|
12
|
+
parent_id: string;
|
|
13
|
+
metadata: object;
|
|
14
|
+
antifraud_info: object;
|
|
15
|
+
}
|