@tennac-booking/sdk 1.0.129 → 1.0.131

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 (63) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +24 -5
  3. package/api.ts +876 -74
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +685 -57
  8. package/dist/api.js +286 -29
  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 +685 -57
  16. package/dist/esm/api.js +282 -25
  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/{CheckInPlayersRequest.md → CheckInPlayerRequest.md} +5 -5
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubAccessSettingsResponse.md +26 -0
  31. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  32. package/docs/ClubSettingsManagerApi.md +52 -0
  33. package/docs/ClubSettingsStaffApi.md +44 -0
  34. package/docs/ClubsStaffApi.md +47 -0
  35. package/docs/CreatePlan201Response.md +2 -0
  36. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  37. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  38. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  39. package/docs/EstimateEventPrice200Response.md +0 -2
  40. package/docs/EventBookingDetailSummary.md +2 -2
  41. package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -0
  42. package/docs/GetClubType200Response.md +20 -0
  43. package/docs/HotelAccessSettings.md +26 -0
  44. package/docs/MonthlyTurnoverResponse.md +0 -1
  45. package/docs/OffPeakRule.md +2 -0
  46. package/docs/PartialHotelAccessSettings.md +27 -0
  47. package/docs/PartialPaymentRequirementsSettings.md +23 -0
  48. package/docs/PartialPublicAccessSettings.md +25 -0
  49. package/docs/PartialSchoolAccessSettings.md +25 -0
  50. package/docs/PaymentRequirementsSettings.md +22 -0
  51. package/docs/PlanPrice.md +26 -0
  52. package/docs/PlanPriceInput.md +22 -0
  53. package/docs/PublicAccessSettings.md +24 -0
  54. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  55. package/docs/SchoolAccessSettings.md +24 -0
  56. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  57. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  58. package/docs/SubscriptionPlanResponse.md +7 -1
  59. package/docs/SubscriptionsManagerApi.md +55 -1
  60. package/docs/UpdateClubAccessSettingsRequest.md +26 -0
  61. package/docs/UserClubSubscription.md +2 -0
  62. package/index.ts +1 -1
  63. package/package.json +1 -1
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.129
7
+ * The version of the OpenAPI document: 1.0.131
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
  *
@@ -1837,6 +1837,37 @@ export interface ClientSubscriptionsResponse {
1837
1837
  */
1838
1838
  'subscriptions': Array<ClientSubscription>;
1839
1839
  }
1840
+ /**
1841
+ *
1842
+ * @export
1843
+ * @interface ClubAccessSettingsResponse
1844
+ */
1845
+ export interface ClubAccessSettingsResponse {
1846
+ /**
1847
+ *
1848
+ * @type {PublicAccessSettings}
1849
+ * @memberof ClubAccessSettingsResponse
1850
+ */
1851
+ 'publicAccess': PublicAccessSettings | null;
1852
+ /**
1853
+ *
1854
+ * @type {SchoolAccessSettings}
1855
+ * @memberof ClubAccessSettingsResponse
1856
+ */
1857
+ 'schoolAccess': SchoolAccessSettings | null;
1858
+ /**
1859
+ *
1860
+ * @type {HotelAccessSettings}
1861
+ * @memberof ClubAccessSettingsResponse
1862
+ */
1863
+ 'hotelAccess': HotelAccessSettings | null;
1864
+ /**
1865
+ *
1866
+ * @type {PaymentRequirementsSettings}
1867
+ * @memberof ClubAccessSettingsResponse
1868
+ */
1869
+ 'paymentRequirements': PaymentRequirementsSettings | null;
1870
+ }
1840
1871
  /**
1841
1872
  *
1842
1873
  * @export
@@ -2747,11 +2778,11 @@ export interface ClubPlayerSubscriptionSummary {
2747
2778
  */
2748
2779
  'name': string | null;
2749
2780
  /**
2750
- * Montant en centimes
2751
- * @type {number}
2781
+ * Tarifications disponibles
2782
+ * @type {Array<PlanPrice>}
2752
2783
  * @memberof ClubPlayerSubscriptionSummary
2753
2784
  */
2754
- 'amountInCents': number | null;
2785
+ 'prices': Array<PlanPrice>;
2755
2786
  /**
2756
2787
  * Devise
2757
2788
  * @type {string}
@@ -2759,7 +2790,7 @@ export interface ClubPlayerSubscriptionSummary {
2759
2790
  */
2760
2791
  'currency': string | null;
2761
2792
  /**
2762
- * Intervalle de facturation
2793
+ * Intervalle par défaut
2763
2794
  * @type {string}
2764
2795
  * @memberof ClubPlayerSubscriptionSummary
2765
2796
  */
