@fiado/type-kit 1.1.56 → 1.1.57

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.
Files changed (98) hide show
  1. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  2. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  3. package/bin/transactionProcessor/dtos/AmountInfo.d.ts +6 -0
  4. package/bin/transactionProcessor/dtos/AmountInfo.js +6 -0
  5. package/bin/transactionProcessor/dtos/AmountInfoItem.d.ts +4 -0
  6. package/bin/transactionProcessor/dtos/AmountInfoItem.js +6 -0
  7. package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.d.ts +17 -0
  8. package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.js +6 -0
  9. package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.d.ts +16 -0
  10. package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.js +6 -0
  11. package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.d.ts → AuthorizeP2pTransactionRequest.d.ts} +1 -0
  12. package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.d.ts → AuthorizePocketTransactionRequest.d.ts} +2 -1
  13. package/{src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts → bin/transactionProcessor/dtos/CardInfo.d.ts} +6 -6
  14. package/bin/{pomelo/dtos/PomeloCreateUserRequest.js → transactionProcessor/dtos/CardInfo.js} +4 -0
  15. package/bin/transactionProcessor/dtos/InstallmentsInfo.d.ts +7 -0
  16. package/bin/transactionProcessor/dtos/InstallmentsInfo.js +6 -0
  17. package/bin/transactionProcessor/dtos/{private/PrivateProcessorMerchantInfo.d.ts → MerchantInfo.d.ts} +1 -1
  18. package/bin/transactionProcessor/dtos/MerchantInfo.js +6 -0
  19. package/bin/transactionProcessor/dtos/{private/PrivateProcessorTransactionInfo.d.ts → TransactionInfo.d.ts} +1 -1
  20. package/bin/transactionProcessor/dtos/TransactionInfo.js +6 -0
  21. package/bin/transactionProcessor/index.d.ts +10 -8
  22. package/bin/transactionProcessor/index.js +10 -8
  23. package/package.json +1 -1
  24. package/src/transaction/dtos/TransactionCreateRequest.ts +1 -1
  25. package/src/transactionProcessor/dtos/AmountInfo.ts +7 -0
  26. package/src/transactionProcessor/dtos/AmountInfoItem.ts +4 -0
  27. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +18 -0
  28. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +17 -0
  29. package/src/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.ts → AuthorizeP2pTransactionRequest.ts} +1 -0
  30. package/src/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.ts → AuthorizePocketTransactionRequest.ts} +2 -1
  31. package/{bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts → src/transactionProcessor/dtos/CardInfo.ts} +6 -6
  32. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +7 -0
  33. package/src/transactionProcessor/dtos/{private/PrivateProcessorMerchantInfo.ts → MerchantInfo.ts} +1 -1
  34. package/src/transactionProcessor/dtos/{private/PrivateProcessorTransactionInfo.ts → TransactionInfo.ts} +1 -1
  35. package/src/transactionProcessor/index.ts +10 -8
  36. package/bin/account/dtos/AccountResponse.d.ts +0 -21
  37. package/bin/account/dtos/AccountResponse.js +0 -6
  38. package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
  39. package/bin/account/dtos/PocketCreateRequest.js +0 -31
  40. package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
  41. package/bin/account/dtos/PocketCreateResponse.js +0 -6
  42. package/bin/account/enums/AccountStatus.d.ts +0 -5
  43. package/bin/account/enums/AccountStatus.js +0 -9
  44. package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
  45. package/bin/card/dtos/CardCreateRequest.js +0 -176
  46. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
  47. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
  48. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
  49. package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
  50. package/bin/pomelo/enums/CountryEnum.js +0 -12
  51. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
  52. package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
  53. package/bin/pomelo/enums/SexEnum.d.ts +0 -4
  54. package/bin/pomelo/enums/SexEnum.js +0 -8
  55. package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
  56. package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
  57. package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
  58. package/bin/pomelo/enums/UserStatusEnum.js +0 -8
  59. package/bin/pomelo/index.d.ts +0 -7
  60. package/bin/pomelo/index.js +0 -25
  61. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  62. package/bin/tern/dtos/TernAddress.js +0 -40
  63. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  64. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  65. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
  66. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  67. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  68. package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
  69. package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
  70. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  71. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  72. package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
  73. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  74. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  75. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  76. package/bin/tern/dtos/TernGetUserRequest.js +0 -20
  77. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  78. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  79. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  80. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  81. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  82. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  83. package/bin/tern/index.d.ts +0 -11
  84. package/bin/tern/index.js +0 -29
  85. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
  86. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
  87. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
  88. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
  89. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
  90. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
  91. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
  92. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
  93. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
  94. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +0 -7
  95. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +0 -4
  96. package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +0 -17
  97. /package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.js → AuthorizeP2pTransactionRequest.js} +0 -0
  98. /package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.js → AuthorizePocketTransactionRequest.js} +0 -0
