@stamhoofd/backend 2.45.0 → 2.46.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.45.0",
3
+ "version": "2.46.0",
4
4
  "main": "./dist/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -36,14 +36,14 @@
36
36
  "@simonbackx/simple-encoding": "2.15.1",
37
37
  "@simonbackx/simple-endpoints": "1.14.0",
38
38
  "@simonbackx/simple-logging": "^1.0.1",
39
- "@stamhoofd/backend-i18n": "2.45.0",
40
- "@stamhoofd/backend-middleware": "2.45.0",
41
- "@stamhoofd/email": "2.45.0",
42
- "@stamhoofd/models": "2.45.0",
43
- "@stamhoofd/queues": "2.45.0",
44
- "@stamhoofd/sql": "2.45.0",
45
- "@stamhoofd/structures": "2.45.0",
46
- "@stamhoofd/utility": "2.45.0",
39
+ "@stamhoofd/backend-i18n": "2.46.0",
40
+ "@stamhoofd/backend-middleware": "2.46.0",
41
+ "@stamhoofd/email": "2.46.0",
42
+ "@stamhoofd/models": "2.46.0",
43
+ "@stamhoofd/queues": "2.46.0",
44
+ "@stamhoofd/sql": "2.46.0",
45
+ "@stamhoofd/structures": "2.46.0",
46
+ "@stamhoofd/utility": "2.46.0",
47
47
  "archiver": "^7.0.1",
48
48
  "aws-sdk": "^2.885.0",
49
49
  "axios": "1.6.8",
@@ -60,5 +60,5 @@
60
60
  "postmark": "^4.0.5",
61
61
  "stripe": "^16.6.0"
62
62
  },
63
- "gitHead": "c61562d189e2486d7669bd2bac5f3dca1804dc2c"
63
+ "gitHead": "894c197231d17b270d47f7b4530ccb4e571482e4"
64
64
  }
@@ -284,7 +284,10 @@ export class RegisterMembersEndpoint extends Endpoint<Params, Query, Body, Respo
284
284
 
285
285
  // Validate payment method
286
286
  if (totalPrice > 0 && whoWillPayNow !== 'nobody') {
287
- const allowedPaymentMethods = organization.meta.registrationPaymentConfiguration.paymentMethods;
287
+ const allowedPaymentMethods = organization.meta.registrationPaymentConfiguration.getAvailablePaymentMethods({
288
+ amount: totalPrice,
289
+ customer: checkout.customer,
290
+ });
288
291
 
289
292
  if (!checkout.paymentMethod || !allowedPaymentMethods.includes(checkout.paymentMethod)) {
290
293
  throw new SimpleError({