@tennac-booking/sdk 1.0.184 → 1.0.186

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 (54) hide show
  1. package/.openapi-generator/FILES +2 -19
  2. package/README.md +7 -29
  3. package/api.ts +334 -1613
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +254 -1113
  8. package/dist/api.js +186 -893
  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 +254 -1113
  16. package/dist/esm/api.js +182 -876
  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/BookingsApi.md +5 -5
  28. package/docs/BookingsStaffApi.md +1 -57
  29. package/docs/EventsStaffApi.md +119 -25
  30. package/docs/JoinOpenBookingRequest.md +26 -0
  31. package/docs/StaffEventsPageResponse.md +22 -0
  32. package/docs/UserClubMembership.md +2 -0
  33. package/docs/UserProfileResponse.md +2 -0
  34. package/index.ts +1 -1
  35. package/package.json +1 -1
  36. package/docs/CheckInPlayerSumupRequest.md +0 -22
  37. package/docs/CheckInPlayerSumupResponse.md +0 -24
  38. package/docs/CheckInSumupPaymentInfo.md +0 -26
  39. package/docs/PaymentIntentResult.md +0 -28
  40. package/docs/PaymentProviderType.md +0 -10
  41. package/docs/PaymentStatus.md +0 -14
  42. package/docs/PaymentsStaffApi.md +0 -124
  43. package/docs/StaffEventsPaginatedResponse.md +0 -26
  44. package/docs/SumUpApi.md +0 -63
  45. package/docs/SumUpManagerApi.md +0 -332
  46. package/docs/SumupAccountStatusResponse.md +0 -32
  47. package/docs/SumupCancelPaymentRequest.md +0 -20
  48. package/docs/SumupConnectUrlResponse.md +0 -20
  49. package/docs/SumupCreatePaymentRequest.md +0 -32
  50. package/docs/SumupOAuthCallbackResponse.md +0 -24
  51. package/docs/SumupPairReaderRequest.md +0 -22
  52. package/docs/SumupPairReaderResponse.md +0 -20
  53. package/docs/SumupReaderInfo.md +0 -34
  54. package/docs/SumupReadersResponse.md +0 -20
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.177
7
+ * The version of the OpenAPI document: 1.0.185
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1674,83 +1674,6 @@ export interface CheckInPlayerResponse {
1674
1674
  */
1675
1675
  'invoice': CheckedInPlayer;
1676
1676
  }
1677
- /**
1678
- *
1679
- * @export
1680
- * @interface CheckInPlayerSumupRequest
1681
- */
1682
- export interface CheckInPlayerSumupRequest {
1683
- /**
1684
- * ID du joueur qui a payé/est arrivé
1685
- * @type {string}
1686
- * @memberof CheckInPlayerSumupRequest
1687
- */
1688
- 'playerId': string;
1689
- /**
1690
- * Reader SumUp ciblé (optionnel)
1691
- * @type {string}
1692
- * @memberof CheckInPlayerSumupRequest
1693
- */
1694
- 'readerId'?: string;
1695
- }
1696
- /**
1697
- *
1698
- * @export
1699
- * @interface CheckInPlayerSumupResponse
1700
- */
1701
- export interface CheckInPlayerSumupResponse {
1702
- /**
1703
- * Message de confirmation
1704
- * @type {string}
1705
- * @memberof CheckInPlayerSumupResponse
1706
- */
1707
- 'message': string;
1708
- /**
1709
- *
1710
- * @type {CheckedInPlayer}
1711
- * @memberof CheckInPlayerSumupResponse
1712
- */
1713
- 'invoice': CheckedInPlayer;
1714
- /**
1715
- *
1716
- * @type {CheckInSumupPaymentInfo}
1717
- * @memberof CheckInPlayerSumupResponse
1718
- */
1719
- 'sumupPayment'?: CheckInSumupPaymentInfo;
1720
- }
1721
- /**
1722
- *
1723
- * @export
1724
- * @interface CheckInSumupPaymentInfo
1725
- */
1726
- export interface CheckInSumupPaymentInfo {
1727
- /**
1728
- * ID du paiement SumUp
1729
- * @type {string}
1730
- * @memberof CheckInSumupPaymentInfo
1731
- */
1732
- 'paymentId': string;
1733
- /**
1734
- * ID du checkout SumUp
1735
- * @type {string}
1736
- * @memberof CheckInSumupPaymentInfo
1737
- */
1738
- 'checkoutId'?: string;
1739
- /**
1740
- *
1741
- * @type {PaymentStatus}
1742
- * @memberof CheckInSumupPaymentInfo
1743
- */
1744
- 'status': PaymentStatus;
1745
- /**
1746
- * Reader SumUp utilisé
1747
- * @type {string}
1748
- * @memberof CheckInSumupPaymentInfo
1749
- */
1750
- 'readerId'?: string;
1751
- }
1752
-
1753
-
1754
1677
  /**
1755
1678
  *
1756
1679
  * @export
@@ -7630,6 +7553,39 @@ export interface JoinEventWaitList200Response {
7630
7553
  */
7631
7554
  'message': string;
7632
7555
  }
7556
+ /**
7557
+ *
7558
+ * @export
7559
+ * @interface JoinOpenBookingRequest
7560
+ */
7561
+ export interface JoinOpenBookingRequest {
7562
+ /**
7563
+ *
7564
+ * @type {PaymentMethod}
7565
+ * @memberof JoinOpenBookingRequest
7566
+ */
7567
+ 'paymentMethod'?: PaymentMethod;
7568
+ /**
7569
+ * Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
7570
+ * @type {boolean}
7571
+ * @memberof JoinOpenBookingRequest
7572
+ */
7573
+ 'useDefaultPaymentMethod'?: boolean;
7574
+ /**
7575
+ * Crédit à utiliser en centimes
7576
+ * @type {number}
7577
+ * @memberof JoinOpenBookingRequest
7578
+ */
7579
+ 'creditToUseInCents'?: number;
7580
+ /**
7581
+ * Liste des autres joueurs qui rejoignent également (n\'inclut PAS le joueur qui fait la requête, chacun paie sa part)
7582
+ * @type {Array<PlayerWithPaymentMethod>}
7583
+ * @memberof JoinOpenBookingRequest
7584
+ */
7585
+ 'players'?: Array<PlayerWithPaymentMethod>;
7586
+ }
7587
+
7588
+
7633
7589
  /**
7634
7590
  *
7635
7591
  * @export
@@ -8848,45 +8804,6 @@ export interface PaymentByPlayerInfo {
8848
8804
  */
8849
8805
  'invoices': Array<InvoiceInfo>;
8850
8806
  }
8851
- /**
8852
- *
8853
- * @export
8854
- * @interface PaymentIntentResult
8855
- */
8856
- export interface PaymentIntentResult {
8857
- /**
8858
- *
8859
- * @type {string}
8860
- * @memberof PaymentIntentResult
8861
- */
8862
- 'paymentId': string;
8863
- /**
8864
- *
8865
- * @type {string}
8866
- * @memberof PaymentIntentResult
8867
- */
8868
- 'externalId': string;
8869
- /**
8870
- *
8871
- * @type {PaymentStatus}
8872
- * @memberof PaymentIntentResult
8873
- */
8874
- 'status': PaymentStatus;
8875
- /**
8876
- *
8877
- * @type {PaymentProviderType}
8878
- * @memberof PaymentIntentResult
8879
- */
8880
- 'provider': PaymentProviderType;
8881
- /**
8882
- *
8883
- * @type {string}
8884
- * @memberof PaymentIntentResult
8885
- */
8886
- 'readerId'?: string;
8887
- }
8888
-
8889
-
8890
8807
  /**
8891
8808
  *
8892
8809
  * @export
@@ -8904,20 +8821,6 @@ export const PaymentMethod = {
8904
8821
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
8905
8822
 
8906
8823
 
8907
- /**
8908
- *
8909
- * @export
8910
- * @enum {string}
8911
- */
8912
-
8913
- export const PaymentProviderType = {
8914
- Stripe: 'stripe',
8915
- Sumup: 'sumup'
8916
- } as const;
8917
-
8918
- export type PaymentProviderType = typeof PaymentProviderType[keyof typeof PaymentProviderType];
8919
-
8920
-
8921
8824
  /**
8922
8825
  *
8923
8826
  * @export
@@ -8937,22 +8840,6 @@ export interface PaymentRequirementsSettings {
8937
8840
  */
8938
8841
  'requireOnlinePayment': boolean;
8939
8842
  }
8940
- /**
8941
- *
8942
- * @export
8943
- * @enum {string}
8944
- */
8945
-
8946
- export const PaymentStatus = {
8947
- Pending: 'pending',
8948
- Succeeded: 'succeeded',
8949
- Failed: 'failed',
8950
- Cancelled: 'cancelled'
8951
- } as const;
8952
-
8953
- export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
8954
-
8955
-
8956
8843
  /**
8957
8844
  * From T, pick a set of properties whose keys are in the union K
8958
8845
  * @export
@@ -11282,33 +11169,21 @@ export interface StaffEventDetailResponse {
11282
11169
  /**
11283
11170
  *
11284
11171
  * @export
11285
- * @interface StaffEventsPaginatedResponse
11172
+ * @interface StaffEventsPageResponse
11286
11173
  */
