@fiado/type-kit 1.9.33 → 1.9.35

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 (135) hide show
  1. package/bin/collector/enums/CollectionType.d.ts +2 -1
  2. package/bin/collector/enums/CollectionType.js +1 -0
  3. package/bin/creditContract/dtos/CreditContractCreateRequest.d.ts +1 -0
  4. package/bin/creditContract/dtos/CreditContractCreateRequest.js +5 -0
  5. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +8 -0
  6. package/bin/services/dtos/GetMembershipListAppResponse.d.ts +4 -0
  7. package/bin/services/dtos/GetMembershipListAppResponse.js +6 -0
  8. package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +4 -0
  9. package/bin/services/dtos/GetServiceMembershipListAResponse.js +6 -0
  10. package/bin/{membership/enums/MembershipProviderEnum.d.ts → services/enums/ServiceProviderEnum.d.ts} +1 -1
  11. package/bin/services/enums/ServiceProviderEnum.js +9 -0
  12. package/bin/transactionProcessor/dtos/AuthorizeCollectorOrderRequest.d.ts +22 -0
  13. package/bin/transactionProcessor/dtos/AuthorizeCollectorOrderRequest.js +6 -0
  14. package/bin/transactionProcessor/index.d.ts +1 -0
  15. package/bin/transactionProcessor/index.js +1 -0
  16. package/package.json +1 -1
  17. package/src/collector/enums/CollectionType.ts +2 -1
  18. package/src/creditContract/dtos/CreditContractCreateRequest.ts +5 -1
  19. package/src/transactionProcessor/dtos/AuthorizeCollectorOrderRequest.ts +24 -0
  20. package/src/transactionProcessor/index.ts +1 -0
  21. package/bin/account/dtos/AccountResponse.d.ts +0 -21
  22. package/bin/account/dtos/AccountResponse.js +0 -6
  23. package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
  24. package/bin/account/dtos/CreateBankAccountInput.js +0 -6
  25. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
  26. package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
  27. package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
  28. package/bin/account/dtos/PocketCreateRequest.js +0 -31
  29. package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
  30. package/bin/account/dtos/PocketCreateResponse.js +0 -6
  31. package/bin/account/enums/AccountStatus.d.ts +0 -5
  32. package/bin/account/enums/AccountStatus.js +0 -9
  33. package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
  34. package/bin/card/dtos/CardCreateRequest.js +0 -176
  35. package/bin/centralPayments/dtos/AchTransactionRequest.d.ts +0 -8
  36. package/bin/centralPayments/dtos/AchTransactionRequest.js +0 -6
  37. package/bin/centralPayments/dtos/AchTransactionResponse.d.ts +0 -9
  38. package/bin/centralPayments/dtos/AchTransactionResponse.js +0 -6
  39. package/bin/contactInfo/dtos/GetAllContactInfoResponse.d.ts +0 -13
  40. package/bin/contactInfo/dtos/GetAllContactInfoResponse.js +0 -6
  41. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
  42. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
  43. package/bin/legal-documents-business/enums/LegalDocumentType.d.ts +0 -8
  44. package/bin/legal-documents-business/enums/LegalDocumentType.js +0 -12
  45. package/bin/membership/dtos/CreateMembershipDirectoryUserRequest.d.ts +0 -12
  46. package/bin/membership/dtos/CreateMembershipDirectoryUserRequest.js +0 -54
  47. package/bin/membership/dtos/CreateMembershipRequest.d.ts +0 -14
  48. package/bin/membership/dtos/CreateMembershipRequest.js +0 -56
  49. package/bin/membership/dtos/GetMembershipDirectoryUserListAppResponse.d.ts +0 -14
  50. package/bin/membership/dtos/GetMembershipDirectoryUserListAppResponse.js +0 -6
  51. package/bin/membership/dtos/GetMembershipDirectoryUserListResponse.d.ts +0 -21
  52. package/bin/membership/dtos/GetMembershipDirectoryUserListResponse.js +0 -6
  53. package/bin/membership/dtos/GetMembershipListAppResponse.d.ts +0 -10
  54. package/bin/membership/dtos/GetMembershipListAppResponse.js +0 -6
  55. package/bin/membership/dtos/GetMembershipListResponse.d.ts +0 -20
  56. package/bin/membership/dtos/GetMembershipListResponse.js +0 -6
  57. package/bin/membership/dtos/RegisterMembershipDirectoryUserRequest.d.ts +0 -4
  58. package/bin/membership/dtos/RegisterMembershipDirectoryUserRequest.js +0 -26
  59. package/bin/membership/dtos/UpdateMembershipDirectoryUserRequest.d.ts +0 -12
  60. package/bin/membership/dtos/UpdateMembershipDirectoryUserRequest.js +0 -54
  61. package/bin/membership/dtos/UpdateMembershipRequest.d.ts +0 -14
  62. package/bin/membership/dtos/UpdateMembershipRequest.js +0 -56
  63. package/bin/membership/enums/MembershipDirectoryStatusEnum.d.ts +0 -6
  64. package/bin/membership/enums/MembershipDirectoryStatusEnum.js +0 -10
  65. package/bin/membership/enums/MembershipFlowEnum.d.ts +0 -3
  66. package/bin/membership/enums/MembershipFlowEnum.js +0 -7
  67. package/bin/membership/enums/MembershipProviderEnum.js +0 -9
  68. package/bin/membership/enums/MembershipStatusEnum.d.ts +0 -4
  69. package/bin/membership/enums/MembershipStatusEnum.js +0 -8
  70. package/bin/membership/enums/MembershipTypeEnum.d.ts +0 -3
  71. package/bin/membership/enums/MembershipTypeEnum.js +0 -7
  72. package/bin/membership/index.d.ts +0 -14
  73. package/bin/membership/index.js +0 -32
  74. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
  75. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +0 -2
  76. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
  77. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
  78. package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
  79. package/bin/pomelo/enums/CountryEnum.js +0 -12
  80. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
  81. package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
  82. package/bin/pomelo/enums/SexEnum.d.ts +0 -4
  83. package/bin/pomelo/enums/SexEnum.js +0 -8
  84. package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
  85. package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
  86. package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
  87. package/bin/pomelo/enums/UserStatusEnum.js +0 -8
  88. package/bin/pomelo/index.d.ts +0 -7
  89. package/bin/pomelo/index.js +0 -25
  90. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
  91. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +0 -19
  92. package/bin/role/dtos/DirectoryBackoffice.d.ts +0 -15
  93. package/bin/role/dtos/DirectoryBackoffice.js +0 -6
  94. package/bin/role/enums/DirectoryBackofficeStatusEnum.d.ts +0 -4
  95. package/bin/role/enums/DirectoryBackofficeStatusEnum.js +0 -8
  96. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  97. package/bin/tern/dtos/TernAddress.js +0 -40
  98. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  99. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  100. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
  101. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  102. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  103. package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
  104. package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
  105. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  106. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  107. package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
  108. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  109. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  110. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  111. package/bin/tern/dtos/TernGetUserRequest.js +0 -20
  112. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  113. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  114. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  115. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  116. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  117. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  118. package/bin/tern/index.d.ts +0 -11
  119. package/bin/tern/index.js +0 -29
  120. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +0 -5
  121. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +0 -6
  122. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +0 -7
  123. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +0 -6
  124. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
  125. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
  126. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
  127. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
  128. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +0 -6
  129. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
  130. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +0 -7
  131. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
  132. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +0 -8
  133. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
  134. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
  135. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
