@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/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,11 +1,12 @@
|
|
|
1
|
-
import { CardSummaryResponse } from "./CardSummaryResponse";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class CardAdditionalResponse {
|
|
6
|
-
fullName: string;
|
|
7
|
-
phoneNumber: string;
|
|
8
|
-
profileImage: string;
|
|
9
|
-
directoryId: string;
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { CardSummaryResponse } from "./CardSummaryResponse";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CardAdditionalResponse {
|
|
6
|
+
fullName: string;
|
|
7
|
+
phoneNumber: string;
|
|
8
|
+
profileImage: string;
|
|
9
|
+
directoryId: string;
|
|
10
|
+
isOwner: boolean;
|
|
11
|
+
cards: CardSummaryResponse[];
|
|
12
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
|
|
8
|
-
export class CardApplicationRequest {
|
|
9
|
-
|
|
10
|
-
@IsOptional()
|
|
11
|
-
@IsEnum(CreditOrDebit)
|
|
12
|
-
creditOrDebit: string;
|
|
13
|
-
|
|
14
|
-
@IsEnum(VirtualOrPhysical)
|
|
15
|
-
virtualOrPhysical: VirtualOrPhysical.PHYSICAL;
|
|
16
|
-
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
addressId: string;
|
|
19
|
-
|
|
20
|
-
@IsEnum(DeliveryChannel)
|
|
21
|
-
deliveryChannel: DeliveryChannel
|
|
22
|
-
}
|
|
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
|
+
|
|
8
|
+
export class CardApplicationRequest {
|
|
9
|
+
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsEnum(CreditOrDebit)
|
|
12
|
+
creditOrDebit: string;
|
|
13
|
+
|
|
14
|
+
@IsEnum(VirtualOrPhysical)
|
|
15
|
+
virtualOrPhysical: VirtualOrPhysical.PHYSICAL;
|
|
16
|
+
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
addressId: string;
|
|
19
|
+
|
|
20
|
+
@IsEnum(DeliveryChannel)
|
|
21
|
+
deliveryChannel: DeliveryChannel
|
|
22
|
+
}
|
|
@@ -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
|
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { IsDateString, IsNotEmpty, IsString, Length, ValidateNested } from "class-validator";
|
|
2
|
-
import { IsPhoneNumberFiado } from "../validations/IsPhoneNumberConstraint";
|
|
3
|
-
import { Type } from "class-transformer";
|
|
4
|
-
import { AddressCreateRequest } from "../../address";
|
|
5
|
-
|
|
6
|
-
export class CardCreateAdditionalRequest {
|
|
7
|
-
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
@IsString()
|
|
10
|
-
@Length(3, 40)
|
|
11
|
-
name: string;
|
|
12
|
-
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsString()
|
|
15
|
-
@Length(3, 20)
|
|
16
|
-
lastNamePaternal: string;
|
|
17
|
-
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
@IsString()
|
|
20
|
-
@Length(3, 20)
|
|
21
|
-
lastNameMaternal: string;
|
|
22
|
-
|
|
23
|
-
@IsNotEmpty()
|
|
24
|
-
@IsString()
|
|
25
|
-
@IsPhoneNumberFiado()
|
|
26
|
-
phoneNumber: string;
|
|
27
|
-
|
|
28
|
-
@IsDateString()
|
|
29
|
-
dateOfBirth: string;
|
|
30
|
-
|
|
31
|
-
@IsNotEmpty()
|
|
32
|
-
@IsString()
|
|
33
|
-
@Length(3, 20)
|
|
34
|
-
ownerRelation: string;
|
|
35
|
-
|
|
36
|
-
@ValidateNested()
|
|
37
|
-
@Type(() => AddressCreateRequest)
|
|
38
|
-
address: AddressCreateRequest;
|
|
39
|
-
}
|
|
40
|
-
|
|
1
|
+
import { IsDateString, IsNotEmpty, IsString, Length, ValidateNested } from "class-validator";
|
|
2
|
+
import { IsPhoneNumberFiado } from "../validations/IsPhoneNumberConstraint";
|
|
3
|
+
import { Type } from "class-transformer";
|
|
4
|
+
import { AddressCreateRequest } from "../../address";
|
|
5
|
+
|
|
6
|
+
export class CardCreateAdditionalRequest {
|
|
7
|
+
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
@IsString()
|
|
10
|
+
@Length(3, 40)
|
|
11
|
+
name: string;
|
|
12
|
+
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
@IsString()
|
|
15
|
+
@Length(3, 20)
|
|
16
|
+
lastNamePaternal: string;
|
|
17
|
+
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
@IsString()
|
|
20
|
+
@Length(3, 20)
|
|
21
|
+
lastNameMaternal: string;
|
|
22
|
+
|
|
23
|
+
@IsNotEmpty()
|
|
24
|
+
@IsString()
|
|
25
|
+
@IsPhoneNumberFiado()
|
|
26
|
+
phoneNumber: string;
|
|
27
|
+
|
|
28
|
+
@IsDateString()
|
|
29
|
+
dateOfBirth: string;
|
|
30
|
+
|
|
31
|
+
@IsNotEmpty()
|
|
32
|
+
@IsString()
|
|
33
|
+
@Length(3, 20)
|
|
34
|
+
ownerRelation: string;
|
|
35
|
+
|
|
36
|
+
@ValidateNested()
|
|
37
|
+
@Type(() => AddressCreateRequest)
|
|
38
|
+
address: AddressCreateRequest;
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
|
-
import { CreditOrDebit } from "../enums/CreditOrDebit";
|
|
3
|
-
import { DeliveryChannel } from "../enums/DeliveryChannel";
|
|
4
|
-
import { ExternalShippingStatus } from "../enums/ExternalShippingStatus";
|
|
5
|
-
import { ExternalShippingStatusDetail } from "../enums/ExternalShippingStatusDetails";
|
|
6
|
-
import { NominatedOrInnominated } from "../enums/NominatedOrInnominated";
|
|
7
|
-
import { ShippingStatus } from "../enums/ShippingStatus";
|
|
8
|
-
import { Status } from "../enums/Status";
|
|
9
|
-
import { VirtualOrPhysical } from "../enums/VirtualOrPhysical";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export class CardResponse {
|
|
13
|
-
id: string;
|
|
14
|
-
accountId: string;
|
|
15
|
-
directoryId: string;
|
|
16
|
-
peopleId: string;
|
|
17
|
-
provider: string;
|
|
18
|
-
activationDate: number;
|
|
19
|
-
countryId: CountryId;
|
|
20
|
-
status: Status;
|
|
21
|
-
panLastDigit: string;
|
|
22
|
-
creditOrDebit: CreditOrDebit;
|
|
23
|
-
nominatedOrInnominated: NominatedOrInnominated;
|
|
24
|
-
virtualOrPhysical: VirtualOrPhysical;
|
|
25
|
-
deliveryChannel: DeliveryChannel;
|
|
26
|
-
externalCardId: string;
|
|
27
|
-
externalShippingId: string;
|
|
28
|
-
externalTrackingNumber: string;
|
|
29
|
-
externalTrackingUrl: string;
|
|
30
|
-
externalShippingStatus: ExternalShippingStatus | "";
|
|
31
|
-
externalShippingStatusDetail: ExternalShippingStatusDetail | "";
|
|
32
|
-
shippingStatus: ShippingStatus | "";
|
|
33
|
-
imageUrl: string;
|
|
34
|
-
tenantId: string;
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
import { CreditOrDebit } from "../enums/CreditOrDebit";
|
|
3
|
+
import { DeliveryChannel } from "../enums/DeliveryChannel";
|
|
4
|
+
import { ExternalShippingStatus } from "../enums/ExternalShippingStatus";
|
|
5
|
+
import { ExternalShippingStatusDetail } from "../enums/ExternalShippingStatusDetails";
|
|
6
|
+
import { NominatedOrInnominated } from "../enums/NominatedOrInnominated";
|
|
7
|
+
import { ShippingStatus } from "../enums/ShippingStatus";
|
|
8
|
+
import { Status } from "../enums/Status";
|
|
9
|
+
import { VirtualOrPhysical } from "../enums/VirtualOrPhysical";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export class CardResponse {
|
|
13
|
+
id: string;
|
|
14
|
+
accountId: string;
|
|
15
|
+
directoryId: string;
|
|
16
|
+
peopleId: string;
|
|
17
|
+
provider: string;
|
|
18
|
+
activationDate: number;
|
|
19
|
+
countryId: CountryId;
|
|
20
|
+
status: Status;
|
|
21
|
+
panLastDigit: string;
|
|
22
|
+
creditOrDebit: CreditOrDebit;
|
|
23
|
+
nominatedOrInnominated: NominatedOrInnominated;
|
|
24
|
+
virtualOrPhysical: VirtualOrPhysical;
|
|
25
|
+
deliveryChannel: DeliveryChannel;
|
|
26
|
+
externalCardId: string;
|
|
27
|
+
externalShippingId: string;
|
|
28
|
+
externalTrackingNumber: string;
|
|
29
|
+
externalTrackingUrl: string;
|
|
30
|
+
externalShippingStatus: ExternalShippingStatus | "";
|
|
31
|
+
externalShippingStatusDetail: ExternalShippingStatusDetail | "";
|
|
32
|
+
shippingStatus: ShippingStatus | "";
|
|
33
|
+
imageUrl: string;
|
|
34
|
+
tenantId: string;
|
|
35
35
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Status } from "../enums/Status";
|
|
2
|
-
|
|
3
|
-
export class CardSensitiveInformationResponse {
|
|
4
|
-
|
|
5
|
-
id: string;
|
|
6
|
-
pan: string;
|
|
7
|
-
cvc: string | null;
|
|
8
|
-
pin: string | null;
|
|
9
|
-
expirationMonth: string;
|
|
10
|
-
expirationYear: string;
|
|
11
|
-
virtualOrPhysical: string;
|
|
12
|
-
creditOrDebit: string;
|
|
13
|
-
imageUrl: string;
|
|
14
|
-
countryId: string;
|
|
15
|
-
status: Status
|
|
16
|
-
holderName: string;
|
|
17
|
-
trackingUrl: string | null;
|
|
18
|
-
trackingNumber: string | null;
|
|
1
|
+
import { Status } from "../enums/Status";
|
|
2
|
+
|
|
3
|
+
export class CardSensitiveInformationResponse {
|
|
4
|
+
|
|
5
|
+
id: string;
|
|
6
|
+
pan: string;
|
|
7
|
+
cvc: string | null;
|
|
8
|
+
pin: string | null;
|
|
9
|
+
expirationMonth: string;
|
|
10
|
+
expirationYear: string;
|
|
11
|
+
virtualOrPhysical: string;
|
|
12
|
+
creditOrDebit: string;
|
|
13
|
+
imageUrl: string;
|
|
14
|
+
countryId: string;
|
|
15
|
+
status: Status
|
|
16
|
+
holderName: string;
|
|
17
|
+
trackingUrl: string | null;
|
|
18
|
+
trackingNumber: string | null;
|
|
19
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QueueMessageBase } from "../../queue/dtos/QueueMessageBase";
|
|
2
|
-
import { CardShipmentUpdateRequest } from "./CardShipmentUpdateRequest";
|
|
3
|
-
|
|
4
|
-
export class CardShipmentQueueMessage extends QueueMessageBase<CardShipmentUpdateRequest> {
|
|
5
|
-
|
|
6
|
-
message: CardShipmentUpdateRequest;
|
|
7
|
-
|
|
1
|
+
import { QueueMessageBase } from "../../queue/dtos/QueueMessageBase";
|
|
2
|
+
import { CardShipmentUpdateRequest } from "./CardShipmentUpdateRequest";
|
|
3
|
+
|
|
4
|
+
export class CardShipmentQueueMessage extends QueueMessageBase<CardShipmentUpdateRequest> {
|
|
5
|
+
|
|
6
|
+
message: CardShipmentUpdateRequest;
|
|
7
|
+
|
|
8
8
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { IsNotEmpty, IsString } from "class-validator";
|
|
2
|
-
|
|
3
|
-
export class CardShipmentUpdateRequest {
|
|
4
|
-
|
|
5
|
-
@IsString()
|
|
6
|
-
@IsNotEmpty()
|
|
7
|
-
shippingId: string
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
@IsNotEmpty()
|
|
11
|
-
status: string
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
@IsNotEmpty()
|
|
15
|
-
statusDetail: string
|
|
16
|
-
|
|
17
|
-
@IsString()
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
updateAt: string
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class CardShipmentUpdateRequest {
|
|
4
|
+
|
|
5
|
+
@IsString()
|
|
6
|
+
@IsNotEmpty()
|
|
7
|
+
shippingId: string
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
status: string
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
statusDetail: string
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
@IsNotEmpty()
|
|
19
|
+
updateAt: string
|
|
20
20
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VirtualOrPhysical } from "../enums/VirtualOrPhysical";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class CardSummaryResponse {
|
|
6
|
-
|
|
7
|
-
virtualOrPhysical: VirtualOrPhysical
|
|
8
|
-
cardId: string;
|
|
9
|
-
status: string;
|
|
10
|
-
panlastDigits: string;
|
|
1
|
+
import { VirtualOrPhysical } from "../enums/VirtualOrPhysical";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CardSummaryResponse {
|
|
6
|
+
|
|
7
|
+
virtualOrPhysical: VirtualOrPhysical
|
|
8
|
+
cardId: string;
|
|
9
|
+
status: string;
|
|
10
|
+
panlastDigits: string;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {UpdateKey} from "../enums/UpdateKey";
|
|
2
|
-
import {IsEnum, IsString} from "class-validator";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class CardUpdateRequest {
|
|
6
|
-
|
|
7
|
-
@IsEnum(UpdateKey)
|
|
8
|
-
type: UpdateKey;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
value: string;
|
|
1
|
+
import {UpdateKey} from "../enums/UpdateKey";
|
|
2
|
+
import {IsEnum, IsString} from "class-validator";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CardUpdateRequest {
|
|
6
|
+
|
|
7
|
+
@IsEnum(UpdateKey)
|
|
8
|
+
type: UpdateKey;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
value: string;
|
|
12
12
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class ActivateBankAccountCardRequest {
|
|
4
|
-
externalAccountId?: string;
|
|
5
|
-
externalUserId?: string;
|
|
6
|
-
pin?: string;
|
|
7
|
-
pan?: string;
|
|
8
|
-
previousCardId?: string;
|
|
9
|
-
value?: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class ActivateBankAccountCardRequest {
|
|
4
|
+
externalAccountId?: string;
|
|
5
|
+
externalUserId?: string;
|
|
6
|
+
pin?: string;
|
|
7
|
+
pan?: string;
|
|
8
|
+
previousCardId?: string;
|
|
9
|
+
value?: string;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class ActivateBankAccountCardResponse {
|
|
4
|
-
activated: boolean;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class ActivateBankAccountCardResponse {
|
|
4
|
+
activated: boolean;
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type AssignCardRequest = {
|
|
5
|
-
proxyValue: string,
|
|
6
|
-
accountId: number
|
|
7
|
-
}
|
|
8
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export type AssignCardRequest = {
|
|
5
|
+
proxyValue: string,
|
|
6
|
+
accountId: number
|
|
7
|
+
}
|
|
8
|
+
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AddressResponse } from "../../../address";
|
|
2
|
-
import { CardIssuing } from "../../enums/CardIssuing";
|
|
3
|
-
import { VirtualOrPhysical } from "../../enums/VirtualOrPhysical";
|
|
4
|
-
|
|
5
|
-
export class CreateBankAccountCardRequest {
|
|
6
|
-
externalUserId?: string;
|
|
7
|
-
externalAccountId?: string;
|
|
8
|
-
cardType: VirtualOrPhysical;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
address: AddressResponse;
|
|
12
|
-
nominated: boolean;
|
|
13
|
-
directoryId?: string;
|
|
14
|
-
typeOfDirectoryId?: string;
|
|
15
|
-
previousCardId?: string;
|
|
16
|
-
issuing: CardIssuing;
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { CardIssuing } from "../../enums/CardIssuing";
|
|
3
|
+
import { VirtualOrPhysical } from "../../enums/VirtualOrPhysical";
|
|
4
|
+
|
|
5
|
+
export class CreateBankAccountCardRequest {
|
|
6
|
+
externalUserId?: string;
|
|
7
|
+
externalAccountId?: string;
|
|
8
|
+
cardType: VirtualOrPhysical;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
address: AddressResponse;
|
|
12
|
+
nominated: boolean;
|
|
13
|
+
directoryId?: string;
|
|
14
|
+
typeOfDirectoryId?: string;
|
|
15
|
+
previousCardId?: string;
|
|
16
|
+
issuing: CardIssuing;
|
|
17
17
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Provider } from "../../../provider";
|
|
2
|
-
import { Status } from "../../enums/Status";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class CreateBankAccountCardResponse {
|
|
6
|
-
externalCardId: string;
|
|
7
|
-
provider: Provider;
|
|
8
|
-
status: Status;
|
|
1
|
+
import { Provider } from "../../../provider";
|
|
2
|
+
import { Status } from "../../enums/Status";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateBankAccountCardResponse {
|
|
6
|
+
externalCardId: string;
|
|
7
|
+
provider: Provider;
|
|
8
|
+
status: Status;
|
|
9
9
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AddressResponse } from "../../../address";
|
|
2
|
-
import { TypeOfDocument } from "../../../identity/enums/TypeOfDocument";
|
|
3
|
-
|
|
4
|
-
export class CreateBankAccountCardShippingRequest {
|
|
5
|
-
externalCardId?: string;
|
|
6
|
-
typeOfDocumentId?: TypeOfDocument;
|
|
7
|
-
documentNumber?: string;
|
|
8
|
-
phoneNumber?: string;
|
|
9
|
-
firstName: string;
|
|
10
|
-
lastName: string;
|
|
11
|
-
address: AddressResponse;
|
|
12
|
-
nominated: boolean;
|
|
13
|
-
email?: string;
|
|
14
|
-
userId?: string;
|
|
1
|
+
import { AddressResponse } from "../../../address";
|
|
2
|
+
import { TypeOfDocument } from "../../../identity/enums/TypeOfDocument";
|
|
3
|
+
|
|
4
|
+
export class CreateBankAccountCardShippingRequest {
|
|
5
|
+
externalCardId?: string;
|
|
6
|
+
typeOfDocumentId?: TypeOfDocument;
|
|
7
|
+
documentNumber?: string;
|
|
8
|
+
phoneNumber?: string;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
address: AddressResponse;
|
|
12
|
+
nominated: boolean;
|
|
13
|
+
email?: string;
|
|
14
|
+
userId?: string;
|
|
15
15
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class CreateBankAccountCardShippingResponse {
|
|
4
|
-
externalShippingId: string;
|
|
5
|
-
type: string;
|
|
6
|
-
status: string;
|
|
7
|
-
statusDetail: string;
|
|
8
|
-
courier: {
|
|
9
|
-
company: string;
|
|
10
|
-
trackingNumber?: string;
|
|
11
|
-
trackingUrl?: string;
|
|
12
|
-
};
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CreateBankAccountCardShippingResponse {
|
|
4
|
+
externalShippingId: string;
|
|
5
|
+
type: string;
|
|
6
|
+
status: string;
|
|
7
|
+
statusDetail: string;
|
|
8
|
+
courier: {
|
|
9
|
+
company: string;
|
|
10
|
+
trackingNumber?: string;
|
|
11
|
+
trackingUrl?: string;
|
|
12
|
+
};
|
|
13
13
|
}
|