@fiado/type-kit 1.1.55 → 1.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/.idea/aws.xml +11 -0
  2. package/.idea/fiado-type-kit.iml +12 -0
  3. package/.idea/modules.xml +8 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/README.md +70 -70
  6. package/bin/account/dtos/GetAccountResponse.d.ts +1 -1
  7. package/bin/account/dtos/GetAccountResponse.js +1 -1
  8. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  9. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  10. package/bin/transaction/dtos/TransactionCreateRequest.d.ts +1 -0
  11. package/bin/transaction/dtos/TransactionCreateRequest.js +8 -0
  12. package/bin/transactionProcessor/dtos/AmountInfo.d.ts +6 -0
  13. package/bin/transactionProcessor/dtos/AmountInfo.js +6 -0
  14. package/bin/transactionProcessor/dtos/AmountInfoItem.d.ts +4 -0
  15. package/bin/transactionProcessor/dtos/AmountInfoItem.js +6 -0
  16. package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.d.ts +17 -0
  17. package/bin/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.js +6 -0
  18. package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.d.ts +16 -0
  19. package/bin/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.js +6 -0
  20. package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.d.ts → AuthorizeP2pTransactionRequest.d.ts} +1 -0
  21. package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.d.ts → AuthorizePocketTransactionRequest.d.ts} +2 -1
  22. package/{src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts → bin/transactionProcessor/dtos/CardInfo.d.ts} +2 -2
  23. package/bin/{pomelo/dtos/PomeloCreateUserRequest.js → transactionProcessor/dtos/CardInfo.js} +4 -0
  24. package/bin/transactionProcessor/dtos/InstallmentsInfo.d.ts +7 -0
  25. package/bin/transactionProcessor/dtos/InstallmentsInfo.js +6 -0
  26. package/{src/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.ts → bin/transactionProcessor/dtos/MerchantInfo.d.ts} +2 -2
  27. package/bin/transactionProcessor/dtos/MerchantInfo.js +6 -0
  28. package/{src/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.ts → bin/transactionProcessor/dtos/TransactionInfo.d.ts} +2 -2
  29. package/bin/transactionProcessor/dtos/TransactionInfo.js +6 -0
  30. package/bin/transactionProcessor/index.d.ts +10 -8
  31. package/bin/transactionProcessor/index.js +10 -8
  32. package/package.json +23 -23
  33. package/src/account/dtos/AccountCreateRequest.ts +78 -78
  34. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  35. package/src/account/dtos/AccountInfo.ts +39 -39
  36. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  37. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  38. package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
  39. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  40. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  41. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  42. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  43. package/src/account/dtos/ExchangeInfo.ts +8 -8
  44. package/src/account/dtos/ExecuteP2pOperationRequest.ts +7 -7
  45. package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
  46. package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
  47. package/src/account/dtos/GetAccountResponse.ts +62 -62
  48. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  49. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  50. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  51. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  52. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  53. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  54. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  55. package/src/account/dtos/GetPocketResponse.ts +8 -8
  56. package/src/account/dtos/PocketBalanceItem.ts +14 -14
  57. package/src/account/dtos/PocketItem.ts +43 -43
  58. package/src/account/dtos/UpdateBalanceOperation.ts +8 -8
  59. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  60. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  61. package/src/account/entities/AccountEntityBase.ts +12 -12
  62. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  63. package/src/account/enums/AccountLevelEnum.ts +5 -5
  64. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  65. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  66. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  67. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  68. package/src/account/index.ts +41 -41
  69. package/src/address/dtos/AddressBase.ts +130 -130
  70. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  71. package/src/address/dtos/AddressResponse.ts +41 -41
  72. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  73. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  74. package/src/address/dtos/Geometry.ts +4 -4
  75. package/src/address/dtos/OfficeDetails.ts +30 -30
  76. package/src/address/dtos/OperationSchedule.ts +8 -8
  77. package/src/address/dtos/Place.ts +83 -83
  78. package/src/address/dtos/Shipping.ts +36 -36
  79. package/src/address/dtos/Timezone.ts +5 -5
  80. package/src/address/enums/AddressProvider.ts +10 -10
  81. package/src/address/enums/AddressStatus.ts +9 -9
  82. package/src/address/index.ts +16 -16
  83. package/src/app/enums/App.ts +10 -10
  84. package/src/app/index.ts +3 -3
  85. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  86. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  87. package/src/authentication/index.ts +3 -3
  88. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  89. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  90. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  91. package/src/beneficiary/enums/AccountType.ts +6 -6
  92. package/src/beneficiary/index.ts +7 -7
  93. package/src/card/dtos/CardActivateRequest.ts +12 -12
  94. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  95. package/src/card/dtos/CardAdditionalResponse.ts +12 -12
  96. package/src/card/dtos/CardApplicationRequest.ts +27 -27
  97. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  98. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  99. package/src/card/dtos/CardResponse.ts +34 -34
  100. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  101. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  102. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  103. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  104. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  105. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  106. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  107. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  108. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  109. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  110. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  111. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  112. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  113. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  114. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  115. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  116. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  117. package/src/card/enums/Brand.ts +7 -7
  118. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  119. package/src/card/enums/CardIssuing.ts +6 -6
  120. package/src/card/enums/CardType.ts +4 -4
  121. package/src/card/enums/CardUpdateKey.ts +4 -4
  122. package/src/card/enums/CreditOrDebit.ts +5 -5
  123. package/src/card/enums/DeliveryChannel.ts +7 -7
  124. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  125. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  126. package/src/card/enums/IssuanceType.ts +5 -5
  127. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  128. package/src/card/enums/OwnershipType.ts +3 -3
  129. package/src/card/enums/ShippingStatus.ts +8 -8
  130. package/src/card/enums/Status.ts +6 -6
  131. package/src/card/enums/UpdateKey.ts +5 -5
  132. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  133. package/src/card/index.ts +50 -50
  134. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  135. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  136. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  137. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  138. package/src/contactInfo/index.ts +1 -1
  139. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  140. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  141. package/src/contract/index.ts +4 -4
  142. package/src/country/enums/Country.ts +6 -6
  143. package/src/country/enums/CountryId.ts +6 -6
  144. package/src/country/index.ts +5 -5
  145. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  146. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  147. package/src/creditContract/index.ts +5 -5
  148. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  149. package/src/currency/index.ts +2 -2
  150. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  151. package/src/directory/dtos/External.ts +6 -6
  152. package/src/directory/enums/Profile.ts +6 -6
  153. package/src/directory/enums/Scope.ts +7 -7
  154. package/src/directory/enums/Status.ts +8 -8
  155. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  156. package/src/directory/index.ts +7 -7
  157. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  158. package/src/eventBridge/index.ts +1 -1
  159. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  160. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  161. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  162. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  163. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  164. package/src/exchangeRate/index.ts +9 -9
  165. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  166. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  167. package/src/genericMessage/index.ts +1 -1
  168. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  169. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  170. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  171. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  172. package/src/group/dtos/GroupResponse.ts +17 -17
  173. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  174. package/src/group/enums/GroupAction.ts +8 -8
  175. package/src/group/enums/GroupStatus.ts +6 -6
  176. package/src/group/enums/RelationStatus.ts +8 -8
  177. package/src/group/enums/RelationType.ts +9 -9
  178. package/src/group/index.ts +18 -18
  179. package/src/header/TokenPayload.ts +18 -18
  180. package/src/header/index.ts +3 -3
  181. package/src/helpers/ValidationUtils.ts +32 -32
  182. package/src/helpers/constans/regex.ts +12 -12
  183. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  184. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  185. package/src/identity/dtos/PeopleResponse.ts +72 -72
  186. package/src/identity/dtos/PeopleUpdateRequest.ts +71 -71
  187. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  188. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  189. package/src/identity/enums/SexDocument.ts +6 -6
  190. package/src/identity/enums/TypeOfDocument.ts +5 -5
  191. package/src/identity/index.ts +12 -12
  192. package/src/index.ts +28 -28
  193. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  194. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  195. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  196. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  197. package/src/notificationMessages/index.ts +5 -5
  198. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  199. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  200. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  201. package/src/productCatalog/enums/ProductTypeEnum.ts +8 -8
  202. package/src/productCatalog/index.ts +4 -4
  203. package/src/provider/enums/Provider.ts +4 -4
  204. package/src/provider/index.ts +1 -1
  205. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  206. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  207. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  208. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  209. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  210. package/src/sessionActivity/index.ts +2 -2
  211. package/src/transaction/dtos/Credit.ts +21 -21
  212. package/src/transaction/dtos/Debit.ts +20 -20
  213. package/src/transaction/dtos/Notional.ts +20 -20
  214. package/src/transaction/dtos/Product.ts +21 -21
  215. package/src/transaction/dtos/Total.ts +20 -20
  216. package/src/transaction/dtos/TransactionCreateRequest.ts +101 -93
  217. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  218. package/src/transaction/enums/OperationEnum.ts +3 -3
  219. package/src/transaction/index.ts +5 -5
  220. package/src/transactionProcessor/dtos/AmountInfo.ts +7 -0
  221. package/src/transactionProcessor/dtos/AmountInfoItem.ts +4 -0
  222. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +18 -0
  223. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +17 -0
  224. package/src/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.ts → AuthorizeP2pTransactionRequest.ts} +5 -4
  225. package/src/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.ts → AuthorizePocketTransactionRequest.ts} +8 -7
  226. package/{bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts → src/transactionProcessor/dtos/CardInfo.ts} +6 -6
  227. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +7 -0
  228. package/{bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts → src/transactionProcessor/dtos/MerchantInfo.ts} +7 -7
  229. package/{bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts → src/transactionProcessor/dtos/TransactionInfo.ts} +8 -8
  230. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +12 -12
  231. package/src/transactionProcessor/index.ts +13 -11
  232. package/bin/account/dtos/AccountResponse.d.ts +0 -21
  233. package/bin/account/dtos/AccountResponse.js +0 -6
  234. package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
  235. package/bin/account/dtos/CreateBankAccountInput.js +0 -6
  236. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
  237. package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
  238. package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
  239. package/bin/account/dtos/PocketCreateRequest.js +0 -31
  240. package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
  241. package/bin/account/dtos/PocketCreateResponse.js +0 -6
  242. package/bin/account/enums/AccountStatus.d.ts +0 -5
  243. package/bin/account/enums/AccountStatus.js +0 -9
  244. package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
  245. package/bin/card/dtos/CardCreateRequest.js +0 -176
  246. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
  247. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
  248. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
  249. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
  250. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
  251. package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
  252. package/bin/pomelo/enums/CountryEnum.js +0 -12
  253. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
  254. package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
  255. package/bin/pomelo/enums/SexEnum.d.ts +0 -4
  256. package/bin/pomelo/enums/SexEnum.js +0 -8
  257. package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
  258. package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
  259. package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
  260. package/bin/pomelo/enums/UserStatusEnum.js +0 -8
  261. package/bin/pomelo/index.d.ts +0 -7
  262. package/bin/pomelo/index.js +0 -25
  263. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
  264. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +0 -19
  265. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  266. package/bin/tern/dtos/TernAddress.js +0 -40
  267. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  268. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  269. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
  270. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  271. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  272. package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
  273. package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
  274. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  275. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  276. package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
  277. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  278. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  279. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  280. package/bin/tern/dtos/TernGetUserRequest.js +0 -20
  281. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  282. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  283. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  284. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  285. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  286. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  287. package/bin/tern/index.d.ts +0 -11
  288. package/bin/tern/index.js +0 -29
  289. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
  290. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
  291. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
  292. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
  293. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
  294. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
  295. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
  296. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
  297. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
  298. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +0 -7
  299. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +0 -4
  300. package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +0 -17
  301. /package/bin/transactionProcessor/dtos/{private/AuthorizeP2pTransactionRequest.js → AuthorizeP2pTransactionRequest.js} +0 -0
  302. /package/bin/transactionProcessor/dtos/{private/AuthorizePocketTransactionRequest.js → AuthorizePocketTransactionRequest.js} +0 -0
