richie-education 2.29.3-dev55 → 2.30.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/i18n/locales/ar-SA.json +16 -0
- package/i18n/locales/es-ES.json +17 -1
- package/i18n/locales/fa-IR.json +16 -0
- package/i18n/locales/fr-CA.json +16 -0
- package/i18n/locales/fr-FR.json +18 -2
- package/i18n/locales/ko-KR.json +16 -0
- package/i18n/locales/pt-PT.json +16 -0
- package/i18n/locales/ru-RU.json +16 -0
- package/i18n/locales/vi-VN.json +16 -0
- package/js/components/ContractFrame/AbstractContractFrame.spec.tsx +1 -1
- package/js/components/PaymentScheduleGrid/index.tsx +23 -1
- package/js/components/SaleTunnel/SaleTunnelInformation/index.tsx +8 -1
- package/js/translations/ar-SA.json +1 -1
- package/js/translations/es-ES.json +1 -1
- package/js/translations/fa-IR.json +1 -1
- package/js/translations/fr-CA.json +1 -1
- package/js/translations/fr-FR.json +1 -1
- package/js/translations/ko-KR.json +1 -1
- package/js/translations/pt-PT.json +1 -1
- package/js/translations/ru-RU.json +1 -1
- package/js/translations/vi-VN.json +1 -1
- package/package.json +34 -34
package/i18n/locales/ar-SA.json
CHANGED
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Full name"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Information"
|
package/i18n/locales/es-ES.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"components.AddressesManagement.actionPromotion": {
|
|
27
27
|
"description": "Action name for address promotion.",
|
|
28
|
-
"message": "
|
|
28
|
+
"message": "promotion"
|
|
29
29
|
},
|
|
30
30
|
"components.AddressesManagement.addAddress": {
|
|
31
31
|
"description": "Title of the address creation form",
|
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Full name"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Information"
|
package/i18n/locales/fa-IR.json
CHANGED
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Full name"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Information"
|
package/i18n/locales/fr-CA.json
CHANGED
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Full name"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Information"
|
package/i18n/locales/fr-FR.json
CHANGED
|
@@ -825,7 +825,7 @@
|
|
|
825
825
|
},
|
|
826
826
|
"components.DashboardItemOrder.OrganizationBlock.organizationDpoContactLabel": {
|
|
827
827
|
"description": "Label for the organization DPO contact",
|
|
828
|
-
"message": "
|
|
828
|
+
"message": "Courriel du délégué à la protection des données"
|
|
829
829
|
},
|
|
830
830
|
"components.DashboardItemOrder.OrganizationBlock.organizationHeader": {
|
|
831
831
|
"description": "Header of the organization section",
|
|
@@ -849,7 +849,7 @@
|
|
|
849
849
|
},
|
|
850
850
|
"components.DashboardItemOrder.OrganizationBlock.organizationSubtitleContacts": {
|
|
851
851
|
"description": "Subtitle for the organization contacts section",
|
|
852
|
-
"message": "
|
|
852
|
+
"message": "Contacts"
|
|
853
853
|
},
|
|
854
854
|
"components.DashboardItemOrder.PaymentModal.paymentMethodTitle": {
|
|
855
855
|
"description": "Title of the payment method section",
|
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Définition du moyen de paiement en cours."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Payée"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "En attente"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refusée"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Prélevée le {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Nom complet"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Échéancier"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Informations"
|
package/i18n/locales/ko-KR.json
CHANGED
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Full name"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Information"
|
package/i18n/locales/pt-PT.json
CHANGED
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Nome completo"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Informações"
|
package/i18n/locales/ru-RU.json
CHANGED
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Full name"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Information"
|
package/i18n/locales/vi-VN.json
CHANGED
|
@@ -1187,6 +1187,18 @@
|
|
|
1187
1187
|
"description": "Label for screen reader when a credit card is being tokenized.",
|
|
1188
1188
|
"message": "Payment method definition in progress."
|
|
1189
1189
|
},
|
|
1190
|
+
"components.PaymentScheduleGrid.state.paid": {
|
|
1191
|
+
"description": "Label displayed for paid payment state",
|
|
1192
|
+
"message": "Paid"
|
|
1193
|
+
},
|
|
1194
|
+
"components.PaymentScheduleGrid.state.pending": {
|
|
1195
|
+
"description": "Label displayed for pending payment state",
|
|
1196
|
+
"message": "Pending"
|
|
1197
|
+
},
|
|
1198
|
+
"components.PaymentScheduleGrid.state.refused": {
|
|
1199
|
+
"description": "Label displayed for refused payment state",
|
|
1200
|
+
"message": "Refused"
|
|
1201
|
+
},
|
|
1190
1202
|
"components.PaymentScheduleGrid.withdrawnAt": {
|
|
1191
1203
|
"description": "Label displayed to explain when the installment will be withdrawn.",
|
|
1192
1204
|
"message": "Withdrawn on {date}"
|
|
@@ -1307,6 +1319,10 @@
|
|
|
1307
1319
|
"description": "Label for the full name input",
|
|
1308
1320
|
"message": "Full name"
|
|
1309
1321
|
},
|
|
1322
|
+
"components.SaleTunnel.Information.paymentSchedule": {
|
|
1323
|
+
"description": "Title for the payment schedule section",
|
|
1324
|
+
"message": "Payment schedule"
|
|
1325
|
+
},
|
|
1310
1326
|
"components.SaleTunnel.Information.title": {
|
|
1311
1327
|
"description": "Title for the information section",
|
|
1312
1328
|
"message": "Information"
|
|
@@ -142,7 +142,7 @@ describe('<AbstractContractFrame />', () => {
|
|
|
142
142
|
await user.click(button);
|
|
143
143
|
|
|
144
144
|
// The dummy interface should be loading
|
|
145
|
-
screen.
|
|
145
|
+
await screen.findByRole('heading', { name: 'Signing the contract ...' });
|
|
146
146
|
|
|
147
147
|
// Then the signature check polling should be started
|
|
148
148
|
await waitFor(() => {
|
|
@@ -16,6 +16,24 @@ const messages = defineMessages({
|
|
|
16
16
|
},
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
+
export const stateMessages = defineMessages({
|
|
20
|
+
[PaymentScheduleState.PENDING]: {
|
|
21
|
+
id: 'components.PaymentScheduleGrid.state.pending',
|
|
22
|
+
defaultMessage: 'Pending',
|
|
23
|
+
description: 'Label displayed for pending payment state',
|
|
24
|
+
},
|
|
25
|
+
[PaymentScheduleState.PAID]: {
|
|
26
|
+
id: 'components.PaymentScheduleGrid.state.paid',
|
|
27
|
+
defaultMessage: 'Paid',
|
|
28
|
+
description: 'Label displayed for paid payment state',
|
|
29
|
+
},
|
|
30
|
+
[PaymentScheduleState.REFUSED]: {
|
|
31
|
+
id: 'components.PaymentScheduleGrid.state.refused',
|
|
32
|
+
defaultMessage: 'Refused',
|
|
33
|
+
description: 'Label displayed for refused payment state',
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
19
37
|
export const PaymentScheduleGrid = ({ schedule }: Props) => {
|
|
20
38
|
const intl = useIntl();
|
|
21
39
|
const formatDate = useDateFormat();
|
|
@@ -65,7 +83,11 @@ export const PaymentScheduleGrid = ({ schedule }: Props) => {
|
|
|
65
83
|
export const StatusPill = ({ state }: { state: PaymentScheduleState }) => {
|
|
66
84
|
return (
|
|
67
85
|
<span className={`status-pill status-pill--${state}`}>
|
|
68
|
-
{
|
|
86
|
+
{state in stateMessages ? (
|
|
87
|
+
<FormattedMessage {...stateMessages[state]} />
|
|
88
|
+
) : (
|
|
89
|
+
StringHelper.capitalizeFirst(state.replace('_', ' '))
|
|
90
|
+
)}
|
|
69
91
|
</span>
|
|
70
92
|
);
|
|
71
93
|
};
|
|
@@ -24,6 +24,11 @@ const messages = defineMessages({
|
|
|
24
24
|
description: 'Label for the full name input',
|
|
25
25
|
defaultMessage: 'Full name',
|
|
26
26
|
},
|
|
27
|
+
paymentSchedule: {
|
|
28
|
+
id: 'components.SaleTunnel.Information.paymentSchedule',
|
|
29
|
+
description: 'Title for the payment schedule section',
|
|
30
|
+
defaultMessage: 'Payment schedule',
|
|
31
|
+
},
|
|
27
32
|
totalInfo: {
|
|
28
33
|
id: 'components.SaleTunnel.Information.total.info',
|
|
29
34
|
description: 'Information about the total amount',
|
|
@@ -124,7 +129,9 @@ const PaymentScheduleBlock = () => {
|
|
|
124
129
|
|
|
125
130
|
return (
|
|
126
131
|
<div className="payment-schedule">
|
|
127
|
-
<h4 className="block-title mb-t">
|
|
132
|
+
<h4 className="block-title mb-t">
|
|
133
|
+
<FormattedMessage {...messages.paymentSchedule} />
|
|
134
|
+
</h4>
|
|
128
135
|
<div className="mt-t">
|
|
129
136
|
<PaymentScheduleGrid schedule={query.data} />
|
|
130
137
|
</div>
|