11287
- export interface StaffEventsPaginatedResponse {
11288
- /**
11289
- *
11290
- * @type {Array<EventResponse>}
11291
- * @memberof StaffEventsPaginatedResponse
11292
- */
11293
- 'upcoming': Array<EventResponse>;
11174
+ export interface StaffEventsPageResponse {
11294
11175
  /**
11295
11176
  *
11296
11177
  * @type {Array<EventResponse>}
11297
- * @memberof StaffEventsPaginatedResponse
11298
- */
11299
- 'past': Array<EventResponse>;
11300
- /**
11301
- *
11302
- * @type {PaginationInfo}
11303
- * @memberof StaffEventsPaginatedResponse
11178
+ * @memberof StaffEventsPageResponse
11304
11179
  */
11305
- 'upcomingPagination': PaginationInfo;
11180
+ 'events': Array<EventResponse>;
11306
11181
  /**
11307
11182
  *
11308
11183
  * @type {PaginationInfo}
11309
- * @memberof StaffEventsPaginatedResponse
11184
+ * @memberof StaffEventsPageResponse
11310
11185
  */
11311
- 'pastPagination': PaginationInfo;
11186
+ 'pagination': PaginationInfo;
11312
11187
  }
11313
11188
  /**
11314
11189
  *
@@ -11828,400 +11703,149 @@ export interface SubscriptionPlanResponse {
11828
11703
  /**
11829
11704
  *
11830
11705
  * @export
11831
- * @interface SumupAccountStatusResponse
11706
+ * @enum {string}
11832
11707
  */
11833
- export interface SumupAccountStatusResponse {
11834
- /**
11835
- *
11836
- * @type {boolean}
11837
- * @memberof SumupAccountStatusResponse
11838
- */
11839
- 'connected': boolean;
11840
- /**
11841
- *
11842
- * @type {string}
11843
- * @memberof SumupAccountStatusResponse
11844
- */
11845
- 'merchantCode'?: string;
11846
- /**
11847
- *
11848
- * @type {string}
11849
- * @memberof SumupAccountStatusResponse
11850
- */
11851
- 'readerId'?: string;
11708
+
11709
+ export const SurfaceType = {
11710
+ Clay: 'clay',
11711
+ Grass: 'grass',
11712
+ Hard: 'hard',
11713
+ Turf: 'turf',
11714
+ Carpet: 'carpet',
11715
+ Wooden: 'wooden'
11716
+ } as const;
11717
+
11718
+ export type SurfaceType = typeof SurfaceType[keyof typeof SurfaceType];
11719
+
11720
+
11721
+ /**
11722
+ *
11723
+ * @export
11724
+ * @interface Team
11725
+ */
11726
+ export interface Team {
11852
11727
  /**
11853
11728
  *
11854
11729
  * @type {string}
11855
- * @memberof SumupAccountStatusResponse
11730
+ * @memberof Team
11856
11731
  */
11857
- 'readerName'?: string;
11732
+ 'name': string;
11858
11733
  /**
11859
11734
  *
11860
- * @type {string}
11861
- * @memberof SumupAccountStatusResponse
11735
+ * @type {Array<EventUser>}
11736
+ * @memberof Team
11862
11737
  */
11863
- 'readerPairedAt'?: string;
11738
+ 'players': Array<EventUser>;
11739
+ }
11740
+ /**
11741
+ *
11742
+ * @export
11743
+ * @interface TimeBounds
11744
+ */
11745
+ export interface TimeBounds {
11864
11746
  /**
11865
- *
11747
+ * Heure de début au format HH:mm
11866
11748
  * @type {string}
11867
- * @memberof SumupAccountStatusResponse
11749
+ * @memberof TimeBounds
11868
11750
  */
11869
- 'scope'?: string;
11751
+ 'start': string;
11870
11752
  /**
11871
- *
11753
+ * Heure de fin au format HH:mm
11872
11754
  * @type {string}
11873
- * @memberof SumupAccountStatusResponse
11755
+ * @memberof TimeBounds
11874
11756
  */
11875
- 'connectedAt'?: string;
11757
+ 'end': string;
11876
11758
  }
11877
11759
  /**
11878
11760
  *
11879
11761
  * @export
11880
- * @interface SumupCancelPaymentRequest
11762
+ * @enum {string}
11881
11763
  */
11882
- export interface SumupCancelPaymentRequest {
11883
- /**
11884
- *
11885
- * @type {string}
11886
- * @memberof SumupCancelPaymentRequest
11887
- */
11888
- 'checkoutId'?: string;
11889
- }
11764
+
11765
+ export const TrendDirection = {
11766
+ Up: 'up',
11767
+ Down: 'down',
11768
+ Steady: 'steady'
11769
+ } as const;
11770
+
11771
+ export type TrendDirection = typeof TrendDirection[keyof typeof TrendDirection];
11772
+
11773
+
11890
11774
  /**
11891
11775
  *
11892
11776
  * @export
11893
- * @interface SumupConnectUrlResponse
11777
+ * @interface UpdateActuality200Response
11894
11778
  */
11895
- export interface SumupConnectUrlResponse {
11779
+ export interface UpdateActuality200Response {
11896
11780
  /**
11897
11781
  *
11898
- * @type {string}
11899
- * @memberof SumupConnectUrlResponse
11782
+ * @type {any}
11783
+ * @memberof UpdateActuality200Response
11900
11784
  */
11901
- 'url': string;
11785
+ 'actuality': any;
11902
11786
  }
11903
11787
  /**
11904
11788
  *
11905
11789
  * @export
11906
- * @interface SumupCreatePaymentRequest
11790
+ * @interface UpdateClubAccessSettingsRequest
11907
11791
  */
11908
- export interface SumupCreatePaymentRequest {
11909
- /**
11910
- *
11911
- * @type {number}
11912
- * @memberof SumupCreatePaymentRequest
11913
- */
11914
- 'amountInCents': number;
11792
+ export interface UpdateClubAccessSettingsRequest {
11915
11793
  /**
11916
11794
  *
11917
- * @type {string}
11918
- * @memberof SumupCreatePaymentRequest
11795
+ * @type {PartialPublicAccessSettings}
11796
+ * @memberof UpdateClubAccessSettingsRequest
11919
11797
  */
11920
- 'currency': string;
11798
+ 'publicAccess'?: PartialPublicAccessSettings;
11921
11799
  /**
11922
11800
  *
11923
- * @type {string}
11924
- * @memberof SumupCreatePaymentRequest
11801
+ * @type {PartialSchoolAccessSettings}
11802
+ * @memberof UpdateClubAccessSettingsRequest
11925
11803
  */
11926
- 'readerId'?: string;
11804
+ 'schoolAccess'?: PartialSchoolAccessSettings;
11927
11805
  /**
11928
11806
  *
11929
- * @type {string}
11930
- * @memberof SumupCreatePaymentRequest
11807
+ * @type {PartialHotelAccessSettings}
11808
+ * @memberof UpdateClubAccessSettingsRequest
11931
11809
  */
11932
- 'description'?: string;
11810
+ 'hotelAccess'?: PartialHotelAccessSettings;
11933
11811
  /**
11934
11812
  *
11935
- * @type {string}
11936
- * @memberof SumupCreatePaymentRequest
11937
- */
11938
- 'reference'?: string;
11939
- /**
11940
- * Construct a type with a set of properties K of type T
11941
- * @type {{ [key: string]: string; }}
11942
- * @memberof SumupCreatePaymentRequest
11813
+ * @type {PartialPaymentRequirementsSettings}
11814
+ * @memberof UpdateClubAccessSettingsRequest
11943
11815
  */
11944
- 'metadata'?: { [key: string]: string; };
11816
+ 'paymentRequirements'?: PartialPaymentRequirementsSettings;
11817
+ }
11818
+ /**
11819
+ *
11820
+ * @export
11821
+ * @interface UpdateClubDayScheduleRequest
11822
+ */
11823
+ export interface UpdateClubDayScheduleRequest {
11945
11824
  /**
11946
11825
  *
11947
- * @type {string}
11948
- * @memberof SumupCreatePaymentRequest
11826
+ * @type {Array<ClubDayInterval>}
11827
+ * @memberof UpdateClubDayScheduleRequest
11949
11828
  */
11950
- 'userId'?: string;
11829
+ 'intervals': Array<ClubDayInterval>;
11951
11830
  }
11952
11831
  /**
11953
11832
  *
11954
11833
  * @export
11955
- * @interface SumupOAuthCallbackResponse
11834
+ * @interface UpdateClubGeneralSettingsRequest
11956
11835
  */
11957
- export interface SumupOAuthCallbackResponse {
11836
+ export interface UpdateClubGeneralSettingsRequest {
11958
11837
  /**
11959
11838
  *
11960
11839
  * @type {string}
11961
- * @memberof SumupOAuthCallbackResponse
11840
+ * @memberof UpdateClubGeneralSettingsRequest
11962
11841
  */
11963
- 'clubId': string;
11842
+ 'name'?: string;
11964
11843
  /**
11965
11844
  *
11966
11845
  * @type {string}
11967
- * @memberof SumupOAuthCallbackResponse
11846
+ * @memberof UpdateClubGeneralSettingsRequest
11968
11847
  */
11969
- 'merchantCode': string;
11970
- /**
11971
- *
11972
- * @type {string}
11973
- * @memberof SumupOAuthCallbackResponse
11974
- */
11975
- 'scope'?: string;
11976
- }
11977
- /**
11978
- *
11979
- * @export
11980
- * @interface SumupPairReaderRequest
11981
- */
11982
- export interface SumupPairReaderRequest {
11983
- /**
11984
- *
11985
- * @type {string}
11986
- * @memberof SumupPairReaderRequest
11987
- */
11988
- 'pairingCode': string;
11989
- /**
11990
- *
11991
- * @type {string}
11992
- * @memberof SumupPairReaderRequest
11993
- */
11994
- 'name': string;
11995
- }
11996
- /**
11997
- *
11998
- * @export
11999
- * @interface SumupPairReaderResponse
12000
- */
12001
- export interface SumupPairReaderResponse {
12002
- /**
12003
- *
12004
- * @type {SumupReaderInfo}
12005
- * @memberof SumupPairReaderResponse
12006
- */
12007
- 'reader': SumupReaderInfo;
12008
- }
12009
- /**
12010
- *
12011
- * @export
12012
- * @interface SumupReaderInfo
12013
- */
12014
- export interface SumupReaderInfo {
12015
- [key: string]: any;
12016
-
12017
- /**
12018
- *
12019
- * @type {string}
12020
- * @memberof SumupReaderInfo
12021
- */
12022
- 'reader_id'?: string;
12023
- /**
12024
- *
12025
- * @type {string}
12026
- * @memberof SumupReaderInfo
12027
- */
12028
- 'id'?: string;
12029
- /**
12030
- *
12031
- * @type {string}
12032
- * @memberof SumupReaderInfo
12033
- */
12034
- 'serial_number'?: string;
12035
- /**
12036
- *
12037
- * @type {string}
12038
- * @memberof SumupReaderInfo
12039
- */
12040
- 'name'?: string;
12041
- /**
12042
- *
12043
- * @type {string}
12044
- * @memberof SumupReaderInfo
12045
- */
12046
- 'status'?: string;
12047
- /**
12048
- *
12049
- * @type {string}
12050
- * @memberof SumupReaderInfo
12051
- */
12052
- 'model'?: string;
12053
- /**
12054
- *
12055
- * @type {string}
12056
- * @memberof SumupReaderInfo
12057
- */
12058
- 'device_type'?: string;
12059
- /**
12060
- *
12061
- * @type {string}
12062
- * @memberof SumupReaderInfo
12063
- */
12064
- 'last_seen_at'?: string;
12065
- }
12066
- /**
12067
- *
12068
- * @export
12069
- * @interface SumupReadersResponse
12070
- */
12071
- export interface SumupReadersResponse {
12072
- /**
12073
- *
12074
- * @type {Array<SumupReaderInfo>}
12075
- * @memberof SumupReadersResponse
12076
- */
12077
- 'readers': Array<SumupReaderInfo>;
12078
- }
12079
- /**
12080
- *
12081
- * @export
12082
- * @enum {string}
12083
- */
12084
-
12085
- export const SurfaceType = {
12086
- Clay: 'clay',
12087
- Grass: 'grass',
12088
- Hard: 'hard',
12089
- Turf: 'turf',
12090
- Carpet: 'carpet',
12091
- Wooden: 'wooden'
12092
- } as const;
12093
-
12094
- export type SurfaceType = typeof SurfaceType[keyof typeof SurfaceType];
12095
-
12096
-
12097
- /**
12098
- *
12099
- * @export
12100
- * @interface Team
12101
- */
12102
- export interface Team {
12103
- /**
12104
- *
12105
- * @type {string}
12106
- * @memberof Team
12107
- */
12108
- 'name': string;
12109
- /**
12110
- *
12111
- * @type {Array<EventUser>}
12112
- * @memberof Team
12113
- */
12114
- 'players': Array<EventUser>;
12115
- }
12116
- /**
12117
- *
12118
- * @export
12119
- * @interface TimeBounds
12120
- */
12121
- export interface TimeBounds {
12122
- /**
12123
- * Heure de début au format HH:mm
12124
- * @type {string}
12125
- * @memberof TimeBounds
12126
- */
12127
- 'start': string;
12128
- /**
12129
- * Heure de fin au format HH:mm
12130
- * @type {string}
12131
- * @memberof TimeBounds
12132
- */
12133
- 'end': string;
12134
- }
12135
- /**
12136
- *
12137
- * @export
12138
- * @enum {string}
12139
- */
12140
-
12141
- export const TrendDirection = {
12142
- Up: 'up',
12143
- Down: 'down',
12144
- Steady: 'steady'
12145
- } as const;
12146
-
12147
- export type TrendDirection = typeof TrendDirection[keyof typeof TrendDirection];
12148
-
12149
-
12150
- /**
12151
- *
12152
- * @export
12153
- * @interface UpdateActuality200Response
12154
- */
12155
- export interface UpdateActuality200Response {
12156
- /**
12157
- *
12158
- * @type {any}
12159
- * @memberof UpdateActuality200Response
12160
- */
12161
- 'actuality': any;
12162
- }
12163
- /**
12164
- *
12165
- * @export
12166
- * @interface UpdateClubAccessSettingsRequest
12167
- */
12168
- export interface UpdateClubAccessSettingsRequest {
12169
- /**
12170
- *
12171
- * @type {PartialPublicAccessSettings}
12172
- * @memberof UpdateClubAccessSettingsRequest
12173
- */
12174
- 'publicAccess'?: PartialPublicAccessSettings;
12175
- /**
12176
- *
12177
- * @type {PartialSchoolAccessSettings}
12178
- * @memberof UpdateClubAccessSettingsRequest
12179
- */
12180
- 'schoolAccess'?: PartialSchoolAccessSettings;
12181
- /**
12182
- *
12183
- * @type {PartialHotelAccessSettings}
12184
- * @memberof UpdateClubAccessSettingsRequest
12185
- */
12186
- 'hotelAccess'?: PartialHotelAccessSettings;
12187
- /**
12188
- *
12189
- * @type {PartialPaymentRequirementsSettings}
12190
- * @memberof UpdateClubAccessSettingsRequest
12191
- */
12192
- 'paymentRequirements'?: PartialPaymentRequirementsSettings;
12193
- }
12194
- /**
12195
- *
12196
- * @export
12197
- * @interface UpdateClubDayScheduleRequest
12198
- */
12199
- export interface UpdateClubDayScheduleRequest {
12200
- /**
12201
- *
12202
- * @type {Array<ClubDayInterval>}
12203
- * @memberof UpdateClubDayScheduleRequest
12204
- */
12205
- 'intervals': Array<ClubDayInterval>;
12206
- }
12207
- /**
12208
- *
12209
- * @export
12210
- * @interface UpdateClubGeneralSettingsRequest
12211
- */
12212
- export interface UpdateClubGeneralSettingsRequest {
12213
- /**
12214
- *
12215
- * @type {string}
12216
- * @memberof UpdateClubGeneralSettingsRequest
12217
- */
12218
- 'name'?: string;
12219
- /**
12220
- *
12221
- * @type {string}
12222
- * @memberof UpdateClubGeneralSettingsRequest
12223
- */
12224
- 'email'?: string;
11848
+ 'email'?: string;
12225
11849
  /**
12226
11850
  *
12227
11851
  * @type {string}
@@ -13279,6 +12903,12 @@ export interface UserClubMembership {
13279
12903
  * @memberof UserClubMembership
13280
12904
  */
13281
12905
  'clubPicture': string | null;
12906
+ /**
12907
+ *
12908
+ * @type {Array<string>}
12909
+ * @memberof UserClubMembership
12910
+ */
12911
+ 'bannerPictures'?: Array<string>;
13282
12912
  /**
13283
12913
  *
13284
12914
  * @type {string}
@@ -13958,6 +13588,12 @@ export interface UserProfileResponse {
13958
13588
  * @memberof UserProfileResponse
13959
13589
  */
13960
13590
  'clubs'?: Array<UserClubMembership>;
13591
+ /**
13592
+ *
13593
+ * @type {Array<ClubSummary>}
13594
+ * @memberof UserProfileResponse
13595
+ */
13596
+ 'favoriteClubsDetails'?: Array<ClubSummary>;
13961
13597
  /**
13962
13598
  *
13963
13599
  * @type {Array<ClubSummary>}
@@ -14707,15 +14343,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
14707
14343
  /**
14708
14344
  *
14709
14345
  * @param {string} bookingId
14710
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
14346
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
14711
14347
  * @param {*} [options] Override http request option.
14712
14348
  * @throws {RequiredError}
14713
14349
  */
14714
- joinOpenBooking: async (bookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14350
+ joinOpenBooking: async (bookingId: string, joinOpenBookingRequest: JoinOpenBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14715
14351
  // verify required parameter 'bookingId' is not null or undefined
14716
14352
  assertParamExists('joinOpenBooking', 'bookingId', bookingId)
14717
- // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
14718
- assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest)
14353
+ // verify required parameter 'joinOpenBookingRequest' is not null or undefined
14354
+ assertParamExists('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest)
14719
14355
  const localVarPath = `/api/bookings/{bookingId}/open/join`
14720
14356
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
14721
14357
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -14740,7 +14376,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
14740
14376
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14741
14377
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14742
14378
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14743
- localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration)
14379
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenBookingRequest, localVarRequestOptions, configuration)
14744
14380
 
14745
14381
  return {
14746
14382
  url: toPathString(localVarUrlObj),
@@ -14917,12 +14553,12 @@ export const BookingsApiFp = function(configuration?: Configuration) {
14917
14553
  /**
14918
14554
  *
14919
14555
  * @param {string} bookingId
14920
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
14556
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
14921
14557
  * @param {*} [options] Override http request option.
14922
14558
  * @throws {RequiredError}
14923
14559
  */
14924
- async joinOpenBooking(bookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinOpenBookingResponse>> {
14925
- const localVarAxiosArgs = await localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
14560
+ async joinOpenBooking(bookingId: string, joinOpenBookingRequest: JoinOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinOpenBookingResponse>> {
14561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
14926
14562
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14927
14563
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.joinOpenBooking']?.[localVarOperationServerIndex]?.url;
14928
14564
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15037,7 +14673,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
15037
14673
  * @throws {RequiredError}
15038
14674
  */
15039
14675
  joinOpenBooking(requestParameters: BookingsApiJoinOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinOpenBookingResponse> {
15040
- return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
14676
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
15041
14677
  },
15042
14678
  /**
15043
14679
  *
@@ -15276,10 +14912,10 @@ export interface BookingsApiJoinOpenBookingRequest {
15276
14912
 
15277
14913
  /**
15278
14914
  *
15279
- * @type {JoinOpenEventBookingRequest}
14915
+ * @type {JoinOpenBookingRequest}
15280
14916
  * @memberof BookingsApiJoinOpenBooking
15281
14917
  */
15282
- readonly joinOpenEventBookingRequest: JoinOpenEventBookingRequest
14918
+ readonly joinOpenBookingRequest: JoinOpenBookingRequest
15283
14919
  }
15284
14920
 
15285
14921
  /**
@@ -15410,7 +15046,7 @@ export class BookingsApi extends BaseAPI {
15410
15046
  * @memberof BookingsApi
15411
15047
  */
15412
15048
  public joinOpenBooking(requestParameters: BookingsApiJoinOpenBookingRequest, options?: RawAxiosRequestConfig) {
15413
- return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
15049
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
15414
15050
  }
15415
15051
 
15416
15052
  /**
@@ -15653,7 +15289,7 @@ export class BookingsManagerApi extends BaseAPI {
15653
15289
  export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
15654
15290
  return {
15655
15291
  /**
15656
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15292
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
15657
15293
  * @param {string} bookingId
15658
15294
  * @param {CheckInPlayerRequest} checkInPlayerRequest
15659
15295
  * @param {*} [options] Override http request option.
@@ -15696,19 +15332,15 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
15696
15332
  };
15697
15333
  },
15698
15334
  /**
15699
- * Check-in d\'un joueur avec création d\'un checkout SumUp
15700
- * @param {string} bookingId
15701
- * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
15335
+ * Créer une réservation pour un joueur depuis l\'espace staff
15336
+ * @param {StaffCreateBookingRequest} staffCreateBookingRequest
15702
15337
  * @param {*} [options] Override http request option.
15703
15338
  * @throws {RequiredError}
15704
15339
  */
15705
- checkInPlayerWithSumup: async (bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15706
- // verify required parameter 'bookingId' is not null or undefined
15707
- assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId)
15708
- // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
15709
- assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest)
15710
- const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
15711
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
15340
+ createStaffBooking: async (staffCreateBookingRequest: StaffCreateBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15341
+ // verify required parameter 'staffCreateBookingRequest' is not null or undefined
15342
+ assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest)
15343
+ const localVarPath = `/api/bookings/staff`;
15712
15344
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15713
15345
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15714
15346
  let baseOptions;
@@ -15731,7 +15363,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
15731
15363
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15732
15364
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15733
15365
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15734
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration)
15366
+ localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration)
15735
15367
 
15736
15368
  return {
15737
15369
  url: toPathString(localVarUrlObj),
@@ -15739,47 +15371,8 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
15739
15371
  };
15740
15372
  },
15741
15373
  /**
15742
- * Créer une réservation pour un joueur depuis l\'espace staff
15743
- * @param {StaffCreateBookingRequest} staffCreateBookingRequest
15744
- * @param {*} [options] Override http request option.
15745
- * @throws {RequiredError}
15746
- */
15747
- createStaffBooking: async (staffCreateBookingRequest: StaffCreateBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15748
- // verify required parameter 'staffCreateBookingRequest' is not null or undefined
15749
- assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest)
15750
- const localVarPath = `/api/bookings/staff`;
15751
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15752
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15753
- let baseOptions;
15754
- if (configuration) {
15755
- baseOptions = configuration.baseOptions;
15756
- }
15757
-
15758
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15759
- const localVarHeaderParameter = {} as any;
15760
- const localVarQueryParameter = {} as any;
15761
-
15762
- // authentication bearerAuth required
15763
- // http bearer authentication required
15764
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
15765
-
15766
-
15767
-
15768
- localVarHeaderParameter['Content-Type'] = 'application/json';
15769
-
15770
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15771
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15772
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15773
- localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration)
15774
-
15775
- return {
15776
- url: toPathString(localVarUrlObj),
15777
- options: localVarRequestOptions,
15778
- };
15779
- },
15780
- /**
15781
- * Obtenir une réservation par ID
15782
- * @param {string} bookingId
15374
+ * Obtenir une réservation par ID
15375
+ * @param {string} bookingId
15783
15376
  * @param {*} [options] Override http request option.
15784
15377
  * @throws {RequiredError}
15785
15378
  */
@@ -16031,7 +15624,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
16031
15624
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
16032
15625
  return {
16033
15626
  /**
16034
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15627
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
16035
15628
  * @param {string} bookingId
16036
15629
  * @param {CheckInPlayerRequest} checkInPlayerRequest
16037
15630
  * @param {*} [options] Override http request option.
@@ -16043,19 +15636,6 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
16043
15636
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
16044
15637
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16045
15638
  },
16046
- /**
16047
- * Check-in d\'un joueur avec création d\'un checkout SumUp
16048
- * @param {string} bookingId
16049
- * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
16050
- * @param {*} [options] Override http request option.
16051
- * @throws {RequiredError}
16052
- */
16053
- async checkInPlayerWithSumup(bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerSumupResponse>> {
16054
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
16055
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16056
- const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']?.[localVarOperationServerIndex]?.url;
16057
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16058
- },
16059
15639
  /**
16060
15640
  * Créer une réservation pour un joueur depuis l\'espace staff
16061
15641
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -16155,7 +15735,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
16155
15735
  const localVarFp = BookingsStaffApiFp(configuration)
16156
15736
  return {
16157
15737
  /**
16158
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15738
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
16159
15739
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
16160
15740
  * @param {*} [options] Override http request option.
16161
15741
  * @throws {RequiredError}
@@ -16163,15 +15743,6 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
16163
15743
  checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse> {
16164
15744
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
16165
15745
  },
16166
- /**
16167
- * Check-in d\'un joueur avec création d\'un checkout SumUp
16168
- * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
16169
- * @param {*} [options] Override http request option.
16170
- * @throws {RequiredError}
16171
- */
16172
- checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerSumupResponse> {
16173
- return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
16174
- },
16175
15746
  /**
16176
15747
  * Créer une réservation pour un joueur depuis l\'espace staff
16177
15748
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -16259,27 +15830,6 @@ export interface BookingsStaffApiCheckInPlayerRequest {
16259
15830
  readonly checkInPlayerRequest: CheckInPlayerRequest
16260
15831
  }
16261
15832
 
16262
- /**
16263
- * Request parameters for checkInPlayerWithSumup operation in BookingsStaffApi.
16264
- * @export
16265
- * @interface BookingsStaffApiCheckInPlayerWithSumupRequest
16266
- */
16267
- export interface BookingsStaffApiCheckInPlayerWithSumupRequest {
16268
- /**
16269
- *
16270
- * @type {string}
16271
- * @memberof BookingsStaffApiCheckInPlayerWithSumup
16272
- */
16273
- readonly bookingId: string
16274
-
16275
- /**
16276
- *
16277
- * @type {CheckInPlayerSumupRequest}
16278
- * @memberof BookingsStaffApiCheckInPlayerWithSumup
16279
- */
16280
- readonly checkInPlayerSumupRequest: CheckInPlayerSumupRequest
16281
- }
16282
-
16283
15833
  /**
16284
15834
  * Request parameters for createStaffBooking operation in BookingsStaffApi.
16285
15835
  * @export
@@ -16414,7 +15964,7 @@ export interface BookingsStaffApiListClubBookingsRequest {
16414
15964
  */
16415
15965
  export class BookingsStaffApi extends BaseAPI {
16416
15966
  /**
16417
- * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
15967
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
16418
15968
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
16419
15969
  * @param {*} [options] Override http request option.
16420
15970
  * @throws {RequiredError}
@@ -16424,17 +15974,6 @@ export class BookingsStaffApi extends BaseAPI {
16424
15974
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
16425
15975
  }
16426
15976
 
16427
- /**
16428
- * Check-in d\'un joueur avec création d\'un checkout SumUp
16429
- * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
16430
- * @param {*} [options] Override http request option.
16431
- * @throws {RequiredError}
16432
- * @memberof BookingsStaffApi
16433
- */
16434
- public checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig) {
16435
- return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
16436
- }
16437
-
16438
15977
  /**
16439
15978
  * Créer une réservation pour un joueur depuis l\'espace staff
16440
15979
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -27641,16 +27180,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
27641
27180
  };
27642
27181
  },
27643
27182
  /**
27644
- * Get a specific event by ID (staff)
27645
- * @param {string} eventId
27183
+ *
27646
27184
  * @param {*} [options] Override http request option.
27647
27185
  * @throws {RequiredError}
27648
27186
  */
27649
- getEventByIdForStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27650
- // verify required parameter 'eventId' is not null or undefined
27651
- assertParamExists('getEventByIdForStaff', 'eventId', eventId)
27652
- const localVarPath = `/api/events/staff/{eventId}`
27653
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
27187
+ getDraftEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27188
+ const localVarPath = `/api/events/staff/getEvents/drafts`;
27654
27189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27655
27190
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27656
27191
  let baseOptions;
@@ -27678,12 +27213,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
27678
27213
  };
27679
27214
  },
27680
27215
  /**
27681
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27216
+ * Get a specific event by ID (staff)
27217
+ * @param {string} eventId
27682
27218
  * @param {*} [options] Override http request option.
27683
27219
  * @throws {RequiredError}
27684
27220
  */
27685
- getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27686
- const localVarPath = `/api/events/staff/getEvents`;
27221
+ getEventByIdForStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27222
+ // verify required parameter 'eventId' is not null or undefined
27223
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId)
27224
+ const localVarPath = `/api/events/staff/{eventId}`
27225
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
27687
27226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27688
27227
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27689
27228
  let baseOptions;
@@ -27759,6 +27298,72 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
27759
27298
 
27760
27299
 
27761
27300
 
27301
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27303
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27304
+
27305
+ return {
27306
+ url: toPathString(localVarUrlObj),
27307
+ options: localVarRequestOptions,
27308
+ };
27309
+ },
27310
+ /**
27311
+ *
27312
+ * @param {*} [options] Override http request option.
27313
+ * @throws {RequiredError}
27314
+ */
27315
+ getPastEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27316
+ const localVarPath = `/api/events/staff/getEvents/past`;
27317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27318
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27319
+ let baseOptions;
27320
+ if (configuration) {
27321
+ baseOptions = configuration.baseOptions;
27322
+ }
27323
+
27324
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27325
+ const localVarHeaderParameter = {} as any;
27326
+ const localVarQueryParameter = {} as any;
27327
+
27328
+ // authentication bearerAuth required
27329
+ // http bearer authentication required
27330
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27331
+
27332
+
27333
+
27334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27336
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27337
+
27338
+ return {
27339
+ url: toPathString(localVarUrlObj),
27340
+ options: localVarRequestOptions,
27341
+ };
27342
+ },
27343
+ /**
27344
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27345
+ * @param {*} [options] Override http request option.
27346
+ * @throws {RequiredError}
27347
+ */
27348
+ getUpcomingEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27349
+ const localVarPath = `/api/events/staff/getEvents/upcoming`;
27350
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27351
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27352
+ let baseOptions;
27353
+ if (configuration) {
27354
+ baseOptions = configuration.baseOptions;
27355
+ }
27356
+
27357
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27358
+ const localVarHeaderParameter = {} as any;
27359
+ const localVarQueryParameter = {} as any;
27360
+
27361
+ // authentication bearerAuth required
27362
+ // http bearer authentication required
27363
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27364
+
27365
+
27366
+
27762
27367
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27763
27368
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27764
27369
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -27866,26 +27471,26 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
27866
27471
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27867
27472
  },
27868
27473
  /**
27869
- * Get a specific event by ID (staff)
27870
- * @param {string} eventId
27474
+ *
27871
27475
  * @param {*} [options] Override http request option.
27872
27476
  * @throws {RequiredError}
27873
27477
  */
27874
- async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
27875
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
27478
+ async getDraftEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
27479
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDraftEventsByClub(options);
27876
27480
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27877
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
27481
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDraftEventsByClub']?.[localVarOperationServerIndex]?.url;
27878
27482
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27879
27483
  },
27880
27484
  /**
27881
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27485
+ * Get a specific event by ID (staff)
27486
+ * @param {string} eventId
27882
27487
  * @param {*} [options] Override http request option.
27883
27488
  * @throws {RequiredError}
27884
27489
  */
27885
- async getEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPaginatedResponse>> {
27886
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventsByClub(options);
27490
+ async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
27491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
27887
27492
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27888
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
27493
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
27889
27494
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27890
27495
  },
27891
27496
  /**
@@ -27904,6 +27509,28 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
27904
27509
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getMonthlyEvents']?.[localVarOperationServerIndex]?.url;
27905
27510
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27906
27511
  },
27512
+ /**
27513
+ *
27514
+ * @param {*} [options] Override http request option.
27515
+ * @throws {RequiredError}
27516
+ */
27517
+ async getPastEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
27518
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPastEventsByClub(options);
27519
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27520
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getPastEventsByClub']?.[localVarOperationServerIndex]?.url;
27521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27522
+ },
27523
+ /**
27524
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27525
+ * @param {*} [options] Override http request option.
27526
+ * @throws {RequiredError}
27527
+ */
27528
+ async getUpcomingEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
27529
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUpcomingEventsByClub(options);
27530
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27531
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']?.[localVarOperationServerIndex]?.url;
27532
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27533
+ },
27907
27534
  /**
27908
27535
  * Get events for the week view (30 day sliding window)
27909
27536
  * @param {string} [clubId]
@@ -27949,21 +27576,21 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
27949
27576
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
27950
27577
  },
27951
27578
  /**
27952
- * Get a specific event by ID (staff)
27953
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
27579
+ *
27954
27580
  * @param {*} [options] Override http request option.
27955
27581
  * @throws {RequiredError}
27956
27582
  */
