@fiado/type-kit 1.1.8 → 1.1.10

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 (182) hide show
  1. package/README.md +70 -70
  2. package/bin/account/dtos/CreateBankAccountInput.d.ts +8 -0
  3. package/bin/account/dtos/CreateBankAccountInput.js +6 -0
  4. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
  5. package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
  6. package/bin/card/dtos/CardResponse.d.ts +30 -0
  7. package/bin/card/dtos/CardSensitiveInformationResponse.d.ts +14 -0
  8. package/bin/card/dtos/CardSensitiveInformationResponse.js +6 -0
  9. package/bin/card/index.d.ts +1 -0
  10. package/bin/card/index.js +1 -0
  11. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  12. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  13. package/package.json +23 -23
  14. package/src/account/dtos/AccountCreateRequest.ts +75 -75
  15. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  16. package/src/account/dtos/AccountInfo.ts +39 -39
  17. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  18. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  19. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  20. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  21. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  22. package/src/account/dtos/ExchangeInfo.ts +8 -8
  23. package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
  24. package/src/account/dtos/GetAccountResponse.ts +62 -62
  25. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  26. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  27. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  28. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  29. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  30. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  31. package/src/account/dtos/GetPocketBalanceResponse.ts +43 -43
  32. package/src/account/dtos/GetPocketResponse.ts +8 -8
  33. package/src/account/dtos/PocketBalanceItem.ts +14 -14
  34. package/src/account/dtos/PocketItem.ts +43 -43
  35. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  36. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  37. package/src/account/entities/AccountEntityBase.ts +12 -12
  38. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  39. package/src/account/enums/AccountLevelEnum.ts +5 -5
  40. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  41. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  42. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  43. package/src/account/index.ts +35 -35
  44. package/src/address/dtos/AddressBase.ts +130 -130
  45. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  46. package/src/address/dtos/AddressResponse.ts +41 -41
  47. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  48. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  49. package/src/address/dtos/Geometry.ts +4 -4
  50. package/src/address/dtos/OfficeDetails.ts +30 -30
  51. package/src/address/dtos/OperationSchedule.ts +8 -8
  52. package/src/address/dtos/Place.ts +83 -83
  53. package/src/address/dtos/Shipping.ts +36 -36
  54. package/src/address/dtos/Timezone.ts +5 -5
  55. package/src/address/enums/AddressProvider.ts +10 -10
  56. package/src/address/enums/AddressStatus.ts +9 -9
  57. package/src/address/index.ts +16 -16
  58. package/src/app/enums/App.ts +10 -10
  59. package/src/app/index.ts +3 -3
  60. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  61. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  62. package/src/authentication/index.ts +3 -3
  63. package/src/card/dtos/CardActivateRequest.ts +12 -12
  64. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  65. package/src/card/dtos/CardApplicationRequest.ts +22 -22
  66. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  67. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  68. package/src/card/dtos/CardResponse.ts +33 -4
  69. package/src/card/dtos/CardSensitiveInformationResponse.ts +16 -0
  70. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  71. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  72. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  73. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  74. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  75. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  76. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  77. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  78. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  79. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  80. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  81. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  82. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  83. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  84. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  85. package/src/card/enums/Brand.ts +7 -7
  86. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  87. package/src/card/enums/CardIssuing.ts +6 -6
  88. package/src/card/enums/CardType.ts +4 -4
  89. package/src/card/enums/CardUpdateKey.ts +4 -4
  90. package/src/card/enums/CreditOrDebit.ts +5 -5
  91. package/src/card/enums/DeliveryChannel.ts +7 -7
  92. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  93. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  94. package/src/card/enums/IssuanceType.ts +5 -5
  95. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  96. package/src/card/enums/OwnershipType.ts +3 -3
  97. package/src/card/enums/ShippingStatus.ts +8 -8
  98. package/src/card/enums/Status.ts +6 -6
  99. package/src/card/enums/UpdateKey.ts +5 -5
  100. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  101. package/src/card/index.ts +48 -47
  102. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  103. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  104. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  105. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  106. package/src/contactInfo/index.ts +1 -1
  107. package/src/country/enums/Country.ts +6 -6
  108. package/src/country/enums/CountryId.ts +6 -6
  109. package/src/country/index.ts +5 -5
  110. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  111. package/src/currency/index.ts +2 -2
  112. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  113. package/src/directory/dtos/External.ts +6 -6
  114. package/src/directory/enums/Profile.ts +6 -6
  115. package/src/directory/enums/Scope.ts +7 -7
  116. package/src/directory/enums/Status.ts +8 -8
  117. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  118. package/src/directory/index.ts +7 -7
  119. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  120. package/src/eventBridge/index.ts +1 -1
  121. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  122. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  123. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  124. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  125. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  126. package/src/exchangeRate/index.ts +9 -9
  127. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  128. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  129. package/src/genericMessage/index.ts +1 -1
  130. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  131. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  132. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  133. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  134. package/src/group/dtos/GroupResponse.ts +17 -17
  135. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  136. package/src/group/enums/GroupAction.ts +8 -8
  137. package/src/group/enums/GroupStatus.ts +6 -6
  138. package/src/group/enums/RelationStatus.ts +8 -8
  139. package/src/group/enums/RelationType.ts +9 -9
  140. package/src/group/index.ts +18 -18
  141. package/src/header/TokenPayload.ts +17 -17
  142. package/src/header/index.ts +3 -3
  143. package/src/helpers/ValidationUtils.ts +32 -32
  144. package/src/helpers/constans/regex.ts +12 -12
  145. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  146. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  147. package/src/identity/dtos/PeopleResponse.ts +72 -72
  148. package/src/identity/dtos/PeopleUpdateRequest.ts +70 -70
  149. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  150. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  151. package/src/identity/enums/SexDocument.ts +6 -6
  152. package/src/identity/enums/TypeOfDocument.ts +5 -5
  153. package/src/identity/index.ts +12 -12
  154. package/src/index.ts +25 -25
  155. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  156. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  157. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  158. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  159. package/src/notificationMessages/index.ts +5 -5
  160. package/src/provider/enums/Provider.ts +4 -4
  161. package/src/provider/index.ts +1 -1
  162. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  163. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  164. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  165. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  166. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  167. package/src/sessionActivity/index.ts +2 -2
  168. package/src/transaction/dtos/TransactionCreateRequest.ts +4 -4
  169. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  170. package/src/transaction/enums/OperationEnum.ts +3 -3
  171. package/src/transaction/index.ts +5 -5
  172. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +6 -6
  173. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +3 -3
  174. package/src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts +5 -5
  175. package/src/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.ts +6 -6
  176. package/src/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.ts +7 -7
  177. package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +16 -16
  178. package/src/transactionProcessor/index.ts +7 -7
  179. package/.idea/aws.xml +0 -11
  180. package/.idea/fiado-type-kit.iml +0 -12
  181. package/.idea/modules.xml +0 -8
  182. package/.idea/vcs.xml +0 -6
