@fiado/type-kit 1.2.8 → 1.2.9

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 (53) hide show
  1. package/package.json +1 -1
  2. package/bin/account/dtos/AccountResponse.d.ts +0 -21
  3. package/bin/account/dtos/AccountResponse.js +0 -6
  4. package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
  5. package/bin/account/dtos/PocketCreateRequest.js +0 -31
  6. package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
  7. package/bin/account/dtos/PocketCreateResponse.js +0 -6
  8. package/bin/account/enums/AccountStatus.d.ts +0 -5
  9. package/bin/account/enums/AccountStatus.js +0 -9
  10. package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
  11. package/bin/card/dtos/CardCreateRequest.js +0 -176
  12. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
  13. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +0 -2
  14. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
  15. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
  16. package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
  17. package/bin/pomelo/enums/CountryEnum.js +0 -12
  18. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
  19. package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
  20. package/bin/pomelo/enums/SexEnum.d.ts +0 -4
  21. package/bin/pomelo/enums/SexEnum.js +0 -8
  22. package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
  23. package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
  24. package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
  25. package/bin/pomelo/enums/UserStatusEnum.js +0 -8
  26. package/bin/pomelo/index.d.ts +0 -7
  27. package/bin/pomelo/index.js +0 -25
  28. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
  29. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +0 -19
  30. package/bin/stp/dtos/PutStpOrderRequest.d.ts +0 -10
  31. package/bin/stp/dtos/PutStpOrderRequest.js +0 -6
  32. package/bin/stp/index.d.ts +0 -1
  33. package/bin/stp/index.js +0 -17
  34. package/bin/transactionProcessor/dtos/AuthorizeSpeiServicePaymentRequest.d.ts +0 -8
  35. package/bin/transactionProcessor/dtos/AuthorizeSpeiServicePaymentRequest.js +0 -6
  36. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +0 -5
  37. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +0 -6
  38. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +0 -7
  39. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +0 -6
  40. package/bin/transactionProcessor/dtos/private/ExecutePocketOperationRequest.d.ts +0 -3
  41. package/bin/transactionProcessor/dtos/private/ExecutePocketOperationRequest.js +0 -20
  42. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
  43. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
  44. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
  45. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
  46. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +0 -6
  47. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
  48. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +0 -7
  49. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
  50. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +0 -8
  51. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
  52. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
  53. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,21 +0,0 @@