@@ -3985,6 +4016,12 @@ export interface CreateOnsiteInvoiceResponseInvoice {
3985
4016
  * @interface CreatePlan201Response
3986
4017
  */
3987
4018
  export interface CreatePlan201Response {
4019
+ /**
4020
+ *
4021
+ * @type {Array<string>}
4022
+ * @memberof CreatePlan201Response
4023
+ */
4024
+ 'priceIds': Array<string>;
3988
4025
  /**
3989
4026
  *
3990
4027
  * @type {string}
@@ -4099,10 +4136,10 @@ export interface CreateSubscriptionPlanRequest {
4099
4136
  'description'?: string;
4100
4137
  /**
4101
4138
  *
4102
- * @type {number}
4139
+ * @type {Array<PlanPriceInput>}
4103
4140
  * @memberof CreateSubscriptionPlanRequest
4104
4141
  */
4105
- 'amountInCents': number;
4142
+ 'prices': Array<PlanPriceInput>;
4106
4143
  /**
4107
4144
  *
4108
4145
  * @type {string}
@@ -4140,8 +4177,15 @@ export interface CreateSubscriptionPlanRequestDiscount {
4140
4177
  *
4141
4178
  * @type {Array<OffPeakRule>}
4142
4179
  * @memberof CreateSubscriptionPlanRequestDiscount
4180
+ * @deprecated
4143
4181
  */
4144
4182
  'offPeakRules'?: Array<OffPeakRule>;
4183
+ /**
4184
+ * 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.
4185
+ * @type {Array<string>}
4186
+ * @memberof CreateSubscriptionPlanRequestDiscount
4187
+ */
4188
+ 'offPeakRuleNames'?: Array<string>;
4145
4189
  /**
4146
4190
  *
4147
4191
  * @type {string}
@@ -4295,6 +4339,12 @@ export interface DeleteSubscriptionPlanResponse {
4295
4339
  * @memberof DeleteSubscriptionPlanResponse
4296
4340
  */
4297
4341
  'message': string;
4342
+ /**
4343
+ *
4344
+ * @type {boolean}
4345
+ * @memberof DeleteSubscriptionPlanResponse
4346
+ */
4347
+ 'archivedInstead'?: boolean;
4298
4348
  }
4299
4349
  /**
4300
4350
  *
@@ -4348,12 +4398,6 @@ export interface EstimateEventPrice200Response {
4348
4398
  * @memberof EstimateEventPrice200Response
4349
4399
  */
4350
4400
  'total': number;
4351
- /**
4352
- * Construct a type with a set of properties K of type T
4353
- * @type {{ [key: string]: number; }}
4354
- * @memberof EstimateEventPrice200Response
4355
- */
4356
- 'perPayer': { [key: string]: number; };
4357
4401
  /**
4358
4402
  * Construct a type with a set of properties K of type T
4359
4403
  * @type {{ [key: string]: number; }}
@@ -4442,11 +4486,11 @@ export interface EventBookingDetailSummary {
4442
4486
  */
4443
4487
  'players': Array<string>;
4444
4488
  /**
4445
- *
4446
- * @type {Array<string>}
4489
+ * Détails des paiements par joueur pour cette réservation d\'événement. Remplace l\'ancien champ `invoices`.
4490
+ * @type {Array<EventBookingDetailSummaryPaymentPerPlayersInner>}
4447
4491
  * @memberof EventBookingDetailSummary
4448
4492
  */
4449
- 'invoices': Array<string>;
4493
+ 'paymentPerPlayers': Array<EventBookingDetailSummaryPaymentPerPlayersInner>;
4450
4494
  /**
4451
4495
  *
4452
4496
  * @type {string}
@@ -4486,6 +4530,51 @@ export interface EventBookingDetailSummary {
4486
4530
  }
4487
4531
 
4488
4532
 
4533
+ /**
4534
+ *
4535
+ * @export
4536
+ * @interface EventBookingDetailSummaryPaymentPerPlayersInner
4537
+ */
4538
+ export interface EventBookingDetailSummaryPaymentPerPlayersInner {
4539
+ /**
4540
+ *
4541
+ * @type {number}
4542
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4543
+ */
4544
+ 'amount'?: number | null;
4545
+ /**
4546
+ *
4547
+ * @type {InvoiceStatus}
4548
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4549
+ */
4550
+ 'status'?: InvoiceStatus | null;
4551
+ /**
4552
+ *
4553
+ * @type {string}
4554
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4555
+ */
4556
+ 'profilePicture'?: string | null;
4557
+ /**
4558
+ *
4559
+ * @type {string}
4560
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4561
+ */
4562
+ 'lastName'?: string | null;
4563
+ /**
4564
+ *
4565
+ * @type {string}
4566
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4567
+ */
4568
+ 'firstName'?: string | null;
4569
+ /**
4570
+ *
4571
+ * @type {string}
4572
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4573
+ */
4574
+ 'id': string;
4575
+ }
4576
+
4577
+
4489
4578
  /**
4490
4579
  *
4491
4580
  * @export
@@ -5152,6 +5241,19 @@ export interface GetClubRoles200Response {
5152
5241
  */
5153
5242
  'roles': Array<any>;
5154
5243
  }
5244
+ /**
5245
+ *
5246
+ * @export
5247
+ * @interface GetClubType200Response
5248
+ */
5249
+ export interface GetClubType200Response {
5250
+ /**
5251
+ *
5252
+ * @type {string}
5253
+ * @memberof GetClubType200Response
5254
+ */
5255
+ 'clubType': string;
5256
+ }
5155
5257
  /**
5156
5258
  *
5157
5259
  * @export
@@ -5358,6 +5460,37 @@ export interface GoogleAuthResponseUser {
5358
5460
  */
5359
5461
  'id': string;
5360
5462
  }
5463
+ /**
5464
+ *
5465
+ * @export
5466
+ * @interface HotelAccessSettings
5467
+ */
5468
+ export interface HotelAccessSettings {
5469
+ /**
5470
+ *
5471
+ * @type {boolean}
5472
+ * @memberof HotelAccessSettings
5473
+ */
5474
+ 'enabled': boolean;
5475
+ /**
5476
+ *
5477
+ * @type {string}
5478
+ * @memberof HotelAccessSettings
5479
+ */
5480
+ 'accessCode'?: string | null;
5481
+ /**
5482
+ *
5483
+ * @type {string}
5484
+ * @memberof HotelAccessSettings
5485
+ */
5486
+ 'validFrom'?: string | null;
5487
+ /**
5488
+ *
5489
+ * @type {string}
5490
+ * @memberof HotelAccessSettings
5491
+ */
5492
+ 'validUntil'?: string | null;
5493
+ }
5361
5494
  /**
5362
5495
  *
5363
5496
  * @export
@@ -6320,7 +6453,7 @@ export interface MonthlyBreakdown {
6320
6453
  'invoiceCount': number;
6321
6454
  }
6322
6455
  /**
6323
- * Types TSOA pour les analytics du club
6456
+ *
6324
6457
  * @export
6325
6458
  * @interface MonthlyTurnoverResponse
6326
6459
  */