27957
- getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
27958
- return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
27583
+ getDraftEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
27584
+ return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
27959
27585
  },
27960
27586
  /**
27961
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27587
+ * Get a specific event by ID (staff)
27588
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
27962
27589
  * @param {*} [options] Override http request option.
27963
27590
  * @throws {RequiredError}
27964
27591
  */
27965
- getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPaginatedResponse> {
27966
- return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
27592
+ getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
27593
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
27967
27594
  },
27968
27595
  /**
27969
27596
  * Get events for the entire month view (including recurring occurrences)
@@ -27974,6 +27601,22 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
27974
27601
  getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
27975
27602
  return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
27976
27603
  },
27604
+ /**
27605
+ *
27606
+ * @param {*} [options] Override http request option.
27607
+ * @throws {RequiredError}
27608
+ */
27609
+ getPastEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
27610
+ return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
27611
+ },
27612
+ /**
27613
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27614
+ * @param {*} [options] Override http request option.
27615
+ * @throws {RequiredError}
27616
+ */
27617
+ getUpcomingEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
27618
+ return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
27619
+ },
27977
27620
  /**
27978
27621
  * Get events for the week view (30 day sliding window)
27979
27622
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -28177,24 +27820,24 @@ export class EventsStaffApi extends BaseAPI {
28177
27820
  }
28178
27821
 
28179
27822
  /**
28180
- * Get a specific event by ID (staff)
28181
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
27823
+ *
28182
27824
  * @param {*} [options] Override http request option.
28183
27825
  * @throws {RequiredError}
28184
27826
  * @memberof EventsStaffApi
28185
27827
  */