@@ -1,93 +1,101 @@
1
- import {IsDate, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
2
- import { regexUuidV4 } from "../../helpers/constans/regex";
3
- import { CountryId } from "../../country";
4
- import { OperationEnum } from "../enums/OperationEnum";
5
- import { TypeOfDirectoryId } from "../../directory";
6
- import { Type } from "class-transformer";
7
- import { Notional } from "./Notional";
8
- import { Credit } from "./Credit";
9
- import { Debit } from "./Debit";
10
- import { Total } from "./Total";
11
- import { Product } from "./Product";
12
-
13
- export class TransactionCreateRequest {
14
-
15
- @IsNotEmpty()
16
- @IsString()
17
- @Length(3, 50)
18
- transactionNumber: string;
19
-
20
- @IsNotEmpty()
21
- @IsString()
22
- @Matches(regexUuidV4,
23
- {
24
- message: 'directoryId must be a valid UUID v4',
25
- })
26
- directoryId: string;
27
-
28
- @IsNotEmpty()
29
- @IsString()
30
- @Matches(regexUuidV4,
31
- {
32
- message: 'peopleId must be a valid UUID v4',
33
- })
34
- peopleId: string;
35
-
36
- @IsNotEmpty()
37
- @IsString()
38
- accountId: string;
39
-
40
- @IsNotEmpty()
41
- @IsString()
42
- pocketId: string;
43
-
44
- @IsNotEmpty()
45
- @IsString()
46
- @Matches(regexUuidV4,
47
- {
48
- message: 'ownerDirectoryId must be a valid UUID v4',
49
- })
50
- ownerDirectoryId: string;
51
-
52
- @IsNotEmpty()
53
- @IsString()
54
- transactionDate: string;
55
-
56
- @IsString()
57
- sessionId: string;
58
-
59
- @IsNotEmpty()
60
- @IsEnum(CountryId)
61
- currencyId: CountryId;
62
-
63
- @IsNotEmpty()
64
- @IsEnum(OperationEnum)
65
- operation: OperationEnum;
66
-
67
- @ValidateNested({ each: true })
68
- @Type(() => Notional)
69
- notional: Notional;
70
-
71
- @ValidateNested({ each: true })
72
- @Type(() => Credit)
73
- credit: Credit;
74
-
75
- @ValidateNested({ each: true })
76
- @Type(() => Debit)
77
- debit: Debit;
78
-
79
- @ValidateNested({ each: true })
80
- @Type(() => Total)
81
- total: Total;
82
-
83
- @ValidateNested({ each: true })
84
- @Type(() => Product)
85
- product: Product;
86
-
87
- @IsNotEmpty()
88
- @IsEnum(TypeOfDirectoryId)
89
- typeOfDirectoryId: TypeOfDirectoryId;
90
-
91
- }
92
-
93
-
1
+ import {IsEmpty, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+ import {CountryId} from "../../country";
4
+ import {OperationEnum} from "../enums/OperationEnum";
5
+ import {TypeOfDirectoryId} from "../../directory";
6
+ import {Type} from "class-transformer";
7
+ import {Notional} from "./Notional";
8
+ import {Credit} from "./Credit";
9
+ import {Debit} from "./Debit";
10
+ import {Total} from "./Total";
11
+ import {Product} from "./Product";
12
+
13
+ export class TransactionCreateRequest {
14
+
15
+ @IsNotEmpty()
16
+ @IsString()
17
+ @Length(3, 50)
18
+ transactionNumber: string;
19
+
20
+ @IsNotEmpty()
21
+ @IsString()
22
+ @Matches(regexUuidV4,
23
+ {
24
+ message: 'directoryId must be a valid UUID v4',
25
+ })
26
+ directoryId: string;
27
+
28
+ @IsNotEmpty()
29
+ @IsString()
30
+ @Matches(regexUuidV4,
31
+ {
32
+ message: 'peopleId must be a valid UUID v4',
33
+ })
34
+ peopleId: string;
35
+
36
+ @IsNotEmpty()
37
+ @IsString()
38
+ accountId: string;
39
+
40
+ @IsNotEmpty()
41
+ @IsString()
42
+ pocketId: string;
43
+
44
+ @IsNotEmpty()
45
+ @IsString()
46
+ @Matches(regexUuidV4,
47
+ {
48
+ message: 'ownerDirectoryId must be a valid UUID v4',
49
+ })
50
+ ownerDirectoryId: string;
51
+
52
+ @IsEmpty()
53
+ @IsString()
54
+ @Matches(regexUuidV4,
55
+ {
56
+ message: 'ownerDirectoryId must be a valid UUID v4',
57
+ })
58
+ targetDirectoryId: string | null;
59
+
60
+ @IsNotEmpty()
61
+ @IsString()
62
+ transactionDate: string;
63
+
64
+ @IsString()
65
+ sessionId: string;
66
+
67
+ @IsNotEmpty()
68
+ @IsEnum(CountryId)
69
+ currencyId: CountryId;
70
+
71
+ @IsNotEmpty()
72
+ @IsEnum(OperationEnum)
73
+ operation: OperationEnum;
74
+
75
+ @ValidateNested({each: true})
76
+ @Type(() => Notional)
77
+ notional: Notional;
78
+
79
+ @ValidateNested({each: true})
80
+ @Type(() => Credit)
81
+ credit: Credit;
82
+
83
+ @ValidateNested({each: true})
84
+ @Type(() => Debit)
85
+ debit: Debit;
86
+
87
+ @ValidateNested({each: true})
88
+ @Type(() => Total)
89
+ total: Total;
90
+
91
+ @ValidateNested({each: true})
92
+ @Type(() => Product)
93
+ product: Product;
94
+
95
+ @IsNotEmpty()
96
+ @IsEnum(TypeOfDirectoryId)
97
+ typeOfDirectoryId: TypeOfDirectoryId;
98
+
99
+ }
100
+
101
+
@@ -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';
@@ -0,0 +1,7 @@
1
+ import {AmountInfoItem} from "./AmountInfoItem";
2
+
3
+ export class AmountInfo {
4
+ transaction: AmountInfoItem;
5
+ settlement: AmountInfoItem;
6
+ local: AmountInfoItem;
7
+ }
@@ -0,0 +1,4 @@
1
+ export class AmountInfoItem {
2
+ total: number;
3
+ currencyId: string;
4
+ }
@@ -0,0 +1,18 @@
1
+ import {TransactionInfo} from "./TransactionInfo";
2
+ import {MerchantInfo} from "./MerchantInfo";
3
+ import {CardInfo} from "./CardInfo";
4
+ import {AmountInfo} from "./AmountInfo";
5
+ import {CountryId} from "../../country";
6
+ import {InstallmentsInfo} from "./InstallmentsInfo";
7
+
8
+ export class AuthorizeCreditCardAdjustmentRequest {
9
+ idempotencyKey: string;
10
+ externalUserId: string;
11
+ cardInfo: CardInfo;
12
+ productCatalogId: string;
13
+ merchantInfo: MerchantInfo;
14
+ amountInfo: AmountInfo;
15
+ transactionInfo: TransactionInfo;
16
+ countryId: CountryId;
17
+ installments: InstallmentsInfo;
18
+ }
@@ -0,0 +1,17 @@
1
+ import {CardInfo} from "./CardInfo";
2
+ import {MerchantInfo} from "./MerchantInfo";
3
+ import {AmountInfo} from "./AmountInfo";
4
+ import {TransactionInfo} from "./TransactionInfo";
5
+ import {CountryId} from "../../country";
6
+
7
+ export class AuthorizeCreditCardPurchaseRequest {
8
+ idempotencyKey: string;
9
+ externalUserId: string;
10
+ cardInfo: CardInfo | null;
11
+ productCatalogId: string;
12
+ merchantInfo: MerchantInfo;
13
+ amountInfo: AmountInfo;
14
+ transactionInfo: TransactionInfo;
15
+ countryId: CountryId;
16
+ additionalData: any;
17
+ }
@@ -1,5 +1,6 @@
1
- export class AuthorizeP2pTransactionRequest {
2
- idempotencyKey: string;
3
- targetDirectoryId: string;
4
- amount: number;
1
+ export class AuthorizeP2pTransactionRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ targetDirectoryId: string;
5
+ amount: number;
5
6
  }
@@ -1,8 +1,9 @@
1
- import {OperationEnum} from "../../../transaction";
2
-
3
- export class AuthorizePocketTransactionRequest {
4
- idempotencyKey: string;
5
- targetPocketId: string;
6
- operation: OperationEnum;
7
- amount: number;
1
+ import {OperationEnum} from "../../transaction";
2
+
3
+ export class AuthorizePocketTransactionRequest {
4
+ idempotencyKey: string;
5
+ productCatalogId: string;
6
+ targetPocketId: string;
7
+ operation: OperationEnum;
8
+ amount: number;
8
9
  }
@@ -1,6 +1,6 @@
1
- export declare class PrivateProcessorCardInfo {
2
- productType: string;
3
- lastFour: string;
4
- provider: string;
5
- externalCardId: string;
6
- }
1
+ export class CardInfo {
2
+ productType: string;
3
+ lastFour: string;
4
+ provider: string;
5
+ externalCardId: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ export class InstallmentsInfo {
2
+ quantity: string;
3
+ creditType: string;
4
+ gracePeriod: string;
5
+ currentInstallment: string;
6
+ promotionType: string;
7
+ }
@@ -1,7 +1,7 @@
1
- export declare class PrivateProcessorMerchantInfo {
2
- id: string;
3
- address: string;
4
- name: string;
5
- mcc: string;
6
- terminalId: string;
7
- }
1
+ export class MerchantInfo {
2
+ id: string;
3
+ address: string;
4
+ name: string;
5
+ mcc: string;
6
+ terminalId: string;
7
+ }
@@ -1,8 +1,8 @@
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
+ export class TransactionInfo {
2
+ id: string;
3
+ type: string;
4
+ network: string;
5
+ date: string;
6
+ originalTransactionId: string;
7
+ pointType: string;
8
+ }
@@ -1,13 +1,13 @@
1
- export enum TransactionProcessorCodesEnum {
2
- CARD_NOT_FOUND = "CARD_NOT_FOUND",
3
- CARD_NOT_ACTIVE = "CARD_NOT_ACTIVE",
4
- USER_NOT_ACTIVE = "USER_NOT_ACTIVE",
5
- DOCUMENT_ID_NOT_FOUND = "DOCUMENT_ID_NOT_FOUND",
6
- TRX_AMOUNT_LIMIT_EXCEEDED = "TRX_AMOUNT_LIMIT_EXCEEDED",
7
- INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
8
- USER_NOT_AUTHORIZED_FOR_CREDIT = "USER_NOT_AUTHORIZED_FOR_CREDIT",
9
- ACCOUNT_BLOCKED = "ACCOUNT_BLOCKED",
10
- SYSTEM_ERROR = "SYSTEM_ERROR",
11
- PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
12
- TRANSACTION_APPROVED = "TRANSACTION_APPROVED"
1
+ export enum TransactionProcessorCodesEnum {
2
+ CARD_NOT_FOUND = "CARD_NOT_FOUND",
3
+ CARD_NOT_ACTIVE = "CARD_NOT_ACTIVE",
4
+ USER_NOT_ACTIVE = "USER_NOT_ACTIVE",
5
+ DOCUMENT_ID_NOT_FOUND = "DOCUMENT_ID_NOT_FOUND",
6
+ TRX_AMOUNT_LIMIT_EXCEEDED = "TRX_AMOUNT_LIMIT_EXCEEDED",
7
+ INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
8
+ USER_NOT_AUTHORIZED_FOR_CREDIT = "USER_NOT_AUTHORIZED_FOR_CREDIT",
9
+ ACCOUNT_BLOCKED = "ACCOUNT_BLOCKED",
10
+ SYSTEM_ERROR = "SYSTEM_ERROR",
11
+ PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
12
+ TRANSACTION_APPROVED = "TRANSACTION_APPROVED"
13
13
  }
@@ -1,11 +1,13 @@
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
- export * from './dtos/private/AuthorizeP2pTransactionRequest';
8
- export * from './dtos/private/AuthorizePocketTransactionRequest';
9
-
10
- export * from './enums/TransactionProcessorCodesEnum';
11
-
1
+ export * from './dtos/AmountInfo';
2
+ export * from './dtos/AmountInfoItem';
3
+ export * from './dtos/AuthorizeCreditCardAdjustmentRequest';
4
+ export * from './dtos/AuthorizeCreditCardPurchaseRequest';
5
+ export * from './dtos/AuthorizeP2pTransactionRequest';
6
+ export * from './dtos/AuthorizePocketTransactionRequest';
7
+ export * from './dtos/CardInfo';
8
+ export * from './dtos/InstallmentsInfo';
9
+ export * from './dtos/MerchantInfo';
10
+ export * from './dtos/TransactionInfo';
11
+
12
+ export * from './enums/TransactionProcessorCodesEnum';
13
+
@@ -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
- }