@fiado/type-kit 1.2.32 → 1.2.34
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/README.md +70 -70
- package/bin/account/dtos/AccountResponse.d.ts +21 -0
- package/bin/account/dtos/AccountResponse.js +6 -0
- package/bin/account/dtos/CreateBankAccountInput.d.ts +8 -0
- package/bin/account/dtos/CreateBankAccountInput.js +6 -0
- package/bin/account/dtos/CreateBankAccountOutput.d.ts +5 -0
- package/bin/account/dtos/CreateBankAccountOutput.js +6 -0
- package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
- package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
- package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +8 -0
- package/bin/account/dtos/CreateBankAccountUserOutput.js +6 -0
- package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
- package/bin/account/dtos/PocketCreateRequest.js +31 -0
- package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
- package/bin/account/dtos/PocketCreateResponse.js +6 -0
- package/bin/account/enums/AccountStatus.d.ts +5 -0
- package/bin/account/enums/AccountStatus.js +9 -0
- package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
- package/bin/card/dtos/CardCreateRequest.js +176 -0
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +15 -0
- package/bin/creditContract/dto/CreditContractCreateRequest.js +72 -0
- package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
- package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
- package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
- package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
- package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
- package/bin/pomelo/enums/CountryEnum.js +12 -0
- package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
- package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
- package/bin/pomelo/enums/SexEnum.d.ts +4 -0
- package/bin/pomelo/enums/SexEnum.js +8 -0
- package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
- package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
- package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
- package/bin/pomelo/enums/UserStatusEnum.js +8 -0
- package/bin/pomelo/index.d.ts +7 -0
- package/bin/pomelo/index.js +25 -0
- package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
- package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
- package/bin/stpSpei/enums/ActividadesProductivasEnum.d.ts +48 -0
- package/bin/stpSpei/enums/ActividadesProductivasEnum.js +52 -0
- package/bin/stpSpei/enums/EntidadesFederativasEnum.d.ts +34 -0
- package/bin/stpSpei/enums/EntidadesFederativasEnum.js +38 -0
- package/bin/stpSpei/enums/PaisesEnum.d.ts +276 -0
- package/bin/stpSpei/enums/PaisesEnum.js +280 -0
- package/bin/stpSpei/index.d.ts +3 -0
- package/bin/stpSpei/index.js +3 -0
- package/bin/tern/dtos/TernAddress.d.ts +8 -0
- package/bin/tern/dtos/TernAddress.js +40 -0
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
- package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
- package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
- package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
- package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
- package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
- package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
- package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
- package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
- package/bin/tern/dtos/TernGetUserRequest.js +20 -0
- package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
- package/bin/tern/dtos/TernGetUserResponse.js +96 -0
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
- package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
- package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
- package/bin/tern/index.d.ts +11 -0
- package/bin/tern/index.js +29 -0
- package/bin/transaction/TransactionCreateRequest.d.ts +2 -0
- package/bin/transaction/TransactionCreateRequest.js +6 -0
- package/bin/transaction/TransactionCreateResponse.d.ts +2 -0
- package/bin/transaction/TransactionCreateResponse.js +6 -0
- package/bin/transaction/dtos/Product.js +0 -1
- package/bin/transaction/dtos/TransactionCreateRequest.js +0 -1
- package/bin/transaction/dtos/TransactionSourceEnum.d.ts +5 -0
- package/bin/transaction/dtos/TransactionSourceEnum.js +9 -0
- package/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.d.ts +4 -0
- package/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.js +5 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +6 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +6 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +4 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +6 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +6 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +6 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +7 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +6 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +8 -0
- package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +6 -0
- package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +16 -0
- package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.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 +79 -79
- package/src/account/dtos/AccountCreateResponse.ts +7 -7
- package/src/account/dtos/AccountInfo.ts +39 -39
- 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 +7 -7
- package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
- package/src/account/dtos/GetAccountBalanceResponse.ts +42 -42
- package/src/account/dtos/GetAccountResponse.ts +62 -62
- 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 +4 -4
- 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 +42 -42
- 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 +41 -41
- package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
- package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
- 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 +27 -27
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +78 -78
- 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/ContactInfoCreateRequest.ts +47 -47
- package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
- package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
- package/src/contactInfo/index.ts +2 -2
- 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/Country.ts +6 -6
- package/src/country/enums/CountryId.ts +6 -6
- package/src/country/index.ts +5 -5
- package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
- 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 +8 -8
- 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 +3 -3
- 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 +74 -74
- package/src/identity/dtos/PeopleUpdateRequest.ts +73 -73
- 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 +35 -35
- 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/ProductTaxFeeTypeEnum.ts +3 -3
- package/src/productCatalog/enums/ProductTypeEnum.ts +15 -15
- package/src/productCatalog/index.ts +4 -4
- 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/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/stpSpei/dtos/PutStpOrderRequest.ts +13 -13
- package/src/stpSpei/dtos/SpeiWebhookMessage.ts +9 -9
- package/src/stpSpei/enums/ActividadesProductivasEnum.ts +48 -0
- package/src/stpSpei/enums/EntidadesFederativasEnum.ts +34 -0
- package/src/stpSpei/enums/PaisesEnum.ts +276 -0
- package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +4 -4
- package/src/stpSpei/index.ts +7 -4
- 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 +21 -22
- package/src/transaction/dtos/Total.ts +20 -20
- package/src/transaction/dtos/TransactionCreateRequest.ts +102 -103
- package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
- package/src/transaction/dtos/TransactionGetResponse.ts +17 -17
- package/src/transaction/enums/OperationEnum.ts +3 -3
- package/src/transaction/enums/TransactionSourceEnum.ts +4 -4
- package/src/transaction/enums/TransactionStatusEnum.ts +5 -5
- package/src/transaction/index.ts +9 -9
- package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
- package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
- package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +19 -19
- package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
- 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/AuthorizeSpeiBankTransferRequest.ts +6 -6
- 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 +4 -0
- 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/enums/AsyncTxStatusEnum.ts +5 -5
- package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +15 -15
- package/src/transactionProcessor/index.ts +20 -19
- package/.idea/aws.xml +0 -11
- package/.idea/fiado-type-kit.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class ExternalAccountCurrency {
|
|
2
|
-
id?: number;
|
|
3
|
-
iso?: string;
|
|
1
|
+
export class ExternalAccountCurrency {
|
|
2
|
+
id?: number;
|
|
3
|
+
iso?: string;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class ExternalAccountType {
|
|
2
|
-
id?: number;
|
|
3
|
-
name?: string;
|
|
1
|
+
export class ExternalAccountType {
|
|
2
|
+
id?: number;
|
|
3
|
+
name?: string;
|
|
4
4
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export default class GetExternalBankAccountRequest {
|
|
2
|
-
countryId?: string;
|
|
3
|
-
bankAccountId?: string;
|
|
4
|
-
accountNumber?: string;
|
|
5
|
-
directoryId?: string;
|
|
6
|
-
typeOfDirectoryId?: string;
|
|
7
|
-
alias?: string;
|
|
8
|
-
accountTypeId?: string;
|
|
9
|
-
accountHolderName?: string;
|
|
10
|
-
bankId?: string;
|
|
11
|
-
default?: boolean;
|
|
1
|
+
export default class GetExternalBankAccountRequest {
|
|
2
|
+
countryId?: string;
|
|
3
|
+
bankAccountId?: string;
|
|
4
|
+
accountNumber?: string;
|
|
5
|
+
directoryId?: string;
|
|
6
|
+
typeOfDirectoryId?: string;
|
|
7
|
+
alias?: string;
|
|
8
|
+
accountTypeId?: string;
|
|
9
|
+
accountHolderName?: string;
|
|
10
|
+
bankId?: string;
|
|
11
|
+
default?: boolean;
|
|
12
12
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {ExternalAccountType} from "./ExternalAccountType";
|
|
2
|
-
|
|
3
|
-
export default class GetExternalBankAccountResponse {
|
|
4
|
-
id: string;
|
|
5
|
-
countryId: string;
|
|
6
|
-
accountNumber: string | null;
|
|
7
|
-
bankId: string;
|
|
8
|
-
alias: string | null;
|
|
9
|
-
directoryId: string;
|
|
10
|
-
typeOfDirectoryId: string;
|
|
11
|
-
accountHolderName: string;
|
|
12
|
-
email: string | null;
|
|
13
|
-
accountType: [ExternalAccountType];
|
|
14
|
-
bankName: string | null;
|
|
15
|
-
iconUrl: string | null
|
|
1
|
+
import {ExternalAccountType} from "./ExternalAccountType";
|
|
2
|
+
|
|
3
|
+
export default class GetExternalBankAccountResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
countryId: string;
|
|
6
|
+
accountNumber: string | null;
|
|
7
|
+
bankId: string;
|
|
8
|
+
alias: string | null;
|
|
9
|
+
directoryId: string;
|
|
10
|
+
typeOfDirectoryId: string;
|
|
11
|
+
accountHolderName: string;
|
|
12
|
+
email: string | null;
|
|
13
|
+
accountType: [ExternalAccountType];
|
|
14
|
+
bankName: string | null;
|
|
15
|
+
iconUrl: string | null
|
|
16
16
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {ExternalAccountType} from "./ExternalAccountType";
|
|
2
|
-
import {ExternalAccountCurrency} from "./ExternalAccountCurrency";
|
|
3
|
-
|
|
4
|
-
export class GetExternalBankResponse {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
accountNumberRegex: string;
|
|
9
|
-
sortNumber: number;
|
|
10
|
-
currency: ExternalAccountCurrency;
|
|
11
|
-
accountType: [ExternalAccountType];
|
|
12
|
-
iconUrl: string | null;
|
|
13
|
-
bankCode: string | null;
|
|
1
|
+
import {ExternalAccountType} from "./ExternalAccountType";
|
|
2
|
+
import {ExternalAccountCurrency} from "./ExternalAccountCurrency";
|
|
3
|
+
|
|
4
|
+
export class GetExternalBankResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
accountNumberRegex: string;
|
|
9
|
+
sortNumber: number;
|
|
10
|
+
currency: ExternalAccountCurrency;
|
|
11
|
+
accountType: [ExternalAccountType];
|
|
12
|
+
iconUrl: string | null;
|
|
13
|
+
bankCode: string | null;
|
|
14
14
|
}
|
package/src/bankAccount/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './dtos/ExternalAccountType';
|
|
2
|
-
export * from './dtos/ExternalAccountCurrency';
|
|
3
|
-
export * from './dtos/GetExternalBankAccountRequest';
|
|
4
|
-
export * from './dtos/GetExternalBankAccountResponse';
|
|
1
|
+
export * from './dtos/ExternalAccountType';
|
|
2
|
+
export * from './dtos/ExternalAccountCurrency';
|
|
3
|
+
export * from './dtos/GetExternalBankAccountRequest';
|
|
4
|
+
export * from './dtos/GetExternalBankAccountResponse';
|
|
5
5
|
export * from './dtos/GetExternalBankResponse';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {CountryId} from "../../country";
|
|
2
|
-
import {TypeOfDirectoryId} from "../../directory";
|
|
3
|
-
|
|
4
|
-
export class CreateRSTTransactionRequest {
|
|
5
|
-
directoryId: string;
|
|
6
|
-
typeOfDirectoryId: TypeOfDirectoryId;
|
|
7
|
-
amount: number;
|
|
8
|
-
currencyId: CountryId;
|
|
9
|
-
name: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
phoneNumber: string;
|
|
12
|
-
documentNumber: string;
|
|
13
|
-
dob: string;
|
|
14
|
-
transactionNumber: string;
|
|
1
|
+
import {CountryId} from "../../country";
|
|
2
|
+
import {TypeOfDirectoryId} from "../../directory";
|
|
3
|
+
|
|
4
|
+
export class CreateRSTTransactionRequest {
|
|
5
|
+
directoryId: string;
|
|
6
|
+
typeOfDirectoryId: TypeOfDirectoryId;
|
|
7
|
+
amount: number;
|
|
8
|
+
currencyId: CountryId;
|
|
9
|
+
name: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
phoneNumber: string;
|
|
12
|
+
documentNumber: string;
|
|
13
|
+
dob: string;
|
|
14
|
+
transactionNumber: string;
|
|
15
15
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {RSTStatusEnum} from "../enums/RSTStatusEnum";
|
|
2
|
-
|
|
3
|
-
export class CreateRSTTransactionResponse {
|
|
4
|
-
transaction: string;
|
|
5
|
-
status: RSTStatusEnum;
|
|
6
|
-
transactionId: string;
|
|
7
|
-
date: string;
|
|
8
|
-
responseProvider: any;
|
|
9
|
-
provider: string;
|
|
1
|
+
import {RSTStatusEnum} from "../enums/RSTStatusEnum";
|
|
2
|
+
|
|
3
|
+
export class CreateRSTTransactionResponse {
|
|
4
|
+
transaction: string;
|
|
5
|
+
status: RSTStatusEnum;
|
|
6
|
+
transactionId: string;
|
|
7
|
+
date: string;
|
|
8
|
+
responseProvider: any;
|
|
9
|
+
provider: string;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum RSTStatusEnum {
|
|
2
|
-
IN_PROCESS = "IN_PROCESS",
|
|
3
|
-
COMPLETED = "COMPLETED",
|
|
4
|
-
CANCELLED = "CANCELLED",
|
|
1
|
+
export enum RSTStatusEnum {
|
|
2
|
+
IN_PROCESS = "IN_PROCESS",
|
|
3
|
+
COMPLETED = "COMPLETED",
|
|
4
|
+
CANCELLED = "CANCELLED",
|
|
5
5
|
}
|
package/src/bbvaRst/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './dtos/CreateRSTTransactionRequest';
|
|
2
|
-
export * from './dtos/CreateRSTTransactionResponse';
|
|
1
|
+
export * from './dtos/CreateRSTTransactionRequest';
|
|
2
|
+
export * from './dtos/CreateRSTTransactionResponse';
|
|
3
3
|
export * from './enums/RSTStatusEnum';
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IsString, IsNotEmpty, IsOptional, IsNumber, Min, Max, IsEnum, IsDateString } from 'class-validator';
|
|
4
|
-
import { CountryId } from '../../country';
|
|
5
|
-
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
6
|
-
|
|
7
|
-
export class AccountBeneficiaryCreateRequest {
|
|
8
|
-
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
@IsEnum(CountryId)
|
|
11
|
-
countryId: CountryId;
|
|
12
|
-
|
|
13
|
-
@IsOptional()
|
|
14
|
-
@IsPhoneNumberFiado()
|
|
15
|
-
phoneNumber?: string;
|
|
16
|
-
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
@IsString()
|
|
19
|
-
fullName: string;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsDateString()
|
|
23
|
-
dateOfBirth?: string;
|
|
24
|
-
|
|
25
|
-
@IsOptional()
|
|
26
|
-
@IsString()
|
|
27
|
-
stateOfBirth?: string;
|
|
28
|
-
|
|
29
|
-
@IsNotEmpty()
|
|
30
|
-
@IsString()
|
|
31
|
-
relationType: string;
|
|
32
|
-
|
|
33
|
-
@IsNotEmpty()
|
|
34
|
-
@IsNumber()
|
|
35
|
-
@Min(0)
|
|
36
|
-
@Max(100)
|
|
37
|
-
percentage: number;
|
|
38
|
-
|
|
39
|
-
@IsOptional()
|
|
40
|
-
@IsString()
|
|
41
|
-
countryOfResidence?: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsString, IsNotEmpty, IsOptional, IsNumber, Min, Max, IsEnum, IsDateString } from 'class-validator';
|
|
4
|
+
import { CountryId } from '../../country';
|
|
5
|
+
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
6
|
+
|
|
7
|
+
export class AccountBeneficiaryCreateRequest {
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsEnum(CountryId)
|
|
11
|
+
countryId: CountryId;
|
|
12
|
+
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsPhoneNumberFiado()
|
|
15
|
+
phoneNumber?: string;
|
|
16
|
+
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
@IsString()
|
|
19
|
+
fullName: string;
|
|
20
|
+
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsDateString()
|
|
23
|
+
dateOfBirth?: string;
|
|
24
|
+
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsString()
|
|
27
|
+
stateOfBirth?: string;
|
|
28
|
+
|
|
29
|
+
@IsNotEmpty()
|
|
30
|
+
@IsString()
|
|
31
|
+
relationType: string;
|
|
32
|
+
|
|
33
|
+
@IsNotEmpty()
|
|
34
|
+
@IsNumber()
|
|
35
|
+
@Min(0)
|
|
36
|
+
@Max(100)
|
|
37
|
+
percentage: number;
|
|
38
|
+
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsString()
|
|
41
|
+
countryOfResidence?: string;
|
|
42
42
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export class AccountBeneficiaryResponse {
|
|
7
|
-
id: string;
|
|
8
|
-
accountId: string;
|
|
9
|
-
countryId: CountryId;
|
|
10
|
-
accountType: string;
|
|
11
|
-
directoryId: string;
|
|
12
|
-
peopleId: string;
|
|
13
|
-
|
|
14
|
-
beneficiaryDirectorId?: string;
|
|
15
|
-
beneficiaryPeopleId?: string;
|
|
16
|
-
phoneNumber?: string | null;
|
|
17
|
-
|
|
18
|
-
fullName: string;
|
|
19
|
-
dateOfBirth?: string | null;
|
|
20
|
-
stateOfBirth?: string;
|
|
21
|
-
relationType: string;
|
|
22
|
-
percentage: number;
|
|
23
|
-
countryOfResidence?: string;
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AccountBeneficiaryResponse {
|
|
7
|
+
id: string;
|
|
8
|
+
accountId: string;
|
|
9
|
+
countryId: CountryId;
|
|
10
|
+
accountType: string;
|
|
11
|
+
directoryId: string;
|
|
12
|
+
peopleId: string;
|
|
13
|
+
|
|
14
|
+
beneficiaryDirectorId?: string;
|
|
15
|
+
beneficiaryPeopleId?: string;
|
|
16
|
+
phoneNumber?: string | null;
|
|
17
|
+
|
|
18
|
+
fullName: string;
|
|
19
|
+
dateOfBirth?: string | null;
|
|
20
|
+
stateOfBirth?: string;
|
|
21
|
+
relationType: string;
|
|
22
|
+
percentage: number;
|
|
23
|
+
countryOfResidence?: string;
|
|
24
24
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { IsString, IsOptional, IsNumber, Min, Max, IsDateString, IsUUID } from 'class-validator';
|
|
2
|
-
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
3
|
-
|
|
4
|
-
export class AccountBeneficiaryUpdateRequest {
|
|
5
|
-
|
|
6
|
-
@IsOptional()
|
|
7
|
-
@IsUUID()
|
|
8
|
-
accountId?: string;
|
|
9
|
-
|
|
10
|
-
@IsOptional()
|
|
11
|
-
@IsPhoneNumberFiado()
|
|
12
|
-
phoneNumber?: string;
|
|
13
|
-
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsString()
|
|
16
|
-
fullName?: string;
|
|
17
|
-
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsDateString()
|
|
20
|
-
dateOfBirth?: string;
|
|
21
|
-
|
|
22
|
-
@IsOptional()
|
|
23
|
-
@IsString()
|
|
24
|
-
stateOfBirth?: string;
|
|
25
|
-
|
|
26
|
-
@IsOptional()
|
|
27
|
-
@IsString()
|
|
28
|
-
relationType?: string;
|
|
29
|
-
|
|
30
|
-
@IsOptional()
|
|
31
|
-
@IsNumber()
|
|
32
|
-
@Min(0)
|
|
33
|
-
@Max(100)
|
|
34
|
-
percentage?: number;
|
|
35
|
-
|
|
36
|
-
@IsOptional()
|
|
37
|
-
@IsString()
|
|
38
|
-
countryOfResidence?: string;
|
|
39
|
-
}
|
|
1
|
+
import { IsString, IsOptional, IsNumber, Min, Max, IsDateString, IsUUID } from 'class-validator';
|
|
2
|
+
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
3
|
+
|
|
4
|
+
export class AccountBeneficiaryUpdateRequest {
|
|
5
|
+
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsUUID()
|
|
8
|
+
accountId?: string;
|
|
9
|
+
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsPhoneNumberFiado()
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsString()
|
|
16
|
+
fullName?: string;
|
|
17
|
+
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsDateString()
|
|
20
|
+
dateOfBirth?: string;
|
|
21
|
+
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsString()
|
|
24
|
+
stateOfBirth?: string;
|
|
25
|
+
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
relationType?: string;
|
|
29
|
+
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsNumber()
|
|
32
|
+
@Min(0)
|
|
33
|
+
@Max(100)
|
|
34
|
+
percentage?: number;
|
|
35
|
+
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsString()
|
|
38
|
+
countryOfResidence?: string;
|
|
39
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum AccountType {
|
|
5
|
-
PAGOCONFIADO = 'PAGOCONFIADO',
|
|
6
|
-
FIADO_INC = 'FIADO_INC',
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum AccountType {
|
|
5
|
+
PAGOCONFIADO = 'PAGOCONFIADO',
|
|
6
|
+
FIADO_INC = 'FIADO_INC',
|
|
7
7
|
}
|
package/src/beneficiary/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/AccountBeneficiaryUpdateRequest';
|
|
4
|
-
export * from './dtos/AccountBeneficiaryCreateRequest';
|
|
5
|
-
export * from './dtos/AccountBeneficiaryResponse';
|
|
6
|
-
|
|
7
|
-
//enums
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/AccountBeneficiaryUpdateRequest';
|
|
4
|
+
export * from './dtos/AccountBeneficiaryCreateRequest';
|
|
5
|
+
export * from './dtos/AccountBeneficiaryResponse';
|
|
6
|
+
|
|
7
|
+
//enums
|
|
8
8
|
export * from './enums/AccountType';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IsEnum, IsString, Matches } from 'class-validator';
|
|
2
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class CardActivateRequest {
|
|
6
|
-
@IsEnum(CountryId)
|
|
7
|
-
countryId: CountryId;
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
@Matches(/^\d{16}$/)
|
|
11
|
-
panOrCode: string;
|
|
12
|
-
}
|
|
1
|
+
import { IsEnum, IsString, Matches } from 'class-validator';
|
|
2
|
+
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CardActivateRequest {
|
|
6
|
+
@IsEnum(CountryId)
|
|
7
|
+
countryId: CountryId;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@Matches(/^\d{16}$/)
|
|
11
|
+
panOrCode: string;
|
|
12
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { IsDateString, IsPhoneNumber, IsString } from "class-validator";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export class CardAdditionalRequest {
|
|
5
|
-
|
|
6
|
-
@IsString()
|
|
7
|
-
names: string;
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
lastNamePaternal: string;
|
|
11
|
-
|
|
12
|
-
@IsString()
|
|
13
|
-
lastNameMaternal: string;
|
|
14
|
-
|
|
15
|
-
@IsPhoneNumber()
|
|
16
|
-
phoneNumber: string;
|
|
17
|
-
|
|
18
|
-
@IsDateString()
|
|
19
|
-
dateOfBirth: string;
|
|
20
|
-
|
|
21
|
-
@IsString()
|
|
22
|
-
ownerRelation: string;
|
|
23
|
-
|
|
24
|
-
@IsString()
|
|
25
|
-
addressId;
|
|
1
|
+
import { IsDateString, IsPhoneNumber, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CardAdditionalRequest {
|
|
5
|
+
|
|
6
|
+
@IsString()
|
|
7
|
+
names: string;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
lastNamePaternal: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
lastNameMaternal: string;
|
|
14
|
+
|
|
15
|
+
@IsPhoneNumber()
|
|
16
|
+
phoneNumber: string;
|
|
17
|
+
|
|
18
|
+
@IsDateString()
|
|
19
|
+
dateOfBirth: string;
|
|
20
|
+
|
|
21
|
+
@IsString()
|
|
22
|
+
ownerRelation: string;
|
|
23
|
+
|
|
24
|
+
@IsString()
|
|
25
|
+
addressId;
|
|
26
26
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Status } from "../../directory/enums/Status";
|
|
2
|
-
import { CardSummaryResponse } from "./CardSummaryResponse";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export class CardAdditionalResponse {
|
|
7
|
-
fullName: string;
|
|
8
|
-
phoneNumber: string;
|
|
9
|
-
profileImage: string;
|
|
10
|
-
directoryId: string;
|
|
11
|
-
isOwner: boolean;
|
|
12
|
-
directoryStatus: Status;
|
|
13
|
-
cards: CardSummaryResponse[];
|
|
14
|
-
}
|
|
1
|
+
import { Status } from "../../directory/enums/Status";
|
|
2
|
+
import { CardSummaryResponse } from "./CardSummaryResponse";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CardAdditionalResponse {
|
|
7
|
+
fullName: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
profileImage: string;
|
|
10
|
+
directoryId: string;
|
|
11
|
+
isOwner: boolean;
|
|
12
|
+
directoryStatus: Status;
|
|
13
|
+
cards: CardSummaryResponse[];
|
|
14
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IsEnum, IsNotEmpty, IsOptional } from 'class-validator';
|
|
4
|
-
import { CreditOrDebit } from '../enums/CreditOrDebit';
|
|
5
|
-
import { VirtualOrPhysical } from '../enums/VirtualOrPhysical';
|
|
6
|
-
import { DeliveryChannel } from '../enums/DeliveryChannel';
|
|
7
|
-
import { IsPhoneNumberFiado } from '../validations/IsPhoneNumberConstraint';
|
|
8
|
-
|
|
9
|
-
export class CardApplicationRequest {
|
|
10
|
-
|
|
11
|
-
@IsOptional()
|
|
12
|
-
@IsEnum(CreditOrDebit)
|
|
13
|
-
creditOrDebit: string;
|
|
14
|
-
|
|
15
|
-
@IsEnum(VirtualOrPhysical)
|
|
16
|
-
virtualOrPhysical: VirtualOrPhysical.PHYSICAL;
|
|
17
|
-
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
addressId: string;
|
|
20
|
-
|
|
21
|
-
@IsEnum(DeliveryChannel)
|
|
22
|
-
deliveryChannel: DeliveryChannel
|
|
23
|
-
|
|
24
|
-
@IsOptional()
|
|
25
|
-
@IsPhoneNumberFiado()
|
|
26
|
-
deliveryPhoneNumber: string;
|
|
27
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsEnum, IsNotEmpty, IsOptional } from 'class-validator';
|
|
4
|
+
import { CreditOrDebit } from '../enums/CreditOrDebit';
|
|
5
|
+
import { VirtualOrPhysical } from '../enums/VirtualOrPhysical';
|
|
6
|
+
import { DeliveryChannel } from '../enums/DeliveryChannel';
|
|
7
|
+
import { IsPhoneNumberFiado } from '../validations/IsPhoneNumberConstraint';
|
|
8
|
+
|
|
9
|
+
export class CardApplicationRequest {
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsEnum(CreditOrDebit)
|
|
13
|
+
creditOrDebit: string;
|
|
14
|
+
|
|
15
|
+
@IsEnum(VirtualOrPhysical)
|
|
16
|
+
virtualOrPhysical: VirtualOrPhysical.PHYSICAL;
|
|
17
|
+
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
addressId: string;
|
|
20
|
+
|
|
21
|
+
@IsEnum(DeliveryChannel)
|
|
22
|
+
deliveryChannel: DeliveryChannel
|
|
23
|
+
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsPhoneNumberFiado()
|
|
26
|
+
deliveryPhoneNumber: string;
|
|
27
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TypeOfDirectoryId } from "../../directory"
|
|
2
|
-
import { CountryId } from "../../country"
|
|
3
|
-
|
|
4
|
-
export class CardBalanceResponse {
|
|
5
|
-
|
|
6
|
-
cardBalanceId: string
|
|
7
|
-
currentBalance: number
|
|
8
|
-
directoryId: string
|
|
9
|
-
typeOfDirectoryId: TypeOfDirectoryId
|
|
10
|
-
currencyId: CountryId
|
|
1
|
+
import { TypeOfDirectoryId } from "../../directory"
|
|
2
|
+
import { CountryId } from "../../country"
|
|
3
|
+
|
|
4
|
+
export class CardBalanceResponse {
|
|
5
|
+
|
|
6
|
+
cardBalanceId: string
|
|
7
|
+
currentBalance: number
|
|
8
|
+
directoryId: string
|
|
9
|
+
typeOfDirectoryId: TypeOfDirectoryId
|
|
10
|
+
currencyId: CountryId
|
|
11
11
|
}
|