@@ -1,4 +1,5 @@
1
1
  export declare enum CollectionType {
2
2
  FIADOFLASH = "FIADOFLASH",
3
- LOAN = "LOAN"
3
+ LOAN = "LOAN",
4
+ MEMBERSHIP = "MEMBERSHIP"
4
5
  }
@@ -5,4 +5,5 @@ var CollectionType;
5
5
  (function (CollectionType) {
6
6
  CollectionType["FIADOFLASH"] = "FIADOFLASH";
7
7
  CollectionType["LOAN"] = "LOAN";
8
+ CollectionType["MEMBERSHIP"] = "MEMBERSHIP";
8
9
  })(CollectionType || (exports.CollectionType = CollectionType = {}));
@@ -16,4 +16,5 @@ export default class CreditContractCreateRequest {
16
16
  relatedPocketId: string;
17
17
  provider: Provider;
18
18
  holdTxId: string;
19
+ relatedProductId?: string;
19
20
  }
@@ -86,3 +86,8 @@ __decorate([
86
86
  (0, class_validator_1.IsNotEmpty)(),
87
87
  __metadata("design:type", String)
88
88
  ], CreditContractCreateRequest.prototype, "holdTxId", void 0);
89
+ __decorate([
90
+ (0, class_validator_1.IsString)(),
91
+ (0, class_validator_1.IsOptional)(),
92
+ __metadata("design:type", String)
93
+ ], CreditContractCreateRequest.prototype, "relatedProductId", void 0);
@@ -1,6 +1,14 @@
1
+ import { Company } from "../../company";
2
+ import { Provider } from "../../provider";
3
+ import { ServiceTypeEnum } from "../../services";
4
+ import { ServiceRecurrenceEnum } from "../../services/enums/ServiceRecurrenceEnum";
1
5
  export declare class GetPriceListDirectoriesResponse {
2
6
  serviceId: string;
7
+ company: Company;
8
+ provider: Provider;
9
+ type: ServiceTypeEnum;
3
10
  basePrice: number;
11
+ recurrence: ServiceRecurrenceEnum;
4
12
  currencyId: string;
5
13
  fees: any;
6
14
  taxes: any;
@@ -0,0 +1,4 @@
1
+ export declare class GetServiceListAppResponse {
2
+ items: any[];
3
+ index: string | null;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServiceListAppResponse = void 0;
4
+ class GetServiceListAppResponse {
5
+ }
6
+ exports.GetServiceListAppResponse = GetServiceListAppResponse;
@@ -0,0 +1,4 @@
1
+ export declare class GetServiceMembershipListAResponse {
2
+ items: any[];
3
+ index: string | null;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServiceMembershipListAResponse = void 0;
4
+ class GetServiceMembershipListAResponse {
5
+ }
6
+ exports.GetServiceMembershipListAResponse = GetServiceMembershipListAResponse;
@@ -1,4 +1,4 @@
1
- export declare enum MembershipProviderEnum {
1
+ export declare enum ServiceProviderEnum {
2
2
  CP = "CP",
3
3
  TERN = "TERN",
4
4
  PAGOCONFIADO = "PAGOCONFIADO"
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceProviderEnum = void 0;
4
+ var ServiceProviderEnum;
5
+ (function (ServiceProviderEnum) {
6
+ ServiceProviderEnum["CP"] = "CP";
7
+ ServiceProviderEnum["TERN"] = "TERN";
8
+ ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
9
+ })(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));
@@ -0,0 +1,22 @@
1
+ import { CollectionType } from "../../collector";
2
+ import { Company } from "../../company";
3
+ import { DirectoryResponse } from "../../directory";
4
+ import { PeopleResponse } from "../../identity";
5
+ export declare class AuthorizeCollectorOrderRequest {
6
+ executionId: string;
7
+ orderId: string;
8
+ peopleId: string;
9
+ directoryId: string;
10
+ currencyId: string;
11
+ notional: number;
12
+ totalToCollect: number;
13
+ company: Company;
14
+ type: CollectionType;
15
+ servicePriceListId?: string;
16
+ scheduleCollectionDate: string;
17
+ relatedProductIds?: string[];
18
+ creditContractIds: string[];
19
+ collectorTransactionId: string;
20
+ peopleInfo: Partial<PeopleResponse>;
21
+ directoryInfo: Partial<DirectoryResponse>;
22
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizeCollectorOrderRequest = void 0;
4
+ class AuthorizeCollectorOrderRequest {
5
+ }
6
+ exports.AuthorizeCollectorOrderRequest = AuthorizeCollectorOrderRequest;
@@ -25,6 +25,7 @@ export * from './dtos/EventTransactionRequest';
25
25
  export * from './dtos/EventTransactionInfo';
26
26
  export * from './dtos/AuthorizeUsdAchTransactionRequest';
27
27
  export * from './dtos/AuthorizeMCSendTransactionRequest';
28
+ export * from './dtos/AuthorizeCollectorOrderRequest';
28
29
  export * from './enums/TransactionProcessorCodesEnum';
29
30
  export * from './enums/AsyncTxStatusEnum';
30
31
  export * from './enums/AppEnum';
@@ -41,6 +41,7 @@ __exportStar(require("./dtos/EventTransactionRequest"), exports);
41
41
  __exportStar(require("./dtos/EventTransactionInfo"), exports);
42
42
  __exportStar(require("./dtos/AuthorizeUsdAchTransactionRequest"), exports);
43
43
  __exportStar(require("./dtos/AuthorizeMCSendTransactionRequest"), exports);
44
+ __exportStar(require("./dtos/AuthorizeCollectorOrderRequest"), exports);
44
45
  __exportStar(require("./enums/TransactionProcessorCodesEnum"), exports);
45
46
  __exportStar(require("./enums/AsyncTxStatusEnum"), exports);
46
47
  __exportStar(require("./enums/AppEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.9.33",
3
+ "version": "1.9.35",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,5 @@
1
1
  export enum CollectionType {
2
2
  FIADOFLASH = 'FIADOFLASH',
3
- LOAN = 'LOAN'
3
+ LOAN = 'LOAN',
4
+ MEMBERSHIP = 'MEMBERSHIP'
4
5
  }
@@ -1,4 +1,4 @@
1
- import { IsEnum, IsNotEmpty, IsNumber, IsString, Matches } from "class-validator";
1
+ import { IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString, Matches } from "class-validator";
2
2
  import { CountryId } from "../../country";
3
3
  import { ProductTypeEnum } from "../../productCatalog";
4
4
  import { Provider } from "../../provider";
@@ -60,4 +60,8 @@ export default class CreditContractCreateRequest {
60
60
  @IsNotEmpty()
61
61
  holdTxId:string
62
62
 
63
+ @IsString()
64
+ @IsOptional()
65
+ relatedProductId?: string;
66
+
63
67
  }
@@ -0,0 +1,24 @@
1
+
2
+ import { CollectionType } from "../../collector";
3
+ import { Company } from "../../company";
4
+ import { DirectoryResponse } from "../../directory";
5
+ import { PeopleResponse } from "../../identity";
6
+
7
+ export class AuthorizeCollectorOrderRequest {
8
+ executionId: string;
9
+ orderId: string;
10
+ peopleId: string;
11
+ directoryId: string;
12
+ currencyId: string;
13
+ notional: number;
14
+ totalToCollect: number;
15
+ company: Company;
16
+ type: CollectionType;
17
+ servicePriceListId?: string;
18
+ scheduleCollectionDate: string;
19
+ relatedProductIds?: string[];
20
+ creditContractIds: string[];
21
+ collectorTransactionId: string;
22
+ peopleInfo: Partial<PeopleResponse>;
23
+ directoryInfo: Partial<DirectoryResponse>;
24
+ }
@@ -25,6 +25,7 @@ export * from './dtos/EventTransactionRequest';
25
25
  export * from './dtos/EventTransactionInfo';
26
26
  export * from './dtos/AuthorizeUsdAchTransactionRequest';
27
27
  export * from './dtos/AuthorizeMCSendTransactionRequest';
28
+ export * from './dtos/AuthorizeCollectorOrderRequest';
28
29
 
29
30
  export * from './enums/TransactionProcessorCodesEnum';
30
31
  export * from './enums/AsyncTxStatusEnum';
@@ -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,8 +0,0 @@
1
- import { BankAccountTypeEnum } from "../enums/BankAccountTypeEnum";
2
- export declare class CreateBankAccountInput {
3
- externalClientId?: string;
4
- externalUserId?: string;
5
- name: string;
6
- lastName: string;
7
- type: BankAccountTypeEnum;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountInput = void 0;
4
- class CreateBankAccountInput {
5
- }
6
- exports.CreateBankAccountInput = CreateBankAccountInput;
@@ -1,14 +0,0 @@
1
- import { AddressBase } from "../../address/dtos/AddressBase";
2
- export declare class CreateBankAccountUserInput {
3
- directoryId: string;
4
- typeOfDirectoryId: string;
5
- firstName: string;
6
- lastName: string;
7
- phoneNumber: string;
8
- address: AddressBase;
9
- email: string;
10
- dob: string;
11
- documentNumber: string;
12
- documentType?: string;
13
- gender?: "M" | "F";
14
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountUserInput = void 0;
4
- class CreateBankAccountUserInput {
5
- }
6
- exports.CreateBankAccountUserInput = CreateBankAccountUserInput;
@@ -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,8 +0,0 @@
1
- export declare class AchTransactionRequest {
2
- transactionNumber: string;
3
- externalBankAccountId: string;
4
- externalAccountId: string;
5
- externalUserId: string;
6
- amount: number;
7
- concept?: string;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AchTransactionRequest = void 0;
4
- class AchTransactionRequest {
5
- }
6
- exports.AchTransactionRequest = AchTransactionRequest;
@@ -1,9 +0,0 @@
1
- export declare class AchTransactionResponse {
2
- externalTransactionId: string;
3
- transactionNumber: string;
4
- externalAccountId: string;
5
- externalUserId: string;
6
- status: string;
7
- amount: number;
8
- currencyId: string;
9
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AchTransactionResponse = void 0;
4
- class AchTransactionResponse {
5
- }
6
- exports.AchTransactionResponse = AchTransactionResponse;
@@ -1,13 +0,0 @@
1
- import { TypeOfContactIdEnum } from "../enums/TypeOfContactIdEnum";
2
- export declare class GetAllContactInfoResponse {
3
- id: string;
4
- contact: string;
5
- directoryId: string;
6
- isPrincipal: boolean;
7
- typeOfContactId: TypeOfContactIdEnum;
8
- isWhatsApp: boolean;
9
- isVoice: boolean;
10
- isSMS: boolean;
11
- isApp: boolean;
12
- note: string;
13
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAllContactInfoResponse = void 0;
4
- class GetAllContactInfoResponse {
5
- }
6
- exports.GetAllContactInfoResponse = GetAllContactInfoResponse;
@@ -1,3 +0,0 @@
1
- export declare class GroupDirectoryRetationsUpdateRequest {
2
- agent: string;
3
- }
@@ -1,22 +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.GroupDirectoryRetationsUpdateRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GroupDirectoryRetationsUpdateRequest {
15
- }
16
- exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
17
- __decorate([
18
- (0, class_validator_1.IsOptional)(),
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Length)(1, 20),
21
- __metadata("design:type", String)
22
- ], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);