@fiado/type-kit 1.0.84 → 1.0.86
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/account/dtos/AccountInfo.d.ts +12 -0
- package/bin/account/dtos/AccountInfo.js +59 -0
- package/bin/account/dtos/ExchangeInfo.d.ts +4 -0
- package/bin/{group/dtos/GroupDirectoryRetationsUpdateRequest.js → account/dtos/ExchangeInfo.js} +7 -6
- package/bin/account/dtos/GetAccountBalanceResponse.d.ts +9 -0
- package/bin/account/dtos/GetAccountBalanceResponse.js +51 -0
- package/bin/account/dtos/GetPocketBalanceResponse.d.ts +10 -0
- package/bin/account/dtos/GetPocketBalanceResponse.js +61 -0
- package/bin/account/dtos/GetPocketResponse.d.ts +8 -0
- package/bin/account/dtos/GetPocketResponse.js +5 -0
- package/bin/account/dtos/PocketItem.d.ts +12 -0
- package/bin/account/dtos/PocketItem.js +65 -0
- package/bin/account/entities/AccountEntityBase.d.ts +2 -0
- package/bin/account/index.d.ts +7 -0
- package/bin/account/index.js +7 -0
- 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 +40 -0
- 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 +9 -0
- package/src/account/dtos/GetAccountBalanceResponse.ts +33 -0
- 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 +44 -0
- package/src/account/dtos/GetPocketResponse.ts +9 -0
- package/src/account/dtos/PocketItem.ts +46 -0
- package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
- package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
- package/src/account/entities/AccountEntityBase.ts +12 -10
- 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 +32 -24
- 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/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardApplicationRequest.ts +20 -20
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
- package/src/card/dtos/CardResponse.ts +4 -4
- package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
- package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
- package/src/card/dtos/CardUpdateRequest.ts +13 -13
- package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
- package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
- 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/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 +44 -44
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
- 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/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/enums/ExchangeRateStatus.ts +5 -5
- package/src/exchangeRate/index.ts +8 -8
- package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
- package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
- package/src/genericMessage/index.ts +1 -1
- package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
- package/src/group/dtos/GroupCreateRequest.ts +54 -54
- package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
- package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
- package/src/group/dtos/GroupResponse.ts +17 -17
- package/src/group/dtos/GroupUpdateRequest.ts +31 -31
- package/src/group/enums/GroupAction.ts +8 -8
- package/src/group/enums/GroupStatus.ts +6 -6
- package/src/group/enums/RelationStatus.ts +8 -8
- package/src/group/enums/RelationType.ts +9 -9
- package/src/group/index.ts +18 -18
- package/src/header/TokenPayload.ts +17 -17
- 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 +80 -80
- package/src/identity/dtos/PeopleUpdateRequest.ts +75 -75
- package/src/identity/dtos/TypeOfDocument.ts +11 -11
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
- package/src/identity/enums/SexDocument.ts +6 -6
- package/src/identity/enums/TypeOfDocument.ts +5 -5
- package/src/identity/index.ts +12 -12
- package/src/index.ts +22 -22
- 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/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/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
- package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { IsDateString, IsEmail, IsEnum, IsString, Length, Matches, ValidateNested } from 'class-validator';
|
|
2
|
-
import { AddressResponse } from "../../address";
|
|
3
|
-
import { CountryId } from "../../country";
|
|
4
|
-
import { regexUuidV4 } from '../../helpers/constans/regex';
|
|
5
|
-
import { TypeOfDirectoryId } from '../../directory';
|
|
6
|
-
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
7
|
-
import { SexDocument } from '../../identity';
|
|
8
|
-
import { Profile } from "../../directory/enums/Profile";
|
|
9
|
-
import {AccountLevelEnum} from "../enums/AccountLevelEnum";
|
|
10
|
-
|
|
11
|
-
export class AccountCreateRequest {
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
@Matches(regexUuidV4,
|
|
15
|
-
{
|
|
16
|
-
message: 'directoryId must be a valid UUID v4',
|
|
17
|
-
})
|
|
18
|
-
directoryId: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@IsString()
|
|
22
|
-
@Matches(regexUuidV4,
|
|
23
|
-
{
|
|
24
|
-
message: 'directoryId must be a valid UUID v4',
|
|
25
|
-
})
|
|
26
|
-
ownerDirectoryId: string;
|
|
27
|
-
|
|
28
|
-
@IsString()
|
|
29
|
-
@Matches(regexUuidV4,
|
|
30
|
-
{
|
|
31
|
-
message: 'peopleId must be a valid UUID v4',
|
|
32
|
-
})
|
|
33
|
-
peopleId: string;
|
|
34
|
-
|
|
35
|
-
@IsEnum(AccountLevelEnum)
|
|
36
|
-
accountLevel: AccountLevelEnum;
|
|
37
|
-
|
|
38
|
-
@IsEnum(TypeOfDirectoryId)
|
|
39
|
-
typeOfDirectoryId: string;
|
|
40
|
-
|
|
41
|
-
@IsString()
|
|
42
|
-
firstName: string;
|
|
43
|
-
|
|
44
|
-
@IsString()
|
|
45
|
-
lastName: string;
|
|
46
|
-
|
|
47
|
-
@IsPhoneNumberFiado()
|
|
48
|
-
phoneNumber: string;
|
|
49
|
-
|
|
50
|
-
@ValidateNested()
|
|
51
|
-
address: AddressResponse;
|
|
52
|
-
|
|
53
|
-
@IsEmail()
|
|
54
|
-
email: string;
|
|
55
|
-
|
|
56
|
-
@IsDateString()
|
|
57
|
-
dob: string;
|
|
58
|
-
|
|
59
|
-
@IsString()
|
|
60
|
-
@Length(1, 30)
|
|
61
|
-
documentNumber: string;
|
|
62
|
-
|
|
63
|
-
@IsString()
|
|
64
|
-
@Length(1, 30)
|
|
65
|
-
documentType: string;
|
|
66
|
-
|
|
67
|
-
@IsEnum(SexDocument)
|
|
68
|
-
gender: SexDocument;
|
|
69
|
-
|
|
70
|
-
@IsEnum(CountryId)
|
|
71
|
-
countryId: CountryId;
|
|
72
|
-
|
|
73
|
-
@IsEnum(Profile)
|
|
74
|
-
userProfile: Profile;
|
|
75
|
-
}
|
|
1
|
+
import { IsDateString, IsEmail, IsEnum, IsString, Length, Matches, ValidateNested } from 'class-validator';
|
|
2
|
+
import { AddressResponse } from "../../address";
|
|
3
|
+
import { CountryId } from "../../country";
|
|
4
|
+
import { regexUuidV4 } from '../../helpers/constans/regex';
|
|
5
|
+
import { TypeOfDirectoryId } from '../../directory';
|
|
6
|
+
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
7
|
+
import { SexDocument } from '../../identity';
|
|
8
|
+
import { Profile } from "../../directory/enums/Profile";
|
|
9
|
+
import {AccountLevelEnum} from "../enums/AccountLevelEnum";
|
|
10
|
+
|
|
11
|
+
export class AccountCreateRequest {
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@Matches(regexUuidV4,
|
|
15
|
+
{
|
|
16
|
+
message: 'directoryId must be a valid UUID v4',
|
|
17
|
+
})
|
|
18
|
+
directoryId: string;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@IsString()
|
|
22
|
+
@Matches(regexUuidV4,
|
|
23
|
+
{
|
|
24
|
+
message: 'directoryId must be a valid UUID v4',
|
|
25
|
+
})
|
|
26
|
+
ownerDirectoryId: string;
|
|
27
|
+
|
|
28
|
+
@IsString()
|
|
29
|
+
@Matches(regexUuidV4,
|
|
30
|
+
{
|
|
31
|
+
message: 'peopleId must be a valid UUID v4',
|
|
32
|
+
})
|
|
33
|
+
peopleId: string;
|
|
34
|
+
|
|
35
|
+
@IsEnum(AccountLevelEnum)
|
|
36
|
+
accountLevel: AccountLevelEnum;
|
|
37
|
+
|
|
38
|
+
@IsEnum(TypeOfDirectoryId)
|
|
39
|
+
typeOfDirectoryId: string;
|
|
40
|
+
|
|
41
|
+
@IsString()
|
|
42
|
+
firstName: string;
|
|
43
|
+
|
|
44
|
+
@IsString()
|
|
45
|
+
lastName: string;
|
|
46
|
+
|
|
47
|
+
@IsPhoneNumberFiado()
|
|
48
|
+
phoneNumber: string;
|
|
49
|
+
|
|
50
|
+
@ValidateNested()
|
|
51
|
+
address: AddressResponse;
|
|
52
|
+
|
|
53
|
+
@IsEmail()
|
|
54
|
+
email: string;
|
|
55
|
+
|
|
56
|
+
@IsDateString()
|
|
57
|
+
dob: string;
|
|
58
|
+
|
|
59
|
+
@IsString()
|
|
60
|
+
@Length(1, 30)
|
|
61
|
+
documentNumber: string;
|
|
62
|
+
|
|
63
|
+
@IsString()
|
|
64
|
+
@Length(1, 30)
|
|
65
|
+
documentType: string;
|
|
66
|
+
|
|
67
|
+
@IsEnum(SexDocument)
|
|
68
|
+
gender: SexDocument;
|
|
69
|
+
|
|
70
|
+
@IsEnum(CountryId)
|
|
71
|
+
countryId: CountryId;
|
|
72
|
+
|
|
73
|
+
@IsEnum(Profile)
|
|
74
|
+
userProfile: Profile;
|
|
75
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class AccountCreateResponse{
|
|
2
|
-
id: string;
|
|
3
|
-
externalId: string;
|
|
4
|
-
externalUserId: string;
|
|
5
|
-
directoryId:string;
|
|
6
|
-
typeOfDirectoryId:string
|
|
7
|
-
countryId:string
|
|
1
|
+
export class AccountCreateResponse{
|
|
2
|
+
id: string;
|
|
3
|
+
externalId: string;
|
|
4
|
+
externalUserId: string;
|
|
5
|
+
directoryId:string;
|
|
6
|
+
typeOfDirectoryId:string
|
|
7
|
+
countryId:string
|
|
8
8
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {IsEnum, IsNumber, IsString, Matches} from "class-validator";
|
|
2
|
+
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
|
+
import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
|
|
4
|
+
|
|
5
|
+
export default class AccountInfo {
|
|
6
|
+
@IsString()
|
|
7
|
+
@Matches(regexUuidV4,
|
|
8
|
+
{
|
|
9
|
+
message: 'directoryId must be a valid UUID v4',
|
|
10
|
+
})
|
|
11
|
+
id: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@Matches(regexUuidV4,
|
|
15
|
+
{
|
|
16
|
+
message: 'directoryId must be a valid UUID v4',
|
|
17
|
+
})
|
|
18
|
+
directoryId: string;
|
|
19
|
+
|
|
20
|
+
@IsString()
|
|
21
|
+
currencyId: string;
|
|
22
|
+
|
|
23
|
+
@IsNumber()
|
|
24
|
+
currentBalance: number;
|
|
25
|
+
|
|
26
|
+
@IsNumber()
|
|
27
|
+
availableBalance: number;
|
|
28
|
+
|
|
29
|
+
@IsNumber()
|
|
30
|
+
lockedBalance: number;
|
|
31
|
+
|
|
32
|
+
@IsString()
|
|
33
|
+
accountNumber: string;
|
|
34
|
+
|
|
35
|
+
@IsString()
|
|
36
|
+
routingNumber: string;
|
|
37
|
+
|
|
38
|
+
@IsEnum(AccountEntityStatusEnum)
|
|
39
|
+
status: AccountEntityStatusEnum;
|
|
40
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export class BankAccountExternalAddress {
|
|
2
|
-
// TERN
|
|
3
|
-
address1?: string;
|
|
4
|
-
address2?: string;
|
|
5
|
-
province?: string;
|
|
6
|
-
postalCode?: string;
|
|
7
|
-
// POMELO
|
|
8
|
-
streetName?: string;
|
|
9
|
-
streetNumber?: string;
|
|
10
|
-
apartment?: string;
|
|
11
|
-
region?: string;
|
|
12
|
-
zipCode?: string;
|
|
13
|
-
neighborhood?: string;
|
|
14
|
-
additionalInfo?: string;
|
|
15
|
-
// COMMON PARAMETERS
|
|
16
|
-
city?: string;
|
|
17
|
-
country?: string;
|
|
1
|
+
export class BankAccountExternalAddress {
|
|
2
|
+
// TERN
|
|
3
|
+
address1?: string;
|
|
4
|
+
address2?: string;
|
|
5
|
+
province?: string;
|
|
6
|
+
postalCode?: string;
|
|
7
|
+
// POMELO
|
|
8
|
+
streetName?: string;
|
|
9
|
+
streetNumber?: string;
|
|
10
|
+
apartment?: string;
|
|
11
|
+
region?: string;
|
|
12
|
+
zipCode?: string;
|
|
13
|
+
neighborhood?: string;
|
|
14
|
+
additionalInfo?: string;
|
|
15
|
+
// COMMON PARAMETERS
|
|
16
|
+
city?: string;
|
|
17
|
+
country?: string;
|
|
18
18
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BankAccountTypeEnum } from "../enums/BankAccountTypeEnum";
|
|
2
|
-
|
|
3
|
-
export class CreateBankAccountRequest {
|
|
4
|
-
externalClientId?: string;
|
|
5
|
-
externalUserId?: string;
|
|
6
|
-
name: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
type: BankAccountTypeEnum;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { BankAccountTypeEnum } from "../enums/BankAccountTypeEnum";
|
|
2
|
+
|
|
3
|
+
export class CreateBankAccountRequest {
|
|
4
|
+
externalClientId?: string;
|
|
5
|
+
externalUserId?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
type: BankAccountTypeEnum;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Provider } from "../../provider";
|
|
2
|
-
|
|
3
|
-
export class CreateBankAccountResponse {
|
|
4
|
-
externalAccountId: string
|
|
5
|
-
provider: Provider
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Provider } from "../../provider";
|
|
2
|
+
|
|
3
|
+
export class CreateBankAccountResponse {
|
|
4
|
+
externalAccountId: string
|
|
5
|
+
provider: Provider
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {AddressBase} from "../../address/dtos/AddressBase";
|
|
2
|
-
|
|
3
|
-
export class CreateBankAccountUserRequest {
|
|
4
|
-
directoryId: string;
|
|
5
|
-
typeOfDirectoryId: string;
|
|
6
|
-
firstName: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
phoneNumber: string;
|
|
9
|
-
address: AddressBase;
|
|
10
|
-
email: string;
|
|
11
|
-
dob: string;
|
|
12
|
-
documentNumber: string;
|
|
13
|
-
documentType?: string;
|
|
14
|
-
gender?: "M" | "F";
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import {AddressBase} from "../../address/dtos/AddressBase";
|
|
2
|
+
|
|
3
|
+
export class CreateBankAccountUserRequest {
|
|
4
|
+
directoryId: string;
|
|
5
|
+
typeOfDirectoryId: string;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
address: AddressBase;
|
|
10
|
+
email: string;
|
|
11
|
+
dob: string;
|
|
12
|
+
documentNumber: string;
|
|
13
|
+
documentType?: string;
|
|
14
|
+
gender?: "M" | "F";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Provider } from "../../provider";
|
|
2
|
-
|
|
3
|
-
export class CreateBankAccountUserResponse {
|
|
4
|
-
externalUserId:string
|
|
5
|
-
externalAccountId?:string
|
|
6
|
-
provider:Provider
|
|
7
|
-
accountNumber?:string
|
|
8
|
-
routingNumber?:string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { Provider } from "../../provider";
|
|
2
|
+
|
|
3
|
+
export class CreateBankAccountUserResponse {
|
|
4
|
+
externalUserId:string
|
|
5
|
+
externalAccountId?:string
|
|
6
|
+
provider:Provider
|
|
7
|
+
accountNumber?:string
|
|
8
|
+
routingNumber?:string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {IsNumber, IsString, Matches} from "class-validator";
|
|
2
|
+
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
|
+
|
|
4
|
+
export class GetAccountBalanceResponse {
|
|
5
|
+
@IsString()
|
|
6
|
+
@Matches(regexUuidV4,
|
|
7
|
+
{
|
|
8
|
+
message: 'directoryId must be a valid UUID v4',
|
|
9
|
+
})
|
|
10
|
+
id: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@Matches(regexUuidV4,
|
|
14
|
+
{
|
|
15
|
+
message: 'directoryId must be a valid UUID v4',
|
|
16
|
+
})
|
|
17
|
+
directoryId: string;
|
|
18
|
+
|
|
19
|
+
@IsString()
|
|
20
|
+
currencyId: string;
|
|
21
|
+
|
|
22
|
+
@IsNumber()
|
|
23
|
+
currentBalance: number;
|
|
24
|
+
|
|
25
|
+
@IsNumber()
|
|
26
|
+
availableBalance: number;
|
|
27
|
+
|
|
28
|
+
@IsNumber()
|
|
29
|
+
lockedBalance: number;
|
|
30
|
+
|
|
31
|
+
@IsNumber()
|
|
32
|
+
unsettledBalance: number;
|
|
33
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class GetBankAccountRequest {
|
|
2
|
-
externalAccountId: string;
|
|
3
|
-
accountType?: "USER" | "BUSINESS";
|
|
1
|
+
export class GetBankAccountRequest {
|
|
2
|
+
externalAccountId: string;
|
|
3
|
+
accountType?: "USER" | "BUSINESS";
|
|
4
4
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {BankAccountTypeEnum} from "../enums/BankAccountTypeEnum";
|
|
2
|
-
import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
|
|
3
|
-
import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
|
|
4
|
-
|
|
5
|
-
export class GetBankAccountResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
businessId: string;
|
|
8
|
-
userId: string;
|
|
9
|
-
name: string;
|
|
10
|
-
accountNumber: string;
|
|
11
|
-
routingNumber: string;
|
|
12
|
-
accountType: BankAccountTypeEnum;
|
|
13
|
-
active: boolean;
|
|
14
|
-
isPrimary: boolean;
|
|
15
|
-
createdDate: string;
|
|
16
|
-
updatedDate: string;
|
|
17
|
-
deletedDate: string;
|
|
18
|
-
updatedBy: string;
|
|
19
|
-
balance: number;
|
|
20
|
-
address?: BankAccountExternalAddress;
|
|
21
|
-
kybStatus?: string;
|
|
22
|
-
statusName?: AccountEntityStatusEnum;
|
|
1
|
+
import {BankAccountTypeEnum} from "../enums/BankAccountTypeEnum";
|
|
2
|
+
import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
|
|
3
|
+
import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
|
|
4
|
+
|
|
5
|
+
export class GetBankAccountResponse {
|
|
6
|
+
id: string;
|
|
7
|
+
businessId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
accountNumber: string;
|
|
11
|
+
routingNumber: string;
|
|
12
|
+
accountType: BankAccountTypeEnum;
|
|
13
|
+
active: boolean;
|
|
14
|
+
isPrimary: boolean;
|
|
15
|
+
createdDate: string;
|
|
16
|
+
updatedDate: string;
|
|
17
|
+
deletedDate: string;
|
|
18
|
+
updatedBy: string;
|
|
19
|
+
balance: number;
|
|
20
|
+
address?: BankAccountExternalAddress;
|
|
21
|
+
kybStatus?: string;
|
|
22
|
+
statusName?: AccountEntityStatusEnum;
|
|
23
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export class GetBankAccountSensitiveInformationRequest {
|
|
3
|
-
externalCardId: string;
|
|
4
|
-
externalAccountId?: string;
|
|
5
|
-
externalUserId?: string;
|
|
1
|
+
|
|
2
|
+
export class GetBankAccountSensitiveInformationRequest {
|
|
3
|
+
externalCardId: string;
|
|
4
|
+
externalAccountId?: string;
|
|
5
|
+
externalUserId?: string;
|
|
6
6
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export class GetBankAccountSensitiveInformationResponse {
|
|
3
|
-
name:string
|
|
4
|
-
cvv :string
|
|
5
|
-
expirationYear:string
|
|
6
|
-
expirationMonth:string
|
|
7
|
-
pin?:string
|
|
8
|
-
pan: string
|
|
1
|
+
|
|
2
|
+
export class GetBankAccountSensitiveInformationResponse {
|
|
3
|
+
name:string
|
|
4
|
+
cvv :string
|
|
5
|
+
expirationYear:string
|
|
6
|
+
expirationMonth:string
|
|
7
|
+
pin?:string
|
|
8
|
+
pan: string
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export class GetBankAccountUserRequest {
|
|
2
|
-
externalUserId: string;
|
|
1
|
+
export class GetBankAccountUserRequest {
|
|
2
|
+
externalUserId: string;
|
|
3
3
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
|
|
2
|
-
import {UserEntityStatusEnum} from "../enums/UserEntityStatusEnum";
|
|
3
|
-
import {SexDocument, TypeOfDocument} from "../../identity";
|
|
4
|
-
import {Country} from "../../country";
|
|
5
|
-
|
|
6
|
-
export class GetBankAccountUserResponse {
|
|
7
|
-
id: string;
|
|
8
|
-
typeOfUserId: string;
|
|
9
|
-
dob: string;
|
|
10
|
-
name: string;
|
|
11
|
-
lastName: string;
|
|
12
|
-
phoneNumber: string;
|
|
13
|
-
email: string;
|
|
14
|
-
address?: BankAccountExternalAddress;
|
|
15
|
-
status: UserEntityStatusEnum;
|
|
16
|
-
sex?: SexDocument;
|
|
17
|
-
documentNumber: string;
|
|
18
|
-
typeOfDocumentId?: TypeOfDocument;
|
|
19
|
-
countryId: Country;
|
|
20
|
-
userAccountIds?: string[];
|
|
21
|
-
createdDate?: string;
|
|
22
|
-
updatedDate?: string;
|
|
23
|
-
deletedDate?: string;
|
|
24
|
-
updatedBy?: string;
|
|
25
|
-
accountIds?: number[];
|
|
1
|
+
import {BankAccountExternalAddress} from "./BankAccountExternalAddress";
|
|
2
|
+
import {UserEntityStatusEnum} from "../enums/UserEntityStatusEnum";
|
|
3
|
+
import {SexDocument, TypeOfDocument} from "../../identity";
|
|
4
|
+
import {Country} from "../../country";
|
|
5
|
+
|
|
6
|
+
export class GetBankAccountUserResponse {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOfUserId: string;
|
|
9
|
+
dob: string;
|
|
10
|
+
name: string;
|
|
11
|
+
lastName: string;
|
|
12
|
+
phoneNumber: string;
|
|
13
|
+
email: string;
|
|
14
|
+
address?: BankAccountExternalAddress;
|
|
15
|
+
status: UserEntityStatusEnum;
|
|
16
|
+
sex?: SexDocument;
|
|
17
|
+
documentNumber: string;
|
|
18
|
+
typeOfDocumentId?: TypeOfDocument;
|
|
19
|
+
countryId: Country;
|
|
20
|
+
userAccountIds?: string[];
|
|
21
|
+
createdDate?: string;
|
|
22
|
+
updatedDate?: string;
|
|
23
|
+
deletedDate?: string;
|
|
24
|
+
updatedBy?: string;
|
|
25
|
+
accountIds?: number[];
|
|
26
26
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {IsNumber, IsString, Matches} from "class-validator";
|
|
2
|
+
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
|
+
|
|
4
|
+
export class GetPocketBalanceResponse {
|
|
5
|
+
@IsString()
|
|
6
|
+
@Matches(regexUuidV4,
|
|
7
|
+
{
|
|
8
|
+
message: 'directoryId must be a valid UUID v4',
|
|
9
|
+
})
|
|
10
|
+
id: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@Matches(regexUuidV4,
|
|
14
|
+
{
|
|
15
|
+
message: 'directoryId must be a valid UUID v4',
|
|
16
|
+
})
|
|
17
|
+
accountId: string;
|
|
18
|
+
|
|
19
|
+
@IsString()
|
|
20
|
+
@Matches(regexUuidV4,
|
|
21
|
+
{
|
|
22
|
+
message: 'directoryId must be a valid UUID v4',
|
|
23
|
+
})
|
|
24
|
+
ownerDirectoryId: string;
|
|
25
|
+
|
|
26
|
+
@IsString()
|
|
27
|
+
@Matches(regexUuidV4,
|
|
28
|
+
{
|
|
29
|
+
message: 'directoryId must be a valid UUID v4',
|
|
30
|
+
})
|
|
31
|
+
beneficiaryDirectoryId: string;
|
|
32
|
+
|
|
33
|
+
@IsString()
|
|
34
|
+
currencyId: string;
|
|
35
|
+
|
|
36
|
+
@IsNumber()
|
|
37
|
+
currentBalance: number;
|
|
38
|
+
|
|
39
|
+
@IsNumber()
|
|
40
|
+
availableBalance: number;
|
|
41
|
+
|
|
42
|
+
@IsNumber()
|
|
43
|
+
lockedBalance: number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {IsBoolean, IsNumber, IsString, Matches} from "class-validator";
|
|
2
|
+
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
|
+
|
|
4
|
+
export default class PocketItem {
|
|
5
|
+
@IsString()
|
|
6
|
+
@Matches(regexUuidV4,
|
|
7
|
+
{
|
|
8
|
+
message: 'directoryId must be a valid UUID v4',
|
|
9
|
+
})
|
|
10
|
+
id: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@Matches(regexUuidV4,
|
|
14
|
+
{
|
|
15
|
+
message: 'directoryId must be a valid UUID v4',
|
|
16
|
+
})
|
|
17
|
+
ownerDirectoryId: string;
|
|
18
|
+
|
|
19
|
+
@IsString()
|
|
20
|
+
@Matches(regexUuidV4,
|
|
21
|
+
{
|
|
22
|
+
message: 'directoryId must be a valid UUID v4',
|
|
23
|
+
})
|
|
24
|
+
beneficiaryDirectoryId: string;
|
|
25
|
+
|
|
26
|
+
@IsBoolean()
|
|
27
|
+
isOwnerPocket: boolean;
|
|
28
|
+
|
|
29
|
+
@IsString()
|
|
30
|
+
phoneNumber: string;
|
|
31
|
+
|
|
32
|
+
@IsString()
|
|
33
|
+
name: string;
|
|
34
|
+
|
|
35
|
+
@IsString()
|
|
36
|
+
lastName: string;
|
|
37
|
+
|
|
38
|
+
@IsNumber()
|
|
39
|
+
availableBalance: number;
|
|
40
|
+
|
|
41
|
+
@IsNumber()
|
|
42
|
+
lockedBalance: number;
|
|
43
|
+
|
|
44
|
+
@IsNumber()
|
|
45
|
+
unsettledBalance: number;
|
|
46
|
+
}
|