@stamhoofd/backend 2.66.0 → 2.67.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stamhoofd/backend",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.67.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@simonbackx/simple-encoding": "2.19.0",
|
|
38
38
|
"@simonbackx/simple-endpoints": "1.15.0",
|
|
39
39
|
"@simonbackx/simple-logging": "^1.0.1",
|
|
40
|
-
"@stamhoofd/backend-i18n": "2.
|
|
41
|
-
"@stamhoofd/backend-middleware": "2.
|
|
42
|
-
"@stamhoofd/email": "2.
|
|
43
|
-
"@stamhoofd/models": "2.
|
|
44
|
-
"@stamhoofd/queues": "2.
|
|
45
|
-
"@stamhoofd/sql": "2.
|
|
46
|
-
"@stamhoofd/structures": "2.
|
|
47
|
-
"@stamhoofd/utility": "2.
|
|
40
|
+
"@stamhoofd/backend-i18n": "2.67.0",
|
|
41
|
+
"@stamhoofd/backend-middleware": "2.67.0",
|
|
42
|
+
"@stamhoofd/email": "2.67.0",
|
|
43
|
+
"@stamhoofd/models": "2.67.0",
|
|
44
|
+
"@stamhoofd/queues": "2.67.0",
|
|
45
|
+
"@stamhoofd/sql": "2.67.0",
|
|
46
|
+
"@stamhoofd/structures": "2.67.0",
|
|
47
|
+
"@stamhoofd/utility": "2.67.0",
|
|
48
48
|
"archiver": "^7.0.1",
|
|
49
49
|
"aws-sdk": "^2.885.0",
|
|
50
50
|
"axios": "1.6.8",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e496701533ecdb23bf23bfe1f9d642b3bce249a9"
|
|
68
68
|
}
|
|
@@ -979,6 +979,7 @@ export class RegisterMembersEndpoint extends Endpoint<Params, Query, Body, Respo
|
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
981
|
const mollieClient = createMollieClient({ accessToken: await token.getAccessToken() });
|
|
982
|
+
const locale = Context.i18n.locale.replace('-', '_');
|
|
982
983
|
const molliePayment = await mollieClient.payments.create({
|
|
983
984
|
amount: {
|
|
984
985
|
currency: 'EUR',
|
|
@@ -993,6 +994,7 @@ export class RegisterMembersEndpoint extends Endpoint<Params, Query, Body, Respo
|
|
|
993
994
|
metadata: {
|
|
994
995
|
paymentId: payment.id,
|
|
995
996
|
},
|
|
997
|
+
locale: ['en_US', 'en_GB', 'nl_NL', 'nl_BE', 'fr_FR', 'fr_BE', 'de_DE', 'de_AT', 'de_CH', 'es_ES', 'ca_ES', 'pt_PT', 'it_IT', 'nb_NO', 'sv_SE', 'fi_FI', 'da_DK', 'is_IS', 'hu_HU', 'pl_PL', 'lv_LV', 'lt_LT'].includes(locale) ? (locale as any) : null,
|
|
996
998
|
});
|
|
997
999
|
paymentUrl = molliePayment.getCheckoutUrl();
|
|
998
1000
|
|
|
@@ -292,6 +292,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
const mollieClient = createMollieClient({ accessToken: await token.getAccessToken() });
|
|
295
|
+
const locale = Context.i18n.locale.replace('-', '_');
|
|
295
296
|
const molliePayment = await mollieClient.payments.create({
|
|
296
297
|
amount: {
|
|
297
298
|
currency: 'EUR',
|
|
@@ -309,6 +310,7 @@ export class PlaceOrderEndpoint extends Endpoint<Params, Query, Body, ResponseBo
|
|
|
309
310
|
webshop: webshop.id,
|
|
310
311
|
payment: payment.id,
|
|
311
312
|
},
|
|
313
|
+
locale: ['en_US', 'en_GB', 'nl_NL', 'nl_BE', 'fr_FR', 'fr_BE', 'de_DE', 'de_AT', 'de_CH', 'es_ES', 'ca_ES', 'pt_PT', 'it_IT', 'nb_NO', 'sv_SE', 'fi_FI', 'da_DK', 'is_IS', 'hu_HU', 'pl_PL', 'lv_LV', 'lt_LT'].includes(locale) ? (locale as any) : null,
|
|
312
314
|
});
|
|
313
315
|
console.log(molliePayment);
|
|
314
316
|
paymentUrl = molliePayment.getCheckoutUrl();
|