@tennac-booking/sdk 1.0.181 → 1.0.182

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,213 @@ 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
+ 'scope'?: string;
11781
+ /**
11782
+ *
11783
+ * @type {string}
11784
+ * @memberof SumupAccountStatusResponse
11785
+ */
11786
+ 'connectedAt'?: string;
11787
+ }
11788
+ /**
11789
+ *
11790
+ * @export
11791
+ * @interface SumupCancelPaymentRequest
11792
+ */
11793
+ export interface SumupCancelPaymentRequest {
11794
+ /**
11795
+ *
11796
+ * @type {string}
11797
+ * @memberof SumupCancelPaymentRequest
11798
+ */
11799
+ 'checkoutId'?: string;
11800
+ }
11801
+ /**
11802
+ *
11803
+ * @export
11804
+ * @interface SumupConnectUrlResponse
11805
+ */
11806
+ export interface SumupConnectUrlResponse {
11807
+ /**
11808
+ *
11809
+ * @type {string}
11810
+ * @memberof SumupConnectUrlResponse
11811
+ */
11812
+ 'url': string;
11813
+ }
11814
+ /**
11815
+ *
11816
+ * @export
11817
+ * @interface SumupCreatePaymentRequest
11818
+ */
11819
+ export interface SumupCreatePaymentRequest {
11820
+ /**
11821
+ *
11822
+ * @type {number}
11823
+ * @memberof SumupCreatePaymentRequest
11824
+ */
11825
+ 'amountInCents': number;
11826
+ /**
11827
+ *
11828
+ * @type {string}
11829
+ * @memberof SumupCreatePaymentRequest
11830
+ */
11831
+ 'currency': string;
11832
+ /**
11833
+ *
11834
+ * @type {string}
11835
+ * @memberof SumupCreatePaymentRequest
11836
+ */
11837
+ 'readerId'?: string;
11838
+ /**
11839
+ *
11840
+ * @type {string}
11841
+ * @memberof SumupCreatePaymentRequest
11842
+ */
11843
+ 'description'?: string;
11844
+ /**
11845
+ *
11846
+ * @type {string}
11847
+ * @memberof SumupCreatePaymentRequest
11848
+ */
11849
+ 'reference'?: string;
11850
+ /**
11851
+ * Construct a type with a set of properties K of type T
11852
+ * @type {{ [key: string]: string; }}
11853
+ * @memberof SumupCreatePaymentRequest
11854
+ */
11855
+ 'metadata'?: { [key: string]: string; };
11856
+ /**
11857
+ *
11858
+ * @type {string}
11859
+ * @memberof SumupCreatePaymentRequest
11860
+ */
11861
+ 'userId'?: string;
11862
+ }
11863
+ /**
11864
+ *
11865
+ * @export
11866
+ * @interface SumupOAuthCallbackResponse
11867
+ */
11868
+ export interface SumupOAuthCallbackResponse {
11869
+ /**
11870
+ *
11871
+ * @type {string}
11872
+ * @memberof SumupOAuthCallbackResponse
11873
+ */
11874
+ 'clubId': string;
11875
+ /**
11876
+ *
11877
+ * @type {string}
11878
+ * @memberof SumupOAuthCallbackResponse
11879
+ */
11880
+ 'merchantCode': string;
11881
+ /**
11882
+ *
11883
+ * @type {string}
11884
+ * @memberof SumupOAuthCallbackResponse
11885
+ */
11886
+ 'scope'?: string;
11887
+ }
11888
+ /**
11889
+ *
11890
+ * @export
11891
+ * @interface SumupReaderInfo
11892
+ */
11893
+ export interface SumupReaderInfo {
11894
+ [key: string]: any;
11895
+
11896
+ /**
11897
+ *
11898
+ * @type {string}
11899
+ * @memberof SumupReaderInfo
11900
+ */
11901
+ 'reader_id'?: string;
11902
+ /**
11903
+ *
11904
+ * @type {string}
11905
+ * @memberof SumupReaderInfo
11906
+ */
11907
+ 'id'?: string;
11908
+ /**
11909
+ *
11910
+ * @type {string}
11911
+ * @memberof SumupReaderInfo
11912
+ */
11913
+ 'serial_number'?: string;
11914
+ /**
11915
+ *
11916
+ * @type {string}
11917
+ * @memberof SumupReaderInfo
11918
+ */
11919
+ 'name'?: string;
11920
+ /**
11921
+ *
11922
+ * @type {string}
11923
+ * @memberof SumupReaderInfo
11924
+ */
11925
+ 'status'?: string;
11926
+ /**
11927
+ *
11928
+ * @type {string}
11929
+ * @memberof SumupReaderInfo
11930
+ */
11931
+ 'model'?: string;
11932
+ /**
11933
+ *
11934
+ * @type {string}
11935
+ * @memberof SumupReaderInfo
11936
+ */
11937
+ 'device_type'?: string;
11938
+ /**
11939
+ *
11940
+ * @type {string}
11941
+ * @memberof SumupReaderInfo
11942
+ */
11943
+ 'last_seen_at'?: string;
11944
+ }
11945
+ /**
11946
+ *
11947
+ * @export
11948
+ * @interface SumupReadersResponse
11949
+ */
11950
+ export interface SumupReadersResponse {
11951
+ /**
11952
+ *
11953
+ * @type {Array<SumupReaderInfo>}
11954
+ * @memberof SumupReadersResponse
11955
+ */
11956
+ 'readers': Array<SumupReaderInfo>;
11957
+ }
11682
11958
  /**
11683
11959
  *
11684
11960
  * @export
@@ -12882,12 +13158,6 @@ export interface UserClubMembership {
12882
13158
  * @memberof UserClubMembership
12883
13159
  */
12884
13160
  'clubPicture': string | null;
12885
- /**
12886
- *
12887
- * @type {Array<string>}
12888
- * @memberof UserClubMembership
12889
- */
12890
- 'bannerPictures'?: Array<string>;
12891
13161
  /**
12892
13162
  *
12893
13163
  * @type {string}
@@ -13567,12 +13837,6 @@ export interface UserProfileResponse {
13567
13837
  * @memberof UserProfileResponse
13568
13838
  */
13569
13839
  'clubs'?: Array<UserClubMembership>;
13570
- /**
13571
- *
13572
- * @type {Array<ClubSummary>}
13573
- * @memberof UserProfileResponse
13574
- */
13575
- 'favoriteClubsDetails'?: Array<ClubSummary>;
13576
13840
  /**
13577
13841
  *
13578
13842
  * @type {Array<ClubSummary>}
@@ -27916,21 +28180,27 @@ export class ImagesApi extends BaseAPI {
27916
28180
 
27917
28181
 
27918
28182
  /**
27919
- * PublicEmailApi - axios parameter creator
28183
+ * PaymentsStaffApi - axios parameter creator
27920
28184
  * @export
27921
28185
  */
27922
- export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
28186
+ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
27923
28187
  return {
27924
28188
  /**
27925
- *
27926
- * @param {EmailExistsRequestBody} emailExistsRequestBody
28189
+ * Cancel a SumUp reader checkout.
28190
+ * @param {string} clubId
28191
+ * @param {string} paymentId
28192
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
27927
28193
  * @param {*} [options] Override http request option.
27928
28194
  * @throws {RequiredError}
27929
28195
  */
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`;
28196
+ cancelSumupPayment: async (clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28197
+ // verify required parameter 'clubId' is not null or undefined
28198
+ assertParamExists('cancelSumupPayment', 'clubId', clubId)
28199
+ // verify required parameter 'paymentId' is not null or undefined
28200
+ assertParamExists('cancelSumupPayment', 'paymentId', paymentId)
28201
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
28202
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
28203
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
27934
28204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27935
28205
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27936
28206
  let baseOptions;
@@ -27942,6 +28212,10 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27942
28212
  const localVarHeaderParameter = {} as any;
27943
28213
  const localVarQueryParameter = {} as any;
27944
28214
 
28215
+ // authentication bearerAuth required
28216
+ // http bearer authentication required
28217
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28218
+
27945
28219
 
27946
28220
 
27947
28221
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -27949,7 +28223,7 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27949
28223
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27950
28224
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27951
28225
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27952
- localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
28226
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration)
27953
28227
 
27954
28228
  return {
27955
28229
  url: toPathString(localVarUrlObj),
@@ -27957,15 +28231,19 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27957
28231
  };
27958
28232
  },
27959
28233
  /**
27960
- *
27961
- * @param {RequestEmailCodeBody} requestEmailCodeBody
28234
+ * Start a SumUp reader checkout (manual payment trigger).
28235
+ * @param {string} clubId
28236
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
27962
28237
  * @param {*} [options] Override http request option.
27963
28238
  * @throws {RequiredError}
27964
28239
  */
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`;
28240
+ createSumupPayment: async (clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28241
+ // verify required parameter 'clubId' is not null or undefined
28242
+ assertParamExists('createSumupPayment', 'clubId', clubId)
28243
+ // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
28244
+ assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest)
28245
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup`
28246
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
27969
28247
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27970
28248
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27971
28249
  let baseOptions;
@@ -27977,6 +28255,10 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27977
28255
  const localVarHeaderParameter = {} as any;
27978
28256
  const localVarQueryParameter = {} as any;
27979
28257
 
28258
+ // authentication bearerAuth required
28259
+ // http bearer authentication required
28260
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28261
+
27980
28262
 
27981
28263
 
27982
28264
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -27984,30 +28266,255 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27984
28266
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27985
28267
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27986
28268
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27987
- localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration)
28269
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration)
27988
28270
 
27989
28271
  return {
27990
28272
  url: toPathString(localVarUrlObj),
27991
28273
  options: localVarRequestOptions,
27992
28274
  };
27993
28275
  },
28276
+ }
28277
+ };
28278
+
28279
+ /**
28280
+ * PaymentsStaffApi - functional programming interface
28281
+ * @export
28282
+ */
28283
+ export const PaymentsStaffApiFp = function(configuration?: Configuration) {
28284
+ const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration)
28285
+ return {
27994
28286
  /**
27995
- *
27996
- * @param {VerifyEmailCodeBody} verifyEmailCodeBody
28287
+ * Cancel a SumUp reader checkout.
28288
+ * @param {string} clubId
28289
+ * @param {string} paymentId
28290
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
27997
28291
  * @param {*} [options] Override http request option.
27998
28292
  * @throws {RequiredError}
27999
28293
  */
28000
- verifyCode: async (verifyEmailCodeBody: VerifyEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28001
- // verify required parameter 'verifyEmailCodeBody' is not null or undefined
28002
- assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody)
28003
- const localVarPath = `/api/public-email/verify-code`;
28004
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28005
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28006
- let baseOptions;
28007
- if (configuration) {
28008
- baseOptions = configuration.baseOptions;
28009
- }
28010
-
28294
+ async cancelSumupPayment(clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
28296
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28297
+ const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.cancelSumupPayment']?.[localVarOperationServerIndex]?.url;
28298
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28299
+ },
28300
+ /**
28301
+ * Start a SumUp reader checkout (manual payment trigger).
28302
+ * @param {string} clubId
28303
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
28304
+ * @param {*} [options] Override http request option.
28305
+ * @throws {RequiredError}
28306
+ */
28307
+ async createSumupPayment(clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentIntentResult>> {
28308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
28309
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28310
+ const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.createSumupPayment']?.[localVarOperationServerIndex]?.url;
28311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28312
+ },
28313
+ }
28314
+ };
28315
+
28316
+ /**
28317
+ * PaymentsStaffApi - factory interface
28318
+ * @export
28319
+ */
28320
+ export const PaymentsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28321
+ const localVarFp = PaymentsStaffApiFp(configuration)
28322
+ return {
28323
+ /**
28324
+ * Cancel a SumUp reader checkout.
28325
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
28326
+ * @param {*} [options] Override http request option.
28327
+ * @throws {RequiredError}
28328
+ */
28329
+ cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28330
+ return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
28331
+ },
28332
+ /**
28333
+ * Start a SumUp reader checkout (manual payment trigger).
28334
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
28335
+ * @param {*} [options] Override http request option.
28336
+ * @throws {RequiredError}
28337
+ */
28338
+ createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentIntentResult> {
28339
+ return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
28340
+ },
28341
+ };
28342
+ };
28343
+
28344
+ /**
28345
+ * Request parameters for cancelSumupPayment operation in PaymentsStaffApi.
28346
+ * @export
28347
+ * @interface PaymentsStaffApiCancelSumupPaymentRequest
28348
+ */
28349
+ export interface PaymentsStaffApiCancelSumupPaymentRequest {
28350
+ /**
28351
+ *
28352
+ * @type {string}
28353
+ * @memberof PaymentsStaffApiCancelSumupPayment
28354
+ */
28355
+ readonly clubId: string
28356
+
28357
+ /**
28358
+ *
28359
+ * @type {string}
28360
+ * @memberof PaymentsStaffApiCancelSumupPayment
28361
+ */
28362
+ readonly paymentId: string
28363
+
28364
+ /**
28365
+ *
28366
+ * @type {SumupCancelPaymentRequest}
28367
+ * @memberof PaymentsStaffApiCancelSumupPayment
28368
+ */
28369
+ readonly sumupCancelPaymentRequest?: SumupCancelPaymentRequest
28370
+ }
28371
+
28372
+ /**
28373
+ * Request parameters for createSumupPayment operation in PaymentsStaffApi.
28374
+ * @export
28375
+ * @interface PaymentsStaffApiCreateSumupPaymentRequest
28376
+ */
28377
+ export interface PaymentsStaffApiCreateSumupPaymentRequest {
28378
+ /**
28379
+ *
28380
+ * @type {string}
28381
+ * @memberof PaymentsStaffApiCreateSumupPayment
28382
+ */
28383
+ readonly clubId: string
28384
+
28385
+ /**
28386
+ *
28387
+ * @type {SumupCreatePaymentRequest}
28388
+ * @memberof PaymentsStaffApiCreateSumupPayment
28389
+ */
28390
+ readonly sumupCreatePaymentRequest: SumupCreatePaymentRequest
28391
+ }
28392
+
28393
+ /**
28394
+ * PaymentsStaffApi - object-oriented interface
28395
+ * @export
28396
+ * @class PaymentsStaffApi
28397
+ * @extends {BaseAPI}
28398
+ */
28399
+ export class PaymentsStaffApi extends BaseAPI {
28400
+ /**
28401
+ * Cancel a SumUp reader checkout.
28402
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
28403
+ * @param {*} [options] Override http request option.
28404
+ * @throws {RequiredError}
28405
+ * @memberof PaymentsStaffApi
28406
+ */
28407
+ public cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig) {
28408
+ return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
28409
+ }
28410
+
28411
+ /**
28412
+ * Start a SumUp reader checkout (manual payment trigger).
28413
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
28414
+ * @param {*} [options] Override http request option.
28415
+ * @throws {RequiredError}
28416
+ * @memberof PaymentsStaffApi
28417
+ */
28418
+ public createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig) {
28419
+ return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
28420
+ }
28421
+ }
28422
+
28423
+
28424
+
28425
+ /**
28426
+ * PublicEmailApi - axios parameter creator
28427
+ * @export
28428
+ */
28429
+ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configuration) {
28430
+ return {
28431
+ /**
28432
+ *
28433
+ * @param {EmailExistsRequestBody} emailExistsRequestBody
28434
+ * @param {*} [options] Override http request option.
28435
+ * @throws {RequiredError}
28436
+ */
28437
+ authEmailExists: async (emailExistsRequestBody: EmailExistsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28438
+ // verify required parameter 'emailExistsRequestBody' is not null or undefined
28439
+ assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody)
28440
+ const localVarPath = `/api/public-email/auth-email-exists`;
28441
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28442
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28443
+ let baseOptions;
28444
+ if (configuration) {
28445
+ baseOptions = configuration.baseOptions;
28446
+ }
28447
+
28448
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28449
+ const localVarHeaderParameter = {} as any;
28450
+ const localVarQueryParameter = {} as any;
28451
+
28452
+
28453
+
28454
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28455
+
28456
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28457
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28458
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28459
+ localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration)
28460
+
28461
+ return {
28462
+ url: toPathString(localVarUrlObj),
28463
+ options: localVarRequestOptions,
28464
+ };
28465
+ },
28466
+ /**
28467
+ *
28468
+ * @param {RequestEmailCodeBody} requestEmailCodeBody
28469
+ * @param {*} [options] Override http request option.
28470
+ * @throws {RequiredError}
28471
+ */
28472
+ requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28473
+ // verify required parameter 'requestEmailCodeBody' is not null or undefined
28474
+ assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28475
+ const localVarPath = `/api/public-email/request-verification-code`;
28476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28478
+ let baseOptions;
28479
+ if (configuration) {
28480
+ baseOptions = configuration.baseOptions;
28481
+ }
28482
+
28483
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28484
+ const localVarHeaderParameter = {} as any;
28485
+ const localVarQueryParameter = {} as any;
28486
+
28487
+
28488
+
28489
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28490
+
28491
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28492
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28493
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28494
+ localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration)
28495
+
28496
+ return {
28497
+ url: toPathString(localVarUrlObj),
28498
+ options: localVarRequestOptions,
28499
+ };
28500
+ },
28501
+ /**
28502
+ *
28503
+ * @param {VerifyEmailCodeBody} verifyEmailCodeBody
28504
+ * @param {*} [options] Override http request option.
28505
+ * @throws {RequiredError}
28506
+ */
28507
+ verifyCode: async (verifyEmailCodeBody: VerifyEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28508
+ // verify required parameter 'verifyEmailCodeBody' is not null or undefined
28509
+ assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody)
28510
+ const localVarPath = `/api/public-email/verify-code`;
28511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28513
+ let baseOptions;
28514
+ if (configuration) {
28515
+ baseOptions = configuration.baseOptions;
28516
+ }
28517
+
28011
28518
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28012
28519
  const localVarHeaderParameter = {} as any;
28013
28520
  const localVarQueryParameter = {} as any;
@@ -29653,6 +30160,608 @@ export class SubscriptionsUserApi extends BaseAPI {
29653
30160
 
29654
30161
 
29655
30162
 
30163
+ /**
30164
+ * SumUpApi - axios parameter creator
30165
+ * @export
30166
+ */
30167
+ export const SumUpApiAxiosParamCreator = function (configuration?: Configuration) {
30168
+ return {
30169
+ /**
30170
+ * OAuth callback for SumUp.
30171
+ * @param {string} code
30172
+ * @param {string} state
30173
+ * @param {*} [options] Override http request option.
30174
+ * @throws {RequiredError}
30175
+ */
30176
+ sumupOauthCallback: async (code: string, state: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30177
+ // verify required parameter 'code' is not null or undefined
30178
+ assertParamExists('sumupOauthCallback', 'code', code)
30179
+ // verify required parameter 'state' is not null or undefined
30180
+ assertParamExists('sumupOauthCallback', 'state', state)
30181
+ const localVarPath = `/api/sumup/oauth/callback`;
30182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30184
+ let baseOptions;
30185
+ if (configuration) {
30186
+ baseOptions = configuration.baseOptions;
30187
+ }
30188
+
30189
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30190
+ const localVarHeaderParameter = {} as any;
30191
+ const localVarQueryParameter = {} as any;
30192
+
30193
+ if (code !== undefined) {
30194
+ localVarQueryParameter['code'] = code;
30195
+ }
30196
+
30197
+ if (state !== undefined) {
30198
+ localVarQueryParameter['state'] = state;
30199
+ }
30200
+
30201
+
30202
+
30203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30205
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30206
+
30207
+ return {
30208
+ url: toPathString(localVarUrlObj),
30209
+ options: localVarRequestOptions,
30210
+ };
30211
+ },
30212
+ }
30213
+ };
30214
+
30215
+ /**
30216
+ * SumUpApi - functional programming interface
30217
+ * @export
30218
+ */
30219
+ export const SumUpApiFp = function(configuration?: Configuration) {
30220
+ const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration)
30221
+ return {
30222
+ /**
30223
+ * OAuth callback for SumUp.
30224
+ * @param {string} code
30225
+ * @param {string} state
30226
+ * @param {*} [options] Override http request option.
30227
+ * @throws {RequiredError}
30228
+ */
30229
+ async sumupOauthCallback(code: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupOAuthCallbackResponse>> {
30230
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
30231
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30232
+ const localVarOperationServerBasePath = operationServerMap['SumUpApi.sumupOauthCallback']?.[localVarOperationServerIndex]?.url;
30233
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30234
+ },
30235
+ }
30236
+ };
30237
+
30238
+ /**
30239
+ * SumUpApi - factory interface
30240
+ * @export
30241
+ */
30242
+ export const SumUpApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30243
+ const localVarFp = SumUpApiFp(configuration)
30244
+ return {
30245
+ /**
30246
+ * OAuth callback for SumUp.
30247
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
30248
+ * @param {*} [options] Override http request option.
30249
+ * @throws {RequiredError}
30250
+ */
30251
+ sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupOAuthCallbackResponse> {
30252
+ return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
30253
+ },
30254
+ };
30255
+ };
30256
+
30257
+ /**
30258
+ * Request parameters for sumupOauthCallback operation in SumUpApi.
30259
+ * @export
30260
+ * @interface SumUpApiSumupOauthCallbackRequest
30261
+ */
30262
+ export interface SumUpApiSumupOauthCallbackRequest {
30263
+ /**
30264
+ *
30265
+ * @type {string}
30266
+ * @memberof SumUpApiSumupOauthCallback
30267
+ */
30268
+ readonly code: string
30269
+
30270
+ /**
30271
+ *
30272
+ * @type {string}
30273
+ * @memberof SumUpApiSumupOauthCallback
30274
+ */
30275
+ readonly state: string
30276
+ }
30277
+
30278
+ /**
30279
+ * SumUpApi - object-oriented interface
30280
+ * @export
30281
+ * @class SumUpApi
30282
+ * @extends {BaseAPI}
30283
+ */
30284
+ export class SumUpApi extends BaseAPI {
30285
+ /**
30286
+ * OAuth callback for SumUp.
30287
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
30288
+ * @param {*} [options] Override http request option.
30289
+ * @throws {RequiredError}
30290
+ * @memberof SumUpApi
30291
+ */
30292
+ public sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig) {
30293
+ return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
30294
+ }
30295
+ }
30296
+
30297
+
30298
+
30299
+ /**
30300
+ * SumUpManagerApi - axios parameter creator
30301
+ * @export
30302
+ */
30303
+ export const SumUpManagerApiAxiosParamCreator = function (configuration?: Configuration) {
30304
+ return {
30305
+ /**
30306
+ * Disconnect SumUp account for a club.
30307
+ * @param {string} clubId
30308
+ * @param {*} [options] Override http request option.
30309
+ * @throws {RequiredError}
30310
+ */
30311
+ disconnectSumup: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30312
+ // verify required parameter 'clubId' is not null or undefined
30313
+ assertParamExists('disconnectSumup', 'clubId', clubId)
30314
+ const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
30315
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30318
+ let baseOptions;
30319
+ if (configuration) {
30320
+ baseOptions = configuration.baseOptions;
30321
+ }
30322
+
30323
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30324
+ const localVarHeaderParameter = {} as any;
30325
+ const localVarQueryParameter = {} as any;
30326
+
30327
+ // authentication bearerAuth required
30328
+ // http bearer authentication required
30329
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30330
+
30331
+
30332
+
30333
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30335
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30336
+
30337
+ return {
30338
+ url: toPathString(localVarUrlObj),
30339
+ options: localVarRequestOptions,
30340
+ };
30341
+ },
30342
+ /**
30343
+ * Start SumUp OAuth connection for a club.
30344
+ * @param {string} clubId
30345
+ * @param {*} [options] Override http request option.
30346
+ * @throws {RequiredError}
30347
+ */
30348
+ getSumupConnectUrl: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30349
+ // verify required parameter 'clubId' is not null or undefined
30350
+ assertParamExists('getSumupConnectUrl', 'clubId', clubId)
30351
+ const localVarPath = `/api/clubs/{clubId}/sumup/connect`
30352
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30353
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30354
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30355
+ let baseOptions;
30356
+ if (configuration) {
30357
+ baseOptions = configuration.baseOptions;
30358
+ }
30359
+
30360
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30361
+ const localVarHeaderParameter = {} as any;
30362
+ const localVarQueryParameter = {} as any;
30363
+
30364
+ // authentication bearerAuth required
30365
+ // http bearer authentication required
30366
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30367
+
30368
+
30369
+
30370
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30372
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30373
+
30374
+ return {
30375
+ url: toPathString(localVarUrlObj),
30376
+ options: localVarRequestOptions,
30377
+ };
30378
+ },
30379
+ /**
30380
+ * Get SumUp connection status for a club.
30381
+ * @param {string} clubId
30382
+ * @param {*} [options] Override http request option.
30383
+ * @throws {RequiredError}
30384
+ */
30385
+ getSumupStatus: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30386
+ // verify required parameter 'clubId' is not null or undefined
30387
+ assertParamExists('getSumupStatus', 'clubId', clubId)
30388
+ const localVarPath = `/api/clubs/{clubId}/sumup/status`
30389
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30390
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30391
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30392
+ let baseOptions;
30393
+ if (configuration) {
30394
+ baseOptions = configuration.baseOptions;
30395
+ }
30396
+
30397
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30398
+ const localVarHeaderParameter = {} as any;
30399
+ const localVarQueryParameter = {} as any;
30400
+
30401
+ // authentication bearerAuth required
30402
+ // http bearer authentication required
30403
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30404
+
30405
+
30406
+
30407
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30408
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30409
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30410
+
30411
+ return {
30412
+ url: toPathString(localVarUrlObj),
30413
+ options: localVarRequestOptions,
30414
+ };
30415
+ },
30416
+ /**
30417
+ * List SumUp readers for a club.
30418
+ * @param {string} clubId
30419
+ * @param {*} [options] Override http request option.
30420
+ * @throws {RequiredError}
30421
+ */
30422
+ listSumupReaders: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30423
+ // verify required parameter 'clubId' is not null or undefined
30424
+ assertParamExists('listSumupReaders', 'clubId', clubId)
30425
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers`
30426
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
30427
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30428
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30429
+ let baseOptions;
30430
+ if (configuration) {
30431
+ baseOptions = configuration.baseOptions;
30432
+ }
30433
+
30434
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30435
+ const localVarHeaderParameter = {} as any;
30436
+ const localVarQueryParameter = {} as any;
30437
+
30438
+ // authentication bearerAuth required
30439
+ // http bearer authentication required
30440
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30441
+
30442
+
30443
+
30444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30446
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30447
+
30448
+ return {
30449
+ url: toPathString(localVarUrlObj),
30450
+ options: localVarRequestOptions,
30451
+ };
30452
+ },
30453
+ /**
30454
+ * Select a SumUp reader for a club.
30455
+ * @param {string} clubId
30456
+ * @param {string} readerId
30457
+ * @param {*} [options] Override http request option.
30458
+ * @throws {RequiredError}
30459
+ */
30460
+ selectSumupReader: async (clubId: string, readerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30461
+ // verify required parameter 'clubId' is not null or undefined
30462
+ assertParamExists('selectSumupReader', 'clubId', clubId)
30463
+ // verify required parameter 'readerId' is not null or undefined
30464
+ assertParamExists('selectSumupReader', 'readerId', readerId)
30465
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
30466
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
30467
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
30468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30469
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30470
+ let baseOptions;
30471
+ if (configuration) {
30472
+ baseOptions = configuration.baseOptions;
30473
+ }
30474
+
30475
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30476
+ const localVarHeaderParameter = {} as any;
30477
+ const localVarQueryParameter = {} as any;
30478
+
30479
+ // authentication bearerAuth required
30480
+ // http bearer authentication required
30481
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30482
+
30483
+
30484
+
30485
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30487
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30488
+
30489
+ return {
30490
+ url: toPathString(localVarUrlObj),
30491
+ options: localVarRequestOptions,
30492
+ };
30493
+ },
30494
+ }
30495
+ };
30496
+
30497
+ /**
30498
+ * SumUpManagerApi - functional programming interface
30499
+ * @export
30500
+ */
30501
+ export const SumUpManagerApiFp = function(configuration?: Configuration) {
30502
+ const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration)
30503
+ return {
30504
+ /**
30505
+ * Disconnect SumUp account for a club.
30506
+ * @param {string} clubId
30507
+ * @param {*} [options] Override http request option.
30508
+ * @throws {RequiredError}
30509
+ */
30510
+ async disconnectSumup(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30511
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectSumup(clubId, options);
30512
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30513
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.disconnectSumup']?.[localVarOperationServerIndex]?.url;
30514
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30515
+ },
30516
+ /**
30517
+ * Start SumUp OAuth connection for a club.
30518
+ * @param {string} clubId
30519
+ * @param {*} [options] Override http request option.
30520
+ * @throws {RequiredError}
30521
+ */
30522
+ async getSumupConnectUrl(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupConnectUrlResponse>> {
30523
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
30524
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30525
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupConnectUrl']?.[localVarOperationServerIndex]?.url;
30526
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30527
+ },
30528
+ /**
30529
+ * Get SumUp connection status for a club.
30530
+ * @param {string} clubId
30531
+ * @param {*} [options] Override http request option.
30532
+ * @throws {RequiredError}
30533
+ */
30534
+ async getSumupStatus(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupAccountStatusResponse>> {
30535
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupStatus(clubId, options);
30536
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30537
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupStatus']?.[localVarOperationServerIndex]?.url;
30538
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30539
+ },
30540
+ /**
30541
+ * List SumUp readers for a club.
30542
+ * @param {string} clubId
30543
+ * @param {*} [options] Override http request option.
30544
+ * @throws {RequiredError}
30545
+ */
30546
+ async listSumupReaders(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReadersResponse>> {
30547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSumupReaders(clubId, options);
30548
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30549
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.listSumupReaders']?.[localVarOperationServerIndex]?.url;
30550
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30551
+ },
30552
+ /**
30553
+ * Select a SumUp reader for a club.
30554
+ * @param {string} clubId
30555
+ * @param {string} readerId
30556
+ * @param {*} [options] Override http request option.
30557
+ * @throws {RequiredError}
30558
+ */
30559
+ async selectSumupReader(clubId: string, readerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30560
+ const localVarAxiosArgs = await localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
30561
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30562
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.selectSumupReader']?.[localVarOperationServerIndex]?.url;
30563
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30564
+ },
30565
+ }
30566
+ };
30567
+
30568
+ /**
30569
+ * SumUpManagerApi - factory interface
30570
+ * @export
30571
+ */
30572
+ export const SumUpManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30573
+ const localVarFp = SumUpManagerApiFp(configuration)
30574
+ return {
30575
+ /**
30576
+ * Disconnect SumUp account for a club.
30577
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
30578
+ * @param {*} [options] Override http request option.
30579
+ * @throws {RequiredError}
30580
+ */
30581
+ disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
30582
+ return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
30583
+ },
30584
+ /**
30585
+ * Start SumUp OAuth connection for a club.
30586
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
30587
+ * @param {*} [options] Override http request option.
30588
+ * @throws {RequiredError}
30589
+ */
30590
+ getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupConnectUrlResponse> {
30591
+ return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
30592
+ },
30593
+ /**
30594
+ * Get SumUp connection status for a club.
30595
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
30596
+ * @param {*} [options] Override http request option.
30597
+ * @throws {RequiredError}
30598
+ */
30599
+ getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupAccountStatusResponse> {
30600
+ return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
30601
+ },
30602
+ /**
30603
+ * List SumUp readers for a club.
30604
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
30605
+ * @param {*} [options] Override http request option.
30606
+ * @throws {RequiredError}
30607
+ */
30608
+ listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReadersResponse> {
30609
+ return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
30610
+ },
30611
+ /**
30612
+ * Select a SumUp reader for a club.
30613
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
30614
+ * @param {*} [options] Override http request option.
30615
+ * @throws {RequiredError}
30616
+ */
30617
+ selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
30618
+ return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
30619
+ },
30620
+ };
30621
+ };
30622
+
30623
+ /**
30624
+ * Request parameters for disconnectSumup operation in SumUpManagerApi.
30625
+ * @export
30626
+ * @interface SumUpManagerApiDisconnectSumupRequest
30627
+ */
30628
+ export interface SumUpManagerApiDisconnectSumupRequest {
30629
+ /**
30630
+ *
30631
+ * @type {string}
30632
+ * @memberof SumUpManagerApiDisconnectSumup
30633
+ */
30634
+ readonly clubId: string
30635
+ }
30636
+
30637
+ /**
30638
+ * Request parameters for getSumupConnectUrl operation in SumUpManagerApi.
30639
+ * @export
30640
+ * @interface SumUpManagerApiGetSumupConnectUrlRequest
30641
+ */
30642
+ export interface SumUpManagerApiGetSumupConnectUrlRequest {
30643
+ /**
30644
+ *
30645
+ * @type {string}
30646
+ * @memberof SumUpManagerApiGetSumupConnectUrl
30647
+ */
30648
+ readonly clubId: string
30649
+ }
30650
+
30651
+ /**
30652
+ * Request parameters for getSumupStatus operation in SumUpManagerApi.
30653
+ * @export
30654
+ * @interface SumUpManagerApiGetSumupStatusRequest
30655
+ */
30656
+ export interface SumUpManagerApiGetSumupStatusRequest {
30657
+ /**
30658
+ *
30659
+ * @type {string}
30660
+ * @memberof SumUpManagerApiGetSumupStatus
30661
+ */
30662
+ readonly clubId: string
30663
+ }
30664
+
30665
+ /**
30666
+ * Request parameters for listSumupReaders operation in SumUpManagerApi.
30667
+ * @export
30668
+ * @interface SumUpManagerApiListSumupReadersRequest
30669
+ */
30670
+ export interface SumUpManagerApiListSumupReadersRequest {
30671
+ /**
30672
+ *
30673
+ * @type {string}
30674
+ * @memberof SumUpManagerApiListSumupReaders
30675
+ */
30676
+ readonly clubId: string
30677
+ }
30678
+
30679
+ /**
30680
+ * Request parameters for selectSumupReader operation in SumUpManagerApi.
30681
+ * @export
30682
+ * @interface SumUpManagerApiSelectSumupReaderRequest
30683
+ */
30684
+ export interface SumUpManagerApiSelectSumupReaderRequest {
30685
+ /**
30686
+ *
30687
+ * @type {string}
30688
+ * @memberof SumUpManagerApiSelectSumupReader
30689
+ */
30690
+ readonly clubId: string
30691
+
30692
+ /**
30693
+ *
30694
+ * @type {string}
30695
+ * @memberof SumUpManagerApiSelectSumupReader
30696
+ */
30697
+ readonly readerId: string
30698
+ }
30699
+
30700
+ /**
30701
+ * SumUpManagerApi - object-oriented interface
30702
+ * @export
30703
+ * @class SumUpManagerApi
30704
+ * @extends {BaseAPI}
30705
+ */
30706
+ export class SumUpManagerApi extends BaseAPI {
30707
+ /**
30708
+ * Disconnect SumUp account for a club.
30709
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
30710
+ * @param {*} [options] Override http request option.
30711
+ * @throws {RequiredError}
30712
+ * @memberof SumUpManagerApi
30713
+ */
30714
+ public disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig) {
30715
+ return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30716
+ }
30717
+
30718
+ /**
30719
+ * Start SumUp OAuth connection for a club.
30720
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
30721
+ * @param {*} [options] Override http request option.
30722
+ * @throws {RequiredError}
30723
+ * @memberof SumUpManagerApi
30724
+ */
30725
+ public getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig) {
30726
+ return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30727
+ }
30728
+
30729
+ /**
30730
+ * Get SumUp connection status for a club.
30731
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
30732
+ * @param {*} [options] Override http request option.
30733
+ * @throws {RequiredError}
30734
+ * @memberof SumUpManagerApi
30735
+ */
30736
+ public getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig) {
30737
+ return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30738
+ }
30739
+
30740
+ /**
30741
+ * List SumUp readers for a club.
30742
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
30743
+ * @param {*} [options] Override http request option.
30744
+ * @throws {RequiredError}
30745
+ * @memberof SumUpManagerApi
30746
+ */
30747
+ public listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig) {
30748
+ return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
30749
+ }
30750
+
30751
+ /**
30752
+ * Select a SumUp reader for a club.
30753
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
30754
+ * @param {*} [options] Override http request option.
30755
+ * @throws {RequiredError}
30756
+ * @memberof SumUpManagerApi
30757
+ */
30758
+ public selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig) {
30759
+ return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
30760
+ }
30761
+ }
30762
+
30763
+
30764
+
29656
30765
  /**
29657
30766
  * UserApi - axios parameter creator
29658
30767
  * @export