@tennac-booking/sdk 1.0.181 → 1.0.183

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -8771,6 +8771,45 @@ export interface PaymentByPlayerInfo {
8771
8771
  */
8772
8772
  'invoices': Array<InvoiceInfo>;
8773
8773
  }
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
+
8774
8813
  /**
8775
8814
  *
8776
8815
  * @export
@@ -8788,6 +8827,20 @@ export const PaymentMethod = {
8788
8827
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
8789
8828
 
8790
8829
 
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
+
8791
8844
  /**
8792
8845
  *
8793
8846
  * @export
@@ -8807,6 +8860,22 @@ export interface PaymentRequirementsSettings {
8807
8860
  */
8808
8861
  'requireOnlinePayment': boolean;
8809
8862
  }
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
+
8810
8879
  /**
8811
8880
  * From T, pick a set of properties whose keys are in the union K
8812
8881
  * @export
@@ -11679,6 +11748,251 @@ export interface SubscriptionPlanResponse {
11679
11748
  }
11680
11749
 
11681
11750
 
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
+ }
11682
11996
  /**
11683
11997
  *
11684
11998
  * @export
@@ -12882,12 +13196,6 @@ export interface UserClubMembership {
12882
13196
  * @memberof UserClubMembership
12883
13197
  */
12884
13198
  'clubPicture': string | null;
12885
- /**
12886
- *
12887
- * @type {Array<string>}
12888
- * @memberof UserClubMembership
12889
- */
12890
- 'bannerPictures'?: Array<string>;
12891
13199
  /**
12892
13200
  *
12893
13201
  * @type {string}
@@ -13567,12 +13875,6 @@ export interface UserProfileResponse {
13567
13875
  * @memberof UserProfileResponse
13568
13876
  */
13569
13877
  'clubs'?: Array<UserClubMembership>;
13570
- /**
13571
- *
13572
- * @type {Array<ClubSummary>}
13573
- * @memberof UserProfileResponse
13574
- */
13575
- 'favoriteClubsDetails'?: Array<ClubSummary>;
13576
13878
  /**
13577
13879
  *
13578
13880
  * @type {Array<ClubSummary>}
@@ -27916,21 +28218,27 @@ export class ImagesApi extends BaseAPI {
27916
28218
 
27917
28219
 
27918
28220
  /**
27919
- * PublicEmailApi - axios parameter creator
28221
+ * PaymentsStaffApi - axios parameter creator
27920
28222
  * @export
27921
28223
  */
27922
- export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
28224
+ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
27923
28225
  return {
27924
28226
  /**
27925
- *
27926
- * @param {EmailExistsRequestBody} emailExistsRequestBody
28227
+ * Cancel a SumUp reader checkout.
28228
+ * @param {string} clubId
28229
+ * @param {string} paymentId
28230
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
27927
28231
  * @param {*} [options] Override http request option.
27928
28232
  * @throws {RequiredError}
27929
28233
  */
27930
- authEmailExists: async (emailExistsRequestBody: EmailExistsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27931
- // verify required parameter 'emailExistsRequestBody' is not null or undefined
27932
- assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody)
27933
- const localVarPath = `/api/public-email/auth-email-exists`;
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)));
27934
28242
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27935
28243
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27936
28244
  let baseOptions;
@@ -27942,6 +28250,10 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27942
28250
  const localVarHeaderParameter = {} as any;
27943
28251
  const localVarQueryParameter = {} as any;
27944
28252
 
28253
+ // authentication bearerAuth required
28254
+ // http bearer authentication required
28255
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28256
+
27945
28257
 
27946
28258
 
27947
28259
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -27949,7 +28261,7 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27949
28261
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27950
28262
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27951
28263
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27952
- localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
28264
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration)
27953
28265
 
27954
28266
  return {
27955
28267
  url: toPathString(localVarUrlObj),
@@ -27957,15 +28269,19 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27957
28269
  };
27958
28270
  },
27959
28271
  /**
27960
- *
27961
- * @param {RequestEmailCodeBody} requestEmailCodeBody
28272
+ * Start a SumUp reader checkout (manual payment trigger).
28273
+ * @param {string} clubId
28274
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
27962
28275
  * @param {*} [options] Override http request option.
27963
28276
  * @throws {RequiredError}
27964
28277
  */
27965
- requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27966
- // verify required parameter 'requestEmailCodeBody' is not null or undefined
27967
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
27968
- const localVarPath = `/api/public-email/request-verification-code`;
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)));
27969
28285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27970
28286
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27971
28287
  let baseOptions;
@@ -27977,7 +28293,236 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27977
28293
  const localVarHeaderParameter = {} as any;
27978
28294
  const localVarQueryParameter = {} as any;
27979
28295
 
27980
-
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
+ /**
28464
+ * PublicEmailApi - axios parameter creator
28465
+ * @export
28466
+ */
28467
+ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
28468
+ return {
28469
+ /**
28470
+ *
28471
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
28472
+ * @param {*} [options] Override http request option.
28473
+ * @throws {RequiredError}
28474
+ */
28475
+ authEmailExists: async (emailExistsRequestBody: EmailExistsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28476
+ // verify required parameter 'emailExistsRequestBody' is not null or undefined
28477
+ assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody)
28478
+ const localVarPath = `/api/public-email/auth-email-exists`;
28479
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28480
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28481
+ let baseOptions;
28482
+ if (configuration) {
28483
+ baseOptions = configuration.baseOptions;
28484
+ }
28485
+
28486
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28487
+ const localVarHeaderParameter = {} as any;
28488
+ const localVarQueryParameter = {} as any;
28489
+
28490
+
28491
+
28492
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28493
+
28494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28496
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28497
+ localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
28498
+
28499
+ return {
28500
+ url: toPathString(localVarUrlObj),
28501
+ options: localVarRequestOptions,
28502
+ };
28503
+ },
28504
+ /**
28505
+ *
28506
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
28507
+ * @param {*} [options] Override http request option.
28508
+ * @throws {RequiredError}
28509
+ */
28510
+ requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28511
+ // verify required parameter 'requestEmailCodeBody' is not null or undefined
28512
+ assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28513
+ const localVarPath = `/api/public-email/request-verification-code`;
28514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28516
+ let baseOptions;
28517
+ if (configuration) {
28518
+ baseOptions = configuration.baseOptions;
28519
+ }
28520
+
28521
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28522
+ const localVarHeaderParameter = {} as any;
28523
+ const localVarQueryParameter = {} as any;
28524
+
28525
+
27981
28526
 
27982
28527
  localVarHeaderParameter['Content-Type'] = 'application/json';
27983
28528
 
@@ -29653,6 +30198,705 @@ export class SubscriptionsUserApi extends BaseAPI {
29653
30198
 
29654
30199
 
29655
30200
 
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
+
29656
30900
  /**
29657
30901
  * UserApi - axios parameter creator
29658
30902
  * @export