1
- import { Provider } from '../../provider/enums/Provider';
2
- import { Country } from '../../country/enums/Country';
3
- import { AccountStatus } from '../enums/AccountStatus';
4
- import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
5
- export declare class AccountResponse {
6
- id: string;
7
- typeOfAccountId: string;
8
- externalAccountId: string;
9
- externalSubAccountId: string | null;
10
- provider: Provider;
11
- directoryId: string;
12
- typeOfDirectoryId: TypeOfDirectoryId;
13
- currentBalance: number;
14
- balanceLock: number;
15
- countryId: Country;
16
- createDate: string;
17
- lastUpdateDate: string;
18
- accountNumber: string;
19
- routingNumber: string;
20
- status: AccountStatus;
21
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountResponse = void 0;
4
- class AccountResponse {
5
- }
6
- exports.AccountResponse = AccountResponse;
@@ -1,4 +0,0 @@
1
- export declare class PocketCreateRequest {
2
- beneficiaryDirectoryId?: string;
3
- accountId: string;
4
- }
@@ -1,31 +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.PocketCreateRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const regex_1 = require("../../helpers/constans/regex");
15
- class PocketCreateRequest {
16
- }
17
- exports.PocketCreateRequest = PocketCreateRequest;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
21
- message: 'beneficiaryDirectoryId must be a valid UUID v4',
22
- }),
23
- __metadata("design:type", String)
24
- ], PocketCreateRequest.prototype, "beneficiaryDirectoryId", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
28
- message: 'accountId must be a valid UUID v4',
29
- }),
30
- __metadata("design:type", String)
31
- ], PocketCreateRequest.prototype, "accountId", void 0);
@@ -1,2 +0,0 @@
1
- export declare class PocketCreateResponse {
2
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PocketCreateResponse = void 0;
4
- class PocketCreateResponse {
5
- }
6
- exports.PocketCreateResponse = PocketCreateResponse;
@@ -1,5 +0,0 @@
1
- export declare enum AccountStatus {
2
- ACTIVE = "ACTIVE",
3
- INACTIVE = "INACTIVE",
4
- BLOCKED = "BLOCKED"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountStatus = void 0;
4
- var AccountStatus;
5
- (function (AccountStatus) {
6
- AccountStatus["ACTIVE"] = "ACTIVE";
7
- AccountStatus["INACTIVE"] = "INACTIVE";
8
- AccountStatus["BLOCKED"] = "BLOCKED";
9
- })(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
@@ -1,34 +0,0 @@
1
- import { CountryId } from '../../country/enums/CountryId';
2
- import { CardType } from '../enums/CardType';
3
- import { Brand } from '../enums/Brand';
4
- import { OwnershipType } from '../enums/OwnershipType';
5
- import { Status } from '../enums/Status';
6
- import { Shipping } from '../../address';
7
- export declare class CardCreateRequest {
8
- id?: string;
9
- accountId?: string;
10
- activationDate?: string;
11
- countryId: CountryId;
12
- type: CardType;
13
- directoryId?: string;
14
- externalCardId: string;
15
- externalUserId: string;
16
- externalShipmentId: string;
17
- shipmentProvider: string;
18
- externalShipmentTrackingId: string;
19
- externalShipmentTrackingUrl: string;
20
- holderName: string;
21
- holderLastName: string;
22
- imageUrl?: string;
23
- brand: Brand;
24
- ownershipType: OwnershipType;
25
- lastFour: string;
26
- providerName?: string;
27
- status: Status;
28
- statusUpdateDate?: string;
29
- tenantId?: string;
30
- spendLimitByTransaction?: number;
31
- spendLimitByDay?: number;
32
- spendLimitByMonth?: number;
33
- shippedAddress?: Shipping;
34
- }
@@ -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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 +0,0 @@
1
- export default class GetProductCatalogRequest {
2
- ids: string[];
3
- }
@@ -1,19 +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
- const class_validator_1 = require("class-validator");
13
- class GetProductCatalogRequest {
14
- }
15
- exports.default = GetProductCatalogRequest;
16
- __decorate([
17
- (0, class_validator_1.IsArray)(),
18
- __metadata("design:type", Array)
19
- ], GetProductCatalogRequest.prototype, "ids", void 0);
@@ -1,10 +0,0 @@
1
- export declare class PutStpOrderRequest {
2
- processorObject: any | null;
3
- amount: number;
4
- transactionNumber: string;
5
- numericReference: number;
6
- concept: string | null;
7
- beneficiaryAccount: string;
8
- beneficiaryName: string;
9
- bankName: string;
10
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutStpOrderRequest = void 0;
4
- class PutStpOrderRequest {
5
- }
6
- exports.PutStpOrderRequest = PutStpOrderRequest;
@@ -1 +0,0 @@
1
- export * from './dtos/PutStpOrderRequest';
package/bin/stp/index.js DELETED
@@ -1,17 +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
- __exportStar(require("./dtos/PutStpOrderRequest"), exports);
@@ -1,8 +0,0 @@
1
- export declare class AuthorizeSpeiServicePaymentRequest {
2
- idempotencyKey: string;
3
- productCatalogId: string;
4
- productId: string;
5
- serviceId: string;
6
- paymentAccountNumber: string;
7
- amount: number;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthorizeSpeiServicePaymentRequest = void 0;
4
- class AuthorizeSpeiServicePaymentRequest {
5
- }
6
- exports.AuthorizeSpeiServicePaymentRequest = AuthorizeSpeiServicePaymentRequest;
@@ -1,5 +0,0 @@
1
- export declare class AuthorizeP2pTransactionRequest {
2
- idempotencyKey: string;
3
- targetDirectoryId: string;
4
- amount: number;
5
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthorizeP2pTransactionRequest = void 0;
4
- class AuthorizeP2pTransactionRequest {
5
- }
6
- exports.AuthorizeP2pTransactionRequest = AuthorizeP2pTransactionRequest;
@@ -1,7 +0,0 @@
1
- import { OperationEnum } from "../../../transaction";
2
- export declare class AuthorizePocketTransactionRequest {
3
- idempotencyKey: string;
4
- targetPocketId: string;
5
- operation: OperationEnum;
6
- amount: number;
7
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthorizePocketTransactionRequest = void 0;
4
- class AuthorizePocketTransactionRequest {
5
- }
6
- exports.AuthorizePocketTransactionRequest = AuthorizePocketTransactionRequest;
@@ -1,3 +0,0 @@
1
- export declare class ExecutePocketOperationRequest {
2
- amount: number;
3
- }
@@ -1,20 +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.ExecutePocketOperationRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class ExecutePocketOperationRequest {
15
- }
16
- exports.ExecutePocketOperationRequest = ExecutePocketOperationRequest;
17
- __decorate([
18
- (0, class_validator_1.IsNumber)(),
19
- __metadata("design:type", Number)
20
- ], ExecutePocketOperationRequest.prototype, "amount", void 0);
@@ -1,6 +0,0 @@
1
- import { PrivateProcessorAmountInfoItem } from "./PrivateProcessorAmountInfoItem";
2
- export declare class PrivateProcessorAmountInfo {
3
- transaction: PrivateProcessorAmountInfoItem;
4
- settlement: PrivateProcessorAmountInfoItem;
5
- local: PrivateProcessorAmountInfoItem;
6
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivateProcessorAmountInfo = void 0;
4
- class PrivateProcessorAmountInfo {
5
- }
6
- exports.PrivateProcessorAmountInfo = PrivateProcessorAmountInfo;
@@ -1,4 +0,0 @@
1
- export declare class PrivateProcessorAmountInfoItem {
2
- total: number;
3
- currencyId: string;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivateProcessorAmountInfoItem = void 0;
4
- class PrivateProcessorAmountInfoItem {
5
- }
6
- exports.PrivateProcessorAmountInfoItem = PrivateProcessorAmountInfoItem;
@@ -1,6 +0,0 @@
1
- export declare class PrivateProcessorCardInfo {
2
- productType: string;
3
- lastFour: string;
4
- provider: string;
5
- externalCardId: string;
6
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivateProcessorCardInfo = void 0;
4
- class PrivateProcessorCardInfo {
5
- }
6
- exports.PrivateProcessorCardInfo = PrivateProcessorCardInfo;
@@ -1,7 +0,0 @@
1
- export declare class PrivateProcessorMerchantInfo {
2
- id: string;
3
- address: string;
4
- name: string;
5
- mcc: string;
6
- terminalId: string;
7
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivateProcessorMerchantInfo = void 0;
4
- class PrivateProcessorMerchantInfo {
5
- }
6
- exports.PrivateProcessorMerchantInfo = PrivateProcessorMerchantInfo;
@@ -1,8 +0,0 @@
1
- export declare class PrivateProcessorTransactionInfo {
2
- id: string;
3
- type: string;
4
- network: string;
5
- date: string;
6
- originalTransactionId: string;
7
- pointType: string;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivateProcessorTransactionInfo = void 0;
4
- class PrivateProcessorTransactionInfo {
5
- }
6
- exports.PrivateProcessorTransactionInfo = PrivateProcessorTransactionInfo;
@@ -1,16 +0,0 @@
1
- import { PrivateProcessorCardInfo } from "./PrivateProcessorCardInfo";
2
- import { PrivateProcessorMerchantInfo } from "./PrivateProcessorMerchantInfo";
3
- import { PrivateProcessorAmountInfo } from "./PrivateProcessorAmountInfo";
4
- import { PrivateProcessorTransactionInfo } from "./PrivateProcessorTransactionInfo";
5
- import { CountryId } from "../../../country";
6
- export declare class PrivateTransactionProcessorRequest {
7
- idempotencyKey: string;
8
- externalUserId: string;
9
- cardInfo: PrivateProcessorCardInfo | null;
10
- productCatalogId: string;
11
- merchantInfo: PrivateProcessorMerchantInfo;
12
- amountInfo: PrivateProcessorAmountInfo;
13
- transactionInfo: PrivateProcessorTransactionInfo;
14
- countryId: CountryId;
15
- additionalData: any;
16
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivateTransactionProcessorRequest = void 0;
4
- class PrivateTransactionProcessorRequest {
5
- }
6
- exports.PrivateTransactionProcessorRequest = PrivateTransactionProcessorRequest;