@fiado/type-kit 1.1.39 → 1.1.41
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/dtos/CardAdditionalResponse.d.ts +1 -0
- package/bin/group/dtos/GroupDirectoryRelationsResponse.d.ts +0 -1
- package/package.json +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +75 -75
- 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/BankAccountExternalAddress.ts +17 -17
- 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/GetAccountBalanceResponse.ts +36 -36
- 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 +14 -14
- package/src/account/dtos/PocketItem.ts +43 -43
- package/src/account/dtos/UpdateBalanceOperation.ts +8 -8
- 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/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 +37 -37
- 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/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 +12 -11
- package/src/card/dtos/CardApplicationRequest.ts +22 -22
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
- 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 +26 -26
- package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
- package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
- package/src/contactInfo/index.ts +1 -1
- 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 +18 -18
- 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/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 -21
- 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 +72 -72
- package/src/identity/dtos/PeopleUpdateRequest.ts +70 -70
- 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 +28 -28
- 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/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 +8 -8
- 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/ServicePaymentRequest.ts +33 -33
- 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/transaction/dtos/Credit.ts +21 -21
- package/src/transaction/dtos/Debit.ts +20 -20
- package/src/transaction/dtos/Notional.ts +20 -20
- package/src/transaction/dtos/Product.ts +21 -21
- package/src/transaction/dtos/Total.ts +20 -20
- package/src/transaction/dtos/TransactionCreateRequest.ts +93 -93
- package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
- package/src/transaction/enums/OperationEnum.ts +3 -3
- package/src/transaction/index.ts +5 -5
- package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +6 -6
- package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +3 -3
- package/src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts +5 -5
- package/src/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.ts +6 -6
- package/src/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.ts +7 -7
- package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +16 -16
- package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +12 -12
- package/src/transactionProcessor/index.ts +9 -9
- package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountOutput.d.ts +0 -5
- package/bin/account/dtos/CreateBankAccountOutput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
- package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountUserOutput.js +0 -6
- package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +0 -15
- package/bin/creditContract/dto/CreditContractCreateRequest.js +0 -72
- package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
- package/bin/productCatalog/dtos/GetProductCatalogRequest.js +0 -19
- package/bin/transaction/TransactionCreateRequest.d.ts +0 -2
- package/bin/transaction/TransactionCreateRequest.js +0 -6
- package/bin/transaction/TransactionCreateResponse.d.ts +0 -2
- package/bin/transaction/TransactionCreateResponse.js +0 -6
package/src/index.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export * as Account from './account';
|
|
2
|
-
export * as Beneficiary from './beneficiary';
|
|
3
|
-
export * as Address from './address';
|
|
4
|
-
export * as App from './app';
|
|
5
|
-
export * as Authentication from './authentication';
|
|
6
|
-
export * as Card from './card';
|
|
7
|
-
export * as Country from './country';
|
|
8
|
-
export * as Currency from './currency';
|
|
9
|
-
export * as Directory from './directory';
|
|
10
|
-
export * as ExchangeRate from './exchangeRate';
|
|
11
|
-
export * as File from './identity';
|
|
12
|
-
export * as Group from './group';
|
|
13
|
-
export * as Identity from './provider';
|
|
14
|
-
export * as Header from './header';
|
|
15
|
-
export * as ServicePayment from './servicePayment';
|
|
16
|
-
export * as NotificationMessages from './notificationMessages';
|
|
17
|
-
export * as SessionActivity from './sessionActivity';
|
|
18
|
-
export * as EventBridgeMessage from './eventBridge';
|
|
19
|
-
export * as GenericMessage from './genericMessage';
|
|
20
|
-
export * as TransactionProcessor from './transactionProcessor';
|
|
21
|
-
export * as Transaction from './transaction';
|
|
22
|
-
export * as ContactInfo from './contactInfo';
|
|
23
|
-
export * as ProductCatalog from './productCatalog';
|
|
24
|
-
export * as Contract from './contract';
|
|
25
|
-
export * as CreditContract from './creditContract';
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
export * as Account from './account';
|
|
2
|
+
export * as Beneficiary from './beneficiary';
|
|
3
|
+
export * as Address from './address';
|
|
4
|
+
export * as App from './app';
|
|
5
|
+
export * as Authentication from './authentication';
|
|
6
|
+
export * as Card from './card';
|
|
7
|
+
export * as Country from './country';
|
|
8
|
+
export * as Currency from './currency';
|
|
9
|
+
export * as Directory from './directory';
|
|
10
|
+
export * as ExchangeRate from './exchangeRate';
|
|
11
|
+
export * as File from './identity';
|
|
12
|
+
export * as Group from './group';
|
|
13
|
+
export * as Identity from './provider';
|
|
14
|
+
export * as Header from './header';
|
|
15
|
+
export * as ServicePayment from './servicePayment';
|
|
16
|
+
export * as NotificationMessages from './notificationMessages';
|
|
17
|
+
export * as SessionActivity from './sessionActivity';
|
|
18
|
+
export * as EventBridgeMessage from './eventBridge';
|
|
19
|
+
export * as GenericMessage from './genericMessage';
|
|
20
|
+
export * as TransactionProcessor from './transactionProcessor';
|
|
21
|
+
export * as Transaction from './transaction';
|
|
22
|
+
export * as ContactInfo from './contactInfo';
|
|
23
|
+
export * as ProductCatalog from './productCatalog';
|
|
24
|
+
export * as Contract from './contract';
|
|
25
|
+
export * as CreditContract from './creditContract';
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {QueueMessageDestination} from "./QueueMessageDestination";
|
|
2
|
-
|
|
3
|
-
export class NotificationQueueMessageRequest {
|
|
4
|
-
templateId: string; // Nombre de la plantilla de mensaje a enviar
|
|
5
|
-
broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
|
|
6
|
-
destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
|
|
7
|
-
data?: any; // Informacion adicional a enviar al destino
|
|
1
|
+
import {QueueMessageDestination} from "./QueueMessageDestination";
|
|
2
|
+
|
|
3
|
+
export class NotificationQueueMessageRequest {
|
|
4
|
+
templateId: string; // Nombre de la plantilla de mensaje a enviar
|
|
5
|
+
broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
|
|
6
|
+
destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
|
|
7
|
+
data?: any; // Informacion adicional a enviar al destino
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
|
|
2
|
-
|
|
3
|
-
export class QueueMessageDestination {
|
|
4
|
-
directoryId: string;
|
|
5
|
-
templateVariables?: QueueMessageVariableValues[];
|
|
6
|
-
data?: any;
|
|
1
|
+
import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
|
|
2
|
+
|
|
3
|
+
export class QueueMessageDestination {
|
|
4
|
+
directoryId: string;
|
|
5
|
+
templateVariables?: QueueMessageVariableValues[];
|
|
6
|
+
data?: any;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class QueueMessageVariableValues {
|
|
2
|
-
key: string;
|
|
3
|
-
value: string;
|
|
1
|
+
export class QueueMessageVariableValues {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string;
|
|
4
4
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum NotificationId {
|
|
5
|
-
|
|
6
|
-
ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA", //Mesnaje de apertura de cuentas y tarjeta USA
|
|
7
|
-
ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX", //Mesnaje de apertura de cuentas y tarjeta MEX
|
|
8
|
-
ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT", // Mensaje cuando el resultado del onboarding es error en la validación del documento
|
|
9
|
-
ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH", // Mensaje cuando el resultado del onboarding es error porque no hace match en video selfie con el documento
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum NotificationId {
|
|
5
|
+
|
|
6
|
+
ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA", //Mesnaje de apertura de cuentas y tarjeta USA
|
|
7
|
+
ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX", //Mesnaje de apertura de cuentas y tarjeta MEX
|
|
8
|
+
ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT", // Mensaje cuando el resultado del onboarding es error en la validación del documento
|
|
9
|
+
ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH", // Mensaje cuando el resultado del onboarding es error porque no hace match en video selfie con el documento
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './dtos/NotificationQueueMessageRequest';
|
|
2
|
-
export * from './dtos/QueueMessageDestination';
|
|
3
|
-
export * from './dtos/QueueMessageVariableValues';
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export * from './dtos/NotificationQueueMessageRequest';
|
|
2
|
+
export * from './dtos/QueueMessageDestination';
|
|
3
|
+
export * from './dtos/QueueMessageVariableValues';
|
|
4
|
+
|
|
5
|
+
|
|
6
6
|
export * from "./enums/NotificationId";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {CountryId} from "../../country";
|
|
2
|
-
import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
-
import {ProductTypeEnum} from "../enums/ProductTypeEnum";
|
|
4
|
-
|
|
5
|
-
export class CreateProductCatalogRequest {
|
|
6
|
-
id: string;
|
|
7
|
-
description: string;
|
|
8
|
-
displayName: string;
|
|
9
|
-
type: ProductTypeEnum;
|
|
10
|
-
currencyId: CountryId;
|
|
11
|
-
feeType: ProductTaxFeeTypeEnum;
|
|
12
|
-
fee: number;
|
|
13
|
-
taxType: ProductTaxFeeTypeEnum;
|
|
14
|
-
tax: number;
|
|
1
|
+
import {CountryId} from "../../country";
|
|
2
|
+
import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
+
import {ProductTypeEnum} from "../enums/ProductTypeEnum";
|
|
4
|
+
|
|
5
|
+
export class CreateProductCatalogRequest {
|
|
6
|
+
id: string;
|
|
7
|
+
description: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
type: ProductTypeEnum;
|
|
10
|
+
currencyId: CountryId;
|
|
11
|
+
feeType: ProductTaxFeeTypeEnum;
|
|
12
|
+
fee: number;
|
|
13
|
+
taxType: ProductTaxFeeTypeEnum;
|
|
14
|
+
tax: number;
|
|
15
15
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {CountryId} from "../../country";
|
|
2
|
-
import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
-
import {IsEnum, IsNumber, IsString} from "class-validator";
|
|
4
|
-
import {ProductTypeEnum} from "../enums/ProductTypeEnum";
|
|
5
|
-
|
|
6
|
-
export default class GetProductCatalogResponse {
|
|
7
|
-
@IsString()
|
|
8
|
-
id: string;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
description: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
displayName: string;
|
|
15
|
-
|
|
16
|
-
@IsEnum(ProductTypeEnum)
|
|
17
|
-
type: ProductTypeEnum;
|
|
18
|
-
|
|
19
|
-
@IsEnum(CountryId)
|
|
20
|
-
currencyId: CountryId;
|
|
21
|
-
|
|
22
|
-
@IsEnum(ProductTaxFeeTypeEnum)
|
|
23
|
-
feeType: ProductTaxFeeTypeEnum;
|
|
24
|
-
|
|
25
|
-
@IsNumber()
|
|
26
|
-
fee: number;
|
|
27
|
-
|
|
28
|
-
@IsEnum(ProductTaxFeeTypeEnum)
|
|
29
|
-
taxType: ProductTaxFeeTypeEnum;
|
|
30
|
-
|
|
31
|
-
@IsNumber()
|
|
32
|
-
tax: number;
|
|
33
|
-
|
|
34
|
-
@IsString()
|
|
35
|
-
createdAt: string;
|
|
36
|
-
|
|
37
|
-
@IsString()
|
|
38
|
-
updatedAt: string;
|
|
1
|
+
import {CountryId} from "../../country";
|
|
2
|
+
import {ProductTaxFeeTypeEnum} from "../enums/ProductTaxFeeTypeEnum";
|
|
3
|
+
import {IsEnum, IsNumber, IsString} from "class-validator";
|
|
4
|
+
import {ProductTypeEnum} from "../enums/ProductTypeEnum";
|
|
5
|
+
|
|
6
|
+
export default class GetProductCatalogResponse {
|
|
7
|
+
@IsString()
|
|
8
|
+
id: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
description: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
displayName: string;
|
|
15
|
+
|
|
16
|
+
@IsEnum(ProductTypeEnum)
|
|
17
|
+
type: ProductTypeEnum;
|
|
18
|
+
|
|
19
|
+
@IsEnum(CountryId)
|
|
20
|
+
currencyId: CountryId;
|
|
21
|
+
|
|
22
|
+
@IsEnum(ProductTaxFeeTypeEnum)
|
|
23
|
+
feeType: ProductTaxFeeTypeEnum;
|
|
24
|
+
|
|
25
|
+
@IsNumber()
|
|
26
|
+
fee: number;
|
|
27
|
+
|
|
28
|
+
@IsEnum(ProductTaxFeeTypeEnum)
|
|
29
|
+
taxType: ProductTaxFeeTypeEnum;
|
|
30
|
+
|
|
31
|
+
@IsNumber()
|
|
32
|
+
tax: number;
|
|
33
|
+
|
|
34
|
+
@IsString()
|
|
35
|
+
createdAt: string;
|
|
36
|
+
|
|
37
|
+
@IsString()
|
|
38
|
+
updatedAt: string;
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum ProductTaxFeeTypeEnum {
|
|
2
|
-
PERCENT = "PERCENT",
|
|
3
|
-
FIXED = "FIXED"
|
|
1
|
+
export enum ProductTaxFeeTypeEnum {
|
|
2
|
+
PERCENT = "PERCENT",
|
|
3
|
+
FIXED = "FIXED"
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export enum ProductTypeEnum {
|
|
2
|
-
INTERNAL = "INTERNAL",
|
|
3
|
-
CREDIT_CARD = "TdC",
|
|
4
|
-
DEBIT_CARD = "TdD",
|
|
5
|
-
ATM = "ATM",
|
|
6
|
-
P2P = "P2P",
|
|
7
|
-
BANK_TRANSFER = "TRF",
|
|
8
|
-
SERVICE_PAYMENT = "SRV"
|
|
1
|
+
export enum ProductTypeEnum {
|
|
2
|
+
INTERNAL = "INTERNAL",
|
|
3
|
+
CREDIT_CARD = "TdC",
|
|
4
|
+
DEBIT_CARD = "TdD",
|
|
5
|
+
ATM = "ATM",
|
|
6
|
+
P2P = "P2P",
|
|
7
|
+
BANK_TRANSFER = "TRF",
|
|
8
|
+
SERVICE_PAYMENT = "SRV"
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './dtos/GetProductCatalogResponse';
|
|
2
|
-
export * from './dtos/CreateProductCatalogRequest';
|
|
3
|
-
|
|
4
|
-
export * from './enums/ProductTaxFeeTypeEnum';
|
|
1
|
+
export * from './dtos/GetProductCatalogResponse';
|
|
2
|
+
export * from './dtos/CreateProductCatalogRequest';
|
|
3
|
+
|
|
4
|
+
export * from './enums/ProductTaxFeeTypeEnum';
|
|
5
5
|
export * from './enums/ProductTypeEnum';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum Provider {
|
|
2
|
-
TERN = 'TERN',
|
|
3
|
-
POMELO = 'POMELO',
|
|
4
|
-
STP= 'STP'
|
|
1
|
+
export enum Provider {
|
|
2
|
+
TERN = 'TERN',
|
|
3
|
+
POMELO = 'POMELO',
|
|
4
|
+
STP= 'STP'
|
|
5
5
|
}
|
package/src/provider/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
export * from './enums/Provider';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IsEnum, IsString } from "class-validator";
|
|
2
|
-
import { Provider } from "../../provider";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class QueueMessageBase<T> {
|
|
6
|
-
|
|
7
|
-
@IsEnum(Provider)
|
|
8
|
-
provider: string;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
eventType: string;
|
|
12
|
-
|
|
13
|
-
message: T
|
|
1
|
+
import { IsEnum, IsString } from "class-validator";
|
|
2
|
+
import { Provider } from "../../provider";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class QueueMessageBase<T> {
|
|
6
|
+
|
|
7
|
+
@IsEnum(Provider)
|
|
8
|
+
provider: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
eventType: string;
|
|
12
|
+
|
|
13
|
+
message: T
|
|
14
14
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IsNotEmpty, Length, Min } from 'class-validator';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export class ServicePaymentRequest {
|
|
7
|
-
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
@Length(1, 50)
|
|
10
|
-
serviceId: string;
|
|
11
|
-
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
@Length(1, 100)
|
|
14
|
-
directoryId: string;
|
|
15
|
-
|
|
16
|
-
@IsNotEmpty()
|
|
17
|
-
@Length(1, 100)
|
|
18
|
-
reference: string;
|
|
19
|
-
|
|
20
|
-
@IsNotEmpty()
|
|
21
|
-
@Length(1, 50)
|
|
22
|
-
productId: string;
|
|
23
|
-
|
|
24
|
-
@IsNotEmpty()
|
|
25
|
-
@Min(0.01)
|
|
26
|
-
amount: number;
|
|
27
|
-
|
|
28
|
-
@IsNotEmpty()
|
|
29
|
-
@Length(1, 50)
|
|
30
|
-
transactionNumber: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsNotEmpty, Length, Min } from 'class-validator';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ServicePaymentRequest {
|
|
7
|
+
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
@Length(1, 50)
|
|
10
|
+
serviceId: string;
|
|
11
|
+
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
@Length(1, 100)
|
|
14
|
+
directoryId: string;
|
|
15
|
+
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
@Length(1, 100)
|
|
18
|
+
reference: string;
|
|
19
|
+
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
@Length(1, 50)
|
|
22
|
+
productId: string;
|
|
23
|
+
|
|
24
|
+
@IsNotEmpty()
|
|
25
|
+
@Min(0.01)
|
|
26
|
+
amount: number;
|
|
27
|
+
|
|
28
|
+
@IsNotEmpty()
|
|
29
|
+
@Length(1, 50)
|
|
30
|
+
transactionNumber: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {SessionActivityActionEnum} from "../enums/SessionActivityActionEnum";
|
|
2
|
-
import {SessionActivityActionOriginEnum} from "../enums/SessionActivityActionOriginEnum";
|
|
3
|
-
|
|
4
|
-
export class SessionActivityQueueMessageRequest {
|
|
5
|
-
id: string; // requestId de la peticion
|
|
6
|
-
sessionId: string; // Id de la sesion que realizo el request
|
|
7
|
-
operationName: string; // nombre de la operacion asociada al request
|
|
8
|
-
source: string; // Tabla|lambda|componente desde donde vino el mensaje
|
|
9
|
-
action: SessionActivityActionEnum; // Accion realizada
|
|
10
|
-
actionOrigin: SessionActivityActionOriginEnum; // Si la peticion fue realizada desde la APP o backoffice
|
|
1
|
+
import {SessionActivityActionEnum} from "../enums/SessionActivityActionEnum";
|
|
2
|
+
import {SessionActivityActionOriginEnum} from "../enums/SessionActivityActionOriginEnum";
|
|
3
|
+
|
|
4
|
+
export class SessionActivityQueueMessageRequest {
|
|
5
|
+
id: string; // requestId de la peticion
|
|
6
|
+
sessionId: string; // Id de la sesion que realizo el request
|
|
7
|
+
operationName: string; // nombre de la operacion asociada al request
|
|
8
|
+
source: string; // Tabla|lambda|componente desde donde vino el mensaje
|
|
9
|
+
action: SessionActivityActionEnum; // Accion realizada
|
|
10
|
+
actionOrigin: SessionActivityActionOriginEnum; // Si la peticion fue realizada desde la APP o backoffice
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export enum SessionActivityActionEnum {
|
|
2
|
-
"GET" = "GET",
|
|
3
|
-
"POST" = "POST",
|
|
4
|
-
"PUT" = "PUT",
|
|
5
|
-
"DELETE" = "DELETE",
|
|
6
|
-
"PATCH" = "PATCH",
|
|
7
|
-
"OPTIONS" = "OPTIONS"
|
|
1
|
+
export enum SessionActivityActionEnum {
|
|
2
|
+
"GET" = "GET",
|
|
3
|
+
"POST" = "POST",
|
|
4
|
+
"PUT" = "PUT",
|
|
5
|
+
"DELETE" = "DELETE",
|
|
6
|
+
"PATCH" = "PATCH",
|
|
7
|
+
"OPTIONS" = "OPTIONS"
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum SessionActivityActionOriginEnum {
|
|
2
|
-
MOBILE_APP = "USERS_APP",
|
|
3
|
-
BACKOFFICE = "BACKOFFICE",
|
|
4
|
-
UNKNOWN = "UNKNOWN"
|
|
1
|
+
export enum SessionActivityActionOriginEnum {
|
|
2
|
+
MOBILE_APP = "USERS_APP",
|
|
3
|
+
BACKOFFICE = "BACKOFFICE",
|
|
4
|
+
UNKNOWN = "UNKNOWN"
|
|
5
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './dtos/SessionActivityQueueMessageRequest';
|
|
2
|
-
export * from './enums/SessionActivityActionEnum';
|
|
1
|
+
export * from './dtos/SessionActivityQueueMessageRequest';
|
|
2
|
+
export * from './enums/SessionActivityActionEnum';
|
|
3
3
|
export * from './enums/SessionActivityActionOriginEnum';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {IsNotEmpty, IsNumber, IsString, Matches} from "class-validator";
|
|
2
|
-
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
3
|
-
|
|
4
|
-
export class Credit {
|
|
5
|
-
|
|
6
|
-
@IsNotEmpty()
|
|
7
|
-
@IsNumber()
|
|
8
|
-
creditNotional: number;
|
|
9
|
-
|
|
10
|
-
@IsNotEmpty()
|
|
11
|
-
@IsNumber()
|
|
12
|
-
creditFees: number;
|
|
13
|
-
|
|
14
|
-
@IsNotEmpty()
|
|
15
|
-
@IsNumber()
|
|
16
|
-
creditTax: number;
|
|
17
|
-
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
@IsNumber()
|
|
20
|
-
creditTotal: number;
|
|
21
|
-
}
|
|
1
|
+
import {IsNotEmpty, IsNumber, IsString, Matches} from "class-validator";
|
|
2
|
+
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
3
|
+
|
|
4
|
+
export class Credit {
|
|
5
|
+
|
|
6
|
+
@IsNotEmpty()
|
|
7
|
+
@IsNumber()
|
|
8
|
+
creditNotional: number;
|
|
9
|
+
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
@IsNumber()
|
|
12
|
+
creditFees: number;
|
|
13
|
+
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
creditTax: number;
|
|
17
|
+
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
@IsNumber()
|
|
20
|
+
creditTotal: number;
|
|
21
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {IsNotEmpty, IsNumber} from "class-validator";
|
|
2
|
-
|
|
3
|
-
export class Debit {
|
|
4
|
-
|
|
5
|
-
@IsNotEmpty()
|
|
6
|
-
@IsNumber()
|
|
7
|
-
debitNotional: number;
|
|
8
|
-
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
@IsNumber()
|
|
11
|
-
debitFees: number;
|
|
12
|
-
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsNumber()
|
|
15
|
-
debitTax: number;
|
|
16
|
-
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
@IsNumber()
|
|
19
|
-
debitTotal: number;
|
|
20
|
-
}
|
|
1
|
+
import {IsNotEmpty, IsNumber} from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class Debit {
|
|
4
|
+
|
|
5
|
+
@IsNotEmpty()
|
|
6
|
+
@IsNumber()
|
|
7
|
+
debitNotional: number;
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsNumber()
|
|
11
|
+
debitFees: number;
|
|
12
|
+
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
@IsNumber()
|
|
15
|
+
debitTax: number;
|
|
16
|
+
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
@IsNumber()
|
|
19
|
+
debitTotal: number;
|
|
20
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {IsNotEmpty, IsNumber} from "class-validator";
|
|
2
|
-
|
|
3
|
-
export class Notional {
|
|
4
|
-
|
|
5
|
-
@IsNotEmpty()
|
|
6
|
-
@IsNumber()
|
|
7
|
-
notional: number;
|
|
8
|
-
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
@IsNumber()
|
|
11
|
-
productFees: number;
|
|
12
|
-
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsNumber()
|
|
15
|
-
productTax: number;
|
|
16
|
-
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
@IsNumber()
|
|
19
|
-
total: number;
|
|
20
|
-
}
|
|
1
|
+
import {IsNotEmpty, IsNumber} from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class Notional {
|
|
4
|
+
|
|
5
|
+
@IsNotEmpty()
|
|
6
|
+
@IsNumber()
|
|
7
|
+
notional: number;
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsNumber()
|
|
11
|
+
productFees: number;
|
|
12
|
+
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
@IsNumber()
|
|
15
|
+
productTax: number;
|
|
16
|
+
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
@IsNumber()
|
|
19
|
+
total: number;
|
|
20
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {IsNotEmpty, IsNumber, IsString} from "class-validator";
|
|
2
|
-
import { ProductTypeEnum } from "../../productCatalog";
|
|
3
|
-
|
|
4
|
-
export class Product {
|
|
5
|
-
|
|
6
|
-
@IsNotEmpty()
|
|
7
|
-
@IsString()
|
|
8
|
-
type: ProductTypeEnum;
|
|
9
|
-
|
|
10
|
-
@IsNotEmpty()
|
|
11
|
-
@IsString()
|
|
12
|
-
description: string;
|
|
13
|
-
|
|
14
|
-
@IsNotEmpty()
|
|
15
|
-
@IsString()
|
|
16
|
-
displayName: string;
|
|
17
|
-
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
@IsString()
|
|
20
|
-
relatedProductId: string;
|
|
21
|
-
}
|
|
1
|
+
import {IsNotEmpty, IsNumber, IsString} from "class-validator";
|
|
2
|
+
import { ProductTypeEnum } from "../../productCatalog";
|
|
3
|
+
|
|
4
|
+
export class Product {
|
|
5
|
+
|
|
6
|
+
@IsNotEmpty()
|
|
7
|
+
@IsString()
|
|
8
|
+
type: ProductTypeEnum;
|
|
9
|
+
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
@IsString()
|
|
12
|
+
description: string;
|
|
13
|
+
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
@IsString()
|
|
16
|
+
displayName: string;
|
|
17
|
+
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
@IsString()
|
|
20
|
+
relatedProductId: string;
|
|
21
|
+
}
|