@@ -6436,6 +6569,12 @@ export interface NoShowFeeResponse {
6436
6569
  * @interface OffPeakRule
6437
6570
  */
6438
6571
  export interface OffPeakRule {
6572
+ /**
6573
+ *
6574
+ * @type {string}
6575
+ * @memberof OffPeakRule
6576
+ */
6577
+ 'pricingPeriodName'?: string;
6439
6578
  /**
6440
6579
  *
6441
6580
  * @type {number}
@@ -6614,6 +6753,115 @@ export interface PartialClubWeeklySchedule {
6614
6753
  */
6615
6754
  'sunday'?: ClubDaySchedule;
6616
6755
  }
6756
+ /**
6757
+ * Make all properties in T optional
6758
+ * @export
6759
+ * @interface PartialHotelAccessSettings
6760
+ */
6761
+ export interface PartialHotelAccessSettings {
6762
+ /**
6763
+ *
6764
+ * @type {string}
6765
+ * @memberof PartialHotelAccessSettings
6766
+ */
6767
+ 'accessCode'?: string;
6768
+ /**
6769
+ *
6770
+ * @type {string}
6771
+ * @memberof PartialHotelAccessSettings
6772
+ */
6773
+ 'validFrom'?: string;
6774
+ /**
6775
+ *
6776
+ * @type {string}
6777
+ * @memberof PartialHotelAccessSettings
6778
+ */
6779
+ 'validUntil'?: string;
6780
+ /**
6781
+ *
6782
+ * @type {boolean}
6783
+ * @memberof PartialHotelAccessSettings
6784
+ */
6785
+ 'enabled'?: boolean;
6786
+ }
6787
+ /**
6788
+ * Make all properties in T optional
6789
+ * @export
6790
+ * @interface PartialPaymentRequirementsSettings
6791
+ */
6792
+ export interface PartialPaymentRequirementsSettings {
6793
+ /**
6794
+ *
6795
+ * @type {boolean}
6796
+ * @memberof PartialPaymentRequirementsSettings
6797
+ */
6798
+ 'isNoShowEnabled'?: boolean;
6799
+ /**
6800
+ *
6801
+ * @type {boolean}
6802
+ * @memberof PartialPaymentRequirementsSettings
6803
+ */
6804
+ 'requireOnlinePayment'?: boolean;
6805
+ }
6806
+ /**
6807
+ * Make all properties in T optional
6808
+ * @export
6809
+ * @interface PartialPublicAccessSettings
6810
+ */
6811
+ export interface PartialPublicAccessSettings {
6812
+ /**
6813
+ *
6814
+ * @type {string}
6815
+ * @memberof PartialPublicAccessSettings
6816
+ */
6817
+ 'paymentMode'?: PartialPublicAccessSettingsPaymentModeEnum;
6818
+ /**
6819
+ *
6820
+ * @type {number}
6821
+ * @memberof PartialPublicAccessSettings
6822
+ */
6823
+ 'pricePerAccess'?: number;
6824
+ /**
6825
+ *
6826
+ * @type {boolean}
6827
+ * @memberof PartialPublicAccessSettings
6828
+ */
6829
+ 'enabled'?: boolean;
6830
+ }
6831
+
6832
+ export const PartialPublicAccessSettingsPaymentModeEnum = {
6833
+ Free: 'free',
6834
+ AccessFee: 'access_fee',
6835
+ PerCourt: 'per_court'
6836
+ } as const;
6837
+
6838
+ export type PartialPublicAccessSettingsPaymentModeEnum = typeof PartialPublicAccessSettingsPaymentModeEnum[keyof typeof PartialPublicAccessSettingsPaymentModeEnum];
6839
+
6840
+ /**
6841
+ * Make all properties in T optional
6842
+ * @export
6843
+ * @interface PartialSchoolAccessSettings
6844
+ */
6845
+ export interface PartialSchoolAccessSettings {
6846
+ /**
6847
+ *
6848
+ * @type {Array<string>}
6849
+ * @memberof PartialSchoolAccessSettings
6850
+ */
6851
+ 'emailSuffixes'?: Array<string>;
6852
+ /**
6853
+ *
6854
+ * @type {boolean}
6855
+ * @memberof PartialSchoolAccessSettings
6856
+ */
6857
+ 'requireCertification'?: boolean;
6858
+ /**
6859
+ *
6860
+ * @type {boolean}
6861
+ * @memberof PartialSchoolAccessSettings
6862
+ */
6863
+ 'enabled'?: boolean;
6864
+ }
6617
6865
  /**
6618
6866
  *
6619
6867
  * @export
@@ -6677,6 +6925,25 @@ export const PaymentMethod = {
6677
6925
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
6678
6926
 
6679
6927
 
6928
+ /**
6929
+ *
6930
+ * @export
6931
+ * @interface PaymentRequirementsSettings
6932
+ */
6933
+ export interface PaymentRequirementsSettings {
6934
+ /**
6935
+ *
6936
+ * @type {boolean}
6937
+ * @memberof PaymentRequirementsSettings
6938
+ */
6939
+ 'isNoShowEnabled': boolean;
6940
+ /**
6941
+ *
6942
+ * @type {boolean}
6943
+ * @memberof PaymentRequirementsSettings
6944
+ */
6945
+ 'requireOnlinePayment': boolean;
6946
+ }
6680
6947
  /**
6681
6948
  * From T, pick a set of properties whose keys are in the union K
6682
6949
  * @export
@@ -6772,6 +7039,60 @@ export const PlanInterval = {
6772
7039
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
6773
7040
 
6774
7041
 
7042
+ /**
7043
+ *
7044
+ * @export
7045
+ * @interface PlanPrice
7046
+ */
7047
+ export interface PlanPrice {
7048
+ /**
7049
+ *
7050
+ * @type {number}
7051
+ * @memberof PlanPrice
7052
+ */
7053
+ 'amountInCents': number;
7054
+ /**
7055
+ *
7056
+ * @type {PlanInterval}
7057
+ * @memberof PlanPrice
7058
+ */
7059
+ 'interval': PlanInterval;
7060
+ /**
7061
+ *
7062
+ * @type {boolean}
7063
+ * @memberof PlanPrice
7064
+ */
7065
+ 'active'?: boolean;
7066
+ /**
7067
+ *
7068
+ * @type {string}
7069
+ * @memberof PlanPrice
7070
+ */
7071
+ 'stripePriceId'?: string;
7072
+ }
7073
+
7074
+
7075
+ /**
7076
+ *
7077
+ * @export
7078
+ * @interface PlanPriceInput
7079
+ */
7080
+ export interface PlanPriceInput {
7081
+ /**
7082
+ *
7083
+ * @type {number}
7084
+ * @memberof PlanPriceInput
7085
+ */
7086
+ 'amountInCents': number;
7087
+ /**
7088
+ *
7089
+ * @type {PlanInterval}
7090
+ * @memberof PlanPriceInput
7091
+ */
7092
+ 'interval': PlanInterval;
7093
+ }
7094
+
7095
+
6775
7096
  /**
6776
7097
  *
6777
7098
  * @export
@@ -7131,6 +7452,40 @@ export interface ProfilePictureUpdateRequestBody {
7131
7452
  */
7132
7453
  'profilePicture': string;
7133
7454
  }