28186
- public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
28187
- return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27828
+ public getDraftEventsByClub(options?: RawAxiosRequestConfig) {
27829
+ return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
28188
27830
  }
28189
27831
 
28190
27832
  /**
28191
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27833
+ * Get a specific event by ID (staff)
27834
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
28192
27835
  * @param {*} [options] Override http request option.
28193
27836
  * @throws {RequiredError}
28194
27837
  * @memberof EventsStaffApi
28195
27838
  */
28196
- public getEventsByClub(options?: RawAxiosRequestConfig) {
28197
- return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
27839
+ public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
27840
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
28198
27841
  }
28199
27842
 
28200
27843
  /**
@@ -28208,6 +27851,26 @@ export class EventsStaffApi extends BaseAPI {
28208
27851
  return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
28209
27852
  }
28210
27853
 
27854
+ /**
27855
+ *
27856
+ * @param {*} [options] Override http request option.
27857
+ * @throws {RequiredError}
27858
+ * @memberof EventsStaffApi
27859
+ */
27860
+ public getPastEventsByClub(options?: RawAxiosRequestConfig) {
27861
+ return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
27862
+ }
27863
+
27864
+ /**
27865
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27866
+ * @param {*} [options] Override http request option.
27867
+ * @throws {RequiredError}
27868
+ * @memberof EventsStaffApi
27869
+ */
27870
+ public getUpcomingEventsByClub(options?: RawAxiosRequestConfig) {
27871
+ return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
27872
+ }
27873
+
28211
27874
  /**
28212
27875
  * Get events for the week view (30 day sliding window)
28213
27876
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -28398,27 +28061,21 @@ export class ImagesApi extends BaseAPI {
28398
28061
 
28399
28062
 
28400
28063
  /**
28401
- * PaymentsStaffApi - axios parameter creator
28064
+ * PublicEmailApi - axios parameter creator
28402
28065
  * @export
28403
28066
  */