@@ -1,176 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CardCreateRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const CountryId_1 = require("../../country/enums/CountryId");
16
- const CardType_1 = require("../enums/CardType");
17
- const Brand_1 = require("../enums/Brand");
18
- const OwnershipType_1 = require("../enums/OwnershipType");
19
- const Status_1 = require("../enums/Status");
20
- const regex_1 = require("../../helpers/constans/regex");
21
- const address_1 = require("../../address");
22
- class CardCreateRequest {
23
- }
24
- exports.CardCreateRequest = CardCreateRequest;
25
- __decorate([
26
- (0, class_validator_1.IsOptional)(),
27
- (0, class_validator_1.IsString)(),
28
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
29
- message: 'id must be a valid UUID v4',
30
- }),
31
- __metadata("design:type", String)
32
- ], CardCreateRequest.prototype, "id", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsOptional)(),
35
- (0, class_validator_1.IsString)(),
36
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
37
- message: 'accountId must be a valid UUID v4 or null',
38
- }),
39
- __metadata("design:type", String)
40
- ], CardCreateRequest.prototype, "accountId", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsOptional)(),
43
- (0, class_validator_1.IsString)(),
44
- (0, class_validator_1.Matches)(regex_1.regexIso8601, {
45
- message: 'activationDate must be a valid ISO 8601 date string',
46
- }),
47
- __metadata("design:type", String)
48
- ], CardCreateRequest.prototype, "activationDate", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsEnum)(CountryId_1.CountryId),
51
- __metadata("design:type", String)
52
- ], CardCreateRequest.prototype, "countryId", void 0);
53
- __decorate([
54
- (0, class_validator_1.IsEnum)(CardType_1.CardType),
55
- __metadata("design:type", String)
56
- ], CardCreateRequest.prototype, "type", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsString)(),
59
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
60
- message: 'directoryId must be a valid UUID v4',
61
- }),
62
- __metadata("design:type", String)
63
- ], CardCreateRequest.prototype, "directoryId", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsString)(),
66
- (0, class_validator_1.Length)(1, 100),
67
- __metadata("design:type", String)
68
- ], CardCreateRequest.prototype, "externalCardId", void 0);
69
- __decorate([
70
- (0, class_validator_1.IsString)(),
71
- (0, class_validator_1.Length)(1, 100),
72
- __metadata("design:type", String)
73
- ], CardCreateRequest.prototype, "externalUserId", void 0);
74
- __decorate([
75
- (0, class_validator_1.IsOptional)(),
76
- (0, class_validator_1.IsString)(),
77
- (0, class_validator_1.Length)(1, 100),
78
- __metadata("design:type", String)
79
- ], CardCreateRequest.prototype, "externalShipmentId", void 0);
80
- __decorate([
81
- (0, class_validator_1.IsOptional)(),
82
- (0, class_validator_1.IsString)(),
83
- (0, class_validator_1.Length)(1, 50),
84
- __metadata("design:type", String)
85
- ], CardCreateRequest.prototype, "shipmentProvider", void 0);
86
- __decorate([
87
- (0, class_validator_1.IsOptional)(),
88
- (0, class_validator_1.IsString)(),
89
- (0, class_validator_1.Length)(1, 50),
90
- __metadata("design:type", String)
91
- ], CardCreateRequest.prototype, "externalShipmentTrackingId", void 0);
92
- __decorate([
93
- (0, class_validator_1.IsOptional)(),
94
- (0, class_validator_1.IsString)(),
95
- (0, class_validator_1.Length)(1, 200),
96
- __metadata("design:type", String)
97
- ], CardCreateRequest.prototype, "externalShipmentTrackingUrl", void 0);
98
- __decorate([
99
- (0, class_validator_1.IsOptional)(),
100
- (0, class_validator_1.IsString)(),
101
- (0, class_validator_1.Length)(1, 50),
102
- __metadata("design:type", String)
103
- ], CardCreateRequest.prototype, "holderName", void 0);
104
- __decorate([
105
- (0, class_validator_1.IsOptional)(),
106
- (0, class_validator_1.IsString)(),
107
- (0, class_validator_1.Length)(1, 50),
108
- __metadata("design:type", String)
109
- ], CardCreateRequest.prototype, "holderLastName", void 0);
110
- __decorate([
111
- (0, class_validator_1.IsOptional)(),
112
- (0, class_validator_1.IsString)(),
113
- (0, class_validator_1.Length)(1, 200),
114
- __metadata("design:type", String)
115
- ], CardCreateRequest.prototype, "imageUrl", void 0);
116
- __decorate([
117
- (0, class_validator_1.IsEnum)(Brand_1.Brand),
118
- __metadata("design:type", String)
119
- ], CardCreateRequest.prototype, "brand", void 0);
120
- __decorate([
121
- (0, class_validator_1.IsEnum)(OwnershipType_1.OwnershipType),
122
- __metadata("design:type", String)
123
- ], CardCreateRequest.prototype, "ownershipType", void 0);
124
- __decorate([
125
- (0, class_validator_1.IsString)(),
126
- (0, class_validator_1.Length)(4, 4),
127
- __metadata("design:type", String)
128
- ], CardCreateRequest.prototype, "lastFour", void 0);
129
- __decorate([
130
- (0, class_validator_1.IsOptional)(),
131
- (0, class_validator_1.IsString)(),
132
- (0, class_validator_1.Length)(1, 50),
133
- __metadata("design:type", String)
134
- ], CardCreateRequest.prototype, "providerName", void 0);
135
- __decorate([
136
- (0, class_validator_1.IsEnum)(Status_1.Status),
137
- __metadata("design:type", String)
138
- ], CardCreateRequest.prototype, "status", void 0);
139
- __decorate([
140
- (0, class_validator_1.IsOptional)(),
141
- (0, class_validator_1.IsString)(),
142
- __metadata("design:type", String)
143
- ], CardCreateRequest.prototype, "statusUpdateDate", void 0);
144
- __decorate([
145
- (0, class_validator_1.IsOptional)(),
146
- (0, class_validator_1.IsString)(),
147
- (0, class_validator_1.Length)(1, 50),
148
- __metadata("design:type", String)
149
- ], CardCreateRequest.prototype, "tenantId", void 0);
150
- __decorate([
151
- (0, class_validator_1.IsOptional)(),
152
- (0, class_validator_1.IsNumber)(),
153
- (0, class_validator_1.Min)(1),
154
- (0, class_validator_1.Max)(9999999999),
155
- __metadata("design:type", Number)
156
- ], CardCreateRequest.prototype, "spendLimitByTransaction", void 0);
157
- __decorate([
158
- (0, class_validator_1.IsOptional)(),
159
- (0, class_validator_1.IsNumber)(),
160
- (0, class_validator_1.Min)(1),
161
- (0, class_validator_1.Max)(9999999999),
162
- __metadata("design:type", Number)
163
- ], CardCreateRequest.prototype, "spendLimitByDay", void 0);
164
- __decorate([
165
- (0, class_validator_1.IsOptional)(),
166
- (0, class_validator_1.IsNumber)(),
167
- (0, class_validator_1.Min)(1),
168
- (0, class_validator_1.Max)(9999999999),
169
- __metadata("design:type", Number)
170
- ], CardCreateRequest.prototype, "spendLimitByMonth", void 0);
171
- __decorate([
172
- (0, class_validator_1.IsOptional)(),
173
- (0, class_validator_1.ValidateNested)(),
174
- (0, class_transformer_1.Type)(() => address_1.Shipping),
175
- __metadata("design:type", address_1.Shipping)
176
- ], CardCreateRequest.prototype, "shippedAddress", void 0);
@@ -1,28 +0,0 @@
1
- import { CountryEnum } from "../enums/CountryEnum";
2
- import { SexEnum } from "../enums/SexEnum";
3
- import { TaxTypeEnum } from "../enums/TaxTypeEnum";
4
- export type PomeloCreateUserRequest = {
5
- name?: string;
6
- surname?: string;
7
- identification_type?: "INE";
8
- identification_value?: string;
9
- birthdate?: string;
10
- gender?: SexEnum;
11
- email: string;
12
- phone?: string;
13
- tax_identification_type?: TaxTypeEnum;
14
- tax_identification_value?: string;
15
- legal_address: {
16
- street_name?: string;
17
- street_number?: string;
18
- floor?: string;
19
- apartment?: string;
20
- zip_code?: string;
21
- neighborhood?: string;
22
- city?: string;
23
- region?: string;
24
- additional_info?: string;
25
- country?: CountryEnum;
26
- };
27
- operation_country: CountryEnum;
28
- };
@@ -1,35 +0,0 @@
1
- import { CountryEnum } from "../enums/CountryEnum";
2
- import { IdentificationTypeEnum } from "../enums/IdentificationTypeEnum";
3
- import { SexEnum } from "../enums/SexEnum";
4
- import { TaxTypeEnum } from "../enums/TaxTypeEnum";
5
- import { UserStatusEnum } from "../enums/UserStatusEnum";
6
- export interface PomeloCreateUserResponse {
7
- data: {
8
- id: string;
9
- name: string;
10
- surname: string;
11
- identification_type: IdentificationTypeEnum;
12
- identification_value: string;
13
- birthdate: string;
14
- gender: SexEnum;
15
- email: string;
16
- phone: string;
17
- tax_identification_type: TaxTypeEnum;
18
- tax_identification_value: string;
19
- nationality: CountryEnum;
20
- status: UserStatusEnum;
21
- operation_country: CountryEnum;
22
- legal_address: {
23
- street_name: string;
24
- street_number: string;
25
- floor: string;
26
- apartment: string;
27
- zip_code: string;
28
- neighborhood: string;
29
- city: string;
30
- region: string;
31
- additional_info: string;
32
- country: CountryEnum;
33
- };
34
- };
35
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export declare enum CountryEnum {
2
- MEX = "MEX",
3
- ARG = "ARG",
4
- BRA = "BRA",
5
- PER = "PER",
6
- COL = "COL",
7
- CHL = "CHL"
8
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CountryEnum = void 0;
4
- var CountryEnum;
5
- (function (CountryEnum) {
6
- CountryEnum["MEX"] = "MEX";
7
- CountryEnum["ARG"] = "ARG";
8
- CountryEnum["BRA"] = "BRA";
9
- CountryEnum["PER"] = "PER";
10
- CountryEnum["COL"] = "COL";
11
- CountryEnum["CHL"] = "CHL";
12
- })(CountryEnum || (exports.CountryEnum = CountryEnum = {}));
@@ -1,7 +0,0 @@
1
- export declare enum IdentificationTypeEnum {
2
- MX_NATIONAL_ID = "INE",
3
- MX_PASSPORT = "PASSPORT",
4
- US_DRIVER_LICENSE = "INE",
5
- FIADO_MX_NATIONAL_ID = "MX_NATIONAL_ID",
6
- PASSPORT = "MX_PASSPORT"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdentificationTypeEnum = void 0;
4
- var IdentificationTypeEnum;
5
- (function (IdentificationTypeEnum) {
6
- IdentificationTypeEnum["MX_NATIONAL_ID"] = "INE";
7
- IdentificationTypeEnum["MX_PASSPORT"] = "PASSPORT";
8
- IdentificationTypeEnum["US_DRIVER_LICENSE"] = "INE";
9
- IdentificationTypeEnum["FIADO_MX_NATIONAL_ID"] = "MX_NATIONAL_ID";
10
- IdentificationTypeEnum["PASSPORT"] = "MX_PASSPORT";
11
- })(IdentificationTypeEnum || (exports.IdentificationTypeEnum = IdentificationTypeEnum = {}));
@@ -1,4 +0,0 @@
1
- export declare enum SexEnum {
2
- M = "MALE",
3
- F = "FEMALE"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SexEnum = void 0;
4
- var SexEnum;
5
- (function (SexEnum) {
6
- SexEnum["M"] = "MALE";
7
- SexEnum["F"] = "FEMALE";
8
- })(SexEnum || (exports.SexEnum = SexEnum = {}));
@@ -1,7 +0,0 @@
1
- export declare enum TaxTypeEnum {
2
- RFC = "RFC",
3
- CUIL = "CUIL",
4
- CPF = "CPF",
5
- NIT = "NIT",
6
- RUC = "RUC"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaxTypeEnum = void 0;
4
- var TaxTypeEnum;
5
- (function (TaxTypeEnum) {
6
- TaxTypeEnum["RFC"] = "RFC";
7
- TaxTypeEnum["CUIL"] = "CUIL";
8
- TaxTypeEnum["CPF"] = "CPF";
9
- TaxTypeEnum["NIT"] = "NIT";
10
- TaxTypeEnum["RUC"] = "RUC";
11
- })(TaxTypeEnum || (exports.TaxTypeEnum = TaxTypeEnum = {}));
@@ -1,4 +0,0 @@
1
- export declare enum UserStatusEnum {
2
- ACTIVE = "ACTIVE",
3
- BLOCKED = "BLOCKED"
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserStatusEnum = void 0;
4
- var UserStatusEnum;
5
- (function (UserStatusEnum) {
6
- UserStatusEnum["ACTIVE"] = "ACTIVE";
7
- UserStatusEnum["BLOCKED"] = "BLOCKED";
8
- })(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
@@ -1,7 +0,0 @@
1
- export * from './dtos/PomeloCreateUserRequest';
2
- export * from './dtos/PomeloCreateUserResponse';
3
- export * from './enums/CountryEnum';
4
- export * from './enums/IdentificationTypeEnum';
5
- export * from './enums/SexEnum';
6
- export * from './enums/TaxTypeEnum';
7
- export * from './enums/UserStatusEnum';
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- //dtos
18
- __exportStar(require("./dtos/PomeloCreateUserRequest"), exports);
19
- __exportStar(require("./dtos/PomeloCreateUserResponse"), exports);
20
- //enums
21
- __exportStar(require("./enums/CountryEnum"), exports);
22
- __exportStar(require("./enums/IdentificationTypeEnum"), exports);
23
- __exportStar(require("./enums/SexEnum"), exports);
24
- __exportStar(require("./enums/TaxTypeEnum"), exports);
25
- __exportStar(require("./enums/UserStatusEnum"), exports);
@@ -1,8 +0,0 @@
1
- export declare class TernAddress {
2
- address1?: string;
3
- address2?: string;
4
- city?: string;
5
- province?: string;
6
- postalCode?: string;
7
- country?: string;
8
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TernAddress = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class TernAddress {
15
- }
16
- exports.TernAddress = TernAddress;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- __metadata("design:type", String)
20
- ], TernAddress.prototype, "address1", void 0);
21
- __decorate([
22
- (0, class_validator_1.IsString)(),
23
- __metadata("design:type", String)
24
- ], TernAddress.prototype, "address2", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], TernAddress.prototype, "city", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsString)(),
31
- __metadata("design:type", String)
32
- ], TernAddress.prototype, "province", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsString)(),
35
- __metadata("design:type", String)
36
- ], TernAddress.prototype, "postalCode", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsString)(),
39
- __metadata("design:type", String)
40
- ], TernAddress.prototype, "country", void 0);
@@ -1,7 +0,0 @@
1
- import { TernAccountTypeEnum } from "../enums/TernAccountTypeEnum";
2
- export declare class TernCreateAccountRequest {
3
- externalUserId?: string;
4
- name: string;
5
- lastName: string;
6
- type: TernAccountTypeEnum;
7
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TernCreateAccountRequest = void 0;
13
- const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
14
- const class_validator_1 = require("class-validator");
15
- class TernCreateAccountRequest {
16
- }
17
- exports.TernCreateAccountRequest = TernCreateAccountRequest;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], TernCreateAccountRequest.prototype, "externalUserId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- __metadata("design:type", String)
25
- ], TernCreateAccountRequest.prototype, "name", void 0);
26
- __decorate([
27
- (0, class_validator_1.IsString)(),
28
- __metadata("design:type", String)
29
- ], TernCreateAccountRequest.prototype, "lastName", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
32
- __metadata("design:type", String)
33
- ], TernCreateAccountRequest.prototype, "type", void 0);
@@ -1,5 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class TernCreateAccountResponse {
3
- externalAccountId: string;
4
- provider: Provider;
5
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TernCreateAccountResponse = void 0;
13
- const provider_1 = require("../../provider");
14
- const class_validator_1 = require("class-validator");
15
- class TernCreateAccountResponse {
16
- }
17
- exports.TernCreateAccountResponse = TernCreateAccountResponse;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], TernCreateAccountResponse.prototype, "externalAccountId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsEnum)(provider_1.Provider),
24
- __metadata("design:type", String)
25
- ], TernCreateAccountResponse.prototype, "provider", void 0);
@@ -1,15 +0,0 @@
1
- import { SexDocument } from "../../identity";
2
- import { AddressResponse } from "../../address";
3
- export declare class TernCreateUserRequest {
4
- directoryId: string;
5
- typeOfDirectoryId: string;
6
- firstName: string;
7
- lastName: string;
8
- phoneNumber: string;
9
- address: AddressResponse;
10
- email: string;
11
- dob: string;
12
- documentNumber: string;
13
- documentType?: string;
14
- gender?: SexDocument;
15
- }
@@ -1,70 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TernCreateUserRequest = void 0;
13
- const identity_1 = require("../../identity");
14
- const class_validator_1 = require("class-validator");
15
- const regex_1 = require("../../helpers/constans/regex");
16
- const directory_1 = require("../../directory");
17
- const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
18
- const address_1 = require("../../address");
19
- class TernCreateUserRequest {
20
- }
21
- exports.TernCreateUserRequest = TernCreateUserRequest;
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
25
- message: 'directoryId must be a valid UUID v4',
26
- }),
27
- __metadata("design:type", String)
28
- ], TernCreateUserRequest.prototype, "directoryId", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsEnum)(directory_1.TypeOfDirectoryId),
31
- __metadata("design:type", String)
32
- ], TernCreateUserRequest.prototype, "typeOfDirectoryId", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsString)(),
35
- __metadata("design:type", String)
36
- ], TernCreateUserRequest.prototype, "firstName", void 0);
37
- __decorate([
38
- (0, class_validator_1.IsString)(),
39
- __metadata("design:type", String)
40
- ], TernCreateUserRequest.prototype, "lastName", void 0);
41
- __decorate([
42
- (0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
43
- __metadata("design:type", String)
44
- ], TernCreateUserRequest.prototype, "phoneNumber", void 0);
45
- __decorate([
46
- (0, class_validator_1.ValidateNested)(),
47
- __metadata("design:type", address_1.AddressResponse)
48
- ], TernCreateUserRequest.prototype, "address", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsEmail)(),
51
- __metadata("design:type", String)
52
- ], TernCreateUserRequest.prototype, "email", void 0);
53
- __decorate([
54
- (0, class_validator_1.IsDateString)(),
55
- __metadata("design:type", String)
56
- ], TernCreateUserRequest.prototype, "dob", void 0);
57
- __decorate([
58
- (0, class_validator_1.IsString)(),
59
- (0, class_validator_1.Length)(1, 30),
60
- __metadata("design:type", String)
61
- ], TernCreateUserRequest.prototype, "documentNumber", void 0);
62
- __decorate([
63
- (0, class_validator_1.IsString)(),
64
- (0, class_validator_1.Length)(1, 30),
65
- __metadata("design:type", String)
66
- ], TernCreateUserRequest.prototype, "documentType", void 0);
67
- __decorate([
68
- (0, class_validator_1.IsEnum)(identity_1.SexDocument),
69
- __metadata("design:type", String)
70
- ], TernCreateUserRequest.prototype, "gender", void 0);
@@ -1,8 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class TernCreateUserResponse {
3
- externalUserId: string;
4
- externalAccountId?: string;
5
- provider: Provider;
6
- accountNumber?: string;
7
- routingNumber?: string;
8
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- 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;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TernCreateUserResponse = void 0;
13
- const provider_1 = require("../../provider");
14
- const class_validator_1 = require("class-validator");
15
- class TernCreateUserResponse {
16
- }
17
- exports.TernCreateUserResponse = TernCreateUserResponse;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], TernCreateUserResponse.prototype, "externalUserId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- __metadata("design:type", String)
25
- ], TernCreateUserResponse.prototype, "externalAccountId", void 0);
26
- __decorate([
27
- (0, class_validator_1.IsEnum)(provider_1.Provider),
28
- __metadata("design:type", String)
29
- ], TernCreateUserResponse.prototype, "provider", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsString)(),
32
- __metadata("design:type", String)
33
- ], TernCreateUserResponse.prototype, "accountNumber", void 0);
34
- __decorate([
35
- (0, class_validator_1.IsString)(),
36
- __metadata("design:type", String)
37
- ], TernCreateUserResponse.prototype, "routingNumber", void 0);
@@ -1,5 +0,0 @@
1
- import { TernAccountTypeEnum } from "../enums/TernAccountTypeEnum";
2
- export declare class TernGetAccountRequest {
3
- externalAccountId: string;
4
- accountType?: TernAccountTypeEnum;
5
- }