@@ -1,12 +1,12 @@
1
-
2
-
3
- export class TypeOfDocument {
4
- id: string;
5
- countryId: string;
6
- isEnabled: boolean;
7
- name: string;
8
- side: number;
9
- order: number;
10
- subtype: string;
11
- type: string;
1
+
2
+
3
+ export class TypeOfDocument {
4
+ id: string;
5
+ countryId: string;
6
+ isEnabled: boolean;
7
+ name: string;
8
+ side: number;
9
+ order: number;
10
+ subtype: string;
11
+ type: string;
12
12
  }
@@ -1,7 +1,7 @@
1
-
2
-
3
- export enum IdentificationDocumentStatus {
4
- VERIFIED = "VERIFIED",
5
- REJECTED = "REJECTED",
6
- UNVERIFIED = "UNVERIFIED"
7
- }
1
+
2
+
3
+ export enum IdentificationDocumentStatus {
4
+ VERIFIED = "VERIFIED",
5
+ REJECTED = "REJECTED",
6
+ UNVERIFIED = "UNVERIFIED"
7
+ }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum SexDocument {
4
- M = "M",
5
- F = "F"
6
- }
1
+
2
+
3
+ export enum SexDocument {
4
+ M = "M",
5
+ F = "F"
6
+ }
@@ -1,6 +1,6 @@
1
- export enum TypeOfDocument {
2
- MX_NATIONAL_ID = "MX_NATIONAL_ID",
3
- MX_PASSPORT = "MX_PASSPORT",
4
- US_DRIVER_LICENSE = "US_DRIVER_LICENSE",
5
- US_PASSPORT = "US_PASSPORT"
1
+ export enum TypeOfDocument {
2
+ MX_NATIONAL_ID = "MX_NATIONAL_ID",
3
+ MX_PASSPORT = "MX_PASSPORT",
4
+ US_DRIVER_LICENSE = "US_DRIVER_LICENSE",
5
+ US_PASSPORT = "US_PASSPORT"
6
6
  }
@@ -1,12 +1,12 @@
1
-
2
- //dtos
3
- export * from './dtos/IdentificationDocument'
4
- export * from './dtos/PeopleCreateRequest';
5
- export * from './dtos/PeopleResponse';
6
- export * from './dtos/TypeOfDocument';
7
- export * from './dtos/PeopleUpdateRequest';
8
-
9
- //enums
10
- export * from './enums/IdentificationDocumentStatus';
11
- export * from './enums/SexDocument';
12
-
1
+
2
+ //dtos
3
+ export * from './dtos/IdentificationDocument'
4
+ export * from './dtos/PeopleCreateRequest';
5
+ export * from './dtos/PeopleResponse';
6
+ export * from './dtos/TypeOfDocument';
7
+ export * from './dtos/PeopleUpdateRequest';
8
+
9
+ //enums
10
+ export * from './enums/IdentificationDocumentStatus';
11
+ export * from './enums/SexDocument';
12
+
package/src/index.ts CHANGED
@@ -1,25 +1,25 @@
1
- export * as Account from './account';
2
- export * as Address from './address';
3
- export * as App from './app';
4
- export * as Authentication from './authentication';
5
- export * as Card from './card';
6
- export * as Country from './country';
7
- export * as Currency from './currency';
8
- export * as Directory from './directory';
9
- export * as ExchangeRate from './exchangeRate';
10
- export * as File from './identity';
11
- export * as Group from './group';
12
- export * as Identity from './provider';
13
- export * as Header from './header';
14
- export * as ServicePayment from './servicePayment';
15
- export * as NotificationMessages from './notificationMessages';
16
- export * as SessionActivity from './sessionActivity';
17
- export * as EventBridgeMessage from './eventBridge';
18
- export * as GenericMessage from './genericMessage';
19
- export * as TransactionProcessor from './transactionProcessor';
20
- export * as Transaction from './transaction';
21
- export * as ContactInfo from './contactInfo'
22
-
23
-
24
-
25
-
1
+ export * as Account from './account';
2
+ export * as Address from './address';
3
+ export * as App from './app';
4
+ export * as Authentication from './authentication';
5
+ export * as Card from './card';
6
+ export * as Country from './country';
7
+ export * as Currency from './currency';
8
+ export * as Directory from './directory';
9
+ export * as ExchangeRate from './exchangeRate';
10
+ export * as File from './identity';
11
+ export * as Group from './group';
12
+ export * as Identity from './provider';
13
+ export * as Header from './header';
14
+ export * as ServicePayment from './servicePayment';
15
+ export * as NotificationMessages from './notificationMessages';
16
+ export * as SessionActivity from './sessionActivity';
17
+ export * as EventBridgeMessage from './eventBridge';
18
+ export * as GenericMessage from './genericMessage';
19
+ export * as TransactionProcessor from './transactionProcessor';
20
+ export * as Transaction from './transaction';
21
+ export * as ContactInfo from './contactInfo'
22
+
23
+
24
+
25
+
@@ -1,8 +1,8 @@
1
- import {QueueMessageDestination} from "./QueueMessageDestination";
2
-
3
- export class NotificationQueueMessageRequest {
4
- templateId: string; // Nombre de la plantilla de mensaje a enviar
5
- broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
6
- destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
7
- data?: any; // Informacion adicional a enviar al destino
1
+ import {QueueMessageDestination} from "./QueueMessageDestination";
2
+
3
+ export class NotificationQueueMessageRequest {
4
+ templateId: string; // Nombre de la plantilla de mensaje a enviar
5
+ broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
6
+ destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
7
+ data?: any; // Informacion adicional a enviar al destino
8
8
  }
@@ -1,7 +1,7 @@
1
- import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
2
-
3
- export class QueueMessageDestination {
4
- directoryId: string;
5
- templateVariables?: QueueMessageVariableValues[];
6
- data?: any;
1
+ import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
2
+
3
+ export class QueueMessageDestination {
4
+ directoryId: string;
5
+ templateVariables?: QueueMessageVariableValues[];
6
+ data?: any;
7
7
  }
@@ -1,4 +1,4 @@
1
- export class QueueMessageVariableValues {
2
- key: string;
3
- value: string;
1
+ export class QueueMessageVariableValues {
2
+ key: string;
3
+ value: string;
4
4
  }
@@ -1,14 +1,14 @@
1
-
2
-
3
-
4
- export enum NotificationId {
5
-
6
- ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA", //Mesnaje de apertura de cuentas y tarjeta USA
7
- ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX", //Mesnaje de apertura de cuentas y tarjeta MEX
8
- ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT", // Mensaje cuando el resultado del onboarding es error en la validación del documento
9
- ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH", // Mensaje cuando el resultado del onboarding es error porque no hace match en video selfie con el documento
10
-
11
-
12
-
13
-
1
+
2
+
3
+
4
+ export enum NotificationId {
5
+
6
+ ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA", //Mesnaje de apertura de cuentas y tarjeta USA
7
+ ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX", //Mesnaje de apertura de cuentas y tarjeta MEX
8
+ ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT", // Mensaje cuando el resultado del onboarding es error en la validación del documento
9
+ ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH", // Mensaje cuando el resultado del onboarding es error porque no hace match en video selfie con el documento
10
+
11
+
12
+
13
+
14
14
  }
@@ -1,6 +1,6 @@
1
- export * from './dtos/NotificationQueueMessageRequest';
2
- export * from './dtos/QueueMessageDestination';
3
- export * from './dtos/QueueMessageVariableValues';
4
-
5
-
1
+ export * from './dtos/NotificationQueueMessageRequest';
2
+ export * from './dtos/QueueMessageDestination';
3
+ export * from './dtos/QueueMessageVariableValues';
4
+
5
+
6
6
  export * from "./enums/NotificationId";
@@ -1,5 +1,5 @@
1
- export enum Provider {
2
- TERN = 'TERN',
3
- POMELO = 'POMELO',
4
- STP= 'STP'
1
+ export enum Provider {
2
+ TERN = 'TERN',
3
+ POMELO = 'POMELO',
4
+ STP= 'STP'
5
5
  }
@@ -1,2 +1,2 @@
1
-
1
+
2
2
  export * from './enums/Provider';
@@ -1,14 +1,14 @@
1
- import { IsEnum, IsString } from "class-validator";
2
- import { Provider } from "../../provider";
3
-
4
-
5
- export class QueueMessageBase<T> {
6
-
7
- @IsEnum(Provider)
8
- provider: string;
9
-
10
- @IsString()
11
- eventType: string;
12
-
13
- message: T
1
+ import { IsEnum, IsString } from "class-validator";
2
+ import { Provider } from "../../provider";
3
+
4
+
5
+ export class QueueMessageBase<T> {
6
+
7
+ @IsEnum(Provider)
8
+ provider: string;
9
+
10
+ @IsString()
11
+ eventType: string;
12
+
13
+ message: T
14
14
  }
@@ -1,33 +1,33 @@
1
-
2
-
3
- import { IsNotEmpty, Length, Min } from 'class-validator';
4
-
5
-
6
- export class ServicePaymentRequest {
7
-
8
- @IsNotEmpty()
9
- @Length(1, 50)
10
- serviceId: string;
11
-
12
- @IsNotEmpty()
13
- @Length(1, 100)
14
- directoryId: string;
15
-
16
- @IsNotEmpty()
17
- @Length(1, 100)
18
- reference: string;
19
-
20
- @IsNotEmpty()
21
- @Length(1, 50)
22
- productId: string;
23
-
24
- @IsNotEmpty()
25
- @Min(0.01)
26
- amount: number;
27
-
28
- @IsNotEmpty()
29
- @Length(1, 50)
30
- transactionNumber: string;
31
- }
32
-
33
-
1
+
2
+
3
+ import { IsNotEmpty, Length, Min } from 'class-validator';
4
+
5
+
6
+ export class ServicePaymentRequest {
7
+
8
+ @IsNotEmpty()
9
+ @Length(1, 50)
10
+ serviceId: string;
11
+
12
+ @IsNotEmpty()
13
+ @Length(1, 100)
14
+ directoryId: string;
15
+
16
+ @IsNotEmpty()
17
+ @Length(1, 100)
18
+ reference: string;
19
+
20
+ @IsNotEmpty()
21
+ @Length(1, 50)
22
+ productId: string;
23
+
24
+ @IsNotEmpty()
25
+ @Min(0.01)
26
+ amount: number;
27
+
28
+ @IsNotEmpty()
29
+ @Length(1, 50)
30
+ transactionNumber: string;
31
+ }
32
+
33
+
@@ -1,11 +1,11 @@
1
- import {SessionActivityActionEnum} from "../enums/SessionActivityActionEnum";
2
- import {SessionActivityActionOriginEnum} from "../enums/SessionActivityActionOriginEnum";
3
-
4
- export class SessionActivityQueueMessageRequest {
5
- id: string; // requestId de la peticion
6
- sessionId: string; // Id de la sesion que realizo el request
7
- operationName: string; // nombre de la operacion asociada al request
8
- source: string; // Tabla|lambda|componente desde donde vino el mensaje
9
- action: SessionActivityActionEnum; // Accion realizada
10
- actionOrigin: SessionActivityActionOriginEnum; // Si la peticion fue realizada desde la APP o backoffice
1
+ import {SessionActivityActionEnum} from "../enums/SessionActivityActionEnum";
2
+ import {SessionActivityActionOriginEnum} from "../enums/SessionActivityActionOriginEnum";
3
+
4
+ export class SessionActivityQueueMessageRequest {
5
+ id: string; // requestId de la peticion
6
+ sessionId: string; // Id de la sesion que realizo el request
7
+ operationName: string; // nombre de la operacion asociada al request
8
+ source: string; // Tabla|lambda|componente desde donde vino el mensaje
9
+ action: SessionActivityActionEnum; // Accion realizada
10
+ actionOrigin: SessionActivityActionOriginEnum; // Si la peticion fue realizada desde la APP o backoffice
11
11
  }
@@ -1,8 +1,8 @@
1
- export enum SessionActivityActionEnum {
2
- "GET" = "GET",
3
- "POST" = "POST",
4
- "PUT" = "PUT",
5
- "DELETE" = "DELETE",
6
- "PATCH" = "PATCH",
7
- "OPTIONS" = "OPTIONS"
1
+ export enum SessionActivityActionEnum {
2
+ "GET" = "GET",
3
+ "POST" = "POST",
4
+ "PUT" = "PUT",
5
+ "DELETE" = "DELETE",
6
+ "PATCH" = "PATCH",
7
+ "OPTIONS" = "OPTIONS"
8
8
  }
@@ -1,5 +1,5 @@
1
- export enum SessionActivityActionOriginEnum {
2
- MOBILE_APP = "USERS_APP",
3
- BACKOFFICE = "BACKOFFICE",
4
- UNKNOWN = "UNKNOWN"
1
+ export enum SessionActivityActionOriginEnum {
2
+ MOBILE_APP = "USERS_APP",
3
+ BACKOFFICE = "BACKOFFICE",
4
+ UNKNOWN = "UNKNOWN"
5
5
  }
@@ -1,3 +1,3 @@
1
- export * from './dtos/SessionActivityQueueMessageRequest';
2
- export * from './enums/SessionActivityActionEnum';
1
+ export * from './dtos/SessionActivityQueueMessageRequest';
2
+ export * from './enums/SessionActivityActionEnum';
3
3
  export * from './enums/SessionActivityActionOriginEnum';
@@ -1,4 +1,4 @@
1
-
2
- export class TransactionCreateRequest {
3
-
4
- }
1
+
2
+ export class TransactionCreateRequest {
3
+
4
+ }
@@ -1,4 +1,4 @@
1
-
2
- export class TransactionCreateResponse {
3
-
4
- }
1
+
2
+ export class TransactionCreateResponse {
3
+
4
+ }
@@ -1,4 +1,4 @@
1
- export enum OperationEnum {
2
- ADD = "ADD",
3
- SUBSTRACT = "SUBSTRACT"
1
+ export enum OperationEnum {
2
+ ADD = "ADD",
3
+ SUBSTRACT = "SUBSTRACT"
4
4
  }
@@ -1,6 +1,6 @@
1
- //dtos
2
- export * from './dtos/TransactionCreateRequest';
3
- export * from './dtos/TransactionCreateResponse';
4
-
5
- //enums
1
+ //dtos
2
+ export * from './dtos/TransactionCreateRequest';
3
+ export * from './dtos/TransactionCreateResponse';
4
+
5
+ //enums
6
6
  export * from './enums/OperationEnum';
@@ -1,7 +1,7 @@
1
- import {PrivateProcessorAmountInfoItem} from "./PrivateProcessorAmountInfoItem";
2
-
3
- export class PrivateProcessorAmountInfo {
4
- transaction: PrivateProcessorAmountInfoItem;
5
- settlement: PrivateProcessorAmountInfoItem;
6
- local: PrivateProcessorAmountInfoItem;
1
+ import {PrivateProcessorAmountInfoItem} from "./PrivateProcessorAmountInfoItem";
2
+
3
+ export class PrivateProcessorAmountInfo {
4
+ transaction: PrivateProcessorAmountInfoItem;
5
+ settlement: PrivateProcessorAmountInfoItem;
6
+ local: PrivateProcessorAmountInfoItem;
7
7
  }
@@ -1,4 +1,4 @@
1
- export class PrivateProcessorAmountInfoItem {
2
- total: number;
3
- currencyId: string;
1
+ export class PrivateProcessorAmountInfoItem {
2
+ total: number;
3
+ currencyId: string;
4
4
  }
@@ -1,6 +1,6 @@
1
- export class PrivateProcessorCardInfo {
2
- productType: string;
3
- lastFour: string;
4
- provider: string;
5
- externalCardId: string;
1
+ export class PrivateProcessorCardInfo {
2
+ productType: string;
3
+ lastFour: string;
4
+ provider: string;
5
+ externalCardId: string;
6
6
  }
@@ -1,7 +1,7 @@
1
- export class PrivateProcessorMerchantInfo {
2
- id: string;
3
- address: string;
4
- name: string;
5
- mcc: string;
6
- terminalId: string;
1
+ export class PrivateProcessorMerchantInfo {
2
+ id: string;
3
+ address: string;
4
+ name: string;
5
+ mcc: string;
6
+ terminalId: string;
7
7
  }
@@ -1,8 +1,8 @@
1
- export class PrivateProcessorTransactionInfo {
2
- id: string;
3
- type: string;
4
- network: string;
5
- date: string;
6
- originalTransactionId: string;
7
- pointType: string;
1
+ export class PrivateProcessorTransactionInfo {
2
+ id: string;
3
+ type: string;
4
+ network: string;
5
+ date: string;
6
+ originalTransactionId: string;
7
+ pointType: string;
8
8
  }
@@ -1,17 +1,17 @@
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
-
7
- export class PrivateTransactionProcessorRequest {
8
- idempotencyKey: string;
9
- externalUserId: string;
10
- cardInfo: PrivateProcessorCardInfo | null;
11
- productCatalogId: string;
12
- merchantInfo: PrivateProcessorMerchantInfo;
13
- amountInfo: PrivateProcessorAmountInfo;
14
- transactionInfo: PrivateProcessorTransactionInfo;
15
- countryId: CountryId;
16
- additionalData: any;
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
+
7
+ export class PrivateTransactionProcessorRequest {
8
+ idempotencyKey: string;
9
+ externalUserId: string;
10
+ cardInfo: PrivateProcessorCardInfo | null;
11
+ productCatalogId: string;
12
+ merchantInfo: PrivateProcessorMerchantInfo;
13
+ amountInfo: PrivateProcessorAmountInfo;
14
+ transactionInfo: PrivateProcessorTransactionInfo;
15
+ countryId: CountryId;
16
+ additionalData: any;
17
17
  }
@@ -1,7 +1,7 @@
1
- export * from './dtos/private/PrivateTransactionProcessorRequest';
2
- export * from './dtos/private/PrivateProcessorTransactionInfo';
3
- export * from './dtos/private/PrivateProcessorMerchantInfo';
4
- export * from './dtos/private/PrivateProcessorCardInfo';
5
- export * from './dtos/private/PrivateProcessorAmountInfo';
6
- export * from './dtos/private/PrivateProcessorAmountInfoItem';
7
-
1
+ export * from './dtos/private/PrivateTransactionProcessorRequest';
2
+ export * from './dtos/private/PrivateProcessorTransactionInfo';
3
+ export * from './dtos/private/PrivateProcessorMerchantInfo';
4
+ export * from './dtos/private/PrivateProcessorCardInfo';
5
+ export * from './dtos/private/PrivateProcessorAmountInfo';
6
+ export * from './dtos/private/PrivateProcessorAmountInfoItem';
7
+
package/.idea/aws.xml DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeRegion" value="us-east-1" />
5
- <option name="recentlyUsedRegions">
6
- <list>
7
- <option value="us-east-1" />
8
- </list>
9
- </option>
10
- </component>
11
- </project>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/fiado-type-kit.iml" filepath="$PROJECT_DIR$/.idea/fiado-type-kit.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>