7455
+ /**
7456
+ *
7457
+ * @export
7458
+ * @interface PublicAccessSettings
7459
+ */
7460
+ export interface PublicAccessSettings {
7461
+ /**
7462
+ *
7463
+ * @type {boolean}
7464
+ * @memberof PublicAccessSettings
7465
+ */
7466
+ 'enabled': boolean;
7467
+ /**
7468
+ *
7469
+ * @type {string}
7470
+ * @memberof PublicAccessSettings
7471
+ */
7472
+ 'paymentMode': PublicAccessSettingsPaymentModeEnum;
7473
+ /**
7474
+ *
7475
+ * @type {number}
7476
+ * @memberof PublicAccessSettings
7477
+ */
7478
+ 'pricePerAccess': number | null;
7479
+ }
7480
+
7481
+ export const PublicAccessSettingsPaymentModeEnum = {
7482
+ Free: 'free',
7483
+ AccessFee: 'access_fee',
7484
+ PerCourt: 'per_court'
7485
+ } as const;
7486
+
7487
+ export type PublicAccessSettingsPaymentModeEnum = typeof PublicAccessSettingsPaymentModeEnum[keyof typeof PublicAccessSettingsPaymentModeEnum];
7488
+
7134
7489
  /**
7135
7490
  *
7136
7491
  * @export
@@ -7154,13 +7509,19 @@ export interface PublicSubscriptionPlanResponse {
7154
7509
  * @type {number}
7155
7510
  * @memberof PublicSubscriptionPlanResponse
7156
7511
  */
7157
- 'amountInCents': number;
7512
+ 'amountInCents'?: number;
7158
7513
  /**
7159
7514
  *
7160
7515
  * @type {string}
7161
7516
  * @memberof PublicSubscriptionPlanResponse
7162
7517
  */
7163
7518
  'currency': string;
7519
+ /**
7520
+ *
7521
+ * @type {Array<PlanPrice>}
7522
+ * @memberof PublicSubscriptionPlanResponse
7523
+ */
7524
+ 'prices': Array<PlanPrice>;
7164
7525
  /**
7165
7526
  *
7166
7527
  * @type {PlanInterval}
@@ -7173,6 +7534,12 @@ export interface PublicSubscriptionPlanResponse {
7173
7534
  * @memberof PublicSubscriptionPlanResponse
7174
7535
  */
7175
7536
  'description'?: string;
7537
+ /**
7538
+ *
7539
+ * @type {SubscriptionPlanDiscountResponse}
7540
+ * @memberof PublicSubscriptionPlanResponse
7541
+ */
7542
+ 'discount'?: SubscriptionPlanDiscountResponse;
7176
7543
  }
7177
7544
 
7178
7545
 
@@ -7863,6 +8230,31 @@ export interface RevenueBySportItem {
7863
8230
  */
7864
8231
  'totalTurnover': number;
7865
8232
  }
8233
+ /**
8234
+ *
8235
+ * @export
8236
+ * @interface SchoolAccessSettings
8237
+ */
8238
+ export interface SchoolAccessSettings {
8239
+ /**
8240
+ *
8241
+ * @type {boolean}
8242
+ * @memberof SchoolAccessSettings
8243
+ */
8244
+ 'enabled': boolean;
8245
+ /**
8246
+ *
8247
+ * @type {Array<string>}
8248
+ * @memberof SchoolAccessSettings
8249
+ */
8250
+ 'emailSuffixes': Array<string>;
8251
+ /**
8252
+ *
8253
+ * @type {boolean}
8254
+ * @memberof SchoolAccessSettings
8255
+ */
8256
+ 'requireCertification': boolean;
8257
+ }
7866
8258
  /**
7867
8259
  *
7868
8260
  * @export
@@ -7881,6 +8273,12 @@ export interface SendSubscriptionInvitationRequest {
7881
8273
  * @memberof SendSubscriptionInvitationRequest
7882
8274
  */
7883
8275
  'productId': string;
8276
+ /**
8277
+ * Price spécifique proposé dans l\'invitation (facultatif).
8278
+ * @type {string}
8279
+ * @memberof SendSubscriptionInvitationRequest
8280
+ */
8281
+ 'priceId'?: string;
7884
8282
  }
7885
8283
  /**
7886
8284
  *
@@ -10046,6 +10444,63 @@ export interface SubscriptionMutationResponse {
10046
10444
  */
10047
10445
  'subscription': { [key: string]: any; };
10048
10446
  }
10447
+ /**
10448
+ *
10449
+ * @export
10450
+ * @interface SubscriptionPlanDiscountResponse
10451
+ */
10452
+ export interface SubscriptionPlanDiscountResponse {
10453
+ /**
10454
+ *
10455
+ * @type {DiscountType}
10456
+ * @memberof SubscriptionPlanDiscountResponse
10457
+ */
10458
+ 'type': DiscountType;
10459
+ /**
10460
+ *
10461
+ * @type {number}
10462
+ * @memberof SubscriptionPlanDiscountResponse
10463
+ */
10464
+ 'percentage'?: number;
10465
+ /**
10466
+ *
10467
+ * @type {number}
10468
+ * @memberof SubscriptionPlanDiscountResponse
10469
+ */
10470
+ 'maxDiscountAmountInCents'?: number;
10471
+ /**
10472
+ *
10473
+ * @type {string}
10474
+ * @memberof SubscriptionPlanDiscountResponse
10475
+ */
10476
+ 'validFrom'?: string;
10477
+ /**
10478
+ *
10479
+ * @type {string}
10480
+ * @memberof SubscriptionPlanDiscountResponse
10481
+ */
10482
+ 'validTo'?: string;
10483
+ /**
10484
+ *
10485
+ * @type {Array<string>}
10486
+ * @memberof SubscriptionPlanDiscountResponse
10487
+ */
10488
+ 'offPeakRuleNames'?: Array<string>;
10489
+ /**
10490
+ *
10491
+ * @type {Array<OffPeakRule>}
10492
+ * @memberof SubscriptionPlanDiscountResponse
10493
+ */
10494
+ 'offPeakRules'?: Array<OffPeakRule>;
10495
+ /**
10496
+ *
10497
+ * @type {boolean}
10498
+ * @memberof SubscriptionPlanDiscountResponse
10499
+ */
10500
+ 'bookingFree'?: boolean;
10501
+ }
10502
+
10503
+
10049
10504
  /**
10050
10505
  *
10051
10506
  * @export
@@ -10081,13 +10536,19 @@ export interface SubscriptionPlanResponse {
10081
10536
  * @type {number}
10082
10537
  * @memberof SubscriptionPlanResponse
10083
10538
  */