28404
- export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
28067
+ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
28405
28068
  return {
28406
28069
  /**
28407
- * Cancel a SumUp reader checkout.
28408
- * @param {string} clubId
28409
- * @param {string} paymentId
28410
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
28070
+ *
28071
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
28411
28072
  * @param {*} [options] Override http request option.
28412
28073
  * @throws {RequiredError}
28413
28074
  */
28414
- cancelSumupPayment: async (clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28415
- // verify required parameter 'clubId' is not null or undefined
28416
- assertParamExists('cancelSumupPayment', 'clubId', clubId)
28417
- // verify required parameter 'paymentId' is not null or undefined
28418
- assertParamExists('cancelSumupPayment', 'paymentId', paymentId)
28419
- const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
28420
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
28421
- .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
28075
+ authEmailExists: async (emailExistsRequestBody: EmailExistsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28076
+ // verify required parameter 'emailExistsRequestBody' is not null or undefined
28077
+ assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody)
28078
+ const localVarPath = `/api/public-email/auth-email-exists`;
28422
28079
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28423
28080
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28424
28081
  let baseOptions;
@@ -28430,10 +28087,6 @@ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Confi
28430
28087
  const localVarHeaderParameter = {} as any;
28431
28088
  const localVarQueryParameter = {} as any;
28432
28089
 
28433
- // authentication bearerAuth required
28434
- // http bearer authentication required
28435
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
28436
-
28437
28090
 
28438
28091
 
28439
28092
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -28441,7 +28094,7 @@ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Confi
28441
28094
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28442
28095
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28443
28096
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28444
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration)
28097
+ localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
28445
28098
 
28446
28099
  return {
28447
28100
  url: toPathString(localVarUrlObj),
@@ -28449,19 +28102,15 @@ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Confi
28449
28102
  };
28450
28103
  },
28451
28104
  /**
28452
- * Start a SumUp reader checkout (manual payment trigger).
28453
- * @param {string} clubId
28454
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
28105
+ *
28106
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
28455
28107
  * @param {*} [options] Override http request option.
28456
28108
  * @throws {RequiredError}
28457
28109
  */
28458
- createSumupPayment: async (clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28459
- // verify required parameter 'clubId' is not null or undefined
28460
- assertParamExists('createSumupPayment', 'clubId', clubId)
28461
- // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
28462
- assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest)
28463
- const localVarPath = `/api/clubs/{clubId}/payments/sumup`
28464
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
28110
+ requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28111
+ // verify required parameter 'requestEmailCodeBody' is not null or undefined
28112
+ assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28113
+ const localVarPath = `/api/public-email/request-verification-code`;
28465
28114
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28466
28115
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28467
28116
  let baseOptions;
@@ -28473,10 +28122,6 @@ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Confi
28473
28122
  const localVarHeaderParameter = {} as any;
28474
28123
  const localVarQueryParameter = {} as any;
28475
28124
 
28476
- // authentication bearerAuth required
28477
- // http bearer authentication required
28478
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
28479
-
28480
28125
 
28481
28126
 
28482
28127
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -28484,232 +28129,7 @@ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Confi
28484
28129
  setSearchParams(localVarUrlObj, localVarQueryParameter);
28485
28130
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28486
28131
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28487
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration)
28488
-
28489
- return {
28490
- url: toPathString(localVarUrlObj),
28491
- options: localVarRequestOptions,
28492
- };
28493
- },
28494
- }
28495
- };
28496
-
28497
- /**
28498
- * PaymentsStaffApi - functional programming interface
28499
- * @export
28500
- */
28501
- export const PaymentsStaffApiFp = function(configuration?: Configuration) {
28502
- const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration)
28503
- return {
28504
- /**
28505
- * Cancel a SumUp reader checkout.
28506
- * @param {string} clubId
28507
- * @param {string} paymentId
28508
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
28509
- * @param {*} [options] Override http request option.
28510
- * @throws {RequiredError}
28511
- */
28512
- async cancelSumupPayment(clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28513
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
28514
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28515
- const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.cancelSumupPayment']?.[localVarOperationServerIndex]?.url;
28516
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28517
- },
28518
- /**
28519
- * Start a SumUp reader checkout (manual payment trigger).
28520
- * @param {string} clubId
28521
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
28522
- * @param {*} [options] Override http request option.
28523
- * @throws {RequiredError}
28524
- */
28525
- async createSumupPayment(clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentIntentResult>> {
28526
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
28527
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28528
- const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.createSumupPayment']?.[localVarOperationServerIndex]?.url;
28529
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28530
- },
28531
- }
28532
- };
28533
-
28534
- /**
28535
- * PaymentsStaffApi - factory interface
28536
- * @export
28537
- */
28538
- export const PaymentsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28539
- const localVarFp = PaymentsStaffApiFp(configuration)
28540
- return {
28541
- /**
28542
- * Cancel a SumUp reader checkout.
28543
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
28544
- * @param {*} [options] Override http request option.
28545
- * @throws {RequiredError}
28546
- */
28547
- cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28548
- return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
28549
- },
28550
- /**
28551
- * Start a SumUp reader checkout (manual payment trigger).
28552
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
28553
- * @param {*} [options] Override http request option.
28554
- * @throws {RequiredError}
28555
- */
28556
- createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentIntentResult> {
28557
- return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
28558
- },
28559
- };
28560
- };
28561
-
28562
- /**
28563
- * Request parameters for cancelSumupPayment operation in PaymentsStaffApi.
28564
- * @export
28565
- * @interface PaymentsStaffApiCancelSumupPaymentRequest
28566
- */
28567
- export interface PaymentsStaffApiCancelSumupPaymentRequest {
28568
- /**
28569
- *
28570
- * @type {string}
28571
- * @memberof PaymentsStaffApiCancelSumupPayment
28572
- */
28573
- readonly clubId: string
28574
-
28575
- /**
28576
- *
28577
- * @type {string}
28578
- * @memberof PaymentsStaffApiCancelSumupPayment
28579
- */
28580
- readonly paymentId: string
28581
-
28582
- /**
28583
- *
28584
- * @type {SumupCancelPaymentRequest}
28585
- * @memberof PaymentsStaffApiCancelSumupPayment
28586
- */
28587
- readonly sumupCancelPaymentRequest?: SumupCancelPaymentRequest
28588
- }
28589
-
28590
- /**
28591
- * Request parameters for createSumupPayment operation in PaymentsStaffApi.
28592
- * @export
28593
- * @interface PaymentsStaffApiCreateSumupPaymentRequest
28594
- */
28595
- export interface PaymentsStaffApiCreateSumupPaymentRequest {
28596
- /**
28597
- *
28598
- * @type {string}
28599
- * @memberof PaymentsStaffApiCreateSumupPayment
28600
- */
28601
- readonly clubId: string
28602
-
28603
- /**
28604
- *
28605
- * @type {SumupCreatePaymentRequest}
28606
- * @memberof PaymentsStaffApiCreateSumupPayment
28607
- */
28608
- readonly sumupCreatePaymentRequest: SumupCreatePaymentRequest
28609
- }
28610
-
28611
- /**
28612
- * PaymentsStaffApi - object-oriented interface
28613
- * @export
28614
- * @class PaymentsStaffApi
28615
- * @extends {BaseAPI}
28616
- */
28617
- export class PaymentsStaffApi extends BaseAPI {
28618
- /**
28619
- * Cancel a SumUp reader checkout.
28620
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
28621
- * @param {*} [options] Override http request option.
28622
- * @throws {RequiredError}
28623
- * @memberof PaymentsStaffApi
28624
- */
28625
- public cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig) {
28626
- return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
28627
- }
28628
-
28629
- /**
28630
- * Start a SumUp reader checkout (manual payment trigger).
28631
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
28632
- * @param {*} [options] Override http request option.
28633
- * @throws {RequiredError}
28634
- * @memberof PaymentsStaffApi
28635
- */
28636
- public createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig) {
28637
- return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
28638
- }
28639
- }
28640
-
28641
-
28642
-
28643
- /**
28644
- * PublicEmailApi - axios parameter creator
28645
- * @export
28646
- */
28647
- export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
28648
- return {
28649
- /**
28650
- *
28651
- * @param {EmailExistsRequestBody} emailExistsRequestBody
28652
- * @param {*} [options] Override http request option.
28653
- * @throws {RequiredError}
28654
- */
28655
- authEmailExists: async (emailExistsRequestBody: EmailExistsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28656
- // verify required parameter 'emailExistsRequestBody' is not null or undefined
28657
- assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody)
28658
- const localVarPath = `/api/public-email/auth-email-exists`;
28659
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28660
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28661
- let baseOptions;
28662
- if (configuration) {
28663
- baseOptions = configuration.baseOptions;
28664
- }
28665
-
28666
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28667
- const localVarHeaderParameter = {} as any;
28668
- const localVarQueryParameter = {} as any;
28669
-
28670
-
28671
-
28672
- localVarHeaderParameter['Content-Type'] = 'application/json';
28673
-
28674
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28675
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28676
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28677
- localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
28678
-
28679
- return {
28680
- url: toPathString(localVarUrlObj),
28681
- options: localVarRequestOptions,
28682
- };
28683
- },
28684
- /**
28685
- *
28686
- * @param {RequestEmailCodeBody} requestEmailCodeBody
28687
- * @param {*} [options] Override http request option.
28688
- * @throws {RequiredError}
28689
- */
28690
- requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28691
- // verify required parameter 'requestEmailCodeBody' is not null or undefined
28692
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28693
- const localVarPath = `/api/public-email/request-verification-code`;
28694
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28695
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28696
- let baseOptions;
28697
- if (configuration) {
28698
- baseOptions = configuration.baseOptions;
28699
- }
28700
-
28701
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28702
- const localVarHeaderParameter = {} as any;
28703
- const localVarQueryParameter = {} as any;
28704
-
28705
-
28706
-
28707
- localVarHeaderParameter['Content-Type'] = 'application/json';
28708
-
28709
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28710
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28711
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28712
- localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration)
28132
+ localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration)
28713
28133
 
28714
28134
  return {
28715
28135
  url: toPathString(localVarUrlObj),
@@ -30378,705 +29798,6 @@ export class SubscriptionsUserApi extends BaseAPI {
30378
29798
 
30379
29799
 
30380
29800
 
30381
- /**
30382
- * SumUpApi - axios parameter creator
30383
- * @export
30384
- */
30385
- export const SumUpApiAxiosParamCreator = function (configuration?: Configuration) {
30386
- return {
30387
- /**
30388
- * OAuth callback for SumUp.
30389
- * @param {string} code
30390
- * @param {string} state
30391
- * @param {*} [options] Override http request option.
30392
- * @throws {RequiredError}
30393
- */
30394
- sumupOauthCallback: async (code: string, state: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30395
- // verify required parameter 'code' is not null or undefined
30396
- assertParamExists('sumupOauthCallback', 'code', code)
30397
- // verify required parameter 'state' is not null or undefined
30398
- assertParamExists('sumupOauthCallback', 'state', state)
30399
- const localVarPath = `/api/sumup/oauth/callback`;
30400
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30401
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30402
- let baseOptions;
30403
- if (configuration) {
30404
- baseOptions = configuration.baseOptions;
30405
- }
30406
-
30407
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30408
- const localVarHeaderParameter = {} as any;
30409
- const localVarQueryParameter = {} as any;
30410
-
30411
- if (code !== undefined) {
30412
- localVarQueryParameter['code'] = code;
30413
- }
30414
-
30415
- if (state !== undefined) {
30416
- localVarQueryParameter['state'] = state;
30417
- }
30418
-
30419
-
30420
-
30421
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30422
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30423
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30424
-
30425
- return {
30426
- url: toPathString(localVarUrlObj),
30427
- options: localVarRequestOptions,
30428
- };
30429
- },
30430
- }
30431
- };
30432
-
30433
- /**
30434
- * SumUpApi - functional programming interface
30435
- * @export
30436
- */
30437
- export const SumUpApiFp = function(configuration?: Configuration) {
30438
- const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration)
30439
- return {
30440
- /**
30441
- * OAuth callback for SumUp.
30442
- * @param {string} code
30443
- * @param {string} state
30444
- * @param {*} [options] Override http request option.
30445
- * @throws {RequiredError}
30446
- */
30447
- async sumupOauthCallback(code: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupOAuthCallbackResponse>> {
30448
- const localVarAxiosArgs = await localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
30449
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30450
- const localVarOperationServerBasePath = operationServerMap['SumUpApi.sumupOauthCallback']?.[localVarOperationServerIndex]?.url;
30451
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30452
- },
30453
- }
30454
- };
30455
-
30456
- /**
30457
- * SumUpApi - factory interface
30458
- * @export
30459
- */
30460
- export const SumUpApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30461
- const localVarFp = SumUpApiFp(configuration)
30462
- return {
30463
- /**
30464
- * OAuth callback for SumUp.
30465
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
30466
- * @param {*} [options] Override http request option.
30467
- * @throws {RequiredError}
30468
- */
30469
- sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupOAuthCallbackResponse> {
30470
- return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
30471
- },
30472
- };
30473
- };
30474
-
30475
- /**
30476
- * Request parameters for sumupOauthCallback operation in SumUpApi.
30477
- * @export
30478
- * @interface SumUpApiSumupOauthCallbackRequest
30479
- */
30480
- export interface SumUpApiSumupOauthCallbackRequest {
30481
- /**
30482
- *
30483
- * @type {string}
30484
- * @memberof SumUpApiSumupOauthCallback
30485
- */
30486
- readonly code: string
30487
-
30488
- /**
30489
- *
30490
- * @type {string}
30491
- * @memberof SumUpApiSumupOauthCallback
30492
- */
30493
- readonly state: string
30494
- }
30495
-
30496
- /**
30497
- * SumUpApi - object-oriented interface
30498
- * @export
30499
- * @class SumUpApi
30500
- * @extends {BaseAPI}
30501
- */
30502
- export class SumUpApi extends BaseAPI {
30503
- /**
30504
- * OAuth callback for SumUp.
30505
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
30506
- * @param {*} [options] Override http request option.
30507
- * @throws {RequiredError}
30508
- * @memberof SumUpApi
30509
- */
30510
- public sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig) {
30511
- return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
30512
- }
30513
- }
30514
-
30515
-
30516
-
30517
- /**
30518
- * SumUpManagerApi - axios parameter creator
30519
- * @export
30520
- */
30521
- export const SumUpManagerApiAxiosParamCreator = function (configuration?: Configuration) {
30522
- return {
30523
- /**
30524
- * Disconnect SumUp account for a club.
30525
- * @param {string} clubId
30526
- * @param {*} [options] Override http request option.
30527
- * @throws {RequiredError}
30528
- */
30529
- disconnectSumup: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30530
- // verify required parameter 'clubId' is not null or undefined
30531
- assertParamExists('disconnectSumup', 'clubId', clubId)
30532
- const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
30533
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30534
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30535
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30536
- let baseOptions;
30537
- if (configuration) {
30538
- baseOptions = configuration.baseOptions;
30539
- }
30540
-
30541
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30542
- const localVarHeaderParameter = {} as any;
30543
- const localVarQueryParameter = {} as any;
30544
-
30545
- // authentication bearerAuth required
30546
- // http bearer authentication required
30547
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30548
-
30549
-
30550
-
30551
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30552
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30553
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30554
-
30555
- return {
30556
- url: toPathString(localVarUrlObj),
30557
- options: localVarRequestOptions,
30558
- };
30559
- },
30560
- /**
30561
- * Start SumUp OAuth connection for a club.
30562
- * @param {string} clubId
30563
- * @param {*} [options] Override http request option.
30564
- * @throws {RequiredError}
30565
- */
30566
- getSumupConnectUrl: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30567
- // verify required parameter 'clubId' is not null or undefined
30568
- assertParamExists('getSumupConnectUrl', 'clubId', clubId)
30569
- const localVarPath = `/api/clubs/{clubId}/sumup/connect`
30570
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30571
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30572
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30573
- let baseOptions;
30574
- if (configuration) {
30575
- baseOptions = configuration.baseOptions;
30576
- }
30577
-
30578
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30579
- const localVarHeaderParameter = {} as any;
30580
- const localVarQueryParameter = {} as any;
30581
-
30582
- // authentication bearerAuth required
30583
- // http bearer authentication required
30584
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30585
-
30586
-
30587
-
30588
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30589
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30590
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30591
-
30592
- return {
30593
- url: toPathString(localVarUrlObj),
30594
- options: localVarRequestOptions,
30595
- };
30596
- },
30597
- /**
30598
- * Get SumUp connection status for a club.
30599
- * @param {string} clubId
30600
- * @param {*} [options] Override http request option.
30601
- * @throws {RequiredError}
30602
- */
30603
- getSumupStatus: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30604
- // verify required parameter 'clubId' is not null or undefined
30605
- assertParamExists('getSumupStatus', 'clubId', clubId)
30606
- const localVarPath = `/api/clubs/{clubId}/sumup/status`
30607
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30608
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30609
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30610
- let baseOptions;
30611
- if (configuration) {
30612
- baseOptions = configuration.baseOptions;
30613
- }
30614
-
30615
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30616
- const localVarHeaderParameter = {} as any;
30617
- const localVarQueryParameter = {} as any;
30618
-
30619
- // authentication bearerAuth required
30620
- // http bearer authentication required
30621
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30622
-
30623
-
30624
-
30625
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30626
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30627
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30628
-
30629
- return {
30630
- url: toPathString(localVarUrlObj),
30631
- options: localVarRequestOptions,
30632
- };
30633
- },
30634
- /**
30635
- * List SumUp readers for a club.
30636
- * @param {string} clubId
30637
- * @param {*} [options] Override http request option.
30638
- * @throws {RequiredError}
30639
- */
30640
- listSumupReaders: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30641
- // verify required parameter 'clubId' is not null or undefined
30642
- assertParamExists('listSumupReaders', 'clubId', clubId)
30643
- const localVarPath = `/api/clubs/{clubId}/sumup/readers`
30644
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30645
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30646
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30647
- let baseOptions;
30648
- if (configuration) {
30649
- baseOptions = configuration.baseOptions;
30650
- }
30651
-
30652
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30653
- const localVarHeaderParameter = {} as any;
30654
- const localVarQueryParameter = {} as any;
30655
-
30656
- // authentication bearerAuth required
30657
- // http bearer authentication required
30658
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30659
-
30660
-
30661
-
30662
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30663
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30664
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30665
-
30666
- return {
30667
- url: toPathString(localVarUrlObj),
30668
- options: localVarRequestOptions,
30669
- };
30670
- },
30671
- /**
30672
- * Pair a SumUp reader with a club.
30673
- * @param {string} clubId
30674
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
30675
- * @param {*} [options] Override http request option.
30676
- * @throws {RequiredError}
30677
- */
30678
- pairSumupReader: async (clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30679
- // verify required parameter 'clubId' is not null or undefined
30680
- assertParamExists('pairSumupReader', 'clubId', clubId)
30681
- // verify required parameter 'sumupPairReaderRequest' is not null or undefined
30682
- assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest)
30683
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
30684
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30685
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30686
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30687
- let baseOptions;
30688
- if (configuration) {
30689
- baseOptions = configuration.baseOptions;
30690
- }
30691
-
30692
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30693
- const localVarHeaderParameter = {} as any;
30694
- const localVarQueryParameter = {} as any;
30695
-
30696
- // authentication bearerAuth required
30697
- // http bearer authentication required
30698
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30699
-
30700
-
30701
-
30702
- localVarHeaderParameter['Content-Type'] = 'application/json';
30703
-
30704
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30705
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30706
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30707
- localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration)
30708
-
30709
- return {
30710
- url: toPathString(localVarUrlObj),
30711
- options: localVarRequestOptions,
30712
- };
30713
- },
30714
- /**
30715
- * Select a SumUp reader for a club.
30716
- * @param {string} clubId
30717
- * @param {string} readerId
30718
- * @param {*} [options] Override http request option.
30719
- * @throws {RequiredError}
30720
- */
30721
- selectSumupReader: async (clubId: string, readerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30722
- // verify required parameter 'clubId' is not null or undefined
30723
- assertParamExists('selectSumupReader', 'clubId', clubId)
30724
- // verify required parameter 'readerId' is not null or undefined
30725
- assertParamExists('selectSumupReader', 'readerId', readerId)
30726
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
30727
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
30728
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
30729
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30730
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30731
- let baseOptions;
30732
- if (configuration) {
30733
- baseOptions = configuration.baseOptions;
30734
- }
30735
-
30736
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30737
- const localVarHeaderParameter = {} as any;
30738
- const localVarQueryParameter = {} as any;
30739
-
30740
- // authentication bearerAuth required
30741
- // http bearer authentication required
30742
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30743
-
30744
-
30745
-
30746
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30747
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30748
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30749
-
30750
- return {
30751
- url: toPathString(localVarUrlObj),
30752
- options: localVarRequestOptions,
30753
- };
30754
- },
30755
- }
30756
- };
30757
-
30758
- /**
30759
- * SumUpManagerApi - functional programming interface
30760
- * @export
30761
- */
30762
- export const SumUpManagerApiFp = function(configuration?: Configuration) {
30763
- const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration)
30764
- return {
30765
- /**
30766
- * Disconnect SumUp account for a club.
30767
- * @param {string} clubId
30768
- * @param {*} [options] Override http request option.
30769
- * @throws {RequiredError}
30770
- */
30771
- async disconnectSumup(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30772
- const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectSumup(clubId, options);
30773
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30774
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.disconnectSumup']?.[localVarOperationServerIndex]?.url;
30775
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30776
- },
30777
- /**
30778
- * Start SumUp OAuth connection for a club.
30779
- * @param {string} clubId
30780
- * @param {*} [options] Override http request option.
30781
- * @throws {RequiredError}
30782
- */
30783
- async getSumupConnectUrl(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupConnectUrlResponse>> {
30784
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
30785
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30786
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupConnectUrl']?.[localVarOperationServerIndex]?.url;
30787
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30788
- },
30789
- /**
30790
- * Get SumUp connection status for a club.
30791
- * @param {string} clubId
30792
- * @param {*} [options] Override http request option.
30793
- * @throws {RequiredError}
30794
- */
30795
- async getSumupStatus(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupAccountStatusResponse>> {
30796
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupStatus(clubId, options);
30797
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30798
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupStatus']?.[localVarOperationServerIndex]?.url;
30799
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30800
- },
30801
- /**
30802
- * List SumUp readers for a club.
30803
- * @param {string} clubId
30804
- * @param {*} [options] Override http request option.
30805
- * @throws {RequiredError}
30806
- */
30807
- async listSumupReaders(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReadersResponse>> {
30808
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSumupReaders(clubId, options);
30809
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30810
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.listSumupReaders']?.[localVarOperationServerIndex]?.url;
30811
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30812
- },
30813
- /**
30814
- * Pair a SumUp reader with a club.
30815
- * @param {string} clubId
30816
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
30817
- * @param {*} [options] Override http request option.
30818
- * @throws {RequiredError}
30819
- */
30820
- async pairSumupReader(clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupPairReaderResponse>> {
30821
- const localVarAxiosArgs = await localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
30822
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30823
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.pairSumupReader']?.[localVarOperationServerIndex]?.url;
30824
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30825
- },
30826
- /**
30827
- * Select a SumUp reader for a club.
30828
- * @param {string} clubId
30829
- * @param {string} readerId
30830
- * @param {*} [options] Override http request option.
30831
- * @throws {RequiredError}
30832
- */
30833
- async selectSumupReader(clubId: string, readerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30834
- const localVarAxiosArgs = await localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
30835
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30836
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.selectSumupReader']?.[localVarOperationServerIndex]?.url;
30837
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30838
- },
30839
- }
30840
- };
30841
-
30842
- /**
30843
- * SumUpManagerApi - factory interface
30844
- * @export
30845
- */
30846
- export const SumUpManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30847
- const localVarFp = SumUpManagerApiFp(configuration)
30848
- return {
30849
- /**
30850
- * Disconnect SumUp account for a club.
30851
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
30852
- * @param {*} [options] Override http request option.
30853
- * @throws {RequiredError}
30854
- */
30855
- disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
30856
- return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
30857
- },
30858
- /**
30859
- * Start SumUp OAuth connection for a club.
30860
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
30861
- * @param {*} [options] Override http request option.
30862
- * @throws {RequiredError}
30863
- */
30864
- getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupConnectUrlResponse> {
30865
- return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
30866
- },
30867
- /**
30868
- * Get SumUp connection status for a club.
30869
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
30870
- * @param {*} [options] Override http request option.
30871
- * @throws {RequiredError}
30872
- */
30873
- getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupAccountStatusResponse> {
30874
- return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
30875
- },
30876
- /**
30877
- * List SumUp readers for a club.
30878
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
30879
- * @param {*} [options] Override http request option.
30880
- * @throws {RequiredError}
30881
- */
30882
- listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReadersResponse> {
30883
- return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
30884
- },
30885
- /**
30886
- * Pair a SumUp reader with a club.
30887
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
30888
- * @param {*} [options] Override http request option.
30889
- * @throws {RequiredError}
30890
- */
30891
- pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupPairReaderResponse> {
30892
- return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
30893
- },
30894
- /**
30895
- * Select a SumUp reader for a club.
30896
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
30897
- * @param {*} [options] Override http request option.
30898
- * @throws {RequiredError}
30899
- */
30900
- selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
30901
- return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
30902
- },
30903
- };
30904
- };
30905
-
30906
- /**
30907
- * Request parameters for disconnectSumup operation in SumUpManagerApi.
30908
- * @export
30909
- * @interface SumUpManagerApiDisconnectSumupRequest
30910
- */
30911
- export interface SumUpManagerApiDisconnectSumupRequest {
30912
- /**
30913
- *
30914
- * @type {string}
30915
- * @memberof SumUpManagerApiDisconnectSumup
30916
- */
30917
- readonly clubId: string
30918
- }
30919
-
30920
- /**
30921
- * Request parameters for getSumupConnectUrl operation in SumUpManagerApi.
30922
- * @export
30923
- * @interface SumUpManagerApiGetSumupConnectUrlRequest
30924
- */
30925
- export interface SumUpManagerApiGetSumupConnectUrlRequest {
30926
- /**
30927
- *
30928
- * @type {string}
30929
- * @memberof SumUpManagerApiGetSumupConnectUrl
30930
- */
30931
- readonly clubId: string
30932
- }
30933
-
30934
- /**
30935
- * Request parameters for getSumupStatus operation in SumUpManagerApi.
30936
- * @export
30937
- * @interface SumUpManagerApiGetSumupStatusRequest
30938
- */
30939
- export interface SumUpManagerApiGetSumupStatusRequest {
30940
- /**
30941
- *
30942
- * @type {string}
30943
- * @memberof SumUpManagerApiGetSumupStatus
30944
- */
30945
- readonly clubId: string
30946
- }
30947
-
30948
- /**
30949
- * Request parameters for listSumupReaders operation in SumUpManagerApi.
30950
- * @export
30951
- * @interface SumUpManagerApiListSumupReadersRequest
30952
- */
30953
- export interface SumUpManagerApiListSumupReadersRequest {
30954
- /**
30955
- *
30956
- * @type {string}
30957
- * @memberof SumUpManagerApiListSumupReaders
30958
- */
30959
- readonly clubId: string
30960
- }
30961
-
30962
- /**
30963
- * Request parameters for pairSumupReader operation in SumUpManagerApi.
30964
- * @export
30965
- * @interface SumUpManagerApiPairSumupReaderRequest
30966
- */
30967
- export interface SumUpManagerApiPairSumupReaderRequest {
30968
- /**
30969
- *
30970
- * @type {string}
30971
- * @memberof SumUpManagerApiPairSumupReader
30972
- */
30973
- readonly clubId: string
30974
-
30975
- /**
30976
- *
30977
- * @type {SumupPairReaderRequest}
30978
- * @memberof SumUpManagerApiPairSumupReader
30979
- */
30980
- readonly sumupPairReaderRequest: SumupPairReaderRequest
30981
- }
30982
-
30983
- /**
30984
- * Request parameters for selectSumupReader operation in SumUpManagerApi.
30985
- * @export
30986
- * @interface SumUpManagerApiSelectSumupReaderRequest
30987
- */
30988
- export interface SumUpManagerApiSelectSumupReaderRequest {
30989
- /**
30990
- *
30991
- * @type {string}
30992
- * @memberof SumUpManagerApiSelectSumupReader
30993
- */
30994
- readonly clubId: string
30995
-
30996
- /**
30997
- *
30998
- * @type {string}
30999
- * @memberof SumUpManagerApiSelectSumupReader
31000
- */
31001
- readonly readerId: string
31002
- }
31003
-
31004
- /**
31005
- * SumUpManagerApi - object-oriented interface
31006
- * @export
31007
- * @class SumUpManagerApi
31008
- * @extends {BaseAPI}
31009
- */
31010
- export class SumUpManagerApi extends BaseAPI {
31011
- /**
31012
- * Disconnect SumUp account for a club.
31013
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
31014
- * @param {*} [options] Override http request option.
31015
- * @throws {RequiredError}
31016
- * @memberof SumUpManagerApi
31017
- */
31018
- public disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig) {
31019
- return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
31020
- }
31021
-
31022
- /**
31023
- * Start SumUp OAuth connection for a club.
31024
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
31025
- * @param {*} [options] Override http request option.
31026
- * @throws {RequiredError}
31027
- * @memberof SumUpManagerApi
31028
- */
31029
- public getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig) {
31030
- return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
31031
- }
31032
-
31033
- /**
31034
- * Get SumUp connection status for a club.
31035
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
31036
- * @param {*} [options] Override http request option.
31037
- * @throws {RequiredError}
31038
- * @memberof SumUpManagerApi
31039
- */
31040
- public getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig) {
31041
- return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
31042
- }
31043
-
31044
- /**
31045
- * List SumUp readers for a club.
31046
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
31047
- * @param {*} [options] Override http request option.
31048
- * @throws {RequiredError}
31049
- * @memberof SumUpManagerApi
31050
- */
31051
- public listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig) {
31052
- return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
31053
- }
31054
-
31055
- /**
31056
- * Pair a SumUp reader with a club.
31057
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
31058
- * @param {*} [options] Override http request option.
31059
- * @throws {RequiredError}
31060
- * @memberof SumUpManagerApi
31061
- */
31062
- public pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig) {
31063
- return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
31064
- }
31065
-
31066
- /**
31067
- * Select a SumUp reader for a club.
31068
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
31069
- * @param {*} [options] Override http request option.
31070
- * @throws {RequiredError}
31071
- * @memberof SumUpManagerApi
31072
- */
31073
- public selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig) {
31074
- return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
31075
- }
31076
- }
31077
-
31078
-
31079
-
31080
29801
  /**
31081
29802
  * UserApi - axios parameter creator
31082
29803
  * @export