@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
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {IsNotEmpty, IsNumber} from "class-validator";
|
|
2
|
-
|
|
3
|
-
export class Total {
|
|
4
|
-
|
|
5
|
-
@IsNotEmpty()
|
|
6
|
-
@IsNumber()
|
|
7
|
-
totalNotional: number;
|
|
8
|
-
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
@IsNumber()
|
|
11
|
-
totalFees: number;
|
|
12
|
-
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsNumber()
|
|
15
|
-
totalTax: number;
|
|
16
|
-
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
@IsNumber()
|
|
19
|
-
totalTotal: number;
|
|
20
|
-
}
|
|
1
|
+
import {IsNotEmpty, IsNumber} from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class Total {
|
|
4
|
+
|
|
5
|
+
@IsNotEmpty()
|
|
6
|
+
@IsNumber()
|
|
7
|
+
totalNotional: number;
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsNumber()
|
|
11
|
+
totalFees: number;
|
|
12
|
+
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
@IsNumber()
|
|
15
|
+
totalTax: number;
|
|
16
|
+
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
@IsNumber()
|
|
19
|
+
totalTotal: number;
|
|
20
|
+
}
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import {IsDate, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
|
|
2
|
-
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
3
|
-
import { CountryId } from "../../country";
|
|
4
|
-
import { OperationEnum } from "../enums/OperationEnum";
|
|
5
|
-
import { TypeOfDirectoryId } from "../../directory";
|
|
6
|
-
import { Type } from "class-transformer";
|
|
7
|
-
import { Notional } from "./Notional";
|
|
8
|
-
import { Credit } from "./Credit";
|
|
9
|
-
import { Debit } from "./Debit";
|
|
10
|
-
import { Total } from "./Total";
|
|
11
|
-
import { Product } from "./Product";
|
|
12
|
-
|
|
13
|
-
export class TransactionCreateRequest {
|
|
14
|
-
|
|
15
|
-
@IsNotEmpty()
|
|
16
|
-
@IsString()
|
|
17
|
-
@Length(3, 50)
|
|
18
|
-
transactionNumber: string;
|
|
19
|
-
|
|
20
|
-
@IsNotEmpty()
|
|
21
|
-
@IsString()
|
|
22
|
-
@Matches(regexUuidV4,
|
|
23
|
-
{
|
|
24
|
-
message: 'directoryId must be a valid UUID v4',
|
|
25
|
-
})
|
|
26
|
-
directoryId: string;
|
|
27
|
-
|
|
28
|
-
@IsNotEmpty()
|
|
29
|
-
@IsString()
|
|
30
|
-
@Matches(regexUuidV4,
|
|
31
|
-
{
|
|
32
|
-
message: 'peopleId must be a valid UUID v4',
|
|
33
|
-
})
|
|
34
|
-
peopleId: string;
|
|
35
|
-
|
|
36
|
-
@IsNotEmpty()
|
|
37
|
-
@IsString()
|
|
38
|
-
accountId: string;
|
|
39
|
-
|
|
40
|
-
@IsNotEmpty()
|
|
41
|
-
@IsString()
|
|
42
|
-
pocketId: string;
|
|
43
|
-
|
|
44
|
-
@IsNotEmpty()
|
|
45
|
-
@IsString()
|
|
46
|
-
@Matches(regexUuidV4,
|
|
47
|
-
{
|
|
48
|
-
message: 'ownerDirectoryId must be a valid UUID v4',
|
|
49
|
-
})
|
|
50
|
-
ownerDirectoryId: string;
|
|
51
|
-
|
|
52
|
-
@IsNotEmpty()
|
|
53
|
-
@IsString()
|
|
54
|
-
transactionDate: string;
|
|
55
|
-
|
|
56
|
-
@IsString()
|
|
57
|
-
sessionId: string;
|
|
58
|
-
|
|
59
|
-
@IsNotEmpty()
|
|
60
|
-
@IsEnum(CountryId)
|
|
61
|
-
currencyId: CountryId;
|
|
62
|
-
|
|
63
|
-
@IsNotEmpty()
|
|
64
|
-
@IsEnum(OperationEnum)
|
|
65
|
-
operation: OperationEnum;
|
|
66
|
-
|
|
67
|
-
@ValidateNested({ each: true })
|
|
68
|
-
@Type(() => Notional)
|
|
69
|
-
notional: Notional;
|
|
70
|
-
|
|
71
|
-
@ValidateNested({ each: true })
|
|
72
|
-
@Type(() => Credit)
|
|
73
|
-
credit: Credit;
|
|
74
|
-
|
|
75
|
-
@ValidateNested({ each: true })
|
|
76
|
-
@Type(() => Debit)
|
|
77
|
-
debit: Debit;
|
|
78
|
-
|
|
79
|
-
@ValidateNested({ each: true })
|
|
80
|
-
@Type(() => Total)
|
|
81
|
-
total: Total;
|
|
82
|
-
|
|
83
|
-
@ValidateNested({ each: true })
|
|
84
|
-
@Type(() => Product)
|
|
85
|
-
product: Product;
|
|
86
|
-
|
|
87
|
-
@IsNotEmpty()
|
|
88
|
-
@IsEnum(TypeOfDirectoryId)
|
|
89
|
-
typeOfDirectoryId: TypeOfDirectoryId;
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
1
|
+
import {IsDate, IsEnum, IsNotEmpty, IsString, Length, Matches, ValidateNested} from "class-validator";
|
|
2
|
+
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
3
|
+
import { CountryId } from "../../country";
|
|
4
|
+
import { OperationEnum } from "../enums/OperationEnum";
|
|
5
|
+
import { TypeOfDirectoryId } from "../../directory";
|
|
6
|
+
import { Type } from "class-transformer";
|
|
7
|
+
import { Notional } from "./Notional";
|
|
8
|
+
import { Credit } from "./Credit";
|
|
9
|
+
import { Debit } from "./Debit";
|
|
10
|
+
import { Total } from "./Total";
|
|
11
|
+
import { Product } from "./Product";
|
|
12
|
+
|
|
13
|
+
export class TransactionCreateRequest {
|
|
14
|
+
|
|
15
|
+
@IsNotEmpty()
|
|
16
|
+
@IsString()
|
|
17
|
+
@Length(3, 50)
|
|
18
|
+
transactionNumber: string;
|
|
19
|
+
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
@IsString()
|
|
22
|
+
@Matches(regexUuidV4,
|
|
23
|
+
{
|
|
24
|
+
message: 'directoryId must be a valid UUID v4',
|
|
25
|
+
})
|
|
26
|
+
directoryId: string;
|
|
27
|
+
|
|
28
|
+
@IsNotEmpty()
|
|
29
|
+
@IsString()
|
|
30
|
+
@Matches(regexUuidV4,
|
|
31
|
+
{
|
|
32
|
+
message: 'peopleId must be a valid UUID v4',
|
|
33
|
+
})
|
|
34
|
+
peopleId: string;
|
|
35
|
+
|
|
36
|
+
@IsNotEmpty()
|
|
37
|
+
@IsString()
|
|
38
|
+
accountId: string;
|
|
39
|
+
|
|
40
|
+
@IsNotEmpty()
|
|
41
|
+
@IsString()
|
|
42
|
+
pocketId: string;
|
|
43
|
+
|
|
44
|
+
@IsNotEmpty()
|
|
45
|
+
@IsString()
|
|
46
|
+
@Matches(regexUuidV4,
|
|
47
|
+
{
|
|
48
|
+
message: 'ownerDirectoryId must be a valid UUID v4',
|
|
49
|
+
})
|
|
50
|
+
ownerDirectoryId: string;
|
|
51
|
+
|
|
52
|
+
@IsNotEmpty()
|
|
53
|
+
@IsString()
|
|
54
|
+
transactionDate: string;
|
|
55
|
+
|
|
56
|
+
@IsString()
|
|
57
|
+
sessionId: string;
|
|
58
|
+
|
|
59
|
+
@IsNotEmpty()
|
|
60
|
+
@IsEnum(CountryId)
|
|
61
|
+
currencyId: CountryId;
|
|
62
|
+
|
|
63
|
+
@IsNotEmpty()
|
|
64
|
+
@IsEnum(OperationEnum)
|
|
65
|
+
operation: OperationEnum;
|
|
66
|
+
|
|
67
|
+
@ValidateNested({ each: true })
|
|
68
|
+
@Type(() => Notional)
|
|
69
|
+
notional: Notional;
|
|
70
|
+
|
|
71
|
+
@ValidateNested({ each: true })
|
|
72
|
+
@Type(() => Credit)
|
|
73
|
+
credit: Credit;
|
|
74
|
+
|
|
75
|
+
@ValidateNested({ each: true })
|
|
76
|
+
@Type(() => Debit)
|
|
77
|
+
debit: Debit;
|
|
78
|
+
|
|
79
|
+
@ValidateNested({ each: true })
|
|
80
|
+
@Type(() => Total)
|
|
81
|
+
total: Total;
|
|
82
|
+
|
|
83
|
+
@ValidateNested({ each: true })
|
|
84
|
+
@Type(() => Product)
|
|
85
|
+
product: Product;
|
|
86
|
+
|
|
87
|
+
@IsNotEmpty()
|
|
88
|
+
@IsEnum(TypeOfDirectoryId)
|
|
89
|
+
typeOfDirectoryId: TypeOfDirectoryId;
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export class TransactionCreateResponse {
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
|
|
2
|
+
export class TransactionCreateResponse {
|
|
3
|
+
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum OperationEnum {
|
|
2
|
-
ADD = "ADD",
|
|
3
|
-
SUBSTRACT = "SUBSTRACT"
|
|
1
|
+
export enum OperationEnum {
|
|
2
|
+
ADD = "ADD",
|
|
3
|
+
SUBSTRACT = "SUBSTRACT"
|
|
4
4
|
}
|
package/src/transaction/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//dtos
|
|
2
|
-
export * from './dtos/TransactionCreateRequest';
|
|
3
|
-
export * from './dtos/TransactionCreateResponse';
|
|
4
|
-
|
|
5
|
-
//enums
|
|
1
|
+
//dtos
|
|
2
|
+
export * from './dtos/TransactionCreateRequest';
|
|
3
|
+
export * from './dtos/TransactionCreateResponse';
|
|
4
|
+
|
|
5
|
+
//enums
|
|
6
6
|
export * from './enums/OperationEnum';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {PrivateProcessorAmountInfoItem} from "./PrivateProcessorAmountInfoItem";
|
|
2
|
-
|
|
3
|
-
export class PrivateProcessorAmountInfo {
|
|
4
|
-
transaction: PrivateProcessorAmountInfoItem;
|
|
5
|
-
settlement: PrivateProcessorAmountInfoItem;
|
|
6
|
-
local: PrivateProcessorAmountInfoItem;
|
|
1
|
+
import {PrivateProcessorAmountInfoItem} from "./PrivateProcessorAmountInfoItem";
|
|
2
|
+
|
|
3
|
+
export class PrivateProcessorAmountInfo {
|
|
4
|
+
transaction: PrivateProcessorAmountInfoItem;
|
|
5
|
+
settlement: PrivateProcessorAmountInfoItem;
|
|
6
|
+
local: PrivateProcessorAmountInfoItem;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class PrivateProcessorAmountInfoItem {
|
|
2
|
-
total: number;
|
|
3
|
-
currencyId: string;
|
|
1
|
+
export class PrivateProcessorAmountInfoItem {
|
|
2
|
+
total: number;
|
|
3
|
+
currencyId: string;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export class PrivateProcessorCardInfo {
|
|
2
|
-
productType: string;
|
|
3
|
-
lastFour: string;
|
|
4
|
-
provider: string;
|
|
5
|
-
externalCardId: string;
|
|
1
|
+
export class PrivateProcessorCardInfo {
|
|
2
|
+
productType: string;
|
|
3
|
+
lastFour: string;
|
|
4
|
+
provider: string;
|
|
5
|
+
externalCardId: string;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class PrivateProcessorMerchantInfo {
|
|
2
|
-
id: string;
|
|
3
|
-
address: string;
|
|
4
|
-
name: string;
|
|
5
|
-
mcc: string;
|
|
6
|
-
terminalId: string;
|
|
1
|
+
export class PrivateProcessorMerchantInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
address: string;
|
|
4
|
+
name: string;
|
|
5
|
+
mcc: string;
|
|
6
|
+
terminalId: string;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class PrivateProcessorTransactionInfo {
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
network: string;
|
|
5
|
-
date: string;
|
|
6
|
-
originalTransactionId: string;
|
|
7
|
-
pointType: string;
|
|
1
|
+
export class PrivateProcessorTransactionInfo {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
network: string;
|
|
5
|
+
date: string;
|
|
6
|
+
originalTransactionId: string;
|
|
7
|
+
pointType: string;
|
|
8
8
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {PrivateProcessorCardInfo} from "./PrivateProcessorCardInfo";
|
|
2
|
-
import {PrivateProcessorMerchantInfo} from "./PrivateProcessorMerchantInfo";
|
|
3
|
-
import {PrivateProcessorAmountInfo} from "./PrivateProcessorAmountInfo";
|
|
4
|
-
import {PrivateProcessorTransactionInfo} from "./PrivateProcessorTransactionInfo";
|
|
5
|
-
import {CountryId} from "../../../country";
|
|
6
|
-
|
|
7
|
-
export class PrivateTransactionProcessorRequest {
|
|
8
|
-
idempotencyKey: string;
|
|
9
|
-
externalUserId: string;
|
|
10
|
-
cardInfo: PrivateProcessorCardInfo | null;
|
|
11
|
-
productCatalogId: string;
|
|
12
|
-
merchantInfo: PrivateProcessorMerchantInfo;
|
|
13
|
-
amountInfo: PrivateProcessorAmountInfo;
|
|
14
|
-
transactionInfo: PrivateProcessorTransactionInfo;
|
|
15
|
-
countryId: CountryId;
|
|
16
|
-
additionalData: any;
|
|
1
|
+
import {PrivateProcessorCardInfo} from "./PrivateProcessorCardInfo";
|
|
2
|
+
import {PrivateProcessorMerchantInfo} from "./PrivateProcessorMerchantInfo";
|
|
3
|
+
import {PrivateProcessorAmountInfo} from "./PrivateProcessorAmountInfo";
|
|
4
|
+
import {PrivateProcessorTransactionInfo} from "./PrivateProcessorTransactionInfo";
|
|
5
|
+
import {CountryId} from "../../../country";
|
|
6
|
+
|
|
7
|
+
export class PrivateTransactionProcessorRequest {
|
|
8
|
+
idempotencyKey: string;
|
|
9
|
+
externalUserId: string;
|
|
10
|
+
cardInfo: PrivateProcessorCardInfo | null;
|
|
11
|
+
productCatalogId: string;
|
|
12
|
+
merchantInfo: PrivateProcessorMerchantInfo;
|
|
13
|
+
amountInfo: PrivateProcessorAmountInfo;
|
|
14
|
+
transactionInfo: PrivateProcessorTransactionInfo;
|
|
15
|
+
countryId: CountryId;
|
|
16
|
+
additionalData: any;
|
|
17
17
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export enum TransactionProcessorCodesEnum {
|
|
2
|
-
CARD_NOT_FOUND = "CARD_NOT_FOUND",
|
|
3
|
-
CARD_NOT_ACTIVE = "CARD_NOT_ACTIVE",
|
|
4
|
-
USER_NOT_ACTIVE = "USER_NOT_ACTIVE",
|
|
5
|
-
DOCUMENT_ID_NOT_FOUND = "DOCUMENT_ID_NOT_FOUND",
|
|
6
|
-
TRX_AMOUNT_LIMIT_EXCEEDED = "TRX_AMOUNT_LIMIT_EXCEEDED",
|
|
7
|
-
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
8
|
-
USER_NOT_AUTHORIZED_FOR_CREDIT = "USER_NOT_AUTHORIZED_FOR_CREDIT",
|
|
9
|
-
ACCOUNT_BLOCKED = "ACCOUNT_BLOCKED",
|
|
10
|
-
SYSTEM_ERROR = "SYSTEM_ERROR",
|
|
11
|
-
PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
|
|
12
|
-
TRANSACTION_APPROVED = "TRANSACTION_APPROVED"
|
|
1
|
+
export enum TransactionProcessorCodesEnum {
|
|
2
|
+
CARD_NOT_FOUND = "CARD_NOT_FOUND",
|
|
3
|
+
CARD_NOT_ACTIVE = "CARD_NOT_ACTIVE",
|
|
4
|
+
USER_NOT_ACTIVE = "USER_NOT_ACTIVE",
|
|
5
|
+
DOCUMENT_ID_NOT_FOUND = "DOCUMENT_ID_NOT_FOUND",
|
|
6
|
+
TRX_AMOUNT_LIMIT_EXCEEDED = "TRX_AMOUNT_LIMIT_EXCEEDED",
|
|
7
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
8
|
+
USER_NOT_AUTHORIZED_FOR_CREDIT = "USER_NOT_AUTHORIZED_FOR_CREDIT",
|
|
9
|
+
ACCOUNT_BLOCKED = "ACCOUNT_BLOCKED",
|
|
10
|
+
SYSTEM_ERROR = "SYSTEM_ERROR",
|
|
11
|
+
PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
|
|
12
|
+
TRANSACTION_APPROVED = "TRANSACTION_APPROVED"
|
|
13
13
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './dtos/private/PrivateTransactionProcessorRequest';
|
|
2
|
-
export * from './dtos/private/PrivateProcessorTransactionInfo';
|
|
3
|
-
export * from './dtos/private/PrivateProcessorMerchantInfo';
|
|
4
|
-
export * from './dtos/private/PrivateProcessorCardInfo';
|
|
5
|
-
export * from './dtos/private/PrivateProcessorAmountInfo';
|
|
6
|
-
export * from './dtos/private/PrivateProcessorAmountInfoItem';
|
|
7
|
-
|
|
8
|
-
export * from './enums/TransactionProcessorCodesEnum';
|
|
9
|
-
|
|
1
|
+
export * from './dtos/private/PrivateTransactionProcessorRequest';
|
|
2
|
+
export * from './dtos/private/PrivateProcessorTransactionInfo';
|
|
3
|
+
export * from './dtos/private/PrivateProcessorMerchantInfo';
|
|
4
|
+
export * from './dtos/private/PrivateProcessorCardInfo';
|
|
5
|
+
export * from './dtos/private/PrivateProcessorAmountInfo';
|
|
6
|
+
export * from './dtos/private/PrivateProcessorAmountInfoItem';
|
|
7
|
+
|
|
8
|
+
export * from './enums/TransactionProcessorCodesEnum';
|
|
9
|
+
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AddressBase } from "../../address/dtos/AddressBase";
|
|
2
|
-
export declare class CreateBankAccountUserInput {
|
|
3
|
-
directoryId: string;
|
|
4
|
-
typeOfDirectoryId: string;
|
|
5
|
-
firstName: string;
|
|
6
|
-
lastName: string;
|
|
7
|
-
phoneNumber: string;
|
|
8
|
-
address: AddressBase;
|
|
9
|
-
email: string;
|
|
10
|
-
dob: string;
|
|
11
|
-
documentNumber: string;
|
|
12
|
-
documentType?: string;
|
|
13
|
-
gender?: "M" | "F";
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
|
-
import { InstrumentEnum } from "../enums/InstrumentEnum";
|
|
3
|
-
export default class CreditContractCreateRequest {
|
|
4
|
-
directoryUserId: string;
|
|
5
|
-
relatedTransaction: string;
|
|
6
|
-
peopleId: string;
|
|
7
|
-
currencyId: CountryId;
|
|
8
|
-
creditNotional: number;
|
|
9
|
-
creditFee: number;
|
|
10
|
-
creditTax: number;
|
|
11
|
-
creditTotal: number;
|
|
12
|
-
instrument: InstrumentEnum;
|
|
13
|
-
amountBlocked: number;
|
|
14
|
-
relatedPocketId: string;
|
|
15
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const class_validator_1 = require("class-validator");
|
|
13
|
-
const country_1 = require("../../country");
|
|
14
|
-
const InstrumentEnum_1 = require("../enums/InstrumentEnum");
|
|
15
|
-
class CreditContractCreateRequest {
|
|
16
|
-
}
|
|
17
|
-
exports.default = CreditContractCreateRequest;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], CreditContractCreateRequest.prototype, "directoryUserId", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CreditContractCreateRequest.prototype, "relatedTransaction", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], CreditContractCreateRequest.prototype, "peopleId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsEnum)(country_1.CountryId),
|
|
35
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], CreditContractCreateRequest.prototype, "currencyId", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsNumber)(),
|
|
40
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], CreditContractCreateRequest.prototype, "creditNotional", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.IsNumber)(),
|
|
45
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], CreditContractCreateRequest.prototype, "creditFee", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsNumber)(),
|
|
50
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], CreditContractCreateRequest.prototype, "creditTax", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_1.IsNumber)(),
|
|
55
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], CreditContractCreateRequest.prototype, "creditTotal", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsEnum)(InstrumentEnum_1.InstrumentEnum),
|
|
60
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], CreditContractCreateRequest.prototype, "instrument", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsNumber)(),
|
|
65
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
66
|
-
__metadata("design:type", Number)
|
|
67
|
-
], CreditContractCreateRequest.prototype, "amountBlocked", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsString)(),
|
|
70
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], CreditContractCreateRequest.prototype, "relatedPocketId", void 0);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const class_validator_1 = require("class-validator");
|
|
13
|
-
class GetProductCatalogRequest {
|
|
14
|
-
}
|
|
15
|
-
exports.default = GetProductCatalogRequest;
|
|
16
|
-
__decorate([
|
|
17
|
-
(0, class_validator_1.IsArray)(),
|
|
18
|
-
__metadata("design:type", Array)
|
|
19
|
-
], GetProductCatalogRequest.prototype, "ids", void 0);
|