@stamhoofd/backend 2.106.1 → 2.107.1
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/index.ts +6 -1
- package/package.json +17 -11
- package/src/boot.ts +28 -22
- package/src/endpoints/frontend/FrontendEnvironmentEndpoint.ts +89 -0
- package/src/endpoints/global/billing/ActivatePackagesEndpoint.ts +30 -0
- package/src/endpoints/global/members/PatchOrganizationMembersEndpoint.ts +3 -2
- package/src/endpoints/global/registration/PatchUserMembersEndpoint.ts +8 -3
- package/src/endpoints/global/registration/RegisterMembersEndpoint.test.ts +109 -109
- package/src/endpoints/global/registration/RegisterMembersEndpoint.ts +7 -0
- package/src/endpoints/organization/dashboard/payments/PatchBalanceItemsEndpoint.ts +9 -7
- package/src/endpoints/organization/dashboard/payments/PatchPaymentsEndpoint.ts +7 -0
- package/src/endpoints/organization/webshops/PlaceOrderEndpoint.ts +9 -2
- package/src/excel-loaders/payments.ts +5 -5
- package/src/excel-loaders/receivable-balances.ts +7 -7
- package/src/helpers/AdminPermissionChecker.ts +20 -0
- package/src/helpers/BuckarooHelper.ts +1 -1
- package/src/helpers/ServiceFeeHelper.ts +8 -4
- package/src/helpers/StripeHelper.ts +20 -35
- package/src/seeds/1752848561-groups-registration-periods.ts +35 -0
- package/src/services/BalanceItemService.ts +15 -2
- package/src/services/PaymentReallocationService.test.ts +298 -128
- package/src/services/PaymentReallocationService.ts +46 -16
- package/src/services/PaymentService.ts +49 -2
- package/src/services/uitpas/getSocialTariffForEvent.ts +2 -2
- package/src/services/uitpas/getSocialTariffForUitpasNumbers.ts +2 -2
- package/src/services/uitpas/registerTicketSales.ts +2 -2
- package/tests/e2e/bundle-discounts.test.ts +415 -391
- package/tests/e2e/documents.test.ts +21 -21
- package/tests/e2e/register.test.ts +93 -93
- package/tests/e2e/stock.test.ts +4 -4
|
@@ -121,8 +121,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
121
121
|
|
|
122
122
|
const group = await new GroupFactory({
|
|
123
123
|
organization,
|
|
124
|
-
price:
|
|
125
|
-
reducedPrice:
|
|
124
|
+
price: 25_0000,
|
|
125
|
+
reducedPrice: 12_5000,
|
|
126
126
|
stock: 500,
|
|
127
127
|
})
|
|
128
128
|
.create();
|
|
@@ -197,7 +197,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
197
197
|
administrationFee: 0,
|
|
198
198
|
freeContribution: 0,
|
|
199
199
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
200
|
-
totalPrice:
|
|
200
|
+
totalPrice: 25_0000,
|
|
201
201
|
customer: null,
|
|
202
202
|
});
|
|
203
203
|
|
|
@@ -223,7 +223,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
223
223
|
administrationFee: 0,
|
|
224
224
|
freeContribution: 0,
|
|
225
225
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
226
|
-
totalPrice:
|
|
226
|
+
totalPrice: 25_0000,
|
|
227
227
|
customer: null,
|
|
228
228
|
});
|
|
229
229
|
await expect(post(body, organization, token))
|
|
@@ -249,12 +249,12 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
249
249
|
payingOrganizationId: organization.id,
|
|
250
250
|
type: BalanceItemType.Registration,
|
|
251
251
|
amount: 10,
|
|
252
|
-
unitPrice:
|
|
252
|
+
unitPrice: 200,
|
|
253
253
|
}).create();
|
|
254
254
|
|
|
255
255
|
const cartItem = BalanceItemCartItem.create({
|
|
256
256
|
item: balanceItem1.getStructure(),
|
|
257
|
-
price:
|
|
257
|
+
price: 2000,
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
const body = IDRegisterCheckout.create({
|
|
@@ -268,7 +268,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
268
268
|
administrationFee: 0,
|
|
269
269
|
freeContribution: 0,
|
|
270
270
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
271
|
-
totalPrice:
|
|
271
|
+
totalPrice: 2000,
|
|
272
272
|
customer: null,
|
|
273
273
|
});
|
|
274
274
|
|
|
@@ -289,12 +289,12 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
289
289
|
payingOrganizationId: organization.id,
|
|
290
290
|
type: BalanceItemType.Registration,
|
|
291
291
|
amount: 10,
|
|
292
|
-
unitPrice:
|
|
292
|
+
unitPrice: 200,
|
|
293
293
|
}).create();
|
|
294
294
|
|
|
295
295
|
const cartItem = BalanceItemCartItem.create({
|
|
296
296
|
item: balanceItem1.getStructure(),
|
|
297
|
-
price:
|
|
297
|
+
price: 3000, // too much
|
|
298
298
|
});
|
|
299
299
|
|
|
300
300
|
const body = IDRegisterCheckout.create({
|
|
@@ -308,7 +308,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
308
308
|
administrationFee: 0,
|
|
309
309
|
freeContribution: 0,
|
|
310
310
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
311
|
-
totalPrice:
|
|
311
|
+
totalPrice: 3000,
|
|
312
312
|
customer: null,
|
|
313
313
|
});
|
|
314
314
|
|
|
@@ -342,7 +342,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
342
342
|
administrationFee: 0,
|
|
343
343
|
freeContribution: 0,
|
|
344
344
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
345
|
-
totalPrice:
|
|
345
|
+
totalPrice: 25_0000,
|
|
346
346
|
customer: null,
|
|
347
347
|
});
|
|
348
348
|
// #endregion
|
|
@@ -365,7 +365,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
365
365
|
payingOrganizationId: organization.id,
|
|
366
366
|
type: BalanceItemType.Registration,
|
|
367
367
|
amount: 10,
|
|
368
|
-
unitPrice:
|
|
368
|
+
unitPrice: 200,
|
|
369
369
|
}).create();
|
|
370
370
|
|
|
371
371
|
const body = IDRegisterCheckout.create({
|
|
@@ -379,7 +379,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
379
379
|
administrationFee: 0,
|
|
380
380
|
freeContribution: 0,
|
|
381
381
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
382
|
-
totalPrice:
|
|
382
|
+
totalPrice: 4500,
|
|
383
383
|
customer: null,
|
|
384
384
|
});
|
|
385
385
|
// #endregion
|
|
@@ -414,7 +414,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
414
414
|
administrationFee: 0,
|
|
415
415
|
freeContribution: 0,
|
|
416
416
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
417
|
-
totalPrice: groupPrice.price.price +
|
|
417
|
+
totalPrice: groupPrice.price.price + 500, // too much
|
|
418
418
|
customer: null,
|
|
419
419
|
});
|
|
420
420
|
|
|
@@ -446,7 +446,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
446
446
|
administrationFee: 0,
|
|
447
447
|
freeContribution: 0,
|
|
448
448
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
449
|
-
totalPrice:
|
|
449
|
+
totalPrice: 25_0000,
|
|
450
450
|
customer: null,
|
|
451
451
|
});
|
|
452
452
|
|
|
@@ -488,7 +488,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
488
488
|
administrationFee: 0,
|
|
489
489
|
freeContribution: 0,
|
|
490
490
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
491
|
-
totalPrice:
|
|
491
|
+
totalPrice: 5000,
|
|
492
492
|
customer: null,
|
|
493
493
|
});
|
|
494
494
|
|
|
@@ -524,7 +524,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
524
524
|
administrationFee: 0,
|
|
525
525
|
freeContribution: 0,
|
|
526
526
|
paymentMethod: PaymentMethod.CreditCard,
|
|
527
|
-
totalPrice:
|
|
527
|
+
totalPrice: 25_0000,
|
|
528
528
|
customer: null,
|
|
529
529
|
});
|
|
530
530
|
// #endregion
|
|
@@ -562,7 +562,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
562
562
|
administrationFee: 0,
|
|
563
563
|
freeContribution: 0,
|
|
564
564
|
paymentMethod: PaymentMethod.Bancontact,
|
|
565
|
-
totalPrice:
|
|
565
|
+
totalPrice: 25_0000,
|
|
566
566
|
cancelUrl: new URL('https://www.stamhoofd.be'),
|
|
567
567
|
customer: null,
|
|
568
568
|
});
|
|
@@ -597,7 +597,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
597
597
|
administrationFee: 0,
|
|
598
598
|
freeContribution: 0,
|
|
599
599
|
paymentMethod: PaymentMethod.Bancontact,
|
|
600
|
-
totalPrice:
|
|
600
|
+
totalPrice: 25_0000,
|
|
601
601
|
redirectUrl: new URL('https://www.stamhoofd.be'),
|
|
602
602
|
customer: null,
|
|
603
603
|
});
|
|
@@ -629,7 +629,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
629
629
|
administrationFee: 0,
|
|
630
630
|
freeContribution: 0,
|
|
631
631
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
632
|
-
totalPrice:
|
|
632
|
+
totalPrice: 25_0000,
|
|
633
633
|
});
|
|
634
634
|
|
|
635
635
|
const response = await post(body, organization, token);
|
|
@@ -669,7 +669,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
669
669
|
administrationFee: 0,
|
|
670
670
|
freeContribution: 0,
|
|
671
671
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
672
|
-
totalPrice:
|
|
672
|
+
totalPrice: 25_0000,
|
|
673
673
|
});
|
|
674
674
|
|
|
675
675
|
const response = await post(body, organization, token);
|
|
@@ -703,7 +703,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
703
703
|
administrationFee: 0,
|
|
704
704
|
freeContribution: 0,
|
|
705
705
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
706
|
-
totalPrice:
|
|
706
|
+
totalPrice: 25_0000,
|
|
707
707
|
});
|
|
708
708
|
|
|
709
709
|
const response = await post(body, organization, token);
|
|
@@ -750,7 +750,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
750
750
|
administrationFee: 0,
|
|
751
751
|
freeContribution: 0,
|
|
752
752
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
753
|
-
totalPrice:
|
|
753
|
+
totalPrice: 25_0000,
|
|
754
754
|
});
|
|
755
755
|
|
|
756
756
|
const response = await post(body, organization, token);
|
|
@@ -781,7 +781,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
781
781
|
administrationFee: 0,
|
|
782
782
|
freeContribution: 0,
|
|
783
783
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
784
|
-
totalPrice:
|
|
784
|
+
totalPrice: 25_0000,
|
|
785
785
|
customer: null,
|
|
786
786
|
});
|
|
787
787
|
// #endregion
|
|
@@ -822,7 +822,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
822
822
|
administrationFee: 0,
|
|
823
823
|
freeContribution: 0,
|
|
824
824
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
825
|
-
totalPrice:
|
|
825
|
+
totalPrice: 25_0000,
|
|
826
826
|
customer: null,
|
|
827
827
|
});
|
|
828
828
|
|
|
@@ -835,7 +835,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
835
835
|
|
|
836
836
|
const group2 = await new GroupFactory({
|
|
837
837
|
organization,
|
|
838
|
-
price:
|
|
838
|
+
price: 1500,
|
|
839
839
|
stock: 4,
|
|
840
840
|
maxMembers: 1,
|
|
841
841
|
}).create();
|
|
@@ -857,7 +857,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
857
857
|
paymentMethod: PaymentMethod.Payconiq,
|
|
858
858
|
redirectUrl: new URL('https://www.example.com'),
|
|
859
859
|
cancelUrl: new URL('https://www.example.com'),
|
|
860
|
-
totalPrice:
|
|
860
|
+
totalPrice: 1500,
|
|
861
861
|
});
|
|
862
862
|
|
|
863
863
|
const response = await post(body, organization, token);
|
|
@@ -928,7 +928,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
928
928
|
finally {
|
|
929
929
|
jest.useRealTimers();
|
|
930
930
|
}
|
|
931
|
-
},
|
|
931
|
+
}, 20_00000);
|
|
932
932
|
|
|
933
933
|
test('Should update group stock reservations', async () => {
|
|
934
934
|
// #region arrange
|
|
@@ -955,7 +955,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
955
955
|
administrationFee: 0,
|
|
956
956
|
freeContribution: 0,
|
|
957
957
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
958
|
-
totalPrice:
|
|
958
|
+
totalPrice: 25_0000,
|
|
959
959
|
customer: null,
|
|
960
960
|
});
|
|
961
961
|
// #endregion
|
|
@@ -1005,7 +1005,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1005
1005
|
administrationFee: 0,
|
|
1006
1006
|
freeContribution: 0,
|
|
1007
1007
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1008
|
-
totalPrice:
|
|
1008
|
+
totalPrice: 7500,
|
|
1009
1009
|
customer: null,
|
|
1010
1010
|
});
|
|
1011
1011
|
// #endregion
|
|
@@ -1027,8 +1027,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1027
1027
|
name: 'option 1',
|
|
1028
1028
|
stock: 4,
|
|
1029
1029
|
price: ReduceablePrice.create({
|
|
1030
|
-
price:
|
|
1031
|
-
reducedPrice:
|
|
1030
|
+
price: 500,
|
|
1031
|
+
reducedPrice: 300,
|
|
1032
1032
|
}),
|
|
1033
1033
|
});
|
|
1034
1034
|
|
|
@@ -1036,8 +1036,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1036
1036
|
name: 'option 2',
|
|
1037
1037
|
stock: 4,
|
|
1038
1038
|
price: ReduceablePrice.create({
|
|
1039
|
-
price:
|
|
1040
|
-
reducedPrice:
|
|
1039
|
+
price: 300,
|
|
1040
|
+
reducedPrice: 100,
|
|
1041
1041
|
}),
|
|
1042
1042
|
});
|
|
1043
1043
|
|
|
@@ -1084,7 +1084,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1084
1084
|
administrationFee: 0,
|
|
1085
1085
|
freeContribution: 0,
|
|
1086
1086
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1087
|
-
totalPrice:
|
|
1087
|
+
totalPrice: 5000,
|
|
1088
1088
|
customer: null,
|
|
1089
1089
|
});
|
|
1090
1090
|
// #endregion
|
|
@@ -1105,8 +1105,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1105
1105
|
maximum: 5,
|
|
1106
1106
|
allowAmount: true,
|
|
1107
1107
|
price: ReduceablePrice.create({
|
|
1108
|
-
price:
|
|
1109
|
-
reducedPrice:
|
|
1108
|
+
price: 5_0000,
|
|
1109
|
+
reducedPrice: 3_0000,
|
|
1110
1110
|
}),
|
|
1111
1111
|
});
|
|
1112
1112
|
|
|
@@ -1116,8 +1116,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1116
1116
|
maximum: 2,
|
|
1117
1117
|
allowAmount: true,
|
|
1118
1118
|
price: ReduceablePrice.create({
|
|
1119
|
-
price:
|
|
1120
|
-
reducedPrice:
|
|
1119
|
+
price: 3_0000,
|
|
1120
|
+
reducedPrice: 1_0000,
|
|
1121
1121
|
}),
|
|
1122
1122
|
});
|
|
1123
1123
|
|
|
@@ -1164,7 +1164,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1164
1164
|
administrationFee: 0,
|
|
1165
1165
|
freeContribution: 0,
|
|
1166
1166
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1167
|
-
totalPrice:
|
|
1167
|
+
totalPrice: 50_0000,
|
|
1168
1168
|
customer: null,
|
|
1169
1169
|
});
|
|
1170
1170
|
|
|
@@ -1182,8 +1182,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1182
1182
|
maximum: 5,
|
|
1183
1183
|
allowAmount: true,
|
|
1184
1184
|
price: ReduceablePrice.create({
|
|
1185
|
-
price:
|
|
1186
|
-
reducedPrice:
|
|
1185
|
+
price: 5_0000,
|
|
1186
|
+
reducedPrice: 3_0000,
|
|
1187
1187
|
}),
|
|
1188
1188
|
});
|
|
1189
1189
|
|
|
@@ -1193,8 +1193,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1193
1193
|
maximum: 5,
|
|
1194
1194
|
allowAmount: true,
|
|
1195
1195
|
price: ReduceablePrice.create({
|
|
1196
|
-
price:
|
|
1197
|
-
reducedPrice:
|
|
1196
|
+
price: 3_0000,
|
|
1197
|
+
reducedPrice: 1_0000,
|
|
1198
1198
|
}),
|
|
1199
1199
|
});
|
|
1200
1200
|
|
|
@@ -1241,7 +1241,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1241
1241
|
administrationFee: 0,
|
|
1242
1242
|
freeContribution: 0,
|
|
1243
1243
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1244
|
-
totalPrice:
|
|
1244
|
+
totalPrice: 50_0000,
|
|
1245
1245
|
customer: null,
|
|
1246
1246
|
});
|
|
1247
1247
|
|
|
@@ -1283,12 +1283,12 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1283
1283
|
payingOrganizationId: organization.id,
|
|
1284
1284
|
type: BalanceItemType.PlatformMembership,
|
|
1285
1285
|
amount: 10,
|
|
1286
|
-
unitPrice:
|
|
1286
|
+
unitPrice: 200,
|
|
1287
1287
|
}).create();
|
|
1288
1288
|
|
|
1289
1289
|
const cartItem = BalanceItemCartItem.create({
|
|
1290
1290
|
item: balanceItem1.getStructure(),
|
|
1291
|
-
price:
|
|
1291
|
+
price: 2000,
|
|
1292
1292
|
});
|
|
1293
1293
|
|
|
1294
1294
|
const body = IDRegisterCheckout.create({
|
|
@@ -1302,7 +1302,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1302
1302
|
administrationFee: 0,
|
|
1303
1303
|
freeContribution: 0,
|
|
1304
1304
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1305
|
-
totalPrice:
|
|
1305
|
+
totalPrice: 2000,
|
|
1306
1306
|
asOrganizationId: organization.id,
|
|
1307
1307
|
customer: PaymentCustomer.create({
|
|
1308
1308
|
firstName: user.firstName,
|
|
@@ -1320,9 +1320,9 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1320
1320
|
|
|
1321
1321
|
expect(balanceItem1).toMatchObject({
|
|
1322
1322
|
amount: 10,
|
|
1323
|
-
unitPrice:
|
|
1323
|
+
unitPrice: 200,
|
|
1324
1324
|
priceOpen: 0,
|
|
1325
|
-
pricePending:
|
|
1325
|
+
pricePending: 2000,
|
|
1326
1326
|
pricePaid: 0,
|
|
1327
1327
|
});
|
|
1328
1328
|
});
|
|
@@ -1345,12 +1345,12 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1345
1345
|
payingOrganizationId: organization.id,
|
|
1346
1346
|
type: BalanceItemType.PlatformMembership,
|
|
1347
1347
|
amount: 10,
|
|
1348
|
-
unitPrice:
|
|
1348
|
+
unitPrice: 200,
|
|
1349
1349
|
}).create();
|
|
1350
1350
|
|
|
1351
1351
|
const cartItem = BalanceItemCartItem.create({
|
|
1352
1352
|
item: balanceItem1.getStructure(),
|
|
1353
|
-
price:
|
|
1353
|
+
price: 2000,
|
|
1354
1354
|
});
|
|
1355
1355
|
|
|
1356
1356
|
const body = IDRegisterCheckout.create({
|
|
@@ -1364,7 +1364,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1364
1364
|
administrationFee: 0,
|
|
1365
1365
|
freeContribution: 0,
|
|
1366
1366
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1367
|
-
totalPrice:
|
|
1367
|
+
totalPrice: 2000,
|
|
1368
1368
|
asOrganizationId: organization.id,
|
|
1369
1369
|
customer: PaymentCustomer.create({
|
|
1370
1370
|
firstName: user.firstName,
|
|
@@ -1416,7 +1416,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1416
1416
|
administrationFee: 0,
|
|
1417
1417
|
freeContribution: 0,
|
|
1418
1418
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1419
|
-
totalPrice:
|
|
1419
|
+
totalPrice: 25_0000,
|
|
1420
1420
|
asOrganizationId: organization.id,
|
|
1421
1421
|
});
|
|
1422
1422
|
|
|
@@ -1435,12 +1435,12 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1435
1435
|
payingOrganizationId: organization.id,
|
|
1436
1436
|
type: BalanceItemType.Registration,
|
|
1437
1437
|
amount: 10,
|
|
1438
|
-
unitPrice:
|
|
1438
|
+
unitPrice: 200,
|
|
1439
1439
|
}).create();
|
|
1440
1440
|
|
|
1441
1441
|
const cartItem = BalanceItemCartItem.create({
|
|
1442
1442
|
item: balanceItem1.getStructure(),
|
|
1443
|
-
price:
|
|
1443
|
+
price: 2000,
|
|
1444
1444
|
});
|
|
1445
1445
|
|
|
1446
1446
|
const body = IDRegisterCheckout.create({
|
|
@@ -1454,7 +1454,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1454
1454
|
administrationFee: 0,
|
|
1455
1455
|
freeContribution: 0,
|
|
1456
1456
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1457
|
-
totalPrice:
|
|
1457
|
+
totalPrice: 2000,
|
|
1458
1458
|
asOrganizationId: organization.id,
|
|
1459
1459
|
customer: null,
|
|
1460
1460
|
});
|
|
@@ -1498,7 +1498,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1498
1498
|
administrationFee: 0,
|
|
1499
1499
|
freeContribution: 0,
|
|
1500
1500
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1501
|
-
totalPrice:
|
|
1501
|
+
totalPrice: 25_0000, // This is wrong, but the admin should not know that since he/she does not know the actual financial status of the member
|
|
1502
1502
|
asOrganizationId: organization.id,
|
|
1503
1503
|
});
|
|
1504
1504
|
|
|
@@ -1519,9 +1519,9 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1519
1519
|
type: BalanceItemType.Registration,
|
|
1520
1520
|
registrationId: registration.id,
|
|
1521
1521
|
amount: 1,
|
|
1522
|
-
price:
|
|
1522
|
+
price: 12_5000,
|
|
1523
1523
|
status: BalanceItemStatus.Due,
|
|
1524
|
-
priceOpen:
|
|
1524
|
+
priceOpen: 12_5000,
|
|
1525
1525
|
pricePending: 0,
|
|
1526
1526
|
},
|
|
1527
1527
|
]);
|
|
@@ -1561,7 +1561,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1561
1561
|
administrationFee: 0,
|
|
1562
1562
|
freeContribution: 0,
|
|
1563
1563
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1564
|
-
totalPrice:
|
|
1564
|
+
totalPrice: 25_0000,
|
|
1565
1565
|
asOrganizationId: organization.id,
|
|
1566
1566
|
});
|
|
1567
1567
|
|
|
@@ -1579,9 +1579,9 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1579
1579
|
type: BalanceItemType.Registration,
|
|
1580
1580
|
registrationId: registration.id,
|
|
1581
1581
|
amount: 1,
|
|
1582
|
-
price:
|
|
1582
|
+
price: 25_0000,
|
|
1583
1583
|
status: BalanceItemStatus.Due,
|
|
1584
|
-
priceOpen:
|
|
1584
|
+
priceOpen: 25_0000,
|
|
1585
1585
|
pricePending: 0,
|
|
1586
1586
|
},
|
|
1587
1587
|
]);
|
|
@@ -1598,8 +1598,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1598
1598
|
const { member, organization, token } = await initData({});
|
|
1599
1599
|
const group = await new GroupFactory({
|
|
1600
1600
|
organization,
|
|
1601
|
-
price:
|
|
1602
|
-
reducedPrice:
|
|
1601
|
+
price: 25_0000,
|
|
1602
|
+
reducedPrice: 12_5000,
|
|
1603
1603
|
stock: 500,
|
|
1604
1604
|
period: previousPeriod,
|
|
1605
1605
|
})
|
|
@@ -1626,7 +1626,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1626
1626
|
administrationFee: 0,
|
|
1627
1627
|
freeContribution: 0,
|
|
1628
1628
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1629
|
-
totalPrice:
|
|
1629
|
+
totalPrice: 25_0000,
|
|
1630
1630
|
asOrganizationId: organization.id,
|
|
1631
1631
|
});
|
|
1632
1632
|
|
|
@@ -1661,7 +1661,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1661
1661
|
administrationFee: 0,
|
|
1662
1662
|
freeContribution: 0,
|
|
1663
1663
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1664
|
-
totalPrice:
|
|
1664
|
+
totalPrice: 25_0000,
|
|
1665
1665
|
asOrganizationId: organization.id,
|
|
1666
1666
|
});
|
|
1667
1667
|
|
|
@@ -1682,9 +1682,9 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1682
1682
|
type: BalanceItemType.Registration,
|
|
1683
1683
|
registrationId: registration.id,
|
|
1684
1684
|
amount: 1,
|
|
1685
|
-
price:
|
|
1685
|
+
price: 25_0000,
|
|
1686
1686
|
status: BalanceItemStatus.Due,
|
|
1687
|
-
priceOpen:
|
|
1687
|
+
priceOpen: 25_0000,
|
|
1688
1688
|
pricePending: 0,
|
|
1689
1689
|
},
|
|
1690
1690
|
]);
|
|
@@ -1717,7 +1717,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1717
1717
|
administrationFee: 0,
|
|
1718
1718
|
freeContribution: 0,
|
|
1719
1719
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1720
|
-
totalPrice:
|
|
1720
|
+
totalPrice: 25_0000,
|
|
1721
1721
|
asOrganizationId: organization.id,
|
|
1722
1722
|
});
|
|
1723
1723
|
|
|
@@ -1753,7 +1753,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1753
1753
|
administrationFee: 0,
|
|
1754
1754
|
freeContribution: 0,
|
|
1755
1755
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1756
|
-
totalPrice:
|
|
1756
|
+
totalPrice: 25_0000,
|
|
1757
1757
|
asOrganizationId: organization.id,
|
|
1758
1758
|
});
|
|
1759
1759
|
|
|
@@ -1833,7 +1833,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1833
1833
|
administrationFee: 0,
|
|
1834
1834
|
freeContribution: 0,
|
|
1835
1835
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1836
|
-
totalPrice:
|
|
1836
|
+
totalPrice: 25_0000,
|
|
1837
1837
|
customer: PaymentCustomer.create({
|
|
1838
1838
|
company,
|
|
1839
1839
|
}),
|
|
@@ -1875,7 +1875,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1875
1875
|
administrationFee: 0,
|
|
1876
1876
|
freeContribution: 0,
|
|
1877
1877
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1878
|
-
totalPrice:
|
|
1878
|
+
totalPrice: 25_0000,
|
|
1879
1879
|
customer: PaymentCustomer.create({
|
|
1880
1880
|
company,
|
|
1881
1881
|
}),
|
|
@@ -1913,7 +1913,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1913
1913
|
administrationFee: 0,
|
|
1914
1914
|
freeContribution: 0,
|
|
1915
1915
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1916
|
-
totalPrice:
|
|
1916
|
+
totalPrice: 25_0000,
|
|
1917
1917
|
customer: null,
|
|
1918
1918
|
asOrganizationId: organization2.id,
|
|
1919
1919
|
});
|
|
@@ -1946,7 +1946,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1946
1946
|
administrationFee: 0,
|
|
1947
1947
|
freeContribution: 0,
|
|
1948
1948
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1949
|
-
totalPrice:
|
|
1949
|
+
totalPrice: 25_0000,
|
|
1950
1950
|
customer: null,
|
|
1951
1951
|
asOrganizationId: organization2.id,
|
|
1952
1952
|
});
|
|
@@ -1984,7 +1984,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
1984
1984
|
administrationFee: 0,
|
|
1985
1985
|
freeContribution: 0,
|
|
1986
1986
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
1987
|
-
totalPrice:
|
|
1987
|
+
totalPrice: 500,
|
|
1988
1988
|
asOrganizationId: organization2.id,
|
|
1989
1989
|
customer: null,
|
|
1990
1990
|
});
|
|
@@ -2017,7 +2017,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2017
2017
|
administrationFee: 0,
|
|
2018
2018
|
freeContribution: 0,
|
|
2019
2019
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2020
|
-
totalPrice:
|
|
2020
|
+
totalPrice: 25_0000,
|
|
2021
2021
|
customer: PaymentCustomer.create({
|
|
2022
2022
|
company: null,
|
|
2023
2023
|
}),
|
|
@@ -2052,7 +2052,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2052
2052
|
administrationFee: 0,
|
|
2053
2053
|
freeContribution: 0,
|
|
2054
2054
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2055
|
-
totalPrice:
|
|
2055
|
+
totalPrice: 25_0000,
|
|
2056
2056
|
customer: PaymentCustomer.create({
|
|
2057
2057
|
company: Company.create({
|
|
2058
2058
|
name: 'test company',
|
|
@@ -2084,7 +2084,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2084
2084
|
|
|
2085
2085
|
const group = await new GroupFactory({
|
|
2086
2086
|
organization,
|
|
2087
|
-
price:
|
|
2087
|
+
price: 3000,
|
|
2088
2088
|
stock: 5,
|
|
2089
2089
|
}).create();
|
|
2090
2090
|
|
|
@@ -2109,7 +2109,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2109
2109
|
administrationFee: 0,
|
|
2110
2110
|
freeContribution: 0,
|
|
2111
2111
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2112
|
-
totalPrice:
|
|
2112
|
+
totalPrice: 3000,
|
|
2113
2113
|
asOrganizationId: organization.id,
|
|
2114
2114
|
customer: null,
|
|
2115
2115
|
});
|
|
@@ -2138,8 +2138,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2138
2138
|
|
|
2139
2139
|
const group1 = await new GroupFactory({
|
|
2140
2140
|
organization,
|
|
2141
|
-
price:
|
|
2142
|
-
reducedPrice:
|
|
2141
|
+
price: 25_0000,
|
|
2142
|
+
reducedPrice: 12_5000,
|
|
2143
2143
|
stock: 500,
|
|
2144
2144
|
period: previousPeriod,
|
|
2145
2145
|
})
|
|
@@ -2170,7 +2170,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2170
2170
|
administrationFee: 0,
|
|
2171
2171
|
freeContribution: 0,
|
|
2172
2172
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2173
|
-
totalPrice:
|
|
2173
|
+
totalPrice: 3000,
|
|
2174
2174
|
asOrganizationId: organization.id,
|
|
2175
2175
|
customer: null,
|
|
2176
2176
|
});
|
|
@@ -2227,7 +2227,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2227
2227
|
administrationFee: 0,
|
|
2228
2228
|
freeContribution: 0,
|
|
2229
2229
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2230
|
-
totalPrice:
|
|
2230
|
+
totalPrice: 25_0000,
|
|
2231
2231
|
asOrganizationId: organization2.id,
|
|
2232
2232
|
customer: PaymentCustomer.create({
|
|
2233
2233
|
company,
|
|
@@ -2240,7 +2240,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2240
2240
|
|
|
2241
2241
|
const group = await new GroupFactory({
|
|
2242
2242
|
organization,
|
|
2243
|
-
price:
|
|
2243
|
+
price: 30_0000,
|
|
2244
2244
|
stock: 5,
|
|
2245
2245
|
}).create();
|
|
2246
2246
|
|
|
@@ -2265,7 +2265,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2265
2265
|
administrationFee: 0,
|
|
2266
2266
|
freeContribution: 0,
|
|
2267
2267
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2268
|
-
totalPrice:
|
|
2268
|
+
totalPrice: 30_0000 - 25_0000,
|
|
2269
2269
|
asOrganizationId: organization.id,
|
|
2270
2270
|
customer: PaymentCustomer.create({
|
|
2271
2271
|
company,
|
|
@@ -2294,7 +2294,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2294
2294
|
|
|
2295
2295
|
const group = await new GroupFactory({
|
|
2296
2296
|
organization,
|
|
2297
|
-
price:
|
|
2297
|
+
price: 3000,
|
|
2298
2298
|
stock: 5,
|
|
2299
2299
|
}).create();
|
|
2300
2300
|
|
|
@@ -2319,7 +2319,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2319
2319
|
administrationFee: 0,
|
|
2320
2320
|
freeContribution: 0,
|
|
2321
2321
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2322
|
-
totalPrice:
|
|
2322
|
+
totalPrice: 500,
|
|
2323
2323
|
asOrganizationId: organization.id,
|
|
2324
2324
|
customer: null,
|
|
2325
2325
|
});
|
|
@@ -2347,7 +2347,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2347
2347
|
|
|
2348
2348
|
const group = await new GroupFactory({
|
|
2349
2349
|
organization,
|
|
2350
|
-
price:
|
|
2350
|
+
price: 3000,
|
|
2351
2351
|
stock: 5,
|
|
2352
2352
|
}).create();
|
|
2353
2353
|
|
|
@@ -2372,7 +2372,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2372
2372
|
administrationFee: 0,
|
|
2373
2373
|
freeContribution: 0,
|
|
2374
2374
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2375
|
-
totalPrice:
|
|
2375
|
+
totalPrice: 500,
|
|
2376
2376
|
customer: null,
|
|
2377
2377
|
});
|
|
2378
2378
|
|
|
@@ -2399,7 +2399,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2399
2399
|
|
|
2400
2400
|
const group = await new GroupFactory({
|
|
2401
2401
|
organization: organization1,
|
|
2402
|
-
price:
|
|
2402
|
+
price: 3000,
|
|
2403
2403
|
stock: 5,
|
|
2404
2404
|
}).create();
|
|
2405
2405
|
|
|
@@ -2424,7 +2424,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2424
2424
|
administrationFee: 0,
|
|
2425
2425
|
freeContribution: 0,
|
|
2426
2426
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2427
|
-
totalPrice:
|
|
2427
|
+
totalPrice: 3000,
|
|
2428
2428
|
asOrganizationId: organization1.id,
|
|
2429
2429
|
customer: null,
|
|
2430
2430
|
});
|
|
@@ -2469,7 +2469,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2469
2469
|
|
|
2470
2470
|
const group = await new GroupFactory({
|
|
2471
2471
|
organization: organization1,
|
|
2472
|
-
price:
|
|
2472
|
+
price: 3000,
|
|
2473
2473
|
stock: 5,
|
|
2474
2474
|
}).create();
|
|
2475
2475
|
|
|
@@ -2496,7 +2496,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2496
2496
|
paymentMethod: PaymentMethod.Payconiq,
|
|
2497
2497
|
redirectUrl: new URL('https://www.example.com'),
|
|
2498
2498
|
cancelUrl: new URL('https://www.example.com'),
|
|
2499
|
-
totalPrice:
|
|
2499
|
+
totalPrice: 500,
|
|
2500
2500
|
customer: null,
|
|
2501
2501
|
});
|
|
2502
2502
|
|
|
@@ -2514,7 +2514,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2514
2514
|
|
|
2515
2515
|
const group = await new GroupFactory({
|
|
2516
2516
|
organization,
|
|
2517
|
-
price:
|
|
2517
|
+
price: 3000,
|
|
2518
2518
|
stock: 5,
|
|
2519
2519
|
}).create();
|
|
2520
2520
|
|
|
@@ -2539,7 +2539,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2539
2539
|
administrationFee: 0,
|
|
2540
2540
|
freeContribution: 0,
|
|
2541
2541
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2542
|
-
totalPrice:
|
|
2542
|
+
totalPrice: 3000,
|
|
2543
2543
|
asOrganizationId: organization.id,
|
|
2544
2544
|
customer: null,
|
|
2545
2545
|
});
|
|
@@ -2556,8 +2556,8 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2556
2556
|
|
|
2557
2557
|
const group1 = await new GroupFactory({
|
|
2558
2558
|
organization,
|
|
2559
|
-
price:
|
|
2560
|
-
reducedPrice:
|
|
2559
|
+
price: 25_0000,
|
|
2560
|
+
reducedPrice: 12_5000,
|
|
2561
2561
|
stock: 500,
|
|
2562
2562
|
period: previousPeriod,
|
|
2563
2563
|
})
|
|
@@ -2579,7 +2579,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2579
2579
|
administrationFee: 0,
|
|
2580
2580
|
freeContribution: 0,
|
|
2581
2581
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2582
|
-
totalPrice:
|
|
2582
|
+
totalPrice: 3000,
|
|
2583
2583
|
asOrganizationId: organization.id,
|
|
2584
2584
|
customer: null,
|
|
2585
2585
|
});
|
|
@@ -2610,14 +2610,14 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2610
2610
|
administrationFee: 0,
|
|
2611
2611
|
freeContribution: 0,
|
|
2612
2612
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2613
|
-
totalPrice:
|
|
2613
|
+
totalPrice: 25_0000,
|
|
2614
2614
|
asOrganizationId: organization.id,
|
|
2615
2615
|
customer: null,
|
|
2616
2616
|
});
|
|
2617
2617
|
|
|
2618
2618
|
const group2 = await new GroupFactory({
|
|
2619
2619
|
organization,
|
|
2620
|
-
price:
|
|
2620
|
+
price: 3000,
|
|
2621
2621
|
stock: 5,
|
|
2622
2622
|
}).create();
|
|
2623
2623
|
|
|
@@ -2648,7 +2648,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2648
2648
|
administrationFee: 0,
|
|
2649
2649
|
freeContribution: 0,
|
|
2650
2650
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2651
|
-
totalPrice:
|
|
2651
|
+
totalPrice: 3000 - 2500 + 100 * Math.round(25 * cancellationFeePercentage / 10000),
|
|
2652
2652
|
asOrganizationId: organization.id,
|
|
2653
2653
|
customer: null,
|
|
2654
2654
|
});
|
|
@@ -2700,7 +2700,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2700
2700
|
administrationFee: 0,
|
|
2701
2701
|
freeContribution: 0,
|
|
2702
2702
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2703
|
-
totalPrice:
|
|
2703
|
+
totalPrice: 500,
|
|
2704
2704
|
customer: null,
|
|
2705
2705
|
});
|
|
2706
2706
|
|
|
@@ -2784,7 +2784,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2784
2784
|
|
|
2785
2785
|
const group2 = await new GroupFactory({
|
|
2786
2786
|
organization,
|
|
2787
|
-
price:
|
|
2787
|
+
price: 3000,
|
|
2788
2788
|
stock: 5,
|
|
2789
2789
|
}).create();
|
|
2790
2790
|
|
|
@@ -2809,7 +2809,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2809
2809
|
administrationFee: 0,
|
|
2810
2810
|
freeContribution: 0,
|
|
2811
2811
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2812
|
-
totalPrice:
|
|
2812
|
+
totalPrice: 500,
|
|
2813
2813
|
customer: null,
|
|
2814
2814
|
asOrganizationId: organization.id,
|
|
2815
2815
|
});
|
|
@@ -2833,7 +2833,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2833
2833
|
|
|
2834
2834
|
const group2 = await new GroupFactory({
|
|
2835
2835
|
organization,
|
|
2836
|
-
price:
|
|
2836
|
+
price: 3000,
|
|
2837
2837
|
stock: 5,
|
|
2838
2838
|
}).create();
|
|
2839
2839
|
|
|
@@ -2841,7 +2841,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2841
2841
|
|
|
2842
2842
|
const group3 = await new GroupFactory({
|
|
2843
2843
|
organization,
|
|
2844
|
-
price:
|
|
2844
|
+
price: 3000,
|
|
2845
2845
|
stock: 5,
|
|
2846
2846
|
}).create();
|
|
2847
2847
|
|
|
@@ -2866,7 +2866,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2866
2866
|
administrationFee: 0,
|
|
2867
2867
|
freeContribution: 0,
|
|
2868
2868
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2869
|
-
totalPrice:
|
|
2869
|
+
totalPrice: 3000,
|
|
2870
2870
|
customer: null,
|
|
2871
2871
|
asOrganizationId: organization.id,
|
|
2872
2872
|
});
|
|
@@ -2890,7 +2890,7 @@ describe('Endpoint.RegisterMembers', () => {
|
|
|
2890
2890
|
administrationFee: 0,
|
|
2891
2891
|
freeContribution: 0,
|
|
2892
2892
|
paymentMethod: PaymentMethod.PointOfSale,
|
|
2893
|
-
totalPrice:
|
|
2893
|
+
totalPrice: 3000,
|
|
2894
2894
|
customer: null,
|
|
2895
2895
|
asOrganizationId: organization.id,
|
|
2896
2896
|
});
|