@lysaab/lysa-pep 2.1.1 → 2.3.0
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/components/CountrySelect.js +1 -1
- package/components/PepAnswers.js +35 -35
- package/messages/src/components/CountrySelect.json +1 -1
- package/messages/src/components/PepAnswers.json +1 -1
- package/messages/src/pages/IsPep/IsPepMessages.json +1 -1
- package/messages/src/pages/RelationPage/RelationMessages.json +1 -1
- package/messages/src/pages/RelationPage/RelationPage.json +1 -1
- package/messages/src/pages/RolePage/RoleMessages.json +1 -1
- package/messages/src/pages/RolePage/RolePage.json +1 -1
- package/messages/src/pages/StatusPage/StatusMessages.json +1 -1
- package/package.json +1 -1
- package/pages/IsPep/IsPepMessages.js +4 -4
- package/pages/RelationPage/RelationMessages.js +59 -60
- package/pages/RelationPage/RelationPage.js +1 -1
- package/pages/RolePage/RoleMessages.js +72 -72
- package/pages/RolePage/RolePage.js +1 -1
- package/pages/StatusPage/StatusMessages.js +47 -49
|
@@ -2,52 +2,52 @@ import { defineMessages } from "react-intl";
|
|
|
2
2
|
import { BusinessRelation, Relation } from "../PepContext";
|
|
3
3
|
export const relationMessages = defineMessages({
|
|
4
4
|
header: {
|
|
5
|
-
id: "pep.relation.
|
|
6
|
-
description: "
|
|
5
|
+
id: "pep.relation.relationship.header",
|
|
6
|
+
description: "Relationship header",
|
|
7
7
|
defaultMessage: `{
|
|
8
8
|
entityType, select,
|
|
9
9
|
PERSON {
|
|
10
|
-
|
|
10
|
+
What relationship do you have to the person in a politically exposed position?
|
|
11
11
|
}
|
|
12
12
|
CORPORATION {
|
|
13
|
-
|
|
13
|
+
What relationship does {name} have to the person in a politically exposed position?
|
|
14
14
|
}
|
|
15
15
|
}`,
|
|
16
16
|
},
|
|
17
17
|
required: {
|
|
18
18
|
id: "pep.relation.relation.required",
|
|
19
19
|
description: "Required error message",
|
|
20
|
-
defaultMessage:
|
|
20
|
+
defaultMessage: "You need to choose an alternative",
|
|
21
21
|
},
|
|
22
22
|
[Relation.MARRIED_PARTNER]: {
|
|
23
23
|
id: "pep.relation.relation.MARRIED_PARTNER",
|
|
24
24
|
description: "The person is married to someone who is pep",
|
|
25
|
-
defaultMessage:
|
|
25
|
+
defaultMessage: "Spouse of a PEP",
|
|
26
26
|
},
|
|
27
27
|
[Relation.COLIVING_PARTNER]: {
|
|
28
28
|
id: "pep.relation.relation.COLIVING_PARTNER",
|
|
29
|
-
description: "The person is
|
|
30
|
-
defaultMessage:
|
|
29
|
+
description: "The person is a coliving partner to someone who is pep",
|
|
30
|
+
defaultMessage: "Partner to a PEP",
|
|
31
31
|
},
|
|
32
32
|
[Relation.CHILD]: {
|
|
33
33
|
id: "pep.relation.relation.CHILD",
|
|
34
|
-
description: "The person is
|
|
35
|
-
defaultMessage:
|
|
34
|
+
description: "The person is the child of someone who is pep",
|
|
35
|
+
defaultMessage: "Child of a PEP",
|
|
36
36
|
},
|
|
37
37
|
[Relation.PARENT]: {
|
|
38
38
|
id: "pep.relation.relation.PARENT",
|
|
39
|
-
description: "The person is
|
|
40
|
-
defaultMessage:
|
|
39
|
+
description: "The person is the parent of someone who is pep",
|
|
40
|
+
defaultMessage: "Parent of a PEP",
|
|
41
41
|
},
|
|
42
42
|
[Relation.CHILD_MARRIED_PARTNER]: {
|
|
43
43
|
id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
|
|
44
|
-
description: "The person is married to someone who is pep",
|
|
45
|
-
defaultMessage:
|
|
44
|
+
description: "The person is married to the child of someone who is pep",
|
|
45
|
+
defaultMessage: "Spouse of the child of a PEP",
|
|
46
46
|
},
|
|
47
47
|
[Relation.CHILD_COLIVING_PARTNER]: {
|
|
48
48
|
id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
|
|
49
49
|
description: "The person is married to someone who is pep",
|
|
50
|
-
defaultMessage:
|
|
50
|
+
defaultMessage: "Partner to the child of a PEP",
|
|
51
51
|
},
|
|
52
52
|
});
|
|
53
53
|
export const businessRelationMessages = defineMessages({
|
|
@@ -57,17 +57,17 @@ export const businessRelationMessages = defineMessages({
|
|
|
57
57
|
defaultMessage: `{
|
|
58
58
|
entityType, select,
|
|
59
59
|
PERSON {
|
|
60
|
-
|
|
60
|
+
What relationship do you have to the person in a politically exposed position?
|
|
61
61
|
}
|
|
62
62
|
CORPORATION {
|
|
63
|
-
|
|
63
|
+
What relationship does {name} have to the person in a politically exposed position?
|
|
64
64
|
}
|
|
65
65
|
}`,
|
|
66
66
|
},
|
|
67
67
|
required: {
|
|
68
68
|
id: "pep.relation.businessrelation.required",
|
|
69
69
|
description: "Required error message",
|
|
70
|
-
defaultMessage:
|
|
70
|
+
defaultMessage: "You need to choose an alternative",
|
|
71
71
|
},
|
|
72
72
|
[BusinessRelation.CO_OWNERSHIP]: {
|
|
73
73
|
id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
|
|
@@ -75,37 +75,36 @@ export const businessRelationMessages = defineMessages({
|
|
|
75
75
|
defaultMessage: `{
|
|
76
76
|
entityType, select,
|
|
77
77
|
PERSON {
|
|
78
|
-
|
|
78
|
+
I am the beneficial owner to a legal person, or a legal structure together with a PEP
|
|
79
79
|
}
|
|
80
80
|
CORPORATION {
|
|
81
|
-
{name}
|
|
81
|
+
{name} is the beneficial owner to a legal person, or a legal structure together with a PEP
|
|
82
82
|
}
|
|
83
83
|
}`,
|
|
84
84
|
},
|
|
85
85
|
[BusinessRelation.CLOSE_CONNECTION]: {
|
|
86
86
|
id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
|
|
87
|
-
description: "
|
|
87
|
+
description: "Close business relation",
|
|
88
88
|
defaultMessage: `{
|
|
89
89
|
entityType, select,
|
|
90
90
|
PERSON {
|
|
91
|
-
|
|
91
|
+
I am a person that in one way or the other have or have had a close relation with a PEP
|
|
92
92
|
}
|
|
93
93
|
CORPORATION {
|
|
94
|
-
{name}
|
|
94
|
+
{name} is a person that in one way or the other has or has had a close relation with a PEP
|
|
95
95
|
}
|
|
96
96
|
}`,
|
|
97
97
|
},
|
|
98
98
|
[BusinessRelation.COMPANY_FOR_PEP]: {
|
|
99
99
|
id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
|
|
100
|
-
description: "
|
|
100
|
+
description: "Beneficial owner",
|
|
101
101
|
defaultMessage: `{
|
|
102
102
|
entityType, select,
|
|
103
103
|
PERSON {
|
|
104
|
-
|
|
104
|
+
I am the beneficial owner to a legal person, or a legal structure together with a PEP
|
|
105
105
|
}
|
|
106
106
|
CORPORATION {
|
|
107
|
-
{name}
|
|
108
|
-
|
|
107
|
+
{name} is the lone beneficial owner to a legal person, or a legal structure together with a PEP
|
|
109
108
|
}
|
|
110
109
|
}`,
|
|
111
110
|
},
|
|
@@ -120,22 +119,22 @@ export const relativeNameMessages = defineMessages({
|
|
|
120
119
|
{
|
|
121
120
|
relation, select,
|
|
122
121
|
MARRIED_PARTNER {
|
|
123
|
-
|
|
122
|
+
What is the name of your spouce?
|
|
124
123
|
}
|
|
125
124
|
COLIVING_PARTNER {
|
|
126
|
-
|
|
125
|
+
What is the name of your partner?
|
|
127
126
|
}
|
|
128
127
|
CHILD {
|
|
129
|
-
|
|
128
|
+
What is the name of your parent?
|
|
130
129
|
}
|
|
131
130
|
PARENT {
|
|
132
|
-
|
|
131
|
+
What is the name of your child?
|
|
133
132
|
}
|
|
134
133
|
CHILD_MARRIED_PARTNER {
|
|
135
|
-
|
|
134
|
+
What is the name of the parent of your spouse?
|
|
136
135
|
}
|
|
137
136
|
CHILD_COLIVING_PARTNER {
|
|
138
|
-
|
|
137
|
+
What is the name of the parent of your partner?
|
|
139
138
|
}
|
|
140
139
|
other {}
|
|
141
140
|
}
|
|
@@ -144,22 +143,22 @@ export const relativeNameMessages = defineMessages({
|
|
|
144
143
|
{
|
|
145
144
|
relation, select,
|
|
146
145
|
MARRIED_PARTNER {
|
|
147
|
-
|
|
146
|
+
What is the name of the spouse of {name}?
|
|
148
147
|
}
|
|
149
148
|
COLIVING_PARTNER {
|
|
150
|
-
|
|
149
|
+
What is the name of the partner of {name}?
|
|
151
150
|
}
|
|
152
151
|
CHILD {
|
|
153
|
-
|
|
152
|
+
What is the name of the parent of {name}?
|
|
154
153
|
}
|
|
155
154
|
PARENT {
|
|
156
|
-
|
|
155
|
+
What is the name of the child of {name}?
|
|
157
156
|
}
|
|
158
157
|
CHILD_MARRIED_PARTNER {
|
|
159
|
-
|
|
158
|
+
What is the name of the parent of the spouse of {name}?
|
|
160
159
|
}
|
|
161
160
|
CHILD_COLIVING_PARTNER {
|
|
162
|
-
|
|
161
|
+
What is the name of the parent of the partner of {name}?
|
|
163
162
|
}
|
|
164
163
|
other {}
|
|
165
164
|
}
|
|
@@ -170,7 +169,7 @@ export const relativeNameMessages = defineMessages({
|
|
|
170
169
|
required: {
|
|
171
170
|
id: "pep.relation.relative.name.required",
|
|
172
171
|
description: "Required error message",
|
|
173
|
-
defaultMessage:
|
|
172
|
+
defaultMessage: "You need to choose an alternative",
|
|
174
173
|
},
|
|
175
174
|
});
|
|
176
175
|
export const birthdayMessages = defineMessages({
|
|
@@ -183,22 +182,22 @@ export const birthdayMessages = defineMessages({
|
|
|
183
182
|
{
|
|
184
183
|
relation, select,
|
|
185
184
|
MARRIED_PARTNER {
|
|
186
|
-
|
|
185
|
+
When is your spouse born?
|
|
187
186
|
}
|
|
188
187
|
COLIVING_PARTNER {
|
|
189
|
-
|
|
188
|
+
When is your partner born?
|
|
190
189
|
}
|
|
191
190
|
CHILD {
|
|
192
|
-
|
|
191
|
+
When is your parent born?
|
|
193
192
|
}
|
|
194
193
|
PARENT {
|
|
195
|
-
|
|
194
|
+
When is your child born?
|
|
196
195
|
}
|
|
197
196
|
CHILD_MARRIED_PARTNER {
|
|
198
|
-
|
|
197
|
+
When is the parent of your spouse born?
|
|
199
198
|
}
|
|
200
199
|
CHILD_COLIVING_PARTNER {
|
|
201
|
-
|
|
200
|
+
When is the parent of your partner born?
|
|
202
201
|
}
|
|
203
202
|
other {}
|
|
204
203
|
}
|
|
@@ -207,22 +206,22 @@ export const birthdayMessages = defineMessages({
|
|
|
207
206
|
{
|
|
208
207
|
relation, select,
|
|
209
208
|
MARRIED_PARTNER {
|
|
210
|
-
|
|
209
|
+
When is the spouse of {name} born?
|
|
211
210
|
}
|
|
212
211
|
COLIVING_PARTNER {
|
|
213
|
-
|
|
212
|
+
When is the partner of {name} born?
|
|
214
213
|
}
|
|
215
214
|
CHILD {
|
|
216
|
-
|
|
215
|
+
When is the child of {name} born?
|
|
217
216
|
}
|
|
218
217
|
PARENT {
|
|
219
|
-
|
|
218
|
+
When is the parent of {name} born?
|
|
220
219
|
}
|
|
221
220
|
CHILD_MARRIED_PARTNER {
|
|
222
|
-
|
|
221
|
+
When is the parent of the spouse of {name} born?
|
|
223
222
|
}
|
|
224
223
|
CHILD_COLIVING_PARTNER {
|
|
225
|
-
|
|
224
|
+
When is the parent of the partner of {name} born?
|
|
226
225
|
}
|
|
227
226
|
other {}
|
|
228
227
|
}
|
|
@@ -233,7 +232,7 @@ export const birthdayMessages = defineMessages({
|
|
|
233
232
|
required: {
|
|
234
233
|
id: "pep.relation.birthday.required",
|
|
235
234
|
description: "Required error message",
|
|
236
|
-
defaultMessage:
|
|
235
|
+
defaultMessage: "State the date",
|
|
237
236
|
},
|
|
238
237
|
});
|
|
239
238
|
export const colleagueNameMessages = defineMessages({
|
|
@@ -246,13 +245,13 @@ export const colleagueNameMessages = defineMessages({
|
|
|
246
245
|
{
|
|
247
246
|
relation, select,
|
|
248
247
|
CO_OWNERSHIP {
|
|
249
|
-
|
|
248
|
+
What is the name of the person in a politically exposed position that you have a relationship with?
|
|
250
249
|
}
|
|
251
250
|
CLOSE_CONNECTION {
|
|
252
|
-
|
|
251
|
+
What is the name of the person in a politically exposed position that you have a relationship with?
|
|
253
252
|
}
|
|
254
253
|
COMPANY_FOR_PEP {
|
|
255
|
-
|
|
254
|
+
What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?
|
|
256
255
|
}
|
|
257
256
|
other {}
|
|
258
257
|
}
|
|
@@ -261,13 +260,13 @@ export const colleagueNameMessages = defineMessages({
|
|
|
261
260
|
{
|
|
262
261
|
relation, select,
|
|
263
262
|
CO_OWNERSHIP {
|
|
264
|
-
|
|
263
|
+
What is the name of the person in a politically exposed position that {name} has a relationship with?
|
|
265
264
|
}
|
|
266
265
|
CLOSE_CONNECTION {
|
|
267
|
-
|
|
266
|
+
What is the name of the person in a politically exposed position that {name} has a relationship with?
|
|
268
267
|
}
|
|
269
268
|
COMPANY_FOR_PEP {
|
|
270
|
-
|
|
269
|
+
What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?
|
|
271
270
|
}
|
|
272
271
|
other {}
|
|
273
272
|
}
|
|
@@ -278,6 +277,6 @@ export const colleagueNameMessages = defineMessages({
|
|
|
278
277
|
required: {
|
|
279
278
|
id: "pep.relation.colleague.name.required",
|
|
280
279
|
description: "Required error message",
|
|
281
|
-
defaultMessage:
|
|
280
|
+
defaultMessage: "You need to choose an alternative",
|
|
282
281
|
},
|
|
283
282
|
});
|
|
@@ -79,7 +79,7 @@ export const RelationPage = ({ next }) => {
|
|
|
79
79
|
new RequiredValidator(intl.formatMessage(colleagueNameMessages.required)),
|
|
80
80
|
] }))) : null),
|
|
81
81
|
React.createElement(PrimaryButton, { block: true, type: "submit" },
|
|
82
|
-
React.createElement(FormattedMessage, { id: "pep.relation.next", description: "Next button", defaultMessage: "
|
|
82
|
+
React.createElement(FormattedMessage, { id: "pep.relation.next", description: "Next button", defaultMessage: "Next" }))));
|
|
83
83
|
};
|
|
84
84
|
function getRelationAlternatives(intl, entityType, pepContext) {
|
|
85
85
|
return [
|