@tennac-booking/sdk 1.0.125 → 1.0.126

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.
Files changed (60) hide show
  1. package/.openapi-generator/FILES +333 -343
  2. package/README.md +9 -19
  3. package/api.ts +354 -619
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +256 -490
  8. package/dist/api.js +99 -156
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +256 -490
  16. package/dist/esm/api.js +95 -152
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsStaffApi.md +10 -10
  28. package/docs/{EventBookingResponseSetupStatus.md → CheckInPlayerRequest.md} +5 -3
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  31. package/docs/CreatePlan201Response.md +2 -0
  32. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  33. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  34. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  35. package/docs/EventsApi.md +1 -4
  36. package/docs/MonthlyTurnoverResponse.md +0 -1
  37. package/docs/OffPeakRule.md +2 -0
  38. package/docs/PlanPrice.md +26 -0
  39. package/docs/{CheckInPlayersRequest.md → PlanPriceInput.md} +7 -5
  40. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  41. package/docs/PublishEventResponse.md +0 -2
  42. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  43. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  44. package/docs/SubscriptionPlanResponse.md +7 -1
  45. package/docs/SubscriptionsManagerApi.md +55 -1
  46. package/docs/UsersApi.md +0 -54
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
  49. package/docs/EventBookingDetailSummary.md +0 -40
  50. package/docs/EventBookingResponse.md +0 -36
  51. package/docs/EventBookingResponsePlayersInner.md +0 -28
  52. package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +0 -18
  53. package/docs/EventBookingStatus.md +0 -16
  54. package/docs/InvoiceStatusSETUPPENDING.md +0 -8
  55. package/docs/InvoiceStatusSETUPSUCCESS.md +0 -8
  56. package/docs/ParticipationType.md +0 -10
  57. package/docs/UserEventParticipation.md +0 -22
  58. package/docs/UserEventSummary.md +0 -44
  59. package/docs/UserEventsResponse.md +0 -28
  60. package/docs/VisibilityType.md +0 -12
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1458,34 +1458,34 @@ export interface CheckInEventParticipantsRequest {
1458
1458
  /**
1459
1459
  *
1460
1460
  * @export
1461
- * @interface CheckInPlayersRequest
1461
+ * @interface CheckInPlayerRequest
1462
1462
  */
1463
- export interface CheckInPlayersRequest {
1463
+ export interface CheckInPlayerRequest {
1464
1464
  /**
1465
- * Liste des IDs des joueurs qui ont payé/sont arrivés
1466
- * @type {Array<string>}
1467
- * @memberof CheckInPlayersRequest
1465
+ * ID du joueur qui a payé/est arrivé
1466
+ * @type {string}
1467
+ * @memberof CheckInPlayerRequest
1468
1468
  */
1469
- 'playerIds': Array<string>;
1469
+ 'playerId': string;
1470
1470
  }
1471
1471
  /**
1472
1472
  *
1473
1473
  * @export
1474
- * @interface CheckInPlayersResponse
1474
+ * @interface CheckInPlayerResponse
1475
1475
  */
1476
- export interface CheckInPlayersResponse {
1476
+ export interface CheckInPlayerResponse {
1477
1477
  /**
1478
1478
  * Message de confirmation
1479
1479
  * @type {string}
1480
- * @memberof CheckInPlayersResponse
1480
+ * @memberof CheckInPlayerResponse
1481
1481
  */
1482
1482
  'message': string;
1483
1483
  /**
1484
- * Joueurs ayant effectué le check-in
1485
- * @type {Array<CheckedInPlayer>}
1486
- * @memberof CheckInPlayersResponse
1484
+ *
1485
+ * @type {CheckedInPlayer}
1486
+ * @memberof CheckInPlayerResponse
1487
1487
  */
1488
- 'invoices': Array<CheckedInPlayer>;
1488
+ 'invoice': CheckedInPlayer;
1489
1489
  }
1490
1490
  /**
1491
1491
  *
@@ -2747,11 +2747,11 @@ export interface ClubPlayerSubscriptionSummary {
2747
2747
  */
2748
2748
  'name': string | null;
2749
2749
  /**
2750
- * Montant en centimes
2751
- * @type {number}
2750
+ * Tarifications disponibles
2751
+ * @type {Array<PlanPrice>}
2752
2752
  * @memberof ClubPlayerSubscriptionSummary
2753
2753
  */
2754
- 'amountInCents': number | null;
2754
+ 'prices': Array<PlanPrice>;
2755
2755
  /**
2756
2756
  * Devise
2757
2757
  * @type {string}
@@ -2759,7 +2759,7 @@ export interface ClubPlayerSubscriptionSummary {
2759
2759
  */
2760
2760
  'currency': string | null;
2761
2761
  /**
2762
- * Intervalle de facturation
2762
+ * Intervalle par défaut
2763
2763
  * @type {string}
2764
2764
  * @memberof ClubPlayerSubscriptionSummary
2765
2765
  */
@@ -3985,6 +3985,12 @@ export interface CreateOnsiteInvoiceResponseInvoice {
3985
3985
  * @interface CreatePlan201Response
3986
3986
  */
3987
3987
  export interface CreatePlan201Response {
3988
+ /**
3989
+ *
3990
+ * @type {Array<string>}
3991
+ * @memberof CreatePlan201Response
3992
+ */
3993
+ 'priceIds': Array<string>;
3988
3994
  /**
3989
3995
  *
3990
3996
  * @type {string}
@@ -4099,10 +4105,10 @@ export interface CreateSubscriptionPlanRequest {
4099
4105
  'description'?: string;
4100
4106
  /**
4101
4107
  *
4102
- * @type {number}
4108
+ * @type {Array<PlanPriceInput>}
4103
4109
  * @memberof CreateSubscriptionPlanRequest
4104
4110
  */
4105
- 'amountInCents': number;
4111
+ 'prices': Array<PlanPriceInput>;
4106
4112
  /**
4107
4113
  *
4108
4114
  * @type {string}
@@ -4140,8 +4146,15 @@ export interface CreateSubscriptionPlanRequestDiscount {
4140
4146
  *
4141
4147
  * @type {Array<OffPeakRule>}
4142
4148
  * @memberof CreateSubscriptionPlanRequestDiscount
4149
+ * @deprecated
4143
4150
  */
4144
4151
  'offPeakRules'?: Array<OffPeakRule>;
4152
+ /**
4153
+ * Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club.
4154
+ * @type {Array<string>}
4155
+ * @memberof CreateSubscriptionPlanRequestDiscount
4156
+ */
4157
+ 'offPeakRuleNames'?: Array<string>;
4145
4158
  /**
4146
4159
  *
4147
4160
  * @type {string}
@@ -4295,6 +4308,12 @@ export interface DeleteSubscriptionPlanResponse {
4295
4308
  * @memberof DeleteSubscriptionPlanResponse
4296
4309
  */
4297
4310
  'message': string;
4311
+ /**
4312
+ *
4313
+ * @type {boolean}
4314
+ * @memberof DeleteSubscriptionPlanResponse
4315
+ */
4316
+ 'archivedInstead'?: boolean;
4298
4317
  }
4299
4318
  /**
4300
4319
  *
@@ -4411,212 +4430,6 @@ export interface EstimateEventPriceRequestSharesInner {
4411
4430
  */
4412
4431
  'playerId': string;
4413
4432
  }
4414
- /**
4415
- *
4416
- * @export
4417
- * @interface EventBookingDetailSummary
4418
- */
4419
- export interface EventBookingDetailSummary {
4420
- /**
4421
- *
4422
- * @type {string}
4423
- * @memberof EventBookingDetailSummary
4424
- */
4425
- 'id': string;
4426
- /**
4427
- *
4428
- * @type {EventBookingStatus}
4429
- * @memberof EventBookingDetailSummary
4430
- */
4431
- 'status': EventBookingStatus;
4432
- /**
4433
- *
4434
- * @type {string}
4435
- * @memberof EventBookingDetailSummary
4436
- */
4437
- 'teamName'?: string | null;
4438
- /**
4439
- *
4440
- * @type {Array<string>}
4441
- * @memberof EventBookingDetailSummary
4442
- */
4443
- 'players': Array<string>;
4444
- /**
4445
- *
4446
- * @type {Array<string>}
4447
- * @memberof EventBookingDetailSummary
4448
- */
4449
- 'invoices': Array<string>;
4450
- /**
4451
- *
4452
- * @type {string}
4453
- * @memberof EventBookingDetailSummary
4454
- */
4455
- 'creatorPaymentMethodId'?: string | null;
4456
- /**
4457
- *
4458
- * @type {boolean}
4459
- * @memberof EventBookingDetailSummary
4460
- */
4461
- 'paymentMethodSetupCompleted': boolean;
4462
- /**
4463
- *
4464
- * @type {string}
4465
- * @memberof EventBookingDetailSummary
4466
- */
4467
- 'limitSetupDate'?: string | null;
4468
- /**
4469
- *
4470
- * @type {string}
4471
- * @memberof EventBookingDetailSummary
4472
- */
4473
- 'limitCancellationDate'?: string | null;
4474
- /**
4475
- *
4476
- * @type {string}
4477
- * @memberof EventBookingDetailSummary
4478
- */
4479
- 'createdAt': string;
4480
- /**
4481
- *
4482
- * @type {string}
4483
- * @memberof EventBookingDetailSummary
4484
- */
4485
- 'updatedAt': string;
4486
- }
4487
-
4488
-
4489
- /**
4490
- *
4491
- * @export
4492
- * @interface EventBookingResponse
4493
- */
4494
- export interface EventBookingResponse {
4495
- /**
4496
- *
4497
- * @type {string}
4498
- * @memberof EventBookingResponse
4499
- */
4500
- 'id': string;
4501
- /**
4502
- *
4503
- * @type {EventBookingStatus}
4504
- * @memberof EventBookingResponse
4505
- */
4506
- 'status': EventBookingStatus;
4507
- /**
4508
- *
4509
- * @type {string}
4510
- * @memberof EventBookingResponse
4511
- */
4512
- 'teamName'?: string | null;
4513
- /**
4514
- *
4515
- * @type {Array<EventBookingResponsePlayersInner>}
4516
- * @memberof EventBookingResponse
4517
- */
4518
- 'players': Array<EventBookingResponsePlayersInner>;
4519
- /**
4520
- *
4521
- * @type {string}
4522
- * @memberof EventBookingResponse
4523
- */
4524
- 'setupLimitDate'?: string | null;
4525
- /**
4526
- *
4527
- * @type {string}
4528
- * @memberof EventBookingResponse
4529
- */
4530
- 'cancellationLimitDate'?: string | null;
4531
- /**
4532
- *
4533
- * @type {EventBookingResponseSetupStatus}
4534
- * @memberof EventBookingResponse
4535
- */
4536
- 'setupStatus'?: EventBookingResponseSetupStatus | null;
4537
- /**
4538
- *
4539
- * @type {string}
4540
- * @memberof EventBookingResponse
4541
- */
4542
- 'createdAt': string;
4543
- /**
4544
- *
4545
- * @type {string}
4546
- * @memberof EventBookingResponse
4547
- */
4548
- 'updatedAt': string;
4549
- }
4550
-
4551
-
4552
- /**
4553
- *
4554
- * @export
4555
- * @interface EventBookingResponsePlayersInner
4556
- */
4557
- export interface EventBookingResponsePlayersInner {
4558
- /**
4559
- *
4560
- * @type {EventBookingResponsePlayersInnerInvoiceStatus}
4561
- * @memberof EventBookingResponsePlayersInner
4562
- */
4563
- 'invoiceStatus'?: EventBookingResponsePlayersInnerInvoiceStatus | null;
4564
- /**
4565
- *
4566
- * @type {string}
4567
- * @memberof EventBookingResponsePlayersInner
4568
- */
4569
- 'profilePicture'?: string | null;
4570
- /**
4571
- *
4572
- * @type {string}
4573
- * @memberof EventBookingResponsePlayersInner
4574
- */
4575
- 'lastName'?: string | null;
4576
- /**
4577
- *
4578
- * @type {string}
4579
- * @memberof EventBookingResponsePlayersInner
4580
- */
4581
- 'firstName'?: string | null;
4582
- /**
4583
- *
4584
- * @type {string}
4585
- * @memberof EventBookingResponsePlayersInner
4586
- */
4587
- 'id': string;
4588
- }
4589
- /**
4590
- *
4591
- * @export
4592
- * @interface EventBookingResponsePlayersInnerInvoiceStatus
4593
- */
4594
- export interface EventBookingResponsePlayersInnerInvoiceStatus {
4595
- }
4596
- /**
4597
- *
4598
- * @export
4599
- * @interface EventBookingResponseSetupStatus
4600
- */
4601
- export interface EventBookingResponseSetupStatus {
4602
- }
4603
- /**
4604
- *
4605
- * @export
4606
- * @enum {string}
4607
- */
4608
-
4609
- export const EventBookingStatus = {
4610
- Pending: 'pending',
4611
- Paid: 'paid',
4612
- Cancelled: 'cancelled',
4613
- Expired: 'expired',
4614
- Archived: 'archived'
4615
- } as const;
4616
-
4617
- export type EventBookingStatus = typeof EventBookingStatus[keyof typeof EventBookingStatus];
4618
-
4619
-
4620
4433
  /**
4621
4434
  *
4622
4435
  * @export
@@ -5957,32 +5770,6 @@ export const InvoiceStatus = {
5957
5770
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
5958
5771
 
5959
5772
 
5960
- /**
5961
- *
5962
- * @export
5963
- * @enum {string}
5964
- */
5965
-
5966
- export const InvoiceStatusSETUPPENDING = {
5967
- SetupPending: 'setup_pending'
5968
- } as const;
5969
-
5970
- export type InvoiceStatusSETUPPENDING = typeof InvoiceStatusSETUPPENDING[keyof typeof InvoiceStatusSETUPPENDING];
5971
-
5972
-
5973
- /**
5974
- *
5975
- * @export
5976
- * @enum {string}
5977
- */
5978
-
5979
- export const InvoiceStatusSETUPSUCCESS = {
5980
- SetupSuccess: 'setup_success'
5981
- } as const;
5982
-
5983
- export type InvoiceStatusSETUPSUCCESS = typeof InvoiceStatusSETUPSUCCESS[keyof typeof InvoiceStatusSETUPSUCCESS];
5984
-
5985
-
5986
5773
  /**
5987
5774
  *
5988
5775
  * @export
@@ -6320,7 +6107,7 @@ export interface MonthlyBreakdown {
6320
6107
  'invoiceCount': number;
6321
6108
  }
6322
6109
  /**
6323
- * Types TSOA pour les analytics du club
6110
+ *
6324
6111
  * @export
6325
6112
  * @interface MonthlyTurnoverResponse
6326
6113
  */
@@ -6436,6 +6223,12 @@ export interface NoShowFeeResponse {
6436
6223
  * @interface OffPeakRule
6437
6224
  */
6438
6225
  export interface OffPeakRule {
6226
+ /**
6227
+ *
6228
+ * @type {string}
6229
+ * @memberof OffPeakRule
6230
+ */
6231
+ 'pricingPeriodName'?: string;
6439
6232
  /**
6440
6233
  *
6441
6234
  * @type {number}
@@ -6614,20 +6407,6 @@ export interface PartialClubWeeklySchedule {
6614
6407
  */
6615
6408
  'sunday'?: ClubDaySchedule;
6616
6409
  }
6617
- /**
6618
- *
6619
- * @export
6620
- * @enum {string}
6621
- */
6622
-
6623
- export const ParticipationType = {
6624
- Solo: 'solo',
6625
- Team: 'team'
6626
- } as const;
6627
-
6628
- export type ParticipationType = typeof ParticipationType[keyof typeof ParticipationType];
6629
-
6630
-
6631
6410
  /**
6632
6411
  *
6633
6412
  * @export
@@ -6772,6 +6551,60 @@ export const PlanInterval = {
6772
6551
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
6773
6552
 
6774
6553
 
6554
+ /**
6555
+ *
6556
+ * @export
6557
+ * @interface PlanPrice
6558
+ */
6559
+ export interface PlanPrice {
6560
+ /**
6561
+ *
6562
+ * @type {number}
6563
+ * @memberof PlanPrice
6564
+ */
6565
+ 'amountInCents': number;
6566
+ /**
6567
+ *
6568
+ * @type {PlanInterval}
6569
+ * @memberof PlanPrice
6570
+ */
6571
+ 'interval': PlanInterval;
6572
+ /**
6573
+ *
6574
+ * @type {boolean}
6575
+ * @memberof PlanPrice
6576
+ */
6577
+ 'active'?: boolean;
6578
+ /**
6579
+ *
6580
+ * @type {string}
6581
+ * @memberof PlanPrice
6582
+ */
6583
+ 'stripePriceId'?: string;
6584
+ }
6585
+
6586
+
6587
+ /**
6588
+ *
6589
+ * @export
6590
+ * @interface PlanPriceInput
6591
+ */
6592
+ export interface PlanPriceInput {
6593
+ /**
6594
+ *
6595
+ * @type {number}
6596
+ * @memberof PlanPriceInput
6597
+ */
6598
+ 'amountInCents': number;
6599
+ /**
6600
+ *
6601
+ * @type {PlanInterval}
6602
+ * @memberof PlanPriceInput
6603
+ */
6604
+ 'interval': PlanInterval;
6605
+ }
6606
+
6607
+
6775
6608
  /**
6776
6609
  *
6777
6610
  * @export
@@ -7154,13 +6987,19 @@ export interface PublicSubscriptionPlanResponse {
7154
6987
  * @type {number}
7155
6988
  * @memberof PublicSubscriptionPlanResponse
7156
6989
  */
7157
- 'amountInCents': number;
6990
+ 'amountInCents'?: number;
7158
6991
  /**
7159
6992
  *
7160
6993
  * @type {string}
7161
6994
  * @memberof PublicSubscriptionPlanResponse
7162
6995
  */
7163
6996
  'currency': string;
6997
+ /**
6998
+ *
6999
+ * @type {Array<PlanPrice>}
7000
+ * @memberof PublicSubscriptionPlanResponse
7001
+ */
7002
+ 'prices': Array<PlanPrice>;
7164
7003
  /**
7165
7004
  *
7166
7005
  * @type {PlanInterval}
@@ -7173,6 +7012,12 @@ export interface PublicSubscriptionPlanResponse {
7173
7012
  * @memberof PublicSubscriptionPlanResponse
7174
7013
  */
7175
7014
  'description'?: string;
7015
+ /**
7016
+ *
7017
+ * @type {SubscriptionPlanDiscountResponse}
7018
+ * @memberof PublicSubscriptionPlanResponse
7019
+ */
7020
+ 'discount'?: SubscriptionPlanDiscountResponse;
7176
7021
  }
7177
7022
 
7178
7023
 
@@ -7279,12 +7124,6 @@ export interface PublishEventResponse {
7279
7124
  * @memberof PublishEventResponse
7280
7125
  */
7281
7126
  'refundedBookingIds'?: Array<string>;
7282
- /**
7283
- *
7284
- * @type {EventBookingResponse}
7285
- * @memberof PublishEventResponse
7286
- */
7287
- 'userBooking'?: EventBookingResponse;
7288
7127
  }
7289
7128
  /**
7290
7129
  *
@@ -7810,6 +7649,12 @@ export interface SendSubscriptionInvitationRequest {
7810
7649
  * @memberof SendSubscriptionInvitationRequest
7811
7650
  */
7812
7651
  'productId': string;
7652
+ /**
7653
+ * Price spécifique proposé dans l\'invitation (facultatif).
7654
+ * @type {string}
7655
+ * @memberof SendSubscriptionInvitationRequest
7656
+ */
7657
+ 'priceId'?: string;
7813
7658
  }
7814
7659
  /**
7815
7660
  *
@@ -9975,6 +9820,63 @@ export interface SubscriptionMutationResponse {
9975
9820
  */
9976
9821
  'subscription': { [key: string]: any; };
9977
9822
  }
9823
+ /**
9824
+ *
9825
+ * @export
9826
+ * @interface SubscriptionPlanDiscountResponse
9827
+ */
9828
+ export interface SubscriptionPlanDiscountResponse {
9829
+ /**
9830
+ *
9831
+ * @type {DiscountType}
9832
+ * @memberof SubscriptionPlanDiscountResponse
9833
+ */
9834
+ 'type': DiscountType;
9835
+ /**
9836
+ *
9837
+ * @type {number}
9838
+ * @memberof SubscriptionPlanDiscountResponse
9839
+ */
9840
+ 'percentage'?: number;
9841
+ /**
9842
+ *
9843
+ * @type {number}
9844
+ * @memberof SubscriptionPlanDiscountResponse
9845
+ */
9846
+ 'maxDiscountAmountInCents'?: number;
9847
+ /**
9848
+ *
9849
+ * @type {string}
9850
+ * @memberof SubscriptionPlanDiscountResponse
9851
+ */
9852
+ 'validFrom'?: string;
9853
+ /**
9854
+ *
9855
+ * @type {string}
9856
+ * @memberof SubscriptionPlanDiscountResponse
9857
+ */
9858
+ 'validTo'?: string;
9859
+ /**
9860
+ *
9861
+ * @type {Array<string>}
9862
+ * @memberof SubscriptionPlanDiscountResponse
9863
+ */
9864
+ 'offPeakRuleNames'?: Array<string>;
9865
+ /**
9866
+ *
9867
+ * @type {Array<OffPeakRule>}
9868
+ * @memberof SubscriptionPlanDiscountResponse
9869
+ */
9870
+ 'offPeakRules'?: Array<OffPeakRule>;
9871
+ /**
9872
+ *
9873
+ * @type {boolean}
9874
+ * @memberof SubscriptionPlanDiscountResponse
9875
+ */
9876
+ 'bookingFree'?: boolean;
9877
+ }
9878
+
9879
+
9978
9880
  /**
9979
9881
  *
9980
9882
  * @export
@@ -10010,13 +9912,19 @@ export interface SubscriptionPlanResponse {
10010
9912
  * @type {number}
10011
9913
  * @memberof SubscriptionPlanResponse
10012
9914
  */
10013
- 'amountInCents': number;
9915
+ 'amountInCents'?: number;
10014
9916
  /**
10015
9917
  *
10016
9918
  * @type {string}
10017
9919
  * @memberof SubscriptionPlanResponse
10018
9920
  */
10019
9921
  'currency': string;
9922
+ /**
9923
+ *
9924
+ * @type {Array<PlanPrice>}
9925
+ * @memberof SubscriptionPlanResponse
9926
+ */
9927
+ 'prices': Array<PlanPrice>;
10020
9928
  /**
10021
9929
  *
10022
9930
  * @type {PlanInterval}
@@ -10029,6 +9937,18 @@ export interface SubscriptionPlanResponse {
10029
9937
  * @memberof SubscriptionPlanResponse
10030
9938
  */
10031
9939
  'priceActive': boolean;
9940
+ /**
9941
+ *
9942
+ * @type {string}
9943
+ * @memberof SubscriptionPlanResponse
9944
+ */
9945
+ 'description'?: string;
9946
+ /**
9947
+ *
9948
+ * @type {SubscriptionPlanDiscountResponse}
9949
+ * @memberof SubscriptionPlanResponse
9950
+ */
9951
+ 'discount'?: SubscriptionPlanDiscountResponse;
10032
9952
  }
