@tennac-booking/sdk 1.0.183 → 1.0.185

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 (47) hide show
  1. package/.openapi-generator/FILES +412 -426
  2. package/README.md +3 -23
  3. package/api.ts +58 -1269
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +55 -821
  8. package/dist/api.js +15 -767
  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 +55 -821
  16. package/dist/esm/api.js +11 -750
  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/JoinOpenBookingRequest.md +26 -0
  29. package/docs/UserClubMembership.md +2 -0
  30. package/docs/UserProfileResponse.md +2 -0
  31. package/index.ts +1 -1
  32. package/package.json +1 -1
  33. package/docs/PaymentIntentResult.md +0 -28
  34. package/docs/PaymentProviderType.md +0 -10
  35. package/docs/PaymentStatus.md +0 -14
  36. package/docs/PaymentsStaffApi.md +0 -124
  37. package/docs/SumUpApi.md +0 -63
  38. package/docs/SumUpManagerApi.md +0 -332
  39. package/docs/SumupAccountStatusResponse.md +0 -32
  40. package/docs/SumupCancelPaymentRequest.md +0 -20
  41. package/docs/SumupConnectUrlResponse.md +0 -20
  42. package/docs/SumupCreatePaymentRequest.md +0 -32
  43. package/docs/SumupOAuthCallbackResponse.md +0 -24
  44. package/docs/SumupPairReaderRequest.md +0 -20
  45. package/docs/SumupPairReaderResponse.md +0 -20
  46. package/docs/SumupReaderInfo.md +0 -34
  47. 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).
@@ -7553,6 +7553,39 @@ export interface JoinEventWaitList200Response {
7553
7553
  */
7554
7554
  'message': string;
7555
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
+
7556
7589
  /**
7557
7590
  *
7558
7591
  * @export
@@ -8771,45 +8804,6 @@ export interface PaymentByPlayerInfo {
8771
8804
  */
8772
8805
  'invoices': Array<InvoiceInfo>;
8773
8806
  }
8774
- /**
8775
- *
8776
- * @export
8777
- * @interface PaymentIntentResult
8778
- */
8779
- export interface PaymentIntentResult {
8780
- /**
8781
- *
8782
- * @type {string}
8783
- * @memberof PaymentIntentResult
8784
- */
8785
- 'paymentId': string;
8786
- /**
8787
- *
8788
- * @type {string}
8789
- * @memberof PaymentIntentResult
8790
- */
8791
- 'externalId': string;
8792
- /**
8793
- *
8794
- * @type {PaymentStatus}
8795
- * @memberof PaymentIntentResult
8796
- */
8797
- 'status': PaymentStatus;
8798
- /**
8799
- *
8800
- * @type {PaymentProviderType}
8801
- * @memberof PaymentIntentResult
8802
- */
8803
- 'provider': PaymentProviderType;
8804
- /**
8805
- *
8806
- * @type {string}
8807
- * @memberof PaymentIntentResult
8808
- */
8809
- 'readerId'?: string;
8810
- }
8811
-
8812
-
8813
8807
  /**
8814
8808
  *
8815
8809
  * @export
@@ -8827,20 +8821,6 @@ export const PaymentMethod = {
8827
8821
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
8828
8822
 
8829
8823
 
8830
- /**
8831
- *
8832
- * @export
8833
- * @enum {string}
8834
- */
8835
-
8836
- export const PaymentProviderType = {
8837
- Stripe: 'stripe',
8838
- Sumup: 'sumup'
8839
- } as const;
8840
-
8841
- export type PaymentProviderType = typeof PaymentProviderType[keyof typeof PaymentProviderType];
8842
-
8843
-
8844
8824
  /**
8845
8825
  *
8846
8826
  * @export
@@ -8860,22 +8840,6 @@ export interface PaymentRequirementsSettings {
8860
8840
  */
8861
8841
  'requireOnlinePayment': boolean;
8862
8842
  }