10084
- 'amountInCents': number;
10539
+ 'amountInCents'?: number;
10085
10540
  /**
10086
10541
  *
10087
10542
  * @type {string}
10088
10543
  * @memberof SubscriptionPlanResponse
10089
10544
  */
10090
10545
  'currency': string;
10546
+ /**
10547
+ *
10548
+ * @type {Array<PlanPrice>}
10549
+ * @memberof SubscriptionPlanResponse
10550
+ */
10551
+ 'prices': Array<PlanPrice>;
10091
10552
  /**
10092
10553
  *
10093
10554
  * @type {PlanInterval}
@@ -10100,6 +10561,18 @@ export interface SubscriptionPlanResponse {
10100
10561
  * @memberof SubscriptionPlanResponse
10101
10562
  */
10102
10563
  'priceActive': boolean;
10564
+ /**
10565
+ *
10566
+ * @type {string}
10567
+ * @memberof SubscriptionPlanResponse
10568
+ */
10569
+ 'description'?: string;
10570
+ /**
10571
+ *
10572
+ * @type {SubscriptionPlanDiscountResponse}
10573
+ * @memberof SubscriptionPlanResponse
10574
+ */
10575
+ 'discount'?: SubscriptionPlanDiscountResponse;
10103
10576
  }
10104
10577
 
10105
10578
 
@@ -10154,20 +10627,51 @@ export interface TimeBounds {
10154
10627
  * @type {string}
10155
10628
  * @memberof TimeBounds
10156
10629
  */
10157
- 'end': string;
10158
- }
10159
- /**
10160
- *
10161
- * @export
10162
- * @interface UpdateActuality200Response
10163
- */
10164
- export interface UpdateActuality200Response {
10630
+ 'end': string;
10631
+ }
10632
+ /**
10633
+ *
10634
+ * @export
10635
+ * @interface UpdateActuality200Response
10636
+ */
10637
+ export interface UpdateActuality200Response {
10638
+ /**
10639
+ *
10640
+ * @type {any}
10641
+ * @memberof UpdateActuality200Response
10642
+ */
10643
+ 'actuality': any;
10644
+ }
10645
+ /**
10646
+ *
10647
+ * @export
10648
+ * @interface UpdateClubAccessSettingsRequest
10649
+ */
10650
+ export interface UpdateClubAccessSettingsRequest {
10651
+ /**
10652
+ *
10653
+ * @type {PartialPublicAccessSettings}
10654
+ * @memberof UpdateClubAccessSettingsRequest
10655
+ */
10656
+ 'publicAccess'?: PartialPublicAccessSettings;
10657
+ /**
10658
+ *
10659
+ * @type {PartialSchoolAccessSettings}
10660
+ * @memberof UpdateClubAccessSettingsRequest
10661
+ */
10662
+ 'schoolAccess'?: PartialSchoolAccessSettings;
10663
+ /**
10664
+ *
10665
+ * @type {PartialHotelAccessSettings}
10666
+ * @memberof UpdateClubAccessSettingsRequest
10667
+ */
10668
+ 'hotelAccess'?: PartialHotelAccessSettings;
10165
10669
  /**
10166
10670
  *
10167
- * @type {any}
10168
- * @memberof UpdateActuality200Response
10671
+ * @type {PartialPaymentRequirementsSettings}
10672
+ * @memberof UpdateClubAccessSettingsRequest
10169
10673
  */
10170
- 'actuality': any;
10674
+ 'paymentRequirements'?: PartialPaymentRequirementsSettings;
10171
10675
  }
10172
10676
  /**
10173
10677
  *
@@ -11246,6 +11750,12 @@ export interface UserClubSubscription {
11246
11750
  * @memberof UserClubSubscription
11247
11751
  */
11248
11752
  'interval': PlanInterval | null;
11753
+ /**
11754
+ *
11755
+ * @type {string}
11756
+ * @memberof UserClubSubscription
11757
+ */
11758
+ 'productId': string | null;
11249
11759
  }
11250
11760
 
11251
11761
 