10033
9953
 
10034
9954
 
@@ -10920,244 +10840,101 @@ export interface UserClubMembership {
10920
10840
  * @export
10921
10841
  * @interface UserClubMembershipsResponse
10922
10842
  */
10923
- export interface UserClubMembershipsResponse {
10924
- /**
10925
- *
10926
- * @type {Array<UserClubMembership>}
10927
- * @memberof UserClubMembershipsResponse
10928
- */
10929
- 'clubs': Array<UserClubMembership>;
10930
- }
10931
- /**
10932
- *
10933
- * @export
10934
- * @interface UserClubSubscription
10935
- */
10936
- export interface UserClubSubscription {
10937
- /**
10938
- *
10939
- * @type {string}
10940
- * @memberof UserClubSubscription
10941
- */
10942
- 'id': string;
10943
- /**
10944
- *
10945
- * @type {string}
10946
- * @memberof UserClubSubscription
10947
- */
10948
- 'status': string;
10949
- /**
10950
- *
10951
- * @type {number}
10952
- * @memberof UserClubSubscription
10953
- */
10954
- 'currentPeriodStart': number | null;
10955
- /**
10956
- *
10957
- * @type {number}
10958
- * @memberof UserClubSubscription
10959
- */
10960
- 'currentPeriodEnd': number | null;
10961
- /**
10962
- *
10963
- * @type {number}
10964
- * @memberof UserClubSubscription
10965
- */
10966
- 'cancelAt': number | null;
10967
- /**
10968
- *
10969
- * @type {number}
10970
- * @memberof UserClubSubscription
10971
- */
10972
- 'canceledAt': number | null;
10973
- /**
10974
- *
10975
- * @type {string}
10976
- * @memberof UserClubSubscription
10977
- */
10978
- 'priceId': string | null;
10979
- /**
10980
- *
10981
- * @type {string}
10982
- * @memberof UserClubSubscription
10983
- */
10984
- 'planId': string | null;
10985
- /**
10986
- *
10987
- * @type {string}
10988
- * @memberof UserClubSubscription
10989
- */
10990
- 'planName': string | null;
10991
- /**
10992
- *
10993
- * @type {string}
10994
- * @memberof UserClubSubscription
10995
- */
10996
- 'planDescription': string | null;
10997
- /**
10998
- *
10999
- * @type {number}
11000
- * @memberof UserClubSubscription
11001
- */
11002
- 'amountInCents': number | null;
11003
- /**
11004
- *
11005
- * @type {string}
11006
- * @memberof UserClubSubscription
11007
- */
11008
- 'currency': string | null;
11009
- /**
11010
- *
11011
- * @type {PlanInterval}
11012
- * @memberof UserClubSubscription
11013
- */
11014
- 'interval': PlanInterval | null;
11015
- }
11016
-
11017
-
11018
- /**
11019
- *
11020
- * @export
11021
- * @interface UserEventParticipation
11022
- */
11023
- export interface UserEventParticipation {
11024
- /**
11025
- *
11026
- * @type {UserEventSummary}
11027
- * @memberof UserEventParticipation
11028
- */
11029
- 'event': UserEventSummary;
10843
+ export interface UserClubMembershipsResponse {
11030
10844
  /**
11031
10845
  *
11032
- * @type {EventBookingDetailSummary}
11033
- * @memberof UserEventParticipation
10846
+ * @type {Array<UserClubMembership>}
10847
+ * @memberof UserClubMembershipsResponse
11034
10848
  */
11035
- 'booking': EventBookingDetailSummary;
10849
+ 'clubs': Array<UserClubMembership>;
11036
10850
  }
11037
10851
  /**
11038
10852
  *
11039
10853
  * @export
11040
- * @interface UserEventSummary
10854
+ * @interface UserClubSubscription
11041
10855
  */
11042
- export interface UserEventSummary {
10856
+ export interface UserClubSubscription {
11043
10857
  /**
11044
10858
  *
11045
10859
  * @type {string}
11046
- * @memberof UserEventSummary
10860
+ * @memberof UserClubSubscription
11047
10861
  */
11048
10862
  'id': string;
11049
10863
  /**
11050
10864
  *
11051
10865
  * @type {string}
11052
- * @memberof UserEventSummary
10866
+ * @memberof UserClubSubscription
11053
10867
  */
11054
- 'clubId': string;
10868
+ 'status': string;
11055
10869
  /**
11056
10870
  *
11057
- * @type {string}
11058
- * @memberof UserEventSummary
10871
+ * @type {number}
10872
+ * @memberof UserClubSubscription
11059
10873
  */
11060
- 'title': string;
10874
+ 'currentPeriodStart': number | null;
11061
10875
  /**
11062
10876
  *
11063
- * @type {string}
11064
- * @memberof UserEventSummary
10877
+ * @type {number}
10878
+ * @memberof UserClubSubscription
11065
10879
  */
11066
- 'description'?: string | null;
10880
+ 'currentPeriodEnd': number | null;
11067
10881
  /**
11068
10882
  *
11069
- * @type {string}
11070
- * @memberof UserEventSummary
10883
+ * @type {number}
10884
+ * @memberof UserClubSubscription
11071
10885
  */
11072
- 'photoUrl'?: string | null;
10886
+ 'cancelAt': number | null;
11073
10887
  /**
11074
10888
  *
11075
- * @type {string}
11076
- * @memberof UserEventSummary
10889
+ * @type {number}
10890
+ * @memberof UserClubSubscription
11077
10891
  */
11078
- 'startDate': string;
10892
+ 'canceledAt': number | null;
11079
10893
  /**
11080
10894
  *
11081
10895
  * @type {string}
11082
- * @memberof UserEventSummary
10896
+ * @memberof UserClubSubscription
11083
10897
  */
11084
- 'endDate': string;
10898
+ 'priceId': string | null;
11085
10899
  /**
11086
10900
  *
11087
- * @type {ParticipationType}
11088
- * @memberof UserEventSummary
10901
+ * @type {string}
10902
+ * @memberof UserClubSubscription
11089
10903
  */
11090
- 'participationType': ParticipationType;
10904
+ 'planId': string | null;
11091
10905
  /**
11092
10906
  *
11093
- * @type {VisibilityType}
11094
- * @memberof UserEventSummary
10907
+ * @type {string}
10908
+ * @memberof UserClubSubscription
11095
10909
  */
11096
- 'visibilityType': VisibilityType;
10910
+ 'planName': string | null;
11097
10911
  /**
11098
10912
  *
11099
- * @type {boolean}
11100
- * @memberof UserEventSummary
10913
+ * @type {string}
10914
+ * @memberof UserClubSubscription
11101
10915
  */
11102
- 'isActive': boolean;
10916
+ 'planDescription': string | null;
11103
10917
  /**
11104
10918
  *
11105
10919
  * @type {number}
11106
- * @memberof UserEventSummary
10920
+ * @memberof UserClubSubscription
11107
10921
  */
11108
- 'price'?: number | null;
10922
+ 'amountInCents': number | null;
11109
10923
  /**
11110
10924
  *
11111
- * @type {Array<string>}
11112
- * @memberof UserEventSummary
10925
+ * @type {string}
10926
+ * @memberof UserClubSubscription
11113
10927
  */
11114
- 'sports'?: Array<string>;
10928
+ 'currency': string | null;
11115
10929
  /**
11116
10930
  *
11117
- * @type {Array<string>}
11118
- * @memberof UserEventSummary
10931
+ * @type {PlanInterval}
10932
+ * @memberof UserClubSubscription
11119
10933
  */
11120
- 'courts'?: Array<string>;
10934
+ 'interval': PlanInterval | null;
11121
10935
  }
11122
10936
 
11123
10937
 
11124
- /**
11125
- *
11126
- * @export
11127
- * @interface UserEventsResponse
11128
- */
11129
- export interface UserEventsResponse {
11130
- /**
11131
- *
11132
- * @type {number}
11133
- * @memberof UserEventsResponse
11134
- */
11135
- 'total': number;
11136
- /**
11137
- *
11138
- * @type {number}
11139
- * @memberof UserEventsResponse
11140
- */
11141
- 'limit': number;
11142
- /**
11143
- *
11144
- * @type {number}
11145
- * @memberof UserEventsResponse
11146
- */
11147
- 'skip': number;
11148
- /**
11149
- *
11150
- * @type {boolean}
11151
- * @memberof UserEventsResponse
11152
- */
11153
- 'hasMore': boolean;
11154
- /**
11155
- *
11156
- * @type {Array<UserEventParticipation>}
11157
- * @memberof UserEventsResponse
11158
- */
11159
- 'participations': Array<UserEventParticipation>;
11160
- }
11161
10938
  /**
11162
10939
  *
11163
10940
  * @export
@@ -11557,21 +11334,6 @@ export interface VerifyEmailRequest {
11557
11334
  */
11558
11335
  'token'?: string;
11559
11336
  }
11560
- /**
11561
- *
11562
- * @export
11563
- * @enum {string}
11564
- */
11565
-
11566
- export const VisibilityType = {
11567
- Public: 'public',
11568
- Private: 'private',
11569
- Invitation: 'invitation'
11570
- } as const;
11571
-
11572
- export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
11573
-
11574
-
11575
11337
  /**
11576
11338
  *
11577
11339
  * @export
@@ -12247,17 +12009,17 @@ export class BookingsManagerApi extends BaseAPI {
12247
12009
  export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
12248
12010
  return {
12249
12011
  /**
12250
- * Check-in des joueurs only for club with payment features
12012
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12251
12013
  * @param {string} bookingId
12252
- * @param {CheckInPlayersRequest} checkInPlayersRequest
12014
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
12253
12015
  * @param {*} [options] Override http request option.
12254
12016
  * @throws {RequiredError}
12255
12017
  */
12256
- checkInPlayers: async (bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12018
+ checkInPlayer: async (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12257
12019
  // verify required parameter 'bookingId' is not null or undefined
12258
- assertParamExists('checkInPlayers', 'bookingId', bookingId)
12259
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
12260
- assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest)
12020
+ assertParamExists('checkInPlayer', 'bookingId', bookingId)
12021
+ // verify required parameter 'checkInPlayerRequest' is not null or undefined
12022
+ assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest)
12261
12023
  const localVarPath = `/api/bookings/{bookingId}/check-in`
12262
12024
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12263
12025
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -12282,7 +12044,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
12282
12044
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12283
12045
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12284
12046
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12285
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
12047
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration)
12286
12048
 
12287
12049
  return {
12288
12050
  url: toPathString(localVarUrlObj),
@@ -12582,16 +12344,16 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
12582
12344
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
12583
12345
  return {
12584
12346
  /**
12585
- * Check-in des joueurs only for club with payment features
12347
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12586
12348
  * @param {string} bookingId
12587
- * @param {CheckInPlayersRequest} checkInPlayersRequest
12349
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
12588
12350
  * @param {*} [options] Override http request option.
12589
12351
  * @throws {RequiredError}
12590
12352
  */
12591
- async checkInPlayers(bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayersResponse>> {
12592
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
12353
+ async checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>> {
12354
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
12593
12355
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12594
- const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
12356
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
12595
12357
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12596
12358
  },
12597
12359
  /**
@@ -12693,13 +12455,13 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
12693
12455
  const localVarFp = BookingsStaffApiFp(configuration)
12694
12456
  return {
12695
12457
  /**
12696
- * Check-in des joueurs only for club with payment features
12697
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
12458
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12459
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
12698
12460
  * @param {*} [options] Override http request option.
12699
12461
  * @throws {RequiredError}
12700
12462
  */
12701
- checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
12702
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
12463
+ checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse> {
12464
+ return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
12703
12465
  },
12704
12466
  /**
12705
12467
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -12768,24 +12530,24 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
12768
12530
  };
12769
12531
 
12770
12532
  /**
12771
- * Request parameters for checkInPlayers operation in BookingsStaffApi.
12533
+ * Request parameters for checkInPlayer operation in BookingsStaffApi.
12772
12534
  * @export
12773
- * @interface BookingsStaffApiCheckInPlayersRequest
12535
+ * @interface BookingsStaffApiCheckInPlayerRequest
12774
12536
  */
12775
- export interface BookingsStaffApiCheckInPlayersRequest {
12537
+ export interface BookingsStaffApiCheckInPlayerRequest {
12776
12538
  /**
12777
12539
  *
12778
12540
  * @type {string}
12779
- * @memberof BookingsStaffApiCheckInPlayers
12541
+ * @memberof BookingsStaffApiCheckInPlayer
12780
12542
  */
12781
12543
  readonly bookingId: string
12782
12544
 
12783
12545
  /**
12784
12546
  *
12785
- * @type {CheckInPlayersRequest}
12786
- * @memberof BookingsStaffApiCheckInPlayers
12547
+ * @type {CheckInPlayerRequest}
12548
+ * @memberof BookingsStaffApiCheckInPlayer
12787
12549
  */
12788
- readonly checkInPlayersRequest: CheckInPlayersRequest
12550
+ readonly checkInPlayerRequest: CheckInPlayerRequest
12789
12551
  }
12790
12552
 
12791
12553
  /**
@@ -12922,14 +12684,14 @@ export interface BookingsStaffApiListClubBookingsRequest {
12922
12684
  */
12923
12685
  export class BookingsStaffApi extends BaseAPI {
12924
12686
  /**
12925
- * Check-in des joueurs only for club with payment features
12926
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
12687
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12688
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
12927
12689
  * @param {*} [options] Override http request option.
12928
12690
  * @throws {RequiredError}
12929
12691
  * @memberof BookingsStaffApi
12930
12692
  */
12931
- public checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig) {
12932
- return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
12693
+ public checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig) {
12694
+ return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
12933
12695
  }
12934
12696
 
12935
12697
  /**
@@ -20265,11 +20027,10 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
20265
20027
  /**
20266
20028
  * Get a specific event by ID
20267
20029
  * @param {string} eventId
20268
- * @param {string} [userId]
20269
20030
  * @param {*} [options] Override http request option.
20270
20031
  * @throws {RequiredError}
20271
20032
  */
20272
- getEventById: async (eventId: string, userId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20033
+ getEventById: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20273
20034
  // verify required parameter 'eventId' is not null or undefined
20274
20035
  assertParamExists('getEventById', 'eventId', eventId)
20275
20036
  const localVarPath = `/api/events/{eventId}`
@@ -20285,10 +20046,6 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
20285
20046
  const localVarHeaderParameter = {} as any;
20286
20047
  const localVarQueryParameter = {} as any;
20287
20048
 
20288
- if (userId !== undefined) {
20289
- localVarQueryParameter['userId'] = userId;
20290
- }
20291
-
20292
20049
 
20293
20050
 
20294
20051
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -20468,12 +20225,11 @@ export const EventsApiFp = function(configuration?: Configuration) {
20468
20225
  /**
20469
20226
  * Get a specific event by ID
20470
20227
  * @param {string} eventId
20471
- * @param {string} [userId]
20472
20228
  * @param {*} [options] Override http request option.
20473
20229
  * @throws {RequiredError}
20474
20230
  */
20475
- async getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
20476
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, userId, options);
20231
+ async getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
20232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, options);
20477
20233
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20478
20234
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
20479
20235
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20553,7 +20309,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
20553
20309
  * @throws {RequiredError}
20554
20310
  */
20555
20311
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
20556
- return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
20312
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
20557
20313
  },
20558
20314
  /**
20559
20315
  * Get all published events for a club
@@ -20639,13 +20395,6 @@ export interface EventsApiGetEventByIdRequest {
20639
20395
  * @memberof EventsApiGetEventById
20640
20396
  */
20641
20397
  readonly eventId: string
20642
-
20643
- /**
20644
- *
20645
- * @type {string}
20646
- * @memberof EventsApiGetEventById
20647
- */
20648
- readonly userId?: string
20649
20398
  }
20650
20399
 
20651
20400
  /**
@@ -20755,7 +20504,7 @@ export class EventsApi extends BaseAPI {
20755
20504
  * @memberof EventsApi
20756
20505
  */
20757
20506
  public getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig) {
20758
- return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
20507
+ return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
20759
20508
  }
20760
20509
 
20761
20510
  /**
@@ -22651,6 +22400,43 @@ export class SportsPublicApi extends BaseAPI {
22651
22400
  */
22652
22401
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
22653
22402
  return {
22403
+ /**
22404
+ * Supprime (archive) un plan par productId (manager)
22405
+ * @param {string} productId
22406
+ * @param {*} [options] Override http request option.
22407
+ * @throws {RequiredError}
22408
+ */
22409
+ archivePlan: async (productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22410
+ // verify required parameter 'productId' is not null or undefined
22411
+ assertParamExists('archivePlan', 'productId', productId)
22412
+ const localVarPath = `/api/subscriptions/plans/{productId}/archive`
22413
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
22414
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22415
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22416
+ let baseOptions;
22417
+ if (configuration) {
22418
+ baseOptions = configuration.baseOptions;
22419
+ }
22420
+
22421
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22422
+ const localVarHeaderParameter = {} as any;
22423
+ const localVarQueryParameter = {} as any;
22424
+
22425
+ // authentication bearerAuth required
22426
+ // http bearer authentication required
22427
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22428
+
22429
+
22430
+
22431
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22432
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22433
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22434
+
22435
+ return {
22436
+ url: toPathString(localVarUrlObj),
22437
+ options: localVarRequestOptions,
22438
+ };
22439
+ },
22654
22440
  /**
22655
22441
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22656
22442
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22691,7 +22477,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22691
22477
  };
22692
22478
  },
22693
22479
  /**
22694
- * Supprime (archive) un plan par productId (manager)
22480
+ * Supprime un plan par productId (manager)
22695
22481
  * @param {string} productId
22696
22482
  * @param {*} [options] Override http request option.
22697
22483
  * @throws {RequiredError}
@@ -22776,6 +22562,18 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22776
22562
  export const SubscriptionsManagerApiFp = function(configuration?: Configuration) {
22777
22563
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration)
22778
22564
  return {
22565
+ /**
22566
+ * Supprime (archive) un plan par productId (manager)
22567
+ * @param {string} productId
22568
+ * @param {*} [options] Override http request option.
22569
+ * @throws {RequiredError}
22570
+ */
22571
+ async archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>> {
22572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archivePlan(productId, options);
22573
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22574
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsManagerApi.archivePlan']?.[localVarOperationServerIndex]?.url;
22575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22576
+ },
22779
22577
  /**
22780
22578
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22781
22579
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22789,7 +22587,7 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22789
22587
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22790
22588
  },
22791
22589
  /**
22792
- * Supprime (archive) un plan par productId (manager)
22590
+ * Supprime un plan par productId (manager)
22793
22591
  * @param {string} productId
22794
22592
  * @param {*} [options] Override http request option.
22795
22593
  * @throws {RequiredError}
@@ -22822,6 +22620,15 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22822
22620
  export const SubscriptionsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22823
22621
  const localVarFp = SubscriptionsManagerApiFp(configuration)
22824
22622
  return {
22623
+ /**
22624
+ * Supprime (archive) un plan par productId (manager)
22625
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22626
+ * @param {*} [options] Override http request option.
22627
+ * @throws {RequiredError}
22628
+ */
22629
+ archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse> {
22630
+ return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
22631
+ },
22825
22632
  /**
22826
22633
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22827
22634
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22832,7 +22639,7 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22832
22639
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
22833
22640
  },
22834
22641
  /**
22835
- * Supprime (archive) un plan par productId (manager)
22642
+ * Supprime un plan par productId (manager)
22836
22643
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22837
22644
  * @param {*} [options] Override http request option.
22838
22645
  * @throws {RequiredError}
@@ -22852,6 +22659,20 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22852
22659
  };
22853
22660
  };
22854
22661
 
22662
+ /**
22663
+ * Request parameters for archivePlan operation in SubscriptionsManagerApi.
22664
+ * @export
22665
+ * @interface SubscriptionsManagerApiArchivePlanRequest
22666
+ */
22667
+ export interface SubscriptionsManagerApiArchivePlanRequest {
22668
+ /**
22669
+ *
22670
+ * @type {string}
22671
+ * @memberof SubscriptionsManagerApiArchivePlan
22672
+ */
22673
+ readonly productId: string
22674
+ }
22675
+
22855
22676
  /**
22856
22677
  * Request parameters for createPlan operation in SubscriptionsManagerApi.
22857
22678
  * @export
@@ -22901,6 +22722,17 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
22901
22722
  * @extends {BaseAPI}
22902
22723
  */
22903
22724
  export class SubscriptionsManagerApi extends BaseAPI {
22725
+ /**
22726
+ * Supprime (archive) un plan par productId (manager)
22727
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22728
+ * @param {*} [options] Override http request option.
22729
+ * @throws {RequiredError}
22730
+ * @memberof SubscriptionsManagerApi
22731
+ */
22732
+ public archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig) {
22733
+ return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
22734
+ }
22735
+
22904
22736
  /**
22905
22737
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22906
22738
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22913,7 +22745,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
22913
22745
  }
22914
22746
 
22915
22747
  /**
22916
- * Supprime (archive) un plan par productId (manager)
22748
+ * Supprime un plan par productId (manager)
22917
22749
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22918
22750
  * @param {*} [options] Override http request option.
22919
22751
  * @throws {RequiredError}
@@ -24423,49 +24255,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
24423
24255
 
24424
24256
 
24425
24257
 
24426
- setSearchParams(localVarUrlObj, localVarQueryParameter);
24427
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24428
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24429
-
24430
- return {
24431
- url: toPathString(localVarUrlObj),
24432
- options: localVarRequestOptions,
24433
- };
24434
- },
24435
- /**
24436
- *
24437
- * @param {number} [limit]
24438
- * @param {number} [skip]
24439
- * @param {*} [options] Override http request option.
24440
- * @throws {RequiredError}
24441
- */
24442
- getUserEvents: async (limit?: number, skip?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24443
- const localVarPath = `/api/users/me/events`;
24444
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
24445
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24446
- let baseOptions;
24447
- if (configuration) {
24448
- baseOptions = configuration.baseOptions;
24449
- }
24450
-
24451
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
24452
- const localVarHeaderParameter = {} as any;
24453
- const localVarQueryParameter = {} as any;
24454
-
24455
- // authentication bearerAuth required
24456
- // http bearer authentication required
24457
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
24458
-
24459
- if (limit !== undefined) {
24460
- localVarQueryParameter['limit'] = limit;
24461
- }
24462
-
24463
- if (skip !== undefined) {
24464
- localVarQueryParameter['skip'] = skip;
24465
- }
24466
-
24467
-
24468
-
24469
24258
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24470
24259
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24471
24260
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25404,19 +25193,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
25404
25193
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
25405
25194
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25406
25195
  },
25407
- /**
25408
- *
25409
- * @param {number} [limit]
25410
- * @param {number} [skip]
25411
- * @param {*} [options] Override http request option.
25412
- * @throws {RequiredError}
25413
- */
25414
- async getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>> {
25415
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserEvents(limit, skip, options);
25416
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25417
- const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserEvents']?.[localVarOperationServerIndex]?.url;
25418
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25419
- },
25420
25196
  /**
25421
25197
  *
25422
25198
  * @param {string} id
@@ -25805,15 +25581,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
25805
25581
  getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
25806
25582
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
25807
25583
  },
25808
- /**
25809
- *
25810
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
25811
- * @param {*} [options] Override http request option.
25812
- * @throws {RequiredError}
25813
- */
25814
- getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse> {
25815
- return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
25816
- },
25817
25584
  /**
25818
25585
  *
25819
25586
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -26181,27 +25948,6 @@ export interface UsersApiGetUserBookingsRequest {
26181
25948
  readonly skip?: number
26182
25949
  }
26183
25950
 
26184
- /**
26185
- * Request parameters for getUserEvents operation in UsersApi.
26186
- * @export
26187
- * @interface UsersApiGetUserEventsRequest
26188
- */
26189
- export interface UsersApiGetUserEventsRequest {
26190
- /**
26191
- *
26192
- * @type {number}
26193
- * @memberof UsersApiGetUserEvents
26194
- */
26195
- readonly limit?: number
26196
-
26197
- /**
26198
- *
26199
- * @type {number}
26200
- * @memberof UsersApiGetUserEvents
26201
- */
26202
- readonly skip?: number
26203
- }
26204
-
26205
25951
  /**
26206
25952
  * Request parameters for getUserProfileById operation in UsersApi.
26207
25953
  * @export
@@ -26700,17 +26446,6 @@ export class UsersApi extends BaseAPI {
26700
26446
  return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
26701
26447
  }
26702
26448
 
26703
- /**
26704
- *
26705
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
26706
- * @param {*} [options] Override http request option.
26707
- * @throws {RequiredError}
26708
- * @memberof UsersApi
26709
- */
26710
- public getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig) {
26711
- return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
26712
- }
26713
-
26714
26449
  /**
26715
26450
  *
26716
26451
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.