@fiado/type-kit 1.4.51 → 1.4.53
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.
- package/.idea/aws.xml +11 -0
- package/.idea/fiado-type-kit.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +70 -70
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/transactionProcessor/dtos/AuthorizeDisputeTransactionRequest.d.ts +11 -0
- package/bin/transactionProcessor/dtos/AuthorizeDisputeTransactionRequest.js +6 -0
- package/bin/transactionProcessor/index.d.ts +1 -0
- package/bin/transactionProcessor/index.js +1 -0
- package/package.json +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +93 -93
- package/src/account/dtos/AccountCreateResponse.ts +7 -7
- package/src/account/dtos/AccountInfo.ts +43 -43
- package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
- package/src/account/dtos/AccountUpdateRequest.ts +36 -36
- package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
- package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
- package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
- package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
- package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
- package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
- package/src/account/dtos/ExchangeInfo.ts +8 -8
- package/src/account/dtos/ExecuteP2pOperationRequest.ts +9 -9
- package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
- package/src/account/dtos/GetAccountBalanceResponse.ts +46 -46
- package/src/account/dtos/GetAccountResponse.ts +62 -62
- package/src/account/dtos/GetAccountResponseList.ts +5 -5
- package/src/account/dtos/GetBankAccountRequest.ts +3 -3
- package/src/account/dtos/GetBankAccountResponse.ts +22 -22
- package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
- package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
- package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
- package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
- package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
- package/src/account/dtos/GetPocketResponse.ts +8 -8
- package/src/account/dtos/PocketBalanceItem.ts +17 -17
- package/src/account/dtos/PocketItem.ts +43 -43
- package/src/account/dtos/UpdateBalanceOperation.ts +10 -10
- package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
- package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
- package/src/account/entities/AccountEntityBase.ts +12 -12
- package/src/account/enums/AccountEntityStatusEnum.ts +5 -5
- package/src/account/enums/AccountLevelEnum.ts +5 -5
- package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
- package/src/account/enums/BankAccountTypeEnum.ts +2 -2
- package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
- package/src/account/enums/UserEntityStatusEnum.ts +4 -4
- package/src/account/index.ts +43 -43
- package/src/activity/dtos/ActivityMessageRequest.ts +24 -24
- package/src/activity/dtos/ActivityMessageResponse.ts +24 -24
- package/src/activity/dtos/ActivityQueueMessage.ts +9 -9
- package/src/activity/index.ts +8 -8
- package/src/address/dtos/AddressBase.ts +130 -130
- package/src/address/dtos/AddressCreateRequest.ts +6 -6
- package/src/address/dtos/AddressResponse.ts +41 -41
- package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
- package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
- package/src/address/dtos/Geometry.ts +4 -4
- package/src/address/dtos/OfficeDetails.ts +30 -30
- package/src/address/dtos/OperationSchedule.ts +8 -8
- package/src/address/dtos/Place.ts +83 -83
- package/src/address/dtos/Shipping.ts +36 -36
- package/src/address/dtos/Timezone.ts +5 -5
- package/src/address/enums/AddressProvider.ts +10 -10
- package/src/address/enums/AddressStatus.ts +9 -9
- package/src/address/index.ts +16 -16
- package/src/app/enums/App.ts +10 -10
- package/src/app/index.ts +3 -3
- package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
- package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
- package/src/authentication/index.ts +3 -3
- package/src/bankAccount/dtos/ExternalAccountCurrency.ts +3 -3
- package/src/bankAccount/dtos/ExternalAccountType.ts +3 -3
- package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +11 -11
- package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +15 -15
- package/src/bankAccount/dtos/GetExternalBankResponse.ts +13 -13
- package/src/bankAccount/index.ts +4 -4
- package/src/bbvaRst/dtos/CreateRSTTransactionRequest.ts +14 -14
- package/src/bbvaRst/dtos/CreateRSTTransactionResponse.ts +9 -9
- package/src/bbvaRst/enums/RSTStatusEnum.ts +4 -4
- package/src/bbvaRst/index.ts +2 -2
- package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +57 -57
- package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +26 -26
- package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +43 -43
- package/src/beneficiary/enums/AccountType.ts +6 -6
- package/src/beneficiary/index.ts +7 -7
- package/src/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardAdditionalRequest.ts +25 -25
- package/src/card/dtos/CardAdditionalResponse.ts +14 -14
- package/src/card/dtos/CardApplicationRequest.ts +35 -35
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +82 -82
- package/src/card/dtos/CardResponse.ts +34 -34
- package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
- package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
- package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
- package/src/card/dtos/CardSummaryResponse.ts +10 -10
- package/src/card/dtos/CardUpdateRequest.ts +11 -11
- package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
- package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
- package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
- package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
- package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
- package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
- package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
- package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
- package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
- package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
- package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
- package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
- package/src/card/enums/Brand.ts +7 -7
- package/src/card/enums/CardIssuanceStatus.ts +5 -5
- package/src/card/enums/CardIssuing.ts +6 -6
- package/src/card/enums/CardType.ts +4 -4
- package/src/card/enums/CardUpdateKey.ts +4 -4
- package/src/card/enums/CreditOrDebit.ts +5 -5
- package/src/card/enums/DeliveryChannel.ts +7 -7
- package/src/card/enums/ExternalShippingStatus.ts +14 -14
- package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
- package/src/card/enums/IssuanceType.ts +5 -5
- package/src/card/enums/NominatedOrInnominated.ts +8 -8
- package/src/card/enums/OwnershipType.ts +3 -3
- package/src/card/enums/ShippingStatus.ts +8 -8
- package/src/card/enums/Status.ts +6 -6
- package/src/card/enums/UpdateKey.ts +5 -5
- package/src/card/enums/VirtualOrPhysical.ts +6 -6
- package/src/card/index.ts +50 -50
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +29 -29
- package/src/contactInfo/dtos/ContactInfoBackOfficeResponse.ts +9 -9
- package/src/contactInfo/dtos/ContactInfoCreateBackOfficeRequest.ts +10 -10
- package/src/contactInfo/dtos/ContactInfoCreateRequest.ts +2 -2
- package/src/contactInfo/dtos/ContactInfoRequest.ts +29 -29
- package/src/contactInfo/dtos/ContactInfoResponse.ts +30 -30
- package/src/contactInfo/dtos/ContactInfoUpdateBackOfficeRequest.ts +15 -15
- package/src/contactInfo/dtos/ContactInfoUpdateRequest.ts +4 -4
- package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
- package/src/contactInfo/index.ts +7 -7
- package/src/contract/dtos/ContractCreateRequest.ts +29 -29
- package/src/contract/dtos/ContractCreateResponse.ts +2 -2
- package/src/contract/index.ts +4 -4
- package/src/country/enums/CountriesISO3.ts +220 -220
- package/src/country/enums/Country.ts +6 -6
- package/src/country/enums/CountryISO2ToISO3.ts +69 -69
- package/src/country/enums/CountryISO3ToISO2.ts +61 -61
- package/src/country/enums/CountryId.ts +6 -6
- package/src/country/index.ts +12 -12
- package/src/country/utilities/CountryCodeConverter.ts +13 -13
- package/src/creditContract/dtos/CreditContractCreateRequest.ts +53 -53
- package/src/creditContract/enums/InstrumentEnum.ts +5 -5
- package/src/creditContract/index.ts +5 -5
- package/src/currency/dtos/CurrencyResponse.ts +8 -8
- package/src/currency/index.ts +2 -2
- package/src/directory/dtos/DirectoryResponse.ts +19 -19
- package/src/directory/dtos/External.ts +6 -6
- package/src/directory/enums/Profile.ts +6 -6
- package/src/directory/enums/Scope.ts +7 -7
- package/src/directory/enums/Status.ts +9 -9
- package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
- package/src/directory/index.ts +7 -7
- package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
- package/src/eventBridge/index.ts +1 -1
- package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
- package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
- package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
- package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
- package/src/exchangeRate/index.ts +9 -9
- package/src/fraudPreventionEngine/dtos/CreateAccountLevelRequest.ts +9 -9
- package/src/fraudPreventionEngine/dtos/GetAccountLevelParams.ts +5 -5
- package/src/fraudPreventionEngine/dtos/GetAccountLevelResponse.ts +7 -7
- package/src/fraudPreventionEngine/enums/AccountLevelTenantEnum.ts +5 -5
- package/src/fraudPreventionEngine/index.ts +5 -5
- package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
- package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
- package/src/genericMessage/index.ts +1 -1
- package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
- package/src/group/dtos/GroupCreateRequest.ts +54 -54
- package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
- package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
- package/src/group/dtos/GroupResponse.ts +17 -17
- package/src/group/dtos/GroupUpdateRequest.ts +31 -31
- package/src/group/enums/GroupAction.ts +8 -8
- package/src/group/enums/GroupStatus.ts +6 -6
- package/src/group/enums/RelationStatus.ts +8 -8
- package/src/group/enums/RelationType.ts +9 -9
- package/src/group/index.ts +18 -18
- package/src/header/TokenPayload.ts +18 -18
- package/src/header/index.ts +3 -3
- package/src/helpers/ValidationUtils.ts +32 -32
- package/src/helpers/constans/regex.ts +12 -12
- package/src/identity/dtos/IdentificationDocument.ts +24 -24
- package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
- package/src/identity/dtos/PeopleResponse.ts +75 -75
- package/src/identity/dtos/PeopleUpdateRequest.ts +75 -75
- package/src/identity/dtos/TypeOfDocument.ts +11 -11
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
- package/src/identity/enums/SexDocument.ts +6 -6
- package/src/identity/enums/TypeOfDocument.ts +5 -5
- package/src/identity/index.ts +12 -12
- package/src/index.ts +36 -36
- package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
- package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
- package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
- package/src/notificationMessages/enums/NotificationId.ts +13 -13
- package/src/notificationMessages/index.ts +5 -5
- package/src/p2pContact/dtos/CreateP2pContactRequest.ts +8 -8
- package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
- package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
- package/src/productCatalog/enums/ProductSubtypeEnum.ts +48 -48
- package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
- package/src/productCatalog/enums/ProductTypeEnum.ts +8 -8
- package/src/productCatalog/index.ts +5 -5
- package/src/provider/enums/Provider.ts +4 -4
- package/src/provider/index.ts +1 -1
- package/src/queue/dtos/QueueMessageBase.ts +13 -13
- package/src/riskProfile/dtos/AlarmCategory.ts +2 -2
- package/src/riskProfile/dtos/CreateRiskProfileRequest.ts +45 -45
- package/src/riskProfile/dtos/TransactionAlarmQueueMessage.ts +48 -48
- package/src/riskProfile/dtos/UpdateAlarmProfileRequest.ts +9 -9
- package/src/riskProfile/dtos/UpdateFactorInfo.ts +5 -5
- package/src/riskProfile/dtos/UpdateRiskProfileRequest.ts +5 -5
- package/src/riskProfile/dtos/UpdateTransactionAlertRequest.ts +18 -18
- package/src/riskProfile/enums/AlarmCategory.ts +8 -8
- package/src/riskProfile/enums/AlarmOperationType.ts +7 -7
- package/src/riskProfile/enums/PepLevelEnum.ts +6 -6
- package/src/riskProfile/enums/RiskFactorCategoryEnum.ts +13 -13
- package/src/riskProfile/index.ts +12 -12
- package/src/servicePayment/dtos/GetCatalogParams.ts +5 -5
- package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
- package/src/servicePayment/index.ts +1 -1
- package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
- package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
- package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
- package/src/sessionActivity/index.ts +2 -2
- package/src/stpAccount/dtos/CreateAccountWebhookDetail.ts +5 -5
- package/src/stpSpei/dtos/GetBusinessAccountBalanceResponse.ts +4 -4
- package/src/stpSpei/dtos/PutStpOrderRequest.ts +13 -13
- package/src/stpSpei/dtos/SpeiWebhookMessage.ts +9 -9
- package/src/stpSpei/enums/ActividadesProductivasEnum.ts +47 -47
- package/src/stpSpei/enums/BusinessNameEnum.ts +3 -3
- package/src/stpSpei/enums/EntidadesFederativasEnum.ts +33 -33
- package/src/stpSpei/enums/PaisesEnum.ts +275 -275
- package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +4 -4
- package/src/stpSpei/index.ts +9 -9
- package/src/transaction/dtos/Credit.ts +24 -24
- package/src/transaction/dtos/Debit.ts +20 -20
- package/src/transaction/dtos/Notional.ts +20 -20
- package/src/transaction/dtos/Product.ts +23 -23
- package/src/transaction/dtos/ProductDetail.ts +35 -35
- package/src/transaction/dtos/Total.ts +20 -20
- package/src/transaction/dtos/TransactionCreateRequest.ts +115 -115
- package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
- package/src/transaction/dtos/TransactionGetDetailResponse.ts +27 -27
- package/src/transaction/dtos/TransactionGetResponse.ts +20 -20
- package/src/transaction/enums/DisputeOrFraudEnum.ts +3 -3
- package/src/transaction/enums/DisputeOrFraudStatusEnum.ts +4 -4
- package/src/transaction/enums/OperationEnum.ts +3 -3
- package/src/transaction/enums/TransactionSourceEnum.ts +7 -7
- package/src/transaction/enums/TransactionStatusEnum.ts +6 -6
- package/src/transaction/index.ts +19 -19
- package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
- package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
- package/src/transactionProcessor/dtos/AuthorizeCollectorTransactionRequest.ts +6 -6
- package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +19 -19
- package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
- package/src/transactionProcessor/dtos/AuthorizeDisputeTransactionRequest.ts +12 -0
- package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +8 -8
- package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
- package/src/transactionProcessor/dtos/AuthorizeRstTransactionRequest.ts +4 -4
- package/src/transactionProcessor/dtos/AuthorizeServicePaymentRequest.ts +7 -7
- package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferNcRequest.ts +9 -9
- package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +6 -6
- package/src/transactionProcessor/dtos/AuthorizeSpeiMexBankTransferInRequest.ts +33 -33
- package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
- package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
- package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
- package/src/transactionProcessor/dtos/ProcessUpdateLevelRequest.ts +3 -3
- package/src/transactionProcessor/dtos/RSTTransactionStatusUpdate.ts +6 -6
- package/src/transactionProcessor/dtos/SpeiBankTransferStatusUpdate.ts +6 -6
- package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
- package/src/transactionProcessor/dtos/TransactionProcessorQueueMessage.ts +3 -3
- package/src/transactionProcessor/dtos/TransactionProcessorResponse.ts +13 -13
- package/src/transactionProcessor/enums/AsyncTxStatusEnum.ts +5 -5
- package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +16 -16
- package/src/transactionProcessor/index.ts +25 -24
- package/bin/account/dtos/AccountResponse.d.ts +0 -21
- package/bin/account/dtos/AccountResponse.js +0 -6
- package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
- package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
- package/bin/account/dtos/PocketCreateRequest.d.ts +0 -4
- package/bin/account/dtos/PocketCreateRequest.js +0 -31
- package/bin/account/dtos/PocketCreateResponse.d.ts +0 -2
- package/bin/account/dtos/PocketCreateResponse.js +0 -6
- package/bin/account/enums/AccountStatus.d.ts +0 -5
- package/bin/account/enums/AccountStatus.js +0 -9
- package/bin/card/dtos/CardCreateRequest.d.ts +0 -34
- package/bin/card/dtos/CardCreateRequest.js +0 -176
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
- package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +0 -28
- package/bin/pomelo/dtos/PomeloCreateUserRequest.js +0 -2
- package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +0 -35
- package/bin/pomelo/dtos/PomeloCreateUserResponse.js +0 -2
- package/bin/pomelo/enums/CountryEnum.d.ts +0 -8
- package/bin/pomelo/enums/CountryEnum.js +0 -12
- package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +0 -7
- package/bin/pomelo/enums/IdentificationTypeEnum.js +0 -11
- package/bin/pomelo/enums/SexEnum.d.ts +0 -4
- package/bin/pomelo/enums/SexEnum.js +0 -8
- package/bin/pomelo/enums/TaxTypeEnum.d.ts +0 -7
- package/bin/pomelo/enums/TaxTypeEnum.js +0 -11
- package/bin/pomelo/enums/UserStatusEnum.d.ts +0 -4
- package/bin/pomelo/enums/UserStatusEnum.js +0 -8
- package/bin/pomelo/index.d.ts +0 -7
- package/bin/pomelo/index.js +0 -25
- package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
- package/bin/productCatalog/dtos/GetProductCatalogRequest.js +0 -19
- package/bin/tern/dtos/TernAddress.d.ts +0 -8
- package/bin/tern/dtos/TernAddress.js +0 -40
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
- package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
- package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
- package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
- package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
- package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
- package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
- package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
- package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
- package/bin/tern/dtos/TernGetUserRequest.js +0 -20
- package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
- package/bin/tern/dtos/TernGetUserResponse.js +0 -96
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
- package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
- package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
- package/bin/tern/index.d.ts +0 -11
- package/bin/tern/index.js +0 -29
- package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +0 -5
- package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +0 -6
- package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +0 -7
- package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +0 -4
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +0 -7
- package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +0 -8
- package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +0 -6
- package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +0 -16
- package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +0 -6
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum CountryISO3ToISO2 {
|
|
4
|
-
// Latinoamérica
|
|
5
|
-
ARG = "AR", // Argentina
|
|
6
|
-
BOL = "BO", // Bolivia
|
|
7
|
-
BRA = "BR", // Brasil
|
|
8
|
-
CHL = "CL", // Chile
|
|
9
|
-
COL = "CO", // Colombia
|
|
10
|
-
CRI = "CR", // Costa Rica
|
|
11
|
-
CUB = "CU", // Cuba
|
|
12
|
-
DOM = "DO", // República Dominicana
|
|
13
|
-
ECU = "EC", // Ecuador
|
|
14
|
-
GTM = "GT", // Guatemala
|
|
15
|
-
HND = "HN", // Honduras
|
|
16
|
-
MEX = "MX", // México
|
|
17
|
-
NIC = "NI", // Nicaragua
|
|
18
|
-
PAN = "PA", // Panamá
|
|
19
|
-
PRY = "PY", // Paraguay
|
|
20
|
-
PER = "PE", // Perú
|
|
21
|
-
SLV = "SV", // El Salvador
|
|
22
|
-
URY = "UY", // Uruguay
|
|
23
|
-
VEN = "VE", // Venezuela
|
|
24
|
-
|
|
25
|
-
// Europa
|
|
26
|
-
DEU = "DE", // Alemania
|
|
27
|
-
AUT = "AT", // Austria
|
|
28
|
-
BEL = "BE", // Bélgica
|
|
29
|
-
DNK = "DK", // Dinamarca
|
|
30
|
-
ESP = "ES", // España
|
|
31
|
-
FIN = "FI", // Finlandia
|
|
32
|
-
FRA = "FR", // Francia
|
|
33
|
-
GRC = "GR", // Grecia
|
|
34
|
-
HUN = "HU", // Hungría
|
|
35
|
-
IRL = "IE", // Irlanda
|
|
36
|
-
ITA = "IT", // Italia
|
|
37
|
-
NLD = "NL", // Países Bajos
|
|
38
|
-
NOR = "NO", // Noruega
|
|
39
|
-
POL = "PL",
|
|
40
|
-
PRT = "PT", // Portugal
|
|
41
|
-
ROU = "RO", // Rumania
|
|
42
|
-
SWE = "SE", // Suecia
|
|
43
|
-
CHE = "CH", // Suiza
|
|
44
|
-
GBR = "GB", // Reino Unido
|
|
45
|
-
RUS = "RU", // Rusia
|
|
46
|
-
|
|
47
|
-
// Asia y Oceanía
|
|
48
|
-
CHN = "CN", // China
|
|
49
|
-
IND = "IN", // India
|
|
50
|
-
JPN = "JP", // Japón
|
|
51
|
-
KOR = "KR", // Corea del Sur
|
|
52
|
-
AUS = "AU", // Australia
|
|
53
|
-
NZL = "NZ", // Nueva Zelanda
|
|
54
|
-
|
|
55
|
-
// África
|
|
56
|
-
ZAF = "ZA", // Sudáfrica
|
|
57
|
-
EGY = "EG", // Egipto
|
|
58
|
-
NGA = "NG", // Nigeria
|
|
59
|
-
KEN = "KE", // Kenia
|
|
60
|
-
MAR = "MA", // Marruecos
|
|
61
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum CountryISO3ToISO2 {
|
|
4
|
+
// Latinoamérica
|
|
5
|
+
ARG = "AR", // Argentina
|
|
6
|
+
BOL = "BO", // Bolivia
|
|
7
|
+
BRA = "BR", // Brasil
|
|
8
|
+
CHL = "CL", // Chile
|
|
9
|
+
COL = "CO", // Colombia
|
|
10
|
+
CRI = "CR", // Costa Rica
|
|
11
|
+
CUB = "CU", // Cuba
|
|
12
|
+
DOM = "DO", // República Dominicana
|
|
13
|
+
ECU = "EC", // Ecuador
|
|
14
|
+
GTM = "GT", // Guatemala
|
|
15
|
+
HND = "HN", // Honduras
|
|
16
|
+
MEX = "MX", // México
|
|
17
|
+
NIC = "NI", // Nicaragua
|
|
18
|
+
PAN = "PA", // Panamá
|
|
19
|
+
PRY = "PY", // Paraguay
|
|
20
|
+
PER = "PE", // Perú
|
|
21
|
+
SLV = "SV", // El Salvador
|
|
22
|
+
URY = "UY", // Uruguay
|
|
23
|
+
VEN = "VE", // Venezuela
|
|
24
|
+
|
|
25
|
+
// Europa
|
|
26
|
+
DEU = "DE", // Alemania
|
|
27
|
+
AUT = "AT", // Austria
|
|
28
|
+
BEL = "BE", // Bélgica
|
|
29
|
+
DNK = "DK", // Dinamarca
|
|
30
|
+
ESP = "ES", // España
|
|
31
|
+
FIN = "FI", // Finlandia
|
|
32
|
+
FRA = "FR", // Francia
|
|
33
|
+
GRC = "GR", // Grecia
|
|
34
|
+
HUN = "HU", // Hungría
|
|
35
|
+
IRL = "IE", // Irlanda
|
|
36
|
+
ITA = "IT", // Italia
|
|
37
|
+
NLD = "NL", // Países Bajos
|
|
38
|
+
NOR = "NO", // Noruega
|
|
39
|
+
POL = "PL",
|
|
40
|
+
PRT = "PT", // Portugal
|
|
41
|
+
ROU = "RO", // Rumania
|
|
42
|
+
SWE = "SE", // Suecia
|
|
43
|
+
CHE = "CH", // Suiza
|
|
44
|
+
GBR = "GB", // Reino Unido
|
|
45
|
+
RUS = "RU", // Rusia
|
|
46
|
+
|
|
47
|
+
// Asia y Oceanía
|
|
48
|
+
CHN = "CN", // China
|
|
49
|
+
IND = "IN", // India
|
|
50
|
+
JPN = "JP", // Japón
|
|
51
|
+
KOR = "KR", // Corea del Sur
|
|
52
|
+
AUS = "AU", // Australia
|
|
53
|
+
NZL = "NZ", // Nueva Zelanda
|
|
54
|
+
|
|
55
|
+
// África
|
|
56
|
+
ZAF = "ZA", // Sudáfrica
|
|
57
|
+
EGY = "EG", // Egipto
|
|
58
|
+
NGA = "NG", // Nigeria
|
|
59
|
+
KEN = "KE", // Kenia
|
|
60
|
+
MAR = "MA", // Marruecos
|
|
61
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
//*
|
|
3
|
-
|
|
4
|
-
export enum CountryId {
|
|
5
|
-
MEX = "484",
|
|
6
|
-
USA = "840"
|
|
1
|
+
|
|
2
|
+
//*
|
|
3
|
+
|
|
4
|
+
export enum CountryId {
|
|
5
|
+
MEX = "484",
|
|
6
|
+
USA = "840"
|
|
7
7
|
}
|
package/src/country/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
//dto
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//enums
|
|
5
|
-
export * from './enums/CountryId';
|
|
6
|
-
export * from './enums/Country';
|
|
7
|
-
export * from './enums/CountryISO2ToISO3';
|
|
8
|
-
export * from './enums/CountryISO3ToISO2';
|
|
9
|
-
export * from './enums/CountriesISO3';
|
|
10
|
-
|
|
11
|
-
//utilities
|
|
12
|
-
export * from './utilities/CountryCodeConverter';
|
|
1
|
+
//dto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//enums
|
|
5
|
+
export * from './enums/CountryId';
|
|
6
|
+
export * from './enums/Country';
|
|
7
|
+
export * from './enums/CountryISO2ToISO3';
|
|
8
|
+
export * from './enums/CountryISO3ToISO2';
|
|
9
|
+
export * from './enums/CountriesISO3';
|
|
10
|
+
|
|
11
|
+
//utilities
|
|
12
|
+
export * from './utilities/CountryCodeConverter';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CountryISO2ToISO3 } from "../enums/CountryISO2ToISO3";
|
|
2
|
-
import { CountryISO3ToISO2 } from "../enums/CountryISO3ToISO2";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class CountryCodeConverter {
|
|
6
|
-
static getISO3FromISO2(iso2: string): string | undefined {
|
|
7
|
-
return CountryISO2ToISO3[iso2 as keyof typeof CountryISO2ToISO3];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
static getISO2FromISO3(iso3: string): string | undefined {
|
|
11
|
-
return CountryISO3ToISO2[iso3 as keyof typeof CountryISO3ToISO2];
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
import { CountryISO2ToISO3 } from "../enums/CountryISO2ToISO3";
|
|
2
|
+
import { CountryISO3ToISO2 } from "../enums/CountryISO3ToISO2";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CountryCodeConverter {
|
|
6
|
+
static getISO3FromISO2(iso2: string): string | undefined {
|
|
7
|
+
return CountryISO2ToISO3[iso2 as keyof typeof CountryISO2ToISO3];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static getISO2FromISO3(iso3: string): string | undefined {
|
|
11
|
+
return CountryISO3ToISO2[iso3 as keyof typeof CountryISO3ToISO2];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { IsEnum, IsNotEmpty, IsNumber, IsString, Matches } from "class-validator";
|
|
2
|
-
import { CountryId } from "../../country";
|
|
3
|
-
import { ProductTypeEnum } from "../../productCatalog";
|
|
4
|
-
export default class CreditContractCreateRequest {
|
|
5
|
-
|
|
6
|
-
@IsString()
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
id: string;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
@IsNotEmpty()
|
|
12
|
-
directoryUserId: string;
|
|
13
|
-
|
|
14
|
-
@IsString()
|
|
15
|
-
@IsNotEmpty()
|
|
16
|
-
relatedTransaction: string;
|
|
17
|
-
|
|
18
|
-
@IsString()
|
|
19
|
-
@IsNotEmpty()
|
|
20
|
-
peopleId: string;
|
|
21
|
-
|
|
22
|
-
@IsEnum(CountryId)
|
|
23
|
-
@IsNotEmpty()
|
|
24
|
-
currencyId: CountryId;
|
|
25
|
-
|
|
26
|
-
@IsNumber()
|
|
27
|
-
@IsNotEmpty()
|
|
28
|
-
creditNotional: number;
|
|
29
|
-
|
|
30
|
-
@IsNumber()
|
|
31
|
-
@IsNotEmpty()
|
|
32
|
-
creditFee: number;
|
|
33
|
-
|
|
34
|
-
@IsNumber()
|
|
35
|
-
@IsNotEmpty()
|
|
36
|
-
creditTax: number;
|
|
37
|
-
|
|
38
|
-
@IsNumber()
|
|
39
|
-
@IsNotEmpty()
|
|
40
|
-
creditTotal: number;
|
|
41
|
-
|
|
42
|
-
@IsEnum(ProductTypeEnum)
|
|
43
|
-
@IsNotEmpty()
|
|
44
|
-
instrument: ProductTypeEnum;
|
|
45
|
-
|
|
46
|
-
@IsNumber()
|
|
47
|
-
@IsNotEmpty()
|
|
48
|
-
amountBlocked: number;
|
|
49
|
-
|
|
50
|
-
@IsString()
|
|
51
|
-
@IsNotEmpty()
|
|
52
|
-
relatedPocketId: string;
|
|
53
|
-
|
|
1
|
+
import { IsEnum, IsNotEmpty, IsNumber, IsString, Matches } from "class-validator";
|
|
2
|
+
import { CountryId } from "../../country";
|
|
3
|
+
import { ProductTypeEnum } from "../../productCatalog";
|
|
4
|
+
export default class CreditContractCreateRequest {
|
|
5
|
+
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
id: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
@IsNotEmpty()
|
|
12
|
+
directoryUserId: string;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
@IsNotEmpty()
|
|
16
|
+
relatedTransaction: string;
|
|
17
|
+
|
|
18
|
+
@IsString()
|
|
19
|
+
@IsNotEmpty()
|
|
20
|
+
peopleId: string;
|
|
21
|
+
|
|
22
|
+
@IsEnum(CountryId)
|
|
23
|
+
@IsNotEmpty()
|
|
24
|
+
currencyId: CountryId;
|
|
25
|
+
|
|
26
|
+
@IsNumber()
|
|
27
|
+
@IsNotEmpty()
|
|
28
|
+
creditNotional: number;
|
|
29
|
+
|
|
30
|
+
@IsNumber()
|
|
31
|
+
@IsNotEmpty()
|
|
32
|
+
creditFee: number;
|
|
33
|
+
|
|
34
|
+
@IsNumber()
|
|
35
|
+
@IsNotEmpty()
|
|
36
|
+
creditTax: number;
|
|
37
|
+
|
|
38
|
+
@IsNumber()
|
|
39
|
+
@IsNotEmpty()
|
|
40
|
+
creditTotal: number;
|
|
41
|
+
|
|
42
|
+
@IsEnum(ProductTypeEnum)
|
|
43
|
+
@IsNotEmpty()
|
|
44
|
+
instrument: ProductTypeEnum;
|
|
45
|
+
|
|
46
|
+
@IsNumber()
|
|
47
|
+
@IsNotEmpty()
|
|
48
|
+
amountBlocked: number;
|
|
49
|
+
|
|
50
|
+
@IsString()
|
|
51
|
+
@IsNotEmpty()
|
|
52
|
+
relatedPocketId: string;
|
|
53
|
+
|
|
54
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum InstrumentEnum {
|
|
2
|
-
CREDIT_CARD = "TdC",
|
|
3
|
-
ATM = "ATM",
|
|
4
|
-
TRANSFER = "TRF",
|
|
5
|
-
SRV = "SRV"
|
|
1
|
+
export declare enum InstrumentEnum {
|
|
2
|
+
CREDIT_CARD = "TdC",
|
|
3
|
+
ATM = "ATM",
|
|
4
|
+
TRANSFER = "TRF",
|
|
5
|
+
SRV = "SRV"
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/CreditContractCreateRequest';
|
|
4
|
-
|
|
5
|
-
//enums
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/CreditContractCreateRequest';
|
|
4
|
+
|
|
5
|
+
//enums
|
|
6
6
|
export * from './enums/InstrumentEnum';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export class CurrencyResponse {
|
|
3
|
-
|
|
4
|
-
currencyId: string;
|
|
5
|
-
iso: string;
|
|
6
|
-
name: string;
|
|
7
|
-
symbol: string;
|
|
8
|
-
|
|
1
|
+
|
|
2
|
+
export class CurrencyResponse {
|
|
3
|
+
|
|
4
|
+
currencyId: string;
|
|
5
|
+
iso: string;
|
|
6
|
+
name: string;
|
|
7
|
+
symbol: string;
|
|
8
|
+
|
|
9
9
|
}
|
package/src/currency/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
3
|
export * from './dtos/CurrencyResponse';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Profile } from "../enums/Profile";
|
|
2
|
-
import { Scope } from "../enums/Scope";
|
|
3
|
-
import { Status } from "../enums/Status";
|
|
4
|
-
import { External } from "./External";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export interface DirectoryResponse {
|
|
8
|
-
id: string;
|
|
9
|
-
identityId: string | null;
|
|
10
|
-
lastSession: string | null;
|
|
11
|
-
ownerDirectoryId: string | null;
|
|
12
|
-
password: string;
|
|
13
|
-
peopleId: string;
|
|
14
|
-
phoneNumber: string;
|
|
15
|
-
scope: Array<Scope>;
|
|
16
|
-
status: Status;
|
|
17
|
-
userProfile: Profile;
|
|
18
|
-
ownerRelation: string | null;
|
|
19
|
-
external: Array<External>;
|
|
1
|
+
import { Profile } from "../enums/Profile";
|
|
2
|
+
import { Scope } from "../enums/Scope";
|
|
3
|
+
import { Status } from "../enums/Status";
|
|
4
|
+
import { External } from "./External";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface DirectoryResponse {
|
|
8
|
+
id: string;
|
|
9
|
+
identityId: string | null;
|
|
10
|
+
lastSession: string | null;
|
|
11
|
+
ownerDirectoryId: string | null;
|
|
12
|
+
password: string;
|
|
13
|
+
peopleId: string;
|
|
14
|
+
phoneNumber: string;
|
|
15
|
+
scope: Array<Scope>;
|
|
16
|
+
status: Status;
|
|
17
|
+
userProfile: Profile;
|
|
18
|
+
ownerRelation: string | null;
|
|
19
|
+
external: Array<External>;
|
|
20
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Provider } from "../../provider/enums/Provider";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type External = {
|
|
5
|
-
provider: Provider;
|
|
6
|
-
user: string;
|
|
1
|
+
import { Provider } from "../../provider/enums/Provider";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export type External = {
|
|
5
|
+
provider: Provider;
|
|
6
|
+
user: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum Profile {
|
|
4
|
-
HOST = "HOST",
|
|
5
|
-
GUEST = "GUEST",
|
|
6
|
-
GUEST_MINOR = "GUEST_MINOR"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum Profile {
|
|
4
|
+
HOST = "HOST",
|
|
5
|
+
GUEST = "GUEST",
|
|
6
|
+
GUEST_MINOR = "GUEST_MINOR"
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum Scope {
|
|
4
|
-
FIADO_MX = "fiado.mx",
|
|
5
|
-
FIADO_US = "fiado.us",
|
|
6
|
-
US_ONBOARDING_PROFILE = "fiado.on_us",
|
|
7
|
-
MX_ONBOARDING_PROFILE = "fiado.on_mx"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum Scope {
|
|
4
|
+
FIADO_MX = "fiado.mx",
|
|
5
|
+
FIADO_US = "fiado.us",
|
|
6
|
+
US_ONBOARDING_PROFILE = "fiado.on_us",
|
|
7
|
+
MX_ONBOARDING_PROFILE = "fiado.on_mx"
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum Status {
|
|
4
|
-
ACTIVE = "ACTIVE",
|
|
5
|
-
PAUSED = "PAUSED",
|
|
6
|
-
PROHIBITED = "PROHIBITED",
|
|
7
|
-
SIGN_UP = "SIGN_UP",
|
|
8
|
-
CANCELLED = "CANCELLED"
|
|
9
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum Status {
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
PAUSED = "PAUSED",
|
|
6
|
+
PROHIBITED = "PROHIBITED",
|
|
7
|
+
SIGN_UP = "SIGN_UP",
|
|
8
|
+
CANCELLED = "CANCELLED"
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum TypeOfDirectoryId {
|
|
4
|
-
USER = "USER",
|
|
5
|
-
BACKOFFICE = "BACKOFFICE",
|
|
6
|
-
AGENT = "AGENT"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum TypeOfDirectoryId {
|
|
4
|
+
USER = "USER",
|
|
5
|
+
BACKOFFICE = "BACKOFFICE",
|
|
6
|
+
AGENT = "AGENT"
|
|
7
7
|
}
|
package/src/directory/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/DirectoryResponse';
|
|
4
|
-
export * from './dtos/External';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//enums
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/DirectoryResponse';
|
|
4
|
+
export * from './dtos/External';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
//enums
|
|
8
8
|
export * from './enums/TypeOfDirectoryId';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
|
|
2
|
-
|
|
3
|
-
export class EventBridgeMessageRequest<T> extends GenericMessageRequest<T>{
|
|
4
|
-
|
|
1
|
+
import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
|
|
2
|
+
|
|
3
|
+
export class EventBridgeMessageRequest<T> extends GenericMessageRequest<T>{
|
|
4
|
+
|
|
5
5
|
}
|
package/src/eventBridge/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
//dto
|
|
1
|
+
//dto
|
|
2
2
|
export * from './dto/EventBridgeMessageRequest';
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
import { IsEnum, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
|
|
3
|
-
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
4
|
-
import { Type } from "class-transformer";
|
|
5
|
-
import { CountryId } from "../../country";
|
|
6
|
-
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
7
|
-
|
|
8
|
-
export class ExchangeRateCreateRequest {
|
|
9
|
-
|
|
10
|
-
@IsUUID()
|
|
11
|
-
id: string;
|
|
12
|
-
|
|
13
|
-
@IsNumber()
|
|
14
|
-
adjustmentExchangeRate: number;
|
|
15
|
-
|
|
16
|
-
@IsNumber()
|
|
17
|
-
adjustmentPercentage: number;
|
|
18
|
-
|
|
19
|
-
@ValidateNested()
|
|
20
|
-
@Type(() => CurrencyResponse)
|
|
21
|
-
destinationCurrency: CurrencyResponse;
|
|
22
|
-
|
|
23
|
-
@IsString()
|
|
24
|
-
destinationCurrencyId: CountryId;
|
|
25
|
-
|
|
26
|
-
@IsNumber()
|
|
27
|
-
exchangeRate: number;
|
|
28
|
-
|
|
29
|
-
@IsNumber()
|
|
30
|
-
fxFactor: number;
|
|
31
|
-
|
|
32
|
-
@IsNumber()
|
|
33
|
-
@Max(50000)
|
|
34
|
-
@Min(10)
|
|
35
|
-
maxRequestAmount: number;
|
|
36
|
-
|
|
37
|
-
@IsNumber()
|
|
38
|
-
@Max(50000)
|
|
39
|
-
@Min(10)
|
|
40
|
-
minRequestAmount: number;
|
|
41
|
-
|
|
42
|
-
@ValidateNested()
|
|
43
|
-
@Type(() => CurrencyResponse)
|
|
44
|
-
originCurrency: CurrencyResponse;
|
|
45
|
-
|
|
46
|
-
@IsString()
|
|
47
|
-
originCurrencyId: string;
|
|
48
|
-
|
|
49
|
-
@IsEnum(ExchangeRateStatus)
|
|
50
|
-
status: ExchangeRateStatus;
|
|
1
|
+
|
|
2
|
+
import { IsEnum, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
|
|
3
|
+
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
4
|
+
import { Type } from "class-transformer";
|
|
5
|
+
import { CountryId } from "../../country";
|
|
6
|
+
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
7
|
+
|
|
8
|
+
export class ExchangeRateCreateRequest {
|
|
9
|
+
|
|
10
|
+
@IsUUID()
|
|
11
|
+
id: string;
|
|
12
|
+
|
|
13
|
+
@IsNumber()
|
|
14
|
+
adjustmentExchangeRate: number;
|
|
15
|
+
|
|
16
|
+
@IsNumber()
|
|
17
|
+
adjustmentPercentage: number;
|
|
18
|
+
|
|
19
|
+
@ValidateNested()
|
|
20
|
+
@Type(() => CurrencyResponse)
|
|
21
|
+
destinationCurrency: CurrencyResponse;
|
|
22
|
+
|
|
23
|
+
@IsString()
|
|
24
|
+
destinationCurrencyId: CountryId;
|
|
25
|
+
|
|
26
|
+
@IsNumber()
|
|
27
|
+
exchangeRate: number;
|
|
28
|
+
|
|
29
|
+
@IsNumber()
|
|
30
|
+
fxFactor: number;
|
|
31
|
+
|
|
32
|
+
@IsNumber()
|
|
33
|
+
@Max(50000)
|
|
34
|
+
@Min(10)
|
|
35
|
+
maxRequestAmount: number;
|
|
36
|
+
|
|
37
|
+
@IsNumber()
|
|
38
|
+
@Max(50000)
|
|
39
|
+
@Min(10)
|
|
40
|
+
minRequestAmount: number;
|
|
41
|
+
|
|
42
|
+
@ValidateNested()
|
|
43
|
+
@Type(() => CurrencyResponse)
|
|
44
|
+
originCurrency: CurrencyResponse;
|
|
45
|
+
|
|
46
|
+
@IsString()
|
|
47
|
+
originCurrencyId: string;
|
|
48
|
+
|
|
49
|
+
@IsEnum(ExchangeRateStatus)
|
|
50
|
+
status: ExchangeRateStatus;
|
|
51
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExchangeRateResponse } from "./ExchangeRateResponse";
|
|
2
|
-
|
|
3
|
-
export class ExchangeRateCreateResponse extends ExchangeRateResponse {
|
|
4
|
-
|
|
1
|
+
import { ExchangeRateResponse } from "./ExchangeRateResponse";
|
|
2
|
+
|
|
3
|
+
export class ExchangeRateCreateResponse extends ExchangeRateResponse {
|
|
4
|
+
|
|
5
5
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
2
|
-
import { CountryId } from "../../country";
|
|
3
|
-
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
4
|
-
|
|
5
|
-
export class ExchangeRateResponse {
|
|
6
|
-
|
|
7
|
-
id: string;
|
|
8
|
-
adjustmentExchangeRate: number;
|
|
9
|
-
adjustmentPercentage: number;
|
|
10
|
-
createDate: string;
|
|
11
|
-
destinationCurrency: CurrencyResponse;
|
|
12
|
-
destinationCurrencyId: CountryId;
|
|
13
|
-
exchangeRate: number;
|
|
14
|
-
fxFactor: number;
|
|
15
|
-
maxRequestAmount: number;
|
|
16
|
-
minRequestAmount: number;
|
|
17
|
-
originCurrency: CurrencyResponse;
|
|
18
|
-
originCurrencyId: string;
|
|
19
|
-
status: ExchangeRateStatus;
|
|
1
|
+
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
2
|
+
import { CountryId } from "../../country";
|
|
3
|
+
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
4
|
+
|
|
5
|
+
export class ExchangeRateResponse {
|
|
6
|
+
|
|
7
|
+
id: string;
|
|
8
|
+
adjustmentExchangeRate: number;
|
|
9
|
+
adjustmentPercentage: number;
|
|
10
|
+
createDate: string;
|
|
11
|
+
destinationCurrency: CurrencyResponse;
|
|
12
|
+
destinationCurrencyId: CountryId;
|
|
13
|
+
exchangeRate: number;
|
|
14
|
+
fxFactor: number;
|
|
15
|
+
maxRequestAmount: number;
|
|
16
|
+
minRequestAmount: number;
|
|
17
|
+
originCurrency: CurrencyResponse;
|
|
18
|
+
originCurrencyId: string;
|
|
19
|
+
status: ExchangeRateStatus;
|
|
20
20
|
}
|