@@ -12481,17 +12991,17 @@ export class BookingsManagerApi extends BaseAPI {
12481
12991
  export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
12482
12992
  return {
12483
12993
  /**
12484
- * Check-in des joueurs only for club with payment features
12994
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12485
12995
  * @param {string} bookingId
12486
- * @param {CheckInPlayersRequest} checkInPlayersRequest
12996
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
12487
12997
  * @param {*} [options] Override http request option.
12488
12998
  * @throws {RequiredError}
12489
12999
  */
12490
- checkInPlayers: async (bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13000
+ checkInPlayer: async (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12491
13001
  // verify required parameter 'bookingId' is not null or undefined
12492
- assertParamExists('checkInPlayers', 'bookingId', bookingId)
12493
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
12494
- assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest)
13002
+ assertParamExists('checkInPlayer', 'bookingId', bookingId)
13003
+ // verify required parameter 'checkInPlayerRequest' is not null or undefined
13004
+ assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest)
12495
13005
  const localVarPath = `/api/bookings/{bookingId}/check-in`
12496
13006
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12497
13007
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -12516,7 +13026,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
12516
13026
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12517
13027
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12518
13028
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12519
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
13029
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration)
12520
13030
 
12521
13031
  return {
12522
13032
  url: toPathString(localVarUrlObj),
@@ -12816,16 +13326,16 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
12816
13326
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
12817
13327
  return {
12818
13328
  /**
12819
- * Check-in des joueurs only for club with payment features
13329
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12820
13330
  * @param {string} bookingId
12821
- * @param {CheckInPlayersRequest} checkInPlayersRequest
13331
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
12822
13332
  * @param {*} [options] Override http request option.
12823
13333
  * @throws {RequiredError}
12824
13334
  */
12825
- async checkInPlayers(bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayersResponse>> {
12826
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
13335
+ async checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>> {
13336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
12827
13337
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12828
- const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
13338
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
12829
13339
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12830
13340
  },
12831
13341
  /**
@@ -12927,13 +13437,13 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
12927
13437
  const localVarFp = BookingsStaffApiFp(configuration)
12928
13438
  return {
12929
13439
  /**
12930
- * Check-in des joueurs only for club with payment features
12931
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
13440
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
13441
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
12932
13442
  * @param {*} [options] Override http request option.
12933
13443
  * @throws {RequiredError}
12934
13444
  */
12935
- checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
12936
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
13445
+ checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse> {
13446
+ return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
12937
13447
  },
12938
13448
  /**
12939
13449
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -13002,24 +13512,24 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
13002
13512
  };
13003
13513
 
13004
13514
  /**
13005
- * Request parameters for checkInPlayers operation in BookingsStaffApi.
13515
+ * Request parameters for checkInPlayer operation in BookingsStaffApi.
13006
13516
  * @export
13007
- * @interface BookingsStaffApiCheckInPlayersRequest
13517
+ * @interface BookingsStaffApiCheckInPlayerRequest
13008
13518
  */
13009
- export interface BookingsStaffApiCheckInPlayersRequest {
13519
+ export interface BookingsStaffApiCheckInPlayerRequest {
13010
13520
  /**
13011
13521
  *
13012
13522
  * @type {string}
13013
- * @memberof BookingsStaffApiCheckInPlayers
13523
+ * @memberof BookingsStaffApiCheckInPlayer
13014
13524
  */
13015
13525
  readonly bookingId: string
13016
13526
 
13017
13527
  /**
13018
13528
  *
13019
- * @type {CheckInPlayersRequest}
13020
- * @memberof BookingsStaffApiCheckInPlayers
13529
+ * @type {CheckInPlayerRequest}
13530
+ * @memberof BookingsStaffApiCheckInPlayer
13021
13531
  */
13022
- readonly checkInPlayersRequest: CheckInPlayersRequest
13532
+ readonly checkInPlayerRequest: CheckInPlayerRequest
13023
13533
  }
13024
13534
 
13025
13535
  /**
@@ -13156,14 +13666,14 @@ export interface BookingsStaffApiListClubBookingsRequest {
13156
13666
  */
13157
13667
  export class BookingsStaffApi extends BaseAPI {
13158
13668
  /**
13159
- * Check-in des joueurs only for club with payment features
13160
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
13669
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
13670
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
13161
13671
  * @param {*} [options] Override http request option.
13162
13672
  * @throws {RequiredError}
13163
13673
  * @memberof BookingsStaffApi
13164
13674
  */
13165
- public checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig) {
13166
- return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
13675
+ public checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig) {
13676
+ return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
13167
13677
  }
13168
13678
 
13169
13679
  /**
@@ -15825,6 +16335,45 @@ export class ClubRolesStaffApi extends BaseAPI {
15825
16335
  */
15826
16336
  export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
15827
16337
  return {
16338
+ /**
16339
+ *
16340
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
16341
+ * @param {*} [options] Override http request option.
16342
+ * @throws {RequiredError}
16343
+ */
16344
+ updateAccessSettings: async (updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16345
+ // verify required parameter 'updateClubAccessSettingsRequest' is not null or undefined
16346
+ assertParamExists('updateAccessSettings', 'updateClubAccessSettingsRequest', updateClubAccessSettingsRequest)
16347
+ const localVarPath = `/api/club-settings/access`;
16348
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16349
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16350
+ let baseOptions;
16351
+ if (configuration) {
16352
+ baseOptions = configuration.baseOptions;
16353
+ }
16354
+
16355
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
16356
+ const localVarHeaderParameter = {} as any;
16357
+ const localVarQueryParameter = {} as any;
16358
+
16359
+ // authentication bearerAuth required
16360
+ // http bearer authentication required
16361
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16362
+
16363
+
16364
+
16365
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16366
+
16367
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16368
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16369
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16370
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubAccessSettingsRequest, localVarRequestOptions, configuration)
16371
+
16372
+ return {
16373
+ url: toPathString(localVarUrlObj),
16374
+ options: localVarRequestOptions,
16375
+ };
16376
+ },
15828
16377
  /**
15829
16378
  *
15830
16379
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -15991,6 +16540,18 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
15991
16540
  export const ClubSettingsManagerApiFp = function(configuration?: Configuration) {
15992
16541
  const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
15993
16542
  return {
16543
+ /**
16544
+ *
16545
+ * @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
16546
+ * @param {*} [options] Override http request option.
16547
+ * @throws {RequiredError}
16548
+ */
16549
+ async updateAccessSettings(updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubAccessSettingsResponse>> {
16550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAccessSettings(updateClubAccessSettingsRequest, options);
16551
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16552
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateAccessSettings']?.[localVarOperationServerIndex]?.url;
16553
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16554
+ },
15994
16555
  /**
15995
16556
  *
15996
16557
  * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
@@ -16049,6 +16610,15 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
16049
16610
  export const ClubSettingsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16050
16611
  const localVarFp = ClubSettingsManagerApiFp(configuration)
16051
16612
  return {
16613
+ /**
16614
+ *
16615
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
16616
+ * @param {*} [options] Override http request option.
16617
+ * @throws {RequiredError}
16618
+ */
16619
+ updateAccessSettings(requestParameters: ClubSettingsManagerApiUpdateAccessSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubAccessSettingsResponse> {
16620
+ return localVarFp.updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(axios, basePath));
16621
+ },
16052
16622
  /**
16053
16623
  *
16054
16624
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -16088,6 +16658,20 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
16088
16658
  };
16089
16659
  };
16090
16660
 
16661
+ /**
16662
+ * Request parameters for updateAccessSettings operation in ClubSettingsManagerApi.
16663
+ * @export
16664
+ * @interface ClubSettingsManagerApiUpdateAccessSettingsRequest
16665
+ */
16666
+ export interface ClubSettingsManagerApiUpdateAccessSettingsRequest {
16667
+ /**
16668
+ *
16669
+ * @type {UpdateClubAccessSettingsRequest}
16670
+ * @memberof ClubSettingsManagerApiUpdateAccessSettings
16671
+ */
16672
+ readonly updateClubAccessSettingsRequest: UpdateClubAccessSettingsRequest
16673
+ }
16674
+
16091
16675
  /**
16092
16676
  * Request parameters for updateClubGeneralSettings operation in ClubSettingsManagerApi.
16093
16677
  * @export
@@ -16151,6 +16735,17 @@ export interface ClubSettingsManagerApiUpdateReservationSettingsRequest {
16151
16735
  * @extends {BaseAPI}
16152
16736
  */
16153
16737
  export class ClubSettingsManagerApi extends BaseAPI {
16738
+ /**
16739
+ *
16740
+ * @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
16741
+ * @param {*} [options] Override http request option.
16742
+ * @throws {RequiredError}
16743
+ * @memberof ClubSettingsManagerApi
16744
+ */
16745
+ public updateAccessSettings(requestParameters: ClubSettingsManagerApiUpdateAccessSettingsRequest, options?: RawAxiosRequestConfig) {
16746
+ return ClubSettingsManagerApiFp(this.configuration).updateAccessSettings(requestParameters.updateClubAccessSettingsRequest, options).then((request) => request(this.axios, this.basePath));
16747
+ }
16748
+
16154
16749
  /**
16155
16750
  *
16156
16751
  * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
@@ -16204,6 +16799,39 @@ export class ClubSettingsManagerApi extends BaseAPI {
16204
16799
  */
16205
16800
  export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
16206
16801
  return {
16802
+ /**
16803
+ *
16804
+ * @param {*} [options] Override http request option.
16805
+ * @throws {RequiredError}
16806
+ */
16807
+ getAccessSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16808
+ const localVarPath = `/api/club-settings/access`;
16809
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16810
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16811
+ let baseOptions;
16812
+ if (configuration) {
16813
+ baseOptions = configuration.baseOptions;
16814
+ }
16815
+
16816
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16817
+ const localVarHeaderParameter = {} as any;
16818
+ const localVarQueryParameter = {} as any;
16819
+
16820
+ // authentication bearerAuth required
16821
+ // http bearer authentication required
16822
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16823
+
16824
+
16825
+
16826
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16827
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16828
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16829
+
16830
+ return {
16831
+ url: toPathString(localVarUrlObj),
16832
+ options: localVarRequestOptions,
16833
+ };
16834
+ },
16207
16835
  /**
16208
16836
  *
16209
16837
  * @param {*} [options] Override http request option.
@@ -16346,6 +16974,17 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: C
16346
16974
  export const ClubSettingsStaffApiFp = function(configuration?: Configuration) {
16347
16975
  const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration)
16348
16976
  return {
16977
+ /**
16978
+ *
16979
+ * @param {*} [options] Override http request option.
16980
+ * @throws {RequiredError}
16981
+ */
16982
+ async getAccessSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubAccessSettingsResponse>> {
16983
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessSettings(options);
16984
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16985
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getAccessSettings']?.[localVarOperationServerIndex]?.url;
16986
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16987
+ },
16349
16988
  /**
16350
16989
  *
16351
16990
  * @param {*} [options] Override http request option.
@@ -16400,6 +17039,14 @@ export const ClubSettingsStaffApiFp = function(configuration?: Configuration) {
16400
17039
  export const ClubSettingsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16401
17040
  const localVarFp = ClubSettingsStaffApiFp(configuration)
16402
17041
  return {
17042
+ /**
17043
+ *
17044
+ * @param {*} [options] Override http request option.
17045
+ * @throws {RequiredError}
17046
+ */
17047
+ getAccessSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubAccessSettingsResponse> {
17048
+ return localVarFp.getAccessSettings(options).then((request) => request(axios, basePath));
17049
+ },
16403
17050
  /**
16404
17051
  *
16405
17052
  * @param {*} [options] Override http request option.
@@ -16442,6 +17089,16 @@ export const ClubSettingsStaffApiFactory = function (configuration?: Configurati
16442
17089
  * @extends {BaseAPI}
16443
17090
  */
16444
17091
  export class ClubSettingsStaffApi extends BaseAPI {
17092
+ /**
17093
+ *
17094
+ * @param {*} [options] Override http request option.
17095
+ * @throws {RequiredError}
17096
+ * @memberof ClubSettingsStaffApi
17097
+ */
17098
+ public getAccessSettings(options?: RawAxiosRequestConfig) {
17099
+ return ClubSettingsStaffApiFp(this.configuration).getAccessSettings(options).then((request) => request(this.axios, this.basePath));
17100
+ }
17101
+
16445
17102
  /**
16446
17103
  *
16447
17104
  * @param {*} [options] Override http request option.
@@ -19648,6 +20305,39 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
19648
20305
 
19649
20306
 
19650
20307
 
20308
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20309
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20310
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20311
+
20312
+ return {
20313
+ url: toPathString(localVarUrlObj),
20314
+ options: localVarRequestOptions,
20315
+ };
20316
+ },
20317
+ /**
20318
+ *
20319
+ * @param {*} [options] Override http request option.
20320
+ * @throws {RequiredError}
20321
+ */
20322
+ getClubType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20323
+ const localVarPath = `/api/clubs/clubType`;
20324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20325
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20326
+ let baseOptions;
20327
+ if (configuration) {
20328
+ baseOptions = configuration.baseOptions;
20329
+ }
20330
+
20331
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20332
+ const localVarHeaderParameter = {} as any;
20333
+ const localVarQueryParameter = {} as any;
20334
+
20335
+ // authentication bearerAuth required
20336
+ // http bearer authentication required
20337
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20338
+
20339
+
20340
+
19651
20341
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19652
20342
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19653
20343
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -19916,6 +20606,17 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
19916
20606
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubRoles']?.[localVarOperationServerIndex]?.url;
19917
20607
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19918
20608
  },
20609
+ /**
20610
+ *
20611
+ * @param {*} [options] Override http request option.
20612
+ * @throws {RequiredError}
20613
+ */
20614
+ async getClubType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubType200Response>> {
20615
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubType(options);
20616
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20617
+ const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubType']?.[localVarOperationServerIndex]?.url;
20618
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20619
+ },
19919
20620
  /**
19920
20621
  * Récupère les terrains d\'un club
19921
20622
  * @param {*} [options] Override http request option.
@@ -20029,6 +20730,14 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
20029
20730
  getClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<GetClubRoles200Response> {
20030
20731
  return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
20031
20732
  },
20733
+ /**
20734
+ *
20735
+ * @param {*} [options] Override http request option.
20736
+ * @throws {RequiredError}
20737
+ */
20738
+ getClubType(options?: RawAxiosRequestConfig): AxiosPromise<GetClubType200Response> {
20739
+ return localVarFp.getClubType(options).then((request) => request(axios, basePath));
20740
+ },
20032
20741
  /**
20033
20742
  * Récupère les terrains d\'un club
20034
20743
  * @param {*} [options] Override http request option.
@@ -20247,6 +20956,16 @@ export class ClubsStaffApi extends BaseAPI {
20247
20956
  return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
20248
20957
  }
20249
20958
 
20959
+ /**
20960
+ *
20961
+ * @param {*} [options] Override http request option.
20962
+ * @throws {RequiredError}
20963
+ * @memberof ClubsStaffApi
20964
+ */
20965
+ public getClubType(options?: RawAxiosRequestConfig) {
20966
+ return ClubsStaffApiFp(this.configuration).getClubType(options).then((request) => request(this.axios, this.basePath));
20967
+ }
20968
+
20250
20969
  /**
20251
20970
  * Récupère les terrains d\'un club
20252
20971
  * @param {*} [options] Override http request option.
@@ -23066,6 +23785,43 @@ export class SportsPublicApi extends BaseAPI {
23066
23785
  */
23067
23786
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
23068
23787
  return {
23788
+ /**
23789
+ * Supprime (archive) un plan par productId (manager)
23790
+ * @param {string} productId
23791
+ * @param {*} [options] Override http request option.
23792
+ * @throws {RequiredError}
23793
+ */
23794
+ archivePlan: async (productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23795
+ // verify required parameter 'productId' is not null or undefined
23796
+ assertParamExists('archivePlan', 'productId', productId)
23797
+ const localVarPath = `/api/subscriptions/plans/{productId}/archive`
23798
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
23799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23800
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23801
+ let baseOptions;
23802
+ if (configuration) {
23803
+ baseOptions = configuration.baseOptions;
23804
+ }
23805
+
23806
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
23807
+ const localVarHeaderParameter = {} as any;
23808
+ const localVarQueryParameter = {} as any;
23809
+
23810
+ // authentication bearerAuth required
23811
+ // http bearer authentication required
23812
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
23813
+
23814
+
23815
+
23816
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23817
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23818
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23819
+
23820
+ return {
23821
+ url: toPathString(localVarUrlObj),
23822
+ options: localVarRequestOptions,
23823
+ };
23824
+ },
23069
23825
  /**
23070
23826
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
23071
23827
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -23106,7 +23862,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
23106
23862
  };
23107
23863
  },
23108
23864
  /**
23109
- * Supprime (archive) un plan par productId (manager)
23865
+ * Supprime un plan par productId (manager)
23110
23866
  * @param {string} productId
23111
23867
  * @param {*} [options] Override http request option.
23112
23868
  * @throws {RequiredError}
@@ -23191,6 +23947,18 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
23191
23947
  export const SubscriptionsManagerApiFp = function(configuration?: Configuration) {
23192
23948
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration)
23193
23949
  return {
23950
+ /**
23951
+ * Supprime (archive) un plan par productId (manager)
23952
+ * @param {string} productId
23953
+ * @param {*} [options] Override http request option.
23954
+ * @throws {RequiredError}
23955
+ */
23956
+ async archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>> {
23957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archivePlan(productId, options);
23958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23959
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsManagerApi.archivePlan']?.[localVarOperationServerIndex]?.url;
23960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23961
+ },
23194
23962
  /**
23195
23963
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
23196
23964
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -23204,7 +23972,7 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
23204
23972
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23205
23973
  },
23206
23974
  /**
23207
- * Supprime (archive) un plan par productId (manager)
23975
+ * Supprime un plan par productId (manager)
23208
23976
  * @param {string} productId
23209
23977
  * @param {*} [options] Override http request option.
23210
23978
  * @throws {RequiredError}
@@ -23237,6 +24005,15 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
23237
24005
  export const SubscriptionsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
23238
24006
  const localVarFp = SubscriptionsManagerApiFp(configuration)
23239
24007
  return {
24008
+ /**
24009
+ * Supprime (archive) un plan par productId (manager)
24010
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
24011
+ * @param {*} [options] Override http request option.
24012
+ * @throws {RequiredError}
24013
+ */
24014
+ archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse> {
24015
+ return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
24016
+ },
23240
24017
  /**
23241
24018
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
23242
24019
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -23247,7 +24024,7 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
23247
24024
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
23248
24025
  },
23249
24026
  /**
23250
- * Supprime (archive) un plan par productId (manager)
24027
+ * Supprime un plan par productId (manager)
23251
24028
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
23252
24029
  * @param {*} [options] Override http request option.
23253
24030
  * @throws {RequiredError}
@@ -23267,6 +24044,20 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
23267
24044
  };
23268
24045
  };
23269
24046
 
24047
+ /**
24048
+ * Request parameters for archivePlan operation in SubscriptionsManagerApi.
24049
+ * @export
24050
+ * @interface SubscriptionsManagerApiArchivePlanRequest
24051
+ */
24052
+ export interface SubscriptionsManagerApiArchivePlanRequest {
24053
+ /**
24054
+ *
24055
+ * @type {string}
24056
+ * @memberof SubscriptionsManagerApiArchivePlan
24057
+ */
24058
+ readonly productId: string
24059
+ }
24060
+
23270
24061
  /**
23271
24062
  * Request parameters for createPlan operation in SubscriptionsManagerApi.
23272
24063
  * @export
@@ -23316,6 +24107,17 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
23316
24107
  * @extends {BaseAPI}
23317
24108
  */
23318
24109
  export class SubscriptionsManagerApi extends BaseAPI {
24110
+ /**
24111
+ * Supprime (archive) un plan par productId (manager)
24112
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
24113
+ * @param {*} [options] Override http request option.
24114
+ * @throws {RequiredError}
24115
+ * @memberof SubscriptionsManagerApi
24116
+ */
24117
+ public archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig) {
24118
+ return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
24119
+ }
24120
+
23319
24121
  /**
23320
24122
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
23321
24123
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -23328,7 +24130,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
23328
24130
  }
23329
24131
 
23330
24132
  /**
23331
- * Supprime (archive) un plan par productId (manager)
24133
+ * Supprime un plan par productId (manager)
23332
24134
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
23333
24135
  * @param {*} [options] Override http request option.
23334
24136
  * @throws {RequiredError}