@fiado/type-kit 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -70
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
- package/bin/header/TokenPayload.d.ts +1 -0
- package/bin/notificationMessages/enums/NotificationId.d.ts +4 -0
- package/bin/notificationMessages/enums/NotificationId.js +8 -0
- package/bin/notificationMessages/index.d.ts +1 -0
- package/bin/notificationMessages/index.js +1 -0
- package/package.json +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +44 -44
- package/src/account/dtos/AccountCreateResponse.ts +5 -5
- package/src/account/dtos/AccountResponse.ts +26 -26
- package/src/account/dtos/PocketCreateRequest.ts +18 -18
- package/src/account/dtos/PocketCreateResponse.ts +4 -4
- package/src/account/enums/AccountStatus.ts +6 -6
- package/src/account/index.ts +16 -16
- 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/Geometry.ts +4 -4
- 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 +12 -12
- 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 +41 -41
- package/src/card/dtos/CardCreateRequest.ts +141 -141
- package/src/card/dtos/CardResponse.ts +4 -4
- package/src/card/dtos/CardUpdateRequest.ts +13 -13
- package/src/card/enums/Brand.ts +7 -7
- package/src/card/enums/CardIssuanceStatus.ts +5 -5
- package/src/card/enums/CardType.ts +4 -4
- package/src/card/enums/CardUpdateKey.ts +4 -4
- package/src/card/enums/IssuanceType.ts +5 -5
- package/src/card/enums/OwnershipType.ts +3 -3
- package/src/card/enums/Status.ts +5 -5
- package/src/card/enums/UpdateKey.ts +5 -5
- package/src/card/index.ts +19 -19
- 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 +17 -17
- 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/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/group/dtos/GroupAddDirectoryRequest.ts +27 -27
- package/src/group/dtos/GroupCreateRequest.ts +48 -48
- 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 +27 -27
- 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 -16
- 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/TypeOfDocument.ts +11 -11
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
- package/src/identity/enums/SexDocument.ts +6 -6
- package/src/identity/index.ts +11 -11
- package/src/index.ts +20 -20
- 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 +11 -0
- package/src/notificationMessages/index.ts +6 -3
- package/src/provider/enums/Provider.ts +5 -5
- package/src/provider/index.ts +1 -1
- 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/.idea/aws.xml +0 -11
- package/.idea/fiado-type-kit.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
import { App } from '../../app/enums/App';
|
|
3
|
-
import { SexDocument } from '../enums/SexDocument';
|
|
4
|
-
import { IdentificationDocument } from './IdentificationDocument';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export class PeopleResponse {
|
|
8
|
-
|
|
9
|
-
id: string;
|
|
10
|
-
createDate: string;
|
|
11
|
-
lastUpdateDate: string;
|
|
12
|
-
creationMethod: App;
|
|
13
|
-
indexName: string;
|
|
14
|
-
preferredName: string;
|
|
15
|
-
usSuffix: string | null;
|
|
16
|
-
usLastNames: string | null;
|
|
17
|
-
usNames: string | null;
|
|
18
|
-
latNames: string | null;
|
|
19
|
-
latLastNamePaternal: string | null;
|
|
20
|
-
latLastNameMaternal: string | null;
|
|
21
|
-
aliasNames: string[] | null;
|
|
22
|
-
preferredPronoun: string | null;
|
|
23
|
-
SSN_ITIN: string | null;
|
|
24
|
-
rfc: string | null;
|
|
25
|
-
curp: string | null;
|
|
26
|
-
passportNumber: string | null;
|
|
27
|
-
countryOfPassport: string | null;
|
|
28
|
-
documents: IdentificationDocument[] | null;
|
|
29
|
-
countryOfBirth: string | null;
|
|
30
|
-
dateOfBirth: string | null;
|
|
31
|
-
stateOfBirth: string | null;
|
|
32
|
-
nationalities: string[] | null;
|
|
33
|
-
docSex: SexDocument | null;
|
|
34
|
-
internalEmail: string | null;
|
|
35
|
-
occupation: string | null;
|
|
36
|
-
incomeSource: string | null;
|
|
37
|
-
operationId: string | null;
|
|
38
|
-
tenantId: string | null;
|
|
39
|
-
photoOfpersonImageName: string | null;
|
|
40
|
-
videoOfPersonImageName: string | null;
|
|
41
|
-
USA_DebitAccount: boolean;
|
|
42
|
-
MEX_DebitAccount: boolean;
|
|
43
|
-
MEX_CreditClient: boolean;
|
|
44
|
-
MEX_CreditAdditional: boolean;
|
|
45
|
-
magicNumber: boolean;
|
|
46
|
-
USA_UploadDocument: boolean;
|
|
47
|
-
MEX_UploadDocument: boolean;
|
|
48
|
-
videoSelfieVerified: boolean;
|
|
49
|
-
MEX_ValidDocument: string;
|
|
50
|
-
USA_ValidDocument: string;
|
|
51
|
-
USA_FacematchVerified: boolean | null;
|
|
52
|
-
MEX_FacematchVerified: boolean | null;
|
|
53
|
-
fiadoListApproved: boolean | null;
|
|
54
|
-
ofacListApproved: boolean | null;
|
|
55
|
-
cnbvListApproved: boolean | null;
|
|
56
|
-
blackListApproved: boolean | null;
|
|
57
|
-
whiteList: boolean | null;
|
|
58
|
-
hasOwner: boolean;
|
|
59
|
-
older18: boolean | null;
|
|
60
|
-
USA_Address: boolean;
|
|
61
|
-
MEX_Address: boolean;
|
|
62
|
-
COL_Address: boolean;
|
|
63
|
-
GTM_Address: boolean;
|
|
64
|
-
HND_Address: boolean;
|
|
65
|
-
CRI_Address: boolean;
|
|
66
|
-
PER_Address: boolean;
|
|
67
|
-
MEX_ProofAddress: boolean;
|
|
68
|
-
MEX_SendWish: boolean;
|
|
69
|
-
COL_SendWish: boolean;
|
|
70
|
-
GTM_SendWish: boolean;
|
|
71
|
-
HND_SendWish: boolean;
|
|
72
|
-
CRI_SendWish: boolean;
|
|
73
|
-
PER_SendWish: boolean;
|
|
74
|
-
USA_DebitAccountWish: boolean;
|
|
75
|
-
MEX_DebitAccountWish: boolean;
|
|
76
|
-
MEX_CreditAdditionalWish: boolean;
|
|
77
|
-
MEX_CreditClientWish: boolean;
|
|
78
|
-
SSN_ITINRequired: boolean | null;
|
|
79
|
-
|
|
80
|
-
}
|
|
1
|
+
|
|
2
|
+
import { App } from '../../app/enums/App';
|
|
3
|
+
import { SexDocument } from '../enums/SexDocument';
|
|
4
|
+
import { IdentificationDocument } from './IdentificationDocument';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class PeopleResponse {
|
|
8
|
+
|
|
9
|
+
id: string;
|
|
10
|
+
createDate: string;
|
|
11
|
+
lastUpdateDate: string;
|
|
12
|
+
creationMethod: App;
|
|
13
|
+
indexName: string;
|
|
14
|
+
preferredName: string;
|
|
15
|
+
usSuffix: string | null;
|
|
16
|
+
usLastNames: string | null;
|
|
17
|
+
usNames: string | null;
|
|
18
|
+
latNames: string | null;
|
|
19
|
+
latLastNamePaternal: string | null;
|
|
20
|
+
latLastNameMaternal: string | null;
|
|
21
|
+
aliasNames: string[] | null;
|
|
22
|
+
preferredPronoun: string | null;
|
|
23
|
+
SSN_ITIN: string | null;
|
|
24
|
+
rfc: string | null;
|
|
25
|
+
curp: string | null;
|
|
26
|
+
passportNumber: string | null;
|
|
27
|
+
countryOfPassport: string | null;
|
|
28
|
+
documents: IdentificationDocument[] | null;
|
|
29
|
+
countryOfBirth: string | null;
|
|
30
|
+
dateOfBirth: string | null;
|
|
31
|
+
stateOfBirth: string | null;
|
|
32
|
+
nationalities: string[] | null;
|
|
33
|
+
docSex: SexDocument | null;
|
|
34
|
+
internalEmail: string | null;
|
|
35
|
+
occupation: string | null;
|
|
36
|
+
incomeSource: string | null;
|
|
37
|
+
operationId: string | null;
|
|
38
|
+
tenantId: string | null;
|
|
39
|
+
photoOfpersonImageName: string | null;
|
|
40
|
+
videoOfPersonImageName: string | null;
|
|
41
|
+
USA_DebitAccount: boolean;
|
|
42
|
+
MEX_DebitAccount: boolean;
|
|
43
|
+
MEX_CreditClient: boolean;
|
|
44
|
+
MEX_CreditAdditional: boolean;
|
|
45
|
+
magicNumber: boolean;
|
|
46
|
+
USA_UploadDocument: boolean;
|
|
47
|
+
MEX_UploadDocument: boolean;
|
|
48
|
+
videoSelfieVerified: boolean;
|
|
49
|
+
MEX_ValidDocument: string;
|
|
50
|
+
USA_ValidDocument: string;
|
|
51
|
+
USA_FacematchVerified: boolean | null;
|
|
52
|
+
MEX_FacematchVerified: boolean | null;
|
|
53
|
+
fiadoListApproved: boolean | null;
|
|
54
|
+
ofacListApproved: boolean | null;
|
|
55
|
+
cnbvListApproved: boolean | null;
|
|
56
|
+
blackListApproved: boolean | null;
|
|
57
|
+
whiteList: boolean | null;
|
|
58
|
+
hasOwner: boolean;
|
|
59
|
+
older18: boolean | null;
|
|
60
|
+
USA_Address: boolean;
|
|
61
|
+
MEX_Address: boolean;
|
|
62
|
+
COL_Address: boolean;
|
|
63
|
+
GTM_Address: boolean;
|
|
64
|
+
HND_Address: boolean;
|
|
65
|
+
CRI_Address: boolean;
|
|
66
|
+
PER_Address: boolean;
|
|
67
|
+
MEX_ProofAddress: boolean;
|
|
68
|
+
MEX_SendWish: boolean;
|
|
69
|
+
COL_SendWish: boolean;
|
|
70
|
+
GTM_SendWish: boolean;
|
|
71
|
+
HND_SendWish: boolean;
|
|
72
|
+
CRI_SendWish: boolean;
|
|
73
|
+
PER_SendWish: boolean;
|
|
74
|
+
USA_DebitAccountWish: boolean;
|
|
75
|
+
MEX_DebitAccountWish: boolean;
|
|
76
|
+
MEX_CreditAdditionalWish: boolean;
|
|
77
|
+
MEX_CreditClientWish: boolean;
|
|
78
|
+
SSN_ITINRequired: boolean | null;
|
|
79
|
+
|
|
80
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class TypeOfDocument {
|
|
4
|
-
id: string;
|
|
5
|
-
countryId: string;
|
|
6
|
-
isEnabled: boolean;
|
|
7
|
-
name: string;
|
|
8
|
-
side: number;
|
|
9
|
-
order: number;
|
|
10
|
-
subtype: string;
|
|
11
|
-
type: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class TypeOfDocument {
|
|
4
|
+
id: string;
|
|
5
|
+
countryId: string;
|
|
6
|
+
isEnabled: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
side: number;
|
|
9
|
+
order: number;
|
|
10
|
+
subtype: string;
|
|
11
|
+
type: string;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum IdentificationDocumentStatus {
|
|
4
|
-
VERIFIED = "VERIFIED",
|
|
5
|
-
REJECTED = "REJECTED",
|
|
6
|
-
UNVERIFIED = "UNVERIFIED"
|
|
7
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum IdentificationDocumentStatus {
|
|
4
|
+
VERIFIED = "VERIFIED",
|
|
5
|
+
REJECTED = "REJECTED",
|
|
6
|
+
UNVERIFIED = "UNVERIFIED"
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum SexDocument {
|
|
4
|
-
M = "M",
|
|
5
|
-
F = "F"
|
|
6
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum SexDocument {
|
|
4
|
+
M = "M",
|
|
5
|
+
F = "F"
|
|
6
|
+
}
|
package/src/identity/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/IdentificationDocument'
|
|
4
|
-
export * from './dtos/PeopleCreateRequest';
|
|
5
|
-
export * from './dtos/PeopleResponse';
|
|
6
|
-
export * from './dtos/TypeOfDocument';
|
|
7
|
-
|
|
8
|
-
//enums
|
|
9
|
-
export * from './enums/IdentificationDocumentStatus';
|
|
10
|
-
export * from './enums/SexDocument';
|
|
11
|
-
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/IdentificationDocument'
|
|
4
|
+
export * from './dtos/PeopleCreateRequest';
|
|
5
|
+
export * from './dtos/PeopleResponse';
|
|
6
|
+
export * from './dtos/TypeOfDocument';
|
|
7
|
+
|
|
8
|
+
//enums
|
|
9
|
+
export * from './enums/IdentificationDocumentStatus';
|
|
10
|
+
export * from './enums/SexDocument';
|
|
11
|
+
|
package/src/index.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * as Account from './account';
|
|
2
|
-
export * as Address from './address';
|
|
3
|
-
export * as App from './app';
|
|
4
|
-
export * as Authentication from './authentication';
|
|
5
|
-
export * as Card from './card';
|
|
6
|
-
export * as Country from './country';
|
|
7
|
-
export * as Currency from './currency';
|
|
8
|
-
export * as Directory from './directory';
|
|
9
|
-
export * as ExchangeRate from './exchangeRate';
|
|
10
|
-
export * as File from './identity';
|
|
11
|
-
export * as Group from './group';
|
|
12
|
-
export * as Identity from './provider';
|
|
13
|
-
export * as Header from './header';
|
|
14
|
-
export * as ServicePayment from './servicePayment';
|
|
15
|
-
export * as NotificationMessages from './notificationMessages';
|
|
16
|
-
export * as SessionActivity from './sessionActivity';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
export * as Account from './account';
|
|
2
|
+
export * as Address from './address';
|
|
3
|
+
export * as App from './app';
|
|
4
|
+
export * as Authentication from './authentication';
|
|
5
|
+
export * as Card from './card';
|
|
6
|
+
export * as Country from './country';
|
|
7
|
+
export * as Currency from './currency';
|
|
8
|
+
export * as Directory from './directory';
|
|
9
|
+
export * as ExchangeRate from './exchangeRate';
|
|
10
|
+
export * as File from './identity';
|
|
11
|
+
export * as Group from './group';
|
|
12
|
+
export * as Identity from './provider';
|
|
13
|
+
export * as Header from './header';
|
|
14
|
+
export * as ServicePayment from './servicePayment';
|
|
15
|
+
export * as NotificationMessages from './notificationMessages';
|
|
16
|
+
export * as SessionActivity from './sessionActivity';
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {QueueMessageDestination} from "./QueueMessageDestination";
|
|
2
|
-
|
|
3
|
-
export class NotificationQueueMessageRequest {
|
|
4
|
-
templateId: string; // Nombre de la plantilla de mensaje a enviar
|
|
5
|
-
broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
|
|
6
|
-
destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
|
|
7
|
-
data?: any; // Informacion adicional a enviar al destino
|
|
1
|
+
import {QueueMessageDestination} from "./QueueMessageDestination";
|
|
2
|
+
|
|
3
|
+
export class NotificationQueueMessageRequest {
|
|
4
|
+
templateId: string; // Nombre de la plantilla de mensaje a enviar
|
|
5
|
+
broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
|
|
6
|
+
destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
|
|
7
|
+
data?: any; // Informacion adicional a enviar al destino
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
|
|
2
|
-
|
|
3
|
-
export class QueueMessageDestination {
|
|
4
|
-
directoryId: string;
|
|
5
|
-
templateVariables?: QueueMessageVariableValues[];
|
|
6
|
-
data?: any;
|
|
1
|
+
import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
|
|
2
|
+
|
|
3
|
+
export class QueueMessageDestination {
|
|
4
|
+
directoryId: string;
|
|
5
|
+
templateVariables?: QueueMessageVariableValues[];
|
|
6
|
+
data?: any;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class QueueMessageVariableValues {
|
|
2
|
-
key: string;
|
|
3
|
-
value: string;
|
|
1
|
+
export class QueueMessageVariableValues {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string;
|
|
4
4
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export * from './dtos/NotificationQueueMessageRequest';
|
|
2
|
-
export * from './dtos/QueueMessageDestination';
|
|
3
|
-
export * from './dtos/QueueMessageVariableValues';
|
|
1
|
+
export * from './dtos/NotificationQueueMessageRequest';
|
|
2
|
+
export * from './dtos/QueueMessageDestination';
|
|
3
|
+
export * from './dtos/QueueMessageVariableValues';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export * from "./enums/NotificationId";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum Provider {
|
|
4
|
-
TERN = 'TERN',
|
|
5
|
-
POMELO = 'POMELO'
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum Provider {
|
|
4
|
+
TERN = 'TERN',
|
|
5
|
+
POMELO = 'POMELO'
|
|
6
6
|
}
|
package/src/provider/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
export * from './enums/Provider';
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IsNotEmpty, Length, Min } from 'class-validator';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export class ServicePaymentRequest {
|
|
7
|
-
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
@Length(1, 50)
|
|
10
|
-
serviceId: string;
|
|
11
|
-
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
@Length(1, 100)
|
|
14
|
-
directoryId: string;
|
|
15
|
-
|
|
16
|
-
@IsNotEmpty()
|
|
17
|
-
@Length(1, 100)
|
|
18
|
-
reference: string;
|
|
19
|
-
|
|
20
|
-
@IsNotEmpty()
|
|
21
|
-
@Length(1, 50)
|
|
22
|
-
productId: string;
|
|
23
|
-
|
|
24
|
-
@IsNotEmpty()
|
|
25
|
-
@Min(0.01)
|
|
26
|
-
amount: number;
|
|
27
|
-
|
|
28
|
-
@IsNotEmpty()
|
|
29
|
-
@Length(1, 50)
|
|
30
|
-
transactionNumber: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsNotEmpty, Length, Min } from 'class-validator';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ServicePaymentRequest {
|
|
7
|
+
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
@Length(1, 50)
|
|
10
|
+
serviceId: string;
|
|
11
|
+
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
@Length(1, 100)
|
|
14
|
+
directoryId: string;
|
|
15
|
+
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
@Length(1, 100)
|
|
18
|
+
reference: string;
|
|
19
|
+
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
@Length(1, 50)
|
|
22
|
+
productId: string;
|
|
23
|
+
|
|
24
|
+
@IsNotEmpty()
|
|
25
|
+
@Min(0.01)
|
|
26
|
+
amount: number;
|
|
27
|
+
|
|
28
|
+
@IsNotEmpty()
|
|
29
|
+
@Length(1, 50)
|
|
30
|
+
transactionNumber: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {SessionActivityActionEnum} from "../enums/SessionActivityActionEnum";
|
|
2
|
-
import {SessionActivityActionOriginEnum} from "../enums/SessionActivityActionOriginEnum";
|
|
3
|
-
|
|
4
|
-
export class SessionActivityQueueMessageRequest {
|
|
5
|
-
id: string; // requestId de la peticion
|
|
6
|
-
sessionId: string; // Id de la sesion que realizo el request
|
|
7
|
-
operationName: string; // nombre de la operacion asociada al request
|
|
8
|
-
source: string; // Tabla|lambda|componente desde donde vino el mensaje
|
|
9
|
-
action: SessionActivityActionEnum; // Accion realizada
|
|
10
|
-
actionOrigin: SessionActivityActionOriginEnum; // Si la peticion fue realizada desde la APP o backoffice
|
|
1
|
+
import {SessionActivityActionEnum} from "../enums/SessionActivityActionEnum";
|
|
2
|
+
import {SessionActivityActionOriginEnum} from "../enums/SessionActivityActionOriginEnum";
|
|
3
|
+
|
|
4
|
+
export class SessionActivityQueueMessageRequest {
|
|
5
|
+
id: string; // requestId de la peticion
|
|
6
|
+
sessionId: string; // Id de la sesion que realizo el request
|
|
7
|
+
operationName: string; // nombre de la operacion asociada al request
|
|
8
|
+
source: string; // Tabla|lambda|componente desde donde vino el mensaje
|
|
9
|
+
action: SessionActivityActionEnum; // Accion realizada
|
|
10
|
+
actionOrigin: SessionActivityActionOriginEnum; // Si la peticion fue realizada desde la APP o backoffice
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export enum SessionActivityActionEnum {
|
|
2
|
-
"GET" = "GET",
|
|
3
|
-
"POST" = "POST",
|
|
4
|
-
"PUT" = "PUT",
|
|
5
|
-
"DELETE" = "DELETE",
|
|
6
|
-
"PATCH" = "PATCH",
|
|
7
|
-
"OPTIONS" = "OPTIONS"
|
|
1
|
+
export enum SessionActivityActionEnum {
|
|
2
|
+
"GET" = "GET",
|
|
3
|
+
"POST" = "POST",
|
|
4
|
+
"PUT" = "PUT",
|
|
5
|
+
"DELETE" = "DELETE",
|
|
6
|
+
"PATCH" = "PATCH",
|
|
7
|
+
"OPTIONS" = "OPTIONS"
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export enum SessionActivityActionOriginEnum {
|
|
2
|
-
MOBILE_APP = "USERS_APP",
|
|
3
|
-
BACKOFFICE = "BACKOFFICE",
|
|
4
|
-
UNKNOWN = "UNKNOWN"
|
|
1
|
+
export enum SessionActivityActionOriginEnum {
|
|
2
|
+
MOBILE_APP = "USERS_APP",
|
|
3
|
+
BACKOFFICE = "BACKOFFICE",
|
|
4
|
+
UNKNOWN = "UNKNOWN"
|
|
5
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './dtos/SessionActivityQueueMessageRequest';
|
|
2
|
-
export * from './enums/SessionActivityActionEnum';
|
|
1
|
+
export * from './dtos/SessionActivityQueueMessageRequest';
|
|
2
|
+
export * from './enums/SessionActivityActionEnum';
|
|
3
3
|
export * from './enums/SessionActivityActionOriginEnum';
|
package/.idea/aws.xml
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="accountSettings">
|
|
4
|
-
<option name="activeRegion" value="us-east-1" />
|
|
5
|
-
<option name="recentlyUsedRegions">
|
|
6
|
-
<list>
|
|
7
|
-
<option value="us-east-1" />
|
|
8
|
-
</list>
|
|
9
|
-
</option>
|
|
10
|
-
</component>
|
|
11
|
-
</project>
|
package/.idea/fiado-type-kit.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/fiado-type-kit.iml" filepath="$PROJECT_DIR$/.idea/fiado-type-kit.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|