8863
- /**
8864
- *
8865
- * @export
8866
- * @enum {string}
8867
- */
8868
-
8869
- export const PaymentStatus = {
8870
- Pending: 'pending',
8871
- Succeeded: 'succeeded',
8872
- Failed: 'failed',
8873
- Cancelled: 'cancelled'
8874
- } as const;
8875
-
8876
- export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
8877
-
8878
-
8879
8843
  /**
8880
8844
  * From T, pick a set of properties whose keys are in the union K
8881
8845
  * @export
@@ -11748,251 +11712,6 @@ export interface SubscriptionPlanResponse {
11748
11712
  }
11749
11713
 
11750
11714
 
11751
- /**
11752
- *
11753
- * @export
11754
- * @interface SumupAccountStatusResponse
11755
- */
11756
- export interface SumupAccountStatusResponse {
11757
- /**
11758
- *
11759
- * @type {boolean}
11760
- * @memberof SumupAccountStatusResponse
11761
- */
11762
- 'connected': boolean;
11763
- /**
11764
- *
11765
- * @type {string}
11766
- * @memberof SumupAccountStatusResponse
11767
- */
11768
- 'merchantCode'?: string;
11769
- /**
11770
- *
11771
- * @type {string}
11772
- * @memberof SumupAccountStatusResponse
11773
- */
11774
- 'readerId'?: string;
11775
- /**
11776
- *
11777
- * @type {string}
11778
- * @memberof SumupAccountStatusResponse
11779
- */
11780
- 'readerName'?: string;
11781
- /**
11782
- *
11783
- * @type {string}
11784
- * @memberof SumupAccountStatusResponse
11785
- */
11786
- 'readerPairedAt'?: string;
11787
- /**
11788
- *
11789
- * @type {string}
11790
- * @memberof SumupAccountStatusResponse
11791
- */
11792
- 'scope'?: string;
11793
- /**
11794
- *
11795
- * @type {string}
11796
- * @memberof SumupAccountStatusResponse
11797
- */
11798
- 'connectedAt'?: string;
11799
- }
11800
- /**
11801
- *
11802
- * @export
11803
- * @interface SumupCancelPaymentRequest
11804
- */
11805
- export interface SumupCancelPaymentRequest {
11806
- /**
11807
- *
11808
- * @type {string}
11809
- * @memberof SumupCancelPaymentRequest
11810
- */
11811
- 'checkoutId'?: string;
11812
- }
11813
- /**
11814
- *
11815
- * @export
11816
- * @interface SumupConnectUrlResponse
11817
- */
11818
- export interface SumupConnectUrlResponse {
11819
- /**
11820
- *
11821
- * @type {string}
11822
- * @memberof SumupConnectUrlResponse
11823
- */
11824
- 'url': string;
11825
- }
11826
- /**
11827
- *
11828
- * @export
11829
- * @interface SumupCreatePaymentRequest
11830
- */
11831
- export interface SumupCreatePaymentRequest {
11832
- /**
11833
- *
11834
- * @type {number}
11835
- * @memberof SumupCreatePaymentRequest
11836
- */
11837
- 'amountInCents': number;
11838
- /**
11839
- *
11840
- * @type {string}
11841
- * @memberof SumupCreatePaymentRequest
11842
- */
11843
- 'currency': string;
11844
- /**
11845
- *
11846
- * @type {string}
11847
- * @memberof SumupCreatePaymentRequest
11848
- */
11849
- 'readerId'?: string;
11850
- /**
11851
- *
11852
- * @type {string}
11853
- * @memberof SumupCreatePaymentRequest
11854
- */
11855
- 'description'?: string;
11856
- /**
11857
- *
11858
- * @type {string}
11859
- * @memberof SumupCreatePaymentRequest
11860
- */
11861
- 'reference'?: string;
11862
- /**
11863
- * Construct a type with a set of properties K of type T
11864
- * @type {{ [key: string]: string; }}
11865
- * @memberof SumupCreatePaymentRequest
11866
- */
11867
- 'metadata'?: { [key: string]: string; };
11868
- /**
11869
- *
11870
- * @type {string}
11871
- * @memberof SumupCreatePaymentRequest
11872
- */
11873
- 'userId'?: string;
11874
- }
11875
- /**
11876
- *
11877
- * @export
11878
- * @interface SumupOAuthCallbackResponse
11879
- */
11880
- export interface SumupOAuthCallbackResponse {
11881
- /**
11882
- *
11883
- * @type {string}
11884
- * @memberof SumupOAuthCallbackResponse
11885
- */
11886
- 'clubId': string;
11887
- /**
11888
- *
11889
- * @type {string}
11890
- * @memberof SumupOAuthCallbackResponse
11891
- */
11892
- 'merchantCode': string;
11893
- /**
11894
- *
11895
- * @type {string}
11896
- * @memberof SumupOAuthCallbackResponse
11897
- */
11898
- 'scope'?: string;
11899
- }
11900
- /**
11901
- *
11902
- * @export
11903
- * @interface SumupPairReaderRequest
11904
- */
11905
- export interface SumupPairReaderRequest {
11906
- /**
11907
- *
11908
- * @type {string}
11909
- * @memberof SumupPairReaderRequest
11910
- */
11911
- 'pairingCode': string;
11912
- }
11913
- /**
11914
- *
11915
- * @export
11916
- * @interface SumupPairReaderResponse
11917
- */
11918
- export interface SumupPairReaderResponse {
11919
- /**
11920
- *
11921
- * @type {SumupReaderInfo}
11922
- * @memberof SumupPairReaderResponse
11923
- */
11924
- 'reader': SumupReaderInfo;
11925
- }
11926
- /**
11927
- *
11928
- * @export
11929
- * @interface SumupReaderInfo
11930
- */
11931
- export interface SumupReaderInfo {
11932
- [key: string]: any;
11933
-
11934
- /**
11935
- *
11936
- * @type {string}
11937
- * @memberof SumupReaderInfo
11938
- */
11939
- 'reader_id'?: string;
11940
- /**
11941
- *
11942
- * @type {string}
11943
- * @memberof SumupReaderInfo
11944
- */
11945
- 'id'?: string;
11946
- /**
11947
- *
11948
- * @type {string}
11949
- * @memberof SumupReaderInfo
11950
- */
11951
- 'serial_number'?: string;
11952
- /**
11953
- *
11954
- * @type {string}
11955
- * @memberof SumupReaderInfo
11956
- */
11957
- 'name'?: string;
11958
- /**
11959
- *
11960
- * @type {string}
11961
- * @memberof SumupReaderInfo
11962
- */
11963
- 'status'?: string;
11964
- /**
11965
- *
11966
- * @type {string}
11967
- * @memberof SumupReaderInfo
11968
- */
11969
- 'model'?: string;
11970
- /**
11971
- *
11972
- * @type {string}
11973
- * @memberof SumupReaderInfo
11974
- */
11975
- 'device_type'?: string;
11976
- /**
11977
- *
11978
- * @type {string}
11979
- * @memberof SumupReaderInfo
11980
- */
11981
- 'last_seen_at'?: string;
11982
- }
11983
- /**
11984
- *
11985
- * @export
11986
- * @interface SumupReadersResponse
11987
- */
11988
- export interface SumupReadersResponse {
11989
- /**
11990
- *
11991
- * @type {Array<SumupReaderInfo>}
11992
- * @memberof SumupReadersResponse
11993
- */
11994
- 'readers': Array<SumupReaderInfo>;
11995
- }
11996
11715
  /**
11997
11716
  *
11998
11717
  * @export
@@ -13196,6 +12915,12 @@ export interface UserClubMembership {
13196
12915
  * @memberof UserClubMembership
13197
12916
  */
13198
12917
  'clubPicture': string | null;
12918
+ /**
12919
+ *
12920
+ * @type {Array<string>}
12921
+ * @memberof UserClubMembership
12922
+ */
12923
+ 'bannerPictures'?: Array<string>;
13199
12924
  /**
13200
12925
  *
13201
12926
  * @type {string}
@@ -13875,6 +13600,12 @@ export interface UserProfileResponse {
13875
13600
  * @memberof UserProfileResponse
13876
13601
  */
13877
13602
  'clubs'?: Array<UserClubMembership>;
13603
+ /**
13604
+ *
13605
+ * @type {Array<ClubSummary>}
13606
+ * @memberof UserProfileResponse
13607
+ */
13608
+ 'favoriteClubsDetails'?: Array<ClubSummary>;
13878
13609
  /**
13879
13610
  *
13880
13611
  * @type {Array<ClubSummary>}
@@ -14624,15 +14355,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
14624
14355
  /**
14625
14356
  *
14626
14357
  * @param {string} bookingId
14627
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
14358
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
14628
14359
  * @param {*} [options] Override http request option.
14629
14360
  * @throws {RequiredError}
14630
14361
  */
14631
- joinOpenBooking: async (bookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14362
+ joinOpenBooking: async (bookingId: string, joinOpenBookingRequest: JoinOpenBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14632
14363
  // verify required parameter 'bookingId' is not null or undefined
14633
14364
  assertParamExists('joinOpenBooking', 'bookingId', bookingId)
14634
- // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
14635
- assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest)
14365
+ // verify required parameter 'joinOpenBookingRequest' is not null or undefined
14366
+ assertParamExists('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest)
14636
14367
  const localVarPath = `/api/bookings/{bookingId}/open/join`
14637
14368
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
14638
14369
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -14657,7 +14388,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
14657
14388
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14658
14389
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14659
14390
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14660
- localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration)
14391
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenBookingRequest, localVarRequestOptions, configuration)
14661
14392
 
14662
14393
  return {
14663
14394
  url: toPathString(localVarUrlObj),
@@ -14834,12 +14565,12 @@ export const BookingsApiFp = function(configuration?: Configuration) {
14834
14565
  /**
14835
14566
  *
14836
14567
  * @param {string} bookingId
14837
- * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
14568
+ * @param {JoinOpenBookingRequest} joinOpenBookingRequest
14838
14569
  * @param {*} [options] Override http request option.
14839
14570
  * @throws {RequiredError}
14840
14571
  */
14841
- async joinOpenBooking(bookingId: string, joinOpenEventBookingRequest: JoinOpenEventBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinOpenBookingResponse>> {
14842
- const localVarAxiosArgs = await localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
14572
+ async joinOpenBooking(bookingId: string, joinOpenBookingRequest: JoinOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinOpenBookingResponse>> {
14573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
14843
14574
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14844
14575
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.joinOpenBooking']?.[localVarOperationServerIndex]?.url;
14845
14576
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14954,7 +14685,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
14954
14685
  * @throws {RequiredError}
14955
14686
  */
14956
14687
  joinOpenBooking(requestParameters: BookingsApiJoinOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinOpenBookingResponse> {
14957
- return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
14688
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
14958
14689
  },
14959
14690
  /**
14960
14691
  *
@@ -15193,10 +14924,10 @@ export interface BookingsApiJoinOpenBookingRequest {
15193
14924
 
15194
14925
  /**
15195
14926
  *
15196
- * @type {JoinOpenEventBookingRequest}
14927
+ * @type {JoinOpenBookingRequest}
15197
14928
  * @memberof BookingsApiJoinOpenBooking
15198
14929
  */
15199
- readonly joinOpenEventBookingRequest: JoinOpenEventBookingRequest
14930
+ readonly joinOpenBookingRequest: JoinOpenBookingRequest
15200
14931
  }
15201
14932
 
15202
14933
  /**
@@ -15327,7 +15058,7 @@ export class BookingsApi extends BaseAPI {
15327
15058
  * @memberof BookingsApi
15328
15059
  */
15329
15060
  public joinOpenBooking(requestParameters: BookingsApiJoinOpenBookingRequest, options?: RawAxiosRequestConfig) {
15330
- return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
15061
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
15331
15062
  }
15332
15063
 
15333
15064
  /**
@@ -28217,249 +27948,6 @@ export class ImagesApi extends BaseAPI {
28217
27948
 
28218
27949
 
28219
27950
 
28220
- /**
28221
- * PaymentsStaffApi - axios parameter creator
28222
- * @export
28223
- */
28224
- export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
28225
- return {
28226
- /**
28227
- * Cancel a SumUp reader checkout.
28228
- * @param {string} clubId
28229
- * @param {string} paymentId
28230
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
28231
- * @param {*} [options] Override http request option.
28232
- * @throws {RequiredError}
28233
- */
28234
- cancelSumupPayment: async (clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28235
- // verify required parameter 'clubId' is not null or undefined
28236
- assertParamExists('cancelSumupPayment', 'clubId', clubId)
28237
- // verify required parameter 'paymentId' is not null or undefined
28238
- assertParamExists('cancelSumupPayment', 'paymentId', paymentId)
28239
- const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
28240
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
28241
- .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
28242
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28243
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28244
- let baseOptions;
28245
- if (configuration) {
28246
- baseOptions = configuration.baseOptions;
28247
- }
28248
-
28249
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28250
- const localVarHeaderParameter = {} as any;
28251
- const localVarQueryParameter = {} as any;
28252
-
28253
- // authentication bearerAuth required
28254
- // http bearer authentication required
28255
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
28256
-
28257
-
28258
-
28259
- localVarHeaderParameter['Content-Type'] = 'application/json';
28260
-
28261
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28262
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28263
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28264
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration)
28265
-
28266
- return {
28267
- url: toPathString(localVarUrlObj),
28268
- options: localVarRequestOptions,
28269
- };
28270
- },
28271
- /**
28272
- * Start a SumUp reader checkout (manual payment trigger).
28273
- * @param {string} clubId
28274
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
28275
- * @param {*} [options] Override http request option.
28276
- * @throws {RequiredError}
28277
- */
28278
- createSumupPayment: async (clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28279
- // verify required parameter 'clubId' is not null or undefined
28280
- assertParamExists('createSumupPayment', 'clubId', clubId)
28281
- // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
28282
- assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest)
28283
- const localVarPath = `/api/clubs/{clubId}/payments/sumup`
28284
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
28285
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28286
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28287
- let baseOptions;
28288
- if (configuration) {
28289
- baseOptions = configuration.baseOptions;
28290
- }
28291
-
28292
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28293
- const localVarHeaderParameter = {} as any;
28294
- const localVarQueryParameter = {} as any;
28295
-
28296
- // authentication bearerAuth required
28297
- // http bearer authentication required
28298
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
28299
-
28300
-
28301
-
28302
- localVarHeaderParameter['Content-Type'] = 'application/json';
28303
-
28304
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28305
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28306
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28307
- localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration)
28308
-
28309
- return {
28310
- url: toPathString(localVarUrlObj),
28311
- options: localVarRequestOptions,
28312
- };
28313
- },
28314
- }
28315
- };
28316
-
28317
- /**
28318
- * PaymentsStaffApi - functional programming interface
28319
- * @export
28320
- */
28321
- export const PaymentsStaffApiFp = function(configuration?: Configuration) {
28322
- const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration)
28323
- return {
28324
- /**
28325
- * Cancel a SumUp reader checkout.
28326
- * @param {string} clubId
28327
- * @param {string} paymentId
28328
- * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
28329
- * @param {*} [options] Override http request option.
28330
- * @throws {RequiredError}
28331
- */
28332
- async cancelSumupPayment(clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28333
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
28334
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28335
- const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.cancelSumupPayment']?.[localVarOperationServerIndex]?.url;
28336
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28337
- },
28338
- /**
28339
- * Start a SumUp reader checkout (manual payment trigger).
28340
- * @param {string} clubId
28341
- * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
28342
- * @param {*} [options] Override http request option.
28343
- * @throws {RequiredError}
28344
- */
28345
- async createSumupPayment(clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentIntentResult>> {
28346
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
28347
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28348
- const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.createSumupPayment']?.[localVarOperationServerIndex]?.url;
28349
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28350
- },
28351
- }
28352
- };
28353
-
28354
- /**
28355
- * PaymentsStaffApi - factory interface
28356
- * @export
28357
- */
28358
- export const PaymentsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28359
- const localVarFp = PaymentsStaffApiFp(configuration)
28360
- return {
28361
- /**
28362
- * Cancel a SumUp reader checkout.
28363
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
28364
- * @param {*} [options] Override http request option.
28365
- * @throws {RequiredError}
28366
- */
28367
- cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28368
- return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
28369
- },
28370
- /**
28371
- * Start a SumUp reader checkout (manual payment trigger).
28372
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
28373
- * @param {*} [options] Override http request option.
28374
- * @throws {RequiredError}
28375
- */
28376
- createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentIntentResult> {
28377
- return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
28378
- },
28379
- };
28380
- };
28381
-
28382
- /**
28383
- * Request parameters for cancelSumupPayment operation in PaymentsStaffApi.
28384
- * @export
28385
- * @interface PaymentsStaffApiCancelSumupPaymentRequest
28386
- */
28387
- export interface PaymentsStaffApiCancelSumupPaymentRequest {
28388
- /**
28389
- *
28390
- * @type {string}
28391
- * @memberof PaymentsStaffApiCancelSumupPayment
28392
- */
28393
- readonly clubId: string
28394
-
28395
- /**
28396
- *
28397
- * @type {string}
28398
- * @memberof PaymentsStaffApiCancelSumupPayment
28399
- */
28400
- readonly paymentId: string
28401
-
28402
- /**
28403
- *
28404
- * @type {SumupCancelPaymentRequest}
28405
- * @memberof PaymentsStaffApiCancelSumupPayment
28406
- */
28407
- readonly sumupCancelPaymentRequest?: SumupCancelPaymentRequest
28408
- }
28409
-
28410
- /**
28411
- * Request parameters for createSumupPayment operation in PaymentsStaffApi.
28412
- * @export
28413
- * @interface PaymentsStaffApiCreateSumupPaymentRequest
28414
- */
28415
- export interface PaymentsStaffApiCreateSumupPaymentRequest {
28416
- /**
28417
- *
28418
- * @type {string}
28419
- * @memberof PaymentsStaffApiCreateSumupPayment
28420
- */
28421
- readonly clubId: string
28422
-
28423
- /**
28424
- *
28425
- * @type {SumupCreatePaymentRequest}
28426
- * @memberof PaymentsStaffApiCreateSumupPayment
28427
- */
28428
- readonly sumupCreatePaymentRequest: SumupCreatePaymentRequest
28429
- }
28430
-
28431
- /**
28432
- * PaymentsStaffApi - object-oriented interface
28433
- * @export
28434
- * @class PaymentsStaffApi
28435
- * @extends {BaseAPI}
28436
- */
28437
- export class PaymentsStaffApi extends BaseAPI {
28438
- /**
28439
- * Cancel a SumUp reader checkout.
28440
- * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
28441
- * @param {*} [options] Override http request option.
28442
- * @throws {RequiredError}
28443
- * @memberof PaymentsStaffApi
28444
- */
28445
- public cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig) {
28446
- return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
28447
- }
28448
-
28449
- /**
28450
- * Start a SumUp reader checkout (manual payment trigger).
28451
- * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
28452
- * @param {*} [options] Override http request option.
28453
- * @throws {RequiredError}
28454
- * @memberof PaymentsStaffApi
28455
- */
28456
- public createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig) {
28457
- return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
28458
- }
28459
- }
28460
-
28461
-
28462
-
28463
27951
  /**
28464
27952
  * PublicEmailApi - axios parameter creator
28465
27953
  * @export
@@ -30198,705 +29686,6 @@ export class SubscriptionsUserApi extends BaseAPI {
30198
29686
 
30199
29687
 
30200
29688
 
30201
- /**
30202
- * SumUpApi - axios parameter creator
30203
- * @export
30204
- */
30205
- export const SumUpApiAxiosParamCreator = function (configuration?: Configuration) {
30206
- return {
30207
- /**
30208
- * OAuth callback for SumUp.
30209
- * @param {string} code
30210
- * @param {string} state
30211
- * @param {*} [options] Override http request option.
30212
- * @throws {RequiredError}
30213
- */
30214
- sumupOauthCallback: async (code: string, state: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30215
- // verify required parameter 'code' is not null or undefined
30216
- assertParamExists('sumupOauthCallback', 'code', code)
30217
- // verify required parameter 'state' is not null or undefined
30218
- assertParamExists('sumupOauthCallback', 'state', state)
30219
- const localVarPath = `/api/sumup/oauth/callback`;
30220
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30221
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30222
- let baseOptions;
30223
- if (configuration) {
30224
- baseOptions = configuration.baseOptions;
30225
- }
30226
-
30227
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30228
- const localVarHeaderParameter = {} as any;
30229
- const localVarQueryParameter = {} as any;
30230
-
30231
- if (code !== undefined) {
30232
- localVarQueryParameter['code'] = code;
30233
- }
30234
-
30235
- if (state !== undefined) {
30236
- localVarQueryParameter['state'] = state;
30237
- }
30238
-
30239
-
30240
-
30241
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30242
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30243
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30244
-
30245
- return {
30246
- url: toPathString(localVarUrlObj),
30247
- options: localVarRequestOptions,
30248
- };
30249
- },
30250
- }
30251
- };
30252
-
30253
- /**
30254
- * SumUpApi - functional programming interface
30255
- * @export
30256
- */
30257
- export const SumUpApiFp = function(configuration?: Configuration) {
30258
- const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration)
30259
- return {
30260
- /**
30261
- * OAuth callback for SumUp.
30262
- * @param {string} code
30263
- * @param {string} state
30264
- * @param {*} [options] Override http request option.
30265
- * @throws {RequiredError}
30266
- */
30267
- async sumupOauthCallback(code: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupOAuthCallbackResponse>> {
30268
- const localVarAxiosArgs = await localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
30269
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30270
- const localVarOperationServerBasePath = operationServerMap['SumUpApi.sumupOauthCallback']?.[localVarOperationServerIndex]?.url;
30271
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30272
- },
30273
- }
30274
- };
30275
-
30276
- /**
30277
- * SumUpApi - factory interface
30278
- * @export
30279
- */
30280
- export const SumUpApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30281
- const localVarFp = SumUpApiFp(configuration)
30282
- return {
30283
- /**
30284
- * OAuth callback for SumUp.
30285
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
30286
- * @param {*} [options] Override http request option.
30287
- * @throws {RequiredError}
30288
- */
30289
- sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupOAuthCallbackResponse> {
30290
- return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
30291
- },
30292
- };
30293
- };
30294
-
30295
- /**
30296
- * Request parameters for sumupOauthCallback operation in SumUpApi.
30297
- * @export
30298
- * @interface SumUpApiSumupOauthCallbackRequest
30299
- */
30300
- export interface SumUpApiSumupOauthCallbackRequest {
30301
- /**
30302
- *
30303
- * @type {string}
30304
- * @memberof SumUpApiSumupOauthCallback
30305
- */
30306
- readonly code: string
30307
-
30308
- /**
30309
- *
30310
- * @type {string}
30311
- * @memberof SumUpApiSumupOauthCallback
30312
- */
30313
- readonly state: string
30314
- }
30315
-
30316
- /**
30317
- * SumUpApi - object-oriented interface
30318
- * @export
30319
- * @class SumUpApi
30320
- * @extends {BaseAPI}
30321
- */
30322
- export class SumUpApi extends BaseAPI {
30323
- /**
30324
- * OAuth callback for SumUp.
30325
- * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
30326
- * @param {*} [options] Override http request option.
30327
- * @throws {RequiredError}
30328
- * @memberof SumUpApi
30329
- */
30330
- public sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig) {
30331
- return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
30332
- }
30333
- }
30334
-
30335
-
30336
-
30337
- /**
30338
- * SumUpManagerApi - axios parameter creator
30339
- * @export
30340
- */
30341
- export const SumUpManagerApiAxiosParamCreator = function (configuration?: Configuration) {
30342
- return {
30343
- /**
30344
- * Disconnect SumUp account for a club.
30345
- * @param {string} clubId
30346
- * @param {*} [options] Override http request option.
30347
- * @throws {RequiredError}
30348
- */
30349
- disconnectSumup: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30350
- // verify required parameter 'clubId' is not null or undefined
30351
- assertParamExists('disconnectSumup', 'clubId', clubId)
30352
- const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
30353
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30354
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30355
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30356
- let baseOptions;
30357
- if (configuration) {
30358
- baseOptions = configuration.baseOptions;
30359
- }
30360
-
30361
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30362
- const localVarHeaderParameter = {} as any;
30363
- const localVarQueryParameter = {} as any;
30364
-
30365
- // authentication bearerAuth required
30366
- // http bearer authentication required
30367
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30368
-
30369
-
30370
-
30371
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30372
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30373
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30374
-
30375
- return {
30376
- url: toPathString(localVarUrlObj),
30377
- options: localVarRequestOptions,
30378
- };
30379
- },
30380
- /**
30381
- * Start SumUp OAuth connection for a club.
30382
- * @param {string} clubId
30383
- * @param {*} [options] Override http request option.
30384
- * @throws {RequiredError}
30385
- */
30386
- getSumupConnectUrl: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30387
- // verify required parameter 'clubId' is not null or undefined
30388
- assertParamExists('getSumupConnectUrl', 'clubId', clubId)
30389
- const localVarPath = `/api/clubs/{clubId}/sumup/connect`
30390
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30391
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30392
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30393
- let baseOptions;
30394
- if (configuration) {
30395
- baseOptions = configuration.baseOptions;
30396
- }
30397
-
30398
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30399
- const localVarHeaderParameter = {} as any;
30400
- const localVarQueryParameter = {} as any;
30401
-
30402
- // authentication bearerAuth required
30403
- // http bearer authentication required
30404
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30405
-
30406
-
30407
-
30408
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30409
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30410
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30411
-
30412
- return {
30413
- url: toPathString(localVarUrlObj),
30414
- options: localVarRequestOptions,
30415
- };
30416
- },
30417
- /**
30418
- * Get SumUp connection status for a club.
30419
- * @param {string} clubId
30420
- * @param {*} [options] Override http request option.
30421
- * @throws {RequiredError}
30422
- */
30423
- getSumupStatus: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30424
- // verify required parameter 'clubId' is not null or undefined
30425
- assertParamExists('getSumupStatus', 'clubId', clubId)
30426
- const localVarPath = `/api/clubs/{clubId}/sumup/status`
30427
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30428
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30429
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30430
- let baseOptions;
30431
- if (configuration) {
30432
- baseOptions = configuration.baseOptions;
30433
- }
30434
-
30435
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30436
- const localVarHeaderParameter = {} as any;
30437
- const localVarQueryParameter = {} as any;
30438
-
30439
- // authentication bearerAuth required
30440
- // http bearer authentication required
30441
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30442
-
30443
-
30444
-
30445
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30446
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30447
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30448
-
30449
- return {
30450
- url: toPathString(localVarUrlObj),
30451
- options: localVarRequestOptions,
30452
- };
30453
- },
30454
- /**
30455
- * List SumUp readers for a club.
30456
- * @param {string} clubId
30457
- * @param {*} [options] Override http request option.
30458
- * @throws {RequiredError}
30459
- */
30460
- listSumupReaders: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30461
- // verify required parameter 'clubId' is not null or undefined
30462
- assertParamExists('listSumupReaders', 'clubId', clubId)
30463
- const localVarPath = `/api/clubs/{clubId}/sumup/readers`
30464
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30465
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30466
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30467
- let baseOptions;
30468
- if (configuration) {
30469
- baseOptions = configuration.baseOptions;
30470
- }
30471
-
30472
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30473
- const localVarHeaderParameter = {} as any;
30474
- const localVarQueryParameter = {} as any;
30475
-
30476
- // authentication bearerAuth required
30477
- // http bearer authentication required
30478
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30479
-
30480
-
30481
-
30482
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30483
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30484
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30485
-
30486
- return {
30487
- url: toPathString(localVarUrlObj),
30488
- options: localVarRequestOptions,
30489
- };
30490
- },
30491
- /**
30492
- * Pair a SumUp reader with a club.
30493
- * @param {string} clubId
30494
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
30495
- * @param {*} [options] Override http request option.
30496
- * @throws {RequiredError}
30497
- */
30498
- pairSumupReader: async (clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30499
- // verify required parameter 'clubId' is not null or undefined
30500
- assertParamExists('pairSumupReader', 'clubId', clubId)
30501
- // verify required parameter 'sumupPairReaderRequest' is not null or undefined
30502
- assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest)
30503
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
30504
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30505
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30506
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30507
- let baseOptions;
30508
- if (configuration) {
30509
- baseOptions = configuration.baseOptions;
30510
- }
30511
-
30512
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30513
- const localVarHeaderParameter = {} as any;
30514
- const localVarQueryParameter = {} as any;
30515
-
30516
- // authentication bearerAuth required
30517
- // http bearer authentication required
30518
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30519
-
30520
-
30521
-
30522
- localVarHeaderParameter['Content-Type'] = 'application/json';
30523
-
30524
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30525
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30526
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30527
- localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration)
30528
-
30529
- return {
30530
- url: toPathString(localVarUrlObj),
30531
- options: localVarRequestOptions,
30532
- };
30533
- },
30534
- /**
30535
- * Select a SumUp reader for a club.
30536
- * @param {string} clubId
30537
- * @param {string} readerId
30538
- * @param {*} [options] Override http request option.
30539
- * @throws {RequiredError}
30540
- */
30541
- selectSumupReader: async (clubId: string, readerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30542
- // verify required parameter 'clubId' is not null or undefined
30543
- assertParamExists('selectSumupReader', 'clubId', clubId)
30544
- // verify required parameter 'readerId' is not null or undefined
30545
- assertParamExists('selectSumupReader', 'readerId', readerId)
30546
- const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
30547
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
30548
- .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
30549
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30550
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30551
- let baseOptions;
30552
- if (configuration) {
30553
- baseOptions = configuration.baseOptions;
30554
- }
30555
-
30556
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30557
- const localVarHeaderParameter = {} as any;
30558
- const localVarQueryParameter = {} as any;
30559
-
30560
- // authentication bearerAuth required
30561
- // http bearer authentication required
30562
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
30563
-
30564
-
30565
-
30566
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30567
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30568
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30569
-
30570
- return {
30571
- url: toPathString(localVarUrlObj),
30572
- options: localVarRequestOptions,
30573
- };
30574
- },
30575
- }
30576
- };
30577
-
30578
- /**
30579
- * SumUpManagerApi - functional programming interface
30580
- * @export
30581
- */
30582
- export const SumUpManagerApiFp = function(configuration?: Configuration) {
30583
- const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration)
30584
- return {
30585
- /**
30586
- * Disconnect SumUp account for a club.
30587
- * @param {string} clubId
30588
- * @param {*} [options] Override http request option.
30589
- * @throws {RequiredError}
30590
- */
30591
- async disconnectSumup(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30592
- const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectSumup(clubId, options);
30593
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30594
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.disconnectSumup']?.[localVarOperationServerIndex]?.url;
30595
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30596
- },
30597
- /**
30598
- * Start SumUp OAuth connection for a club.
30599
- * @param {string} clubId
30600
- * @param {*} [options] Override http request option.
30601
- * @throws {RequiredError}
30602
- */
30603
- async getSumupConnectUrl(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupConnectUrlResponse>> {
30604
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
30605
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30606
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupConnectUrl']?.[localVarOperationServerIndex]?.url;
30607
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30608
- },
30609
- /**
30610
- * Get SumUp connection status for a club.
30611
- * @param {string} clubId
30612
- * @param {*} [options] Override http request option.
30613
- * @throws {RequiredError}
30614
- */
30615
- async getSumupStatus(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupAccountStatusResponse>> {
30616
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupStatus(clubId, options);
30617
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30618
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupStatus']?.[localVarOperationServerIndex]?.url;
30619
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30620
- },
30621
- /**
30622
- * List SumUp readers for a club.
30623
- * @param {string} clubId
30624
- * @param {*} [options] Override http request option.
30625
- * @throws {RequiredError}
30626
- */
30627
- async listSumupReaders(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReadersResponse>> {
30628
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSumupReaders(clubId, options);
30629
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30630
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.listSumupReaders']?.[localVarOperationServerIndex]?.url;
30631
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30632
- },
30633
- /**
30634
- * Pair a SumUp reader with a club.
30635
- * @param {string} clubId
30636
- * @param {SumupPairReaderRequest} sumupPairReaderRequest
30637
- * @param {*} [options] Override http request option.
30638
- * @throws {RequiredError}
30639
- */
30640
- async pairSumupReader(clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupPairReaderResponse>> {
30641
- const localVarAxiosArgs = await localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
30642
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30643
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.pairSumupReader']?.[localVarOperationServerIndex]?.url;
30644
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30645
- },
30646
- /**
30647
- * Select a SumUp reader for a club.
30648
- * @param {string} clubId
30649
- * @param {string} readerId
30650
- * @param {*} [options] Override http request option.
30651
- * @throws {RequiredError}
30652
- */
30653
- async selectSumupReader(clubId: string, readerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30654
- const localVarAxiosArgs = await localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
30655
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30656
- const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.selectSumupReader']?.[localVarOperationServerIndex]?.url;
30657
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30658
- },
30659
- }
30660
- };
30661
-
30662
- /**
30663
- * SumUpManagerApi - factory interface
30664
- * @export
30665
- */
30666
- export const SumUpManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30667
- const localVarFp = SumUpManagerApiFp(configuration)
30668
- return {
30669
- /**
30670
- * Disconnect SumUp account for a club.
30671
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
30672
- * @param {*} [options] Override http request option.
30673
- * @throws {RequiredError}
30674
- */
30675
- disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
30676
- return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
30677
- },
30678
- /**
30679
- * Start SumUp OAuth connection for a club.
30680
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
30681
- * @param {*} [options] Override http request option.
30682
- * @throws {RequiredError}
30683
- */
30684
- getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupConnectUrlResponse> {
30685
- return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
30686
- },
30687
- /**
30688
- * Get SumUp connection status for a club.
30689
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
30690
- * @param {*} [options] Override http request option.
30691
- * @throws {RequiredError}
30692
- */
30693
- getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupAccountStatusResponse> {
30694
- return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
30695
- },
30696
- /**
30697
- * List SumUp readers for a club.
30698
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
30699
- * @param {*} [options] Override http request option.
30700
- * @throws {RequiredError}
30701
- */
30702
- listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReadersResponse> {
30703
- return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
30704
- },
30705
- /**
30706
- * Pair a SumUp reader with a club.
30707
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
30708
- * @param {*} [options] Override http request option.
30709
- * @throws {RequiredError}
30710
- */
30711
- pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupPairReaderResponse> {
30712
- return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
30713
- },
30714
- /**
30715
- * Select a SumUp reader for a club.
30716
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
30717
- * @param {*} [options] Override http request option.
30718
- * @throws {RequiredError}
30719
- */
30720
- selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
30721
- return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
30722
- },
30723
- };
30724
- };
30725
-
30726
- /**
30727
- * Request parameters for disconnectSumup operation in SumUpManagerApi.
30728
- * @export
30729
- * @interface SumUpManagerApiDisconnectSumupRequest
30730
- */
30731
- export interface SumUpManagerApiDisconnectSumupRequest {
30732
- /**
30733
- *
30734
- * @type {string}
30735
- * @memberof SumUpManagerApiDisconnectSumup
30736
- */
30737
- readonly clubId: string
30738
- }
30739
-
30740
- /**
30741
- * Request parameters for getSumupConnectUrl operation in SumUpManagerApi.
30742
- * @export
30743
- * @interface SumUpManagerApiGetSumupConnectUrlRequest
30744
- */
30745
- export interface SumUpManagerApiGetSumupConnectUrlRequest {
30746
- /**
30747
- *
30748
- * @type {string}
30749
- * @memberof SumUpManagerApiGetSumupConnectUrl
30750
- */
30751
- readonly clubId: string
30752
- }
30753
-
30754
- /**
30755
- * Request parameters for getSumupStatus operation in SumUpManagerApi.
30756
- * @export
30757
- * @interface SumUpManagerApiGetSumupStatusRequest
30758
- */
30759
- export interface SumUpManagerApiGetSumupStatusRequest {
30760
- /**
30761
- *
30762
- * @type {string}
30763
- * @memberof SumUpManagerApiGetSumupStatus
30764
- */
30765
- readonly clubId: string
30766
- }
30767
-
30768
- /**
30769
- * Request parameters for listSumupReaders operation in SumUpManagerApi.
30770
- * @export
30771
- * @interface SumUpManagerApiListSumupReadersRequest
30772
- */
30773
- export interface SumUpManagerApiListSumupReadersRequest {
30774
- /**
30775
- *
30776
- * @type {string}
30777
- * @memberof SumUpManagerApiListSumupReaders
30778
- */
30779
- readonly clubId: string
30780
- }
30781
-
30782
- /**
30783
- * Request parameters for pairSumupReader operation in SumUpManagerApi.
30784
- * @export
30785
- * @interface SumUpManagerApiPairSumupReaderRequest
30786
- */
30787
- export interface SumUpManagerApiPairSumupReaderRequest {
30788
- /**
30789
- *
30790
- * @type {string}
30791
- * @memberof SumUpManagerApiPairSumupReader
30792
- */
30793
- readonly clubId: string
30794
-
30795
- /**
30796
- *
30797
- * @type {SumupPairReaderRequest}
30798
- * @memberof SumUpManagerApiPairSumupReader
30799
- */
30800
- readonly sumupPairReaderRequest: SumupPairReaderRequest
30801
- }
30802
-
30803
- /**
30804
- * Request parameters for selectSumupReader operation in SumUpManagerApi.
30805
- * @export
30806
- * @interface SumUpManagerApiSelectSumupReaderRequest
30807
- */
30808
- export interface SumUpManagerApiSelectSumupReaderRequest {
30809
- /**
30810
- *
30811
- * @type {string}
30812
- * @memberof SumUpManagerApiSelectSumupReader
30813
- */
30814
- readonly clubId: string
30815
-
30816
- /**
30817
- *
30818
- * @type {string}
30819
- * @memberof SumUpManagerApiSelectSumupReader
30820
- */
30821
- readonly readerId: string
30822
- }
30823
-
30824
- /**
30825
- * SumUpManagerApi - object-oriented interface
30826
- * @export
30827
- * @class SumUpManagerApi
30828
- * @extends {BaseAPI}
30829
- */
30830
- export class SumUpManagerApi extends BaseAPI {
30831
- /**
30832
- * Disconnect SumUp account for a club.
30833
- * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
30834
- * @param {*} [options] Override http request option.
30835
- * @throws {RequiredError}
30836
- * @memberof SumUpManagerApi
30837
- */
30838
- public disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig) {
30839
- return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30840
- }
30841
-
30842
- /**
30843
- * Start SumUp OAuth connection for a club.
30844
- * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
30845
- * @param {*} [options] Override http request option.
30846
- * @throws {RequiredError}
30847
- * @memberof SumUpManagerApi
30848
- */
30849
- public getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig) {
30850
- return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30851
- }
30852
-
30853
- /**
30854
- * Get SumUp connection status for a club.
30855
- * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
30856
- * @param {*} [options] Override http request option.
30857
- * @throws {RequiredError}
30858
- * @memberof SumUpManagerApi
30859
- */
30860
- public getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig) {
30861
- return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30862
- }
30863
-
30864
- /**
30865
- * List SumUp readers for a club.
30866
- * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
30867
- * @param {*} [options] Override http request option.
30868
- * @throws {RequiredError}
30869
- * @memberof SumUpManagerApi
30870
- */
30871
- public listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig) {
30872
- return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30873
- }
30874
-
30875
- /**
30876
- * Pair a SumUp reader with a club.
30877
- * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
30878
- * @param {*} [options] Override http request option.
30879
- * @throws {RequiredError}
30880
- * @memberof SumUpManagerApi
30881
- */
30882
- public pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig) {
30883
- return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
30884
- }
30885
-
30886
- /**
30887
- * Select a SumUp reader for a club.
30888
- * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
30889
- * @param {*} [options] Override http request option.
30890
- * @throws {RequiredError}
30891
- * @memberof SumUpManagerApi
30892
- */
30893
- public selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig) {
30894
- return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
30895
- }
30896
- }
30897
-
30898
-
30899
-
30900
29689
  /**
30901
29690
  * UserApi - axios parameter creator
30902
29691
  * @export