@tennac-booking/sdk 1.0.231 → 1.0.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/.openapi-generator/FILES +25 -0
  2. package/README.md +40 -2
  3. package/api.ts +2222 -5
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +7514 -6070
  8. package/dist/api.js +1212 -10
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +7514 -6070
  16. package/dist/esm/api.js +1195 -5
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingsStaffApi.md +57 -1
  28. package/docs/CheckInPlayerSumupRequest.md +22 -0
  29. package/docs/CheckInPlayerSumupResponse.md +24 -0
  30. package/docs/CheckInSumupPaymentInfo.md +26 -0
  31. package/docs/EventsApi.md +59 -0
  32. package/docs/PaymentIntentResult.md +28 -0
  33. package/docs/PaymentProviderType.md +10 -0
  34. package/docs/PaymentStatus.md +14 -0
  35. package/docs/PaymentsStaffApi.md +124 -0
  36. package/docs/PublishEventResponse.md +2 -0
  37. package/docs/RespondToEventBookingInvitation200Response.md +24 -0
  38. package/docs/RespondToEventBookingInvitationRequest.md +20 -0
  39. package/docs/SumUpApi.md +63 -0
  40. package/docs/SumUpManagerApi.md +617 -0
  41. package/docs/SumupAccountStatusResponse.md +32 -0
  42. package/docs/SumupCancelPaymentRequest.md +20 -0
  43. package/docs/SumupConnectUrlResponse.md +20 -0
  44. package/docs/SumupCreatePaymentRequest.md +32 -0
  45. package/docs/SumupOAuthCallbackResponse.md +24 -0
  46. package/docs/SumupPairReaderRequest.md +24 -0
  47. package/docs/SumupPairReaderResponse.md +20 -0
  48. package/docs/SumupReaderInfo.md +42 -0
  49. package/docs/SumupReaderInfoDevice.md +22 -0
  50. package/docs/SumupReaderResponse.md +20 -0
  51. package/docs/SumupReaderStatusInfo.md +32 -0
  52. package/docs/SumupReaderStatusResponse.md +20 -0
  53. package/docs/SumupReadersResponse.md +20 -0
  54. package/docs/SumupUpdateReaderRequest.md +22 -0
  55. package/index.ts +1 -1
  56. package/package.json +1 -1
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.231
7
+ * The version of the OpenAPI document: 1.0.233
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1761,6 +1761,83 @@ export interface CheckInPlayerResponse {
1761
1761
  */
1762
1762
  'invoice': CheckedInPlayer;
1763
1763
  }
1764
+ /**
1765
+ *
1766
+ * @export
1767
+ * @interface CheckInPlayerSumupRequest
1768
+ */
1769
+ export interface CheckInPlayerSumupRequest {
1770
+ /**
1771
+ * ID du joueur qui a payé/est arrivé
1772
+ * @type {string}
1773
+ * @memberof CheckInPlayerSumupRequest
1774
+ */
1775
+ 'playerId': string;
1776
+ /**
1777
+ * Reader SumUp ciblé (optionnel)
1778
+ * @type {string}
1779
+ * @memberof CheckInPlayerSumupRequest
1780
+ */
1781
+ 'readerId'?: string;
1782
+ }
1783
+ /**
1784
+ *
1785
+ * @export
1786
+ * @interface CheckInPlayerSumupResponse
1787
+ */
1788
+ export interface CheckInPlayerSumupResponse {
1789
+ /**
1790
+ * Message de confirmation
1791
+ * @type {string}
1792
+ * @memberof CheckInPlayerSumupResponse
1793
+ */
1794
+ 'message': string;
1795
+ /**
1796
+ *
1797
+ * @type {CheckedInPlayer}
1798
+ * @memberof CheckInPlayerSumupResponse
1799
+ */
1800
+ 'invoice': CheckedInPlayer;
1801
+ /**
1802
+ *
1803
+ * @type {CheckInSumupPaymentInfo}
1804
+ * @memberof CheckInPlayerSumupResponse
1805
+ */
1806
+ 'sumupPayment'?: CheckInSumupPaymentInfo;
1807
+ }
1808
+ /**
1809
+ *
1810
+ * @export
1811
+ * @interface CheckInSumupPaymentInfo
1812
+ */
1813
+ export interface CheckInSumupPaymentInfo {
1814
+ /**
1815
+ * ID du paiement SumUp
1816
+ * @type {string}
1817
+ * @memberof CheckInSumupPaymentInfo
1818
+ */
1819
+ 'paymentId': string;
1820
+ /**
1821
+ * ID du checkout SumUp
1822
+ * @type {string}
1823
+ * @memberof CheckInSumupPaymentInfo
1824
+ */
1825
+ 'checkoutId'?: string;
1826
+ /**
1827
+ *
1828
+ * @type {PaymentStatus}
1829
+ * @memberof CheckInSumupPaymentInfo
1830
+ */
1831
+ 'status': PaymentStatus;
1832
+ /**
1833
+ * Reader SumUp utilisé
1834
+ * @type {string}
1835
+ * @memberof CheckInSumupPaymentInfo
1836
+ */
1837
+ 'readerId'?: string;
1838
+ }
1839
+
1840
+
1764
1841
  /**
1765
1842
  *
1766
1843
  * @export
@@ -9915,6 +9992,45 @@ export interface PaymentByPlayerInfo {
9915
9992
  */
9916
9993
  'accepted': boolean;
9917
9994
  }
9995
+ /**
9996
+ *
9997
+ * @export
9998
+ * @interface PaymentIntentResult
9999
+ */
10000
+ export interface PaymentIntentResult {
10001
+ /**
10002
+ *
10003
+ * @type {string}
10004
+ * @memberof PaymentIntentResult
10005
+ */
10006
+ 'paymentId': string;
10007
+ /**
10008
+ *
10009
+ * @type {string}
10010
+ * @memberof PaymentIntentResult
10011
+ */
10012
+ 'externalId': string;
10013
+ /**
10014
+ *
10015
+ * @type {PaymentStatus}
10016
+ * @memberof PaymentIntentResult
10017
+ */
10018
+ 'status': PaymentStatus;
10019
+ /**
10020
+ *
10021
+ * @type {PaymentProviderType}
10022
+ * @memberof PaymentIntentResult
10023
+ */
10024
+ 'provider': PaymentProviderType;
10025
+ /**
10026
+ *
10027
+ * @type {string}
10028
+ * @memberof PaymentIntentResult
10029
+ */
10030
+ 'readerId'?: string;
10031
+ }
10032
+
10033
+
9918
10034
  /**
9919
10035
  *
9920
10036
  * @export
@@ -9932,6 +10048,20 @@ export const PaymentMethod = {
9932
10048
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
9933
10049
 
9934
10050
 
10051
+ /**
10052
+ *
10053
+ * @export
10054
+ * @enum {string}
10055
+ */
10056
+
10057
+ export const PaymentProviderType = {
10058
+ Stripe: 'stripe',
10059
+ Sumup: 'sumup'
10060
+ } as const;
10061
+
10062
+ export type PaymentProviderType = typeof PaymentProviderType[keyof typeof PaymentProviderType];
10063
+
10064
+
9935
10065
  /**
9936
10066
  *
9937
10067
  * @export
@@ -9951,6 +10081,22 @@ export interface PaymentRequirementsSettings {
9951
10081
  */
9952
10082
  'requireOnlinePayment': boolean;
9953
10083
  }
10084
+ /**
10085
+ *
10086
+ * @export
10087
+ * @enum {string}
10088
+ */
10089
+
10090
+ export const PaymentStatus = {
10091
+ Pending: 'pending',
10092
+ Succeeded: 'succeeded',
10093
+ Failed: 'failed',
10094
+ Cancelled: 'cancelled'
10095
+ } as const;
10096
+
10097
+ export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
10098
+
10099
+
9954
10100
  /**
9955
10101
  * From T, pick a set of properties whose keys are in the union K
9956
10102
  * @export
@@ -10708,6 +10854,12 @@ export interface PublishEventResponse {
10708
10854
  * @memberof PublishEventResponse
10709
10855
  */
10710
10856
  'needsToSetupPaymentMethod'?: boolean;
10857
+ /**
10858
+ *
10859
+ * @type {string}
10860
+ * @memberof PublishEventResponse
10861
+ */
10862
+ 'myPaymentLink'?: string;
10711
10863
  }
10712
10864
  /**
10713
10865
  *
@@ -11470,6 +11622,44 @@ export interface ResetPasswordRequest {
11470
11622
  */
11471
11623
  'token'?: string;
11472
11624
  }
11625
+ /**
11626
+ *
11627
+ * @export
11628
+ * @interface RespondToEventBookingInvitation200Response
11629
+ */
11630
+ export interface RespondToEventBookingInvitation200Response {
11631
+ /**
11632
+ *
11633
+ * @type {boolean}
11634
+ * @memberof RespondToEventBookingInvitation200Response
11635
+ */
11636
+ 'allPlayersAccepted': boolean;
11637
+ /**
11638
+ *
11639
+ * @type {string}
11640
+ * @memberof RespondToEventBookingInvitation200Response
11641
+ */
11642
+ 'eventBookingStatus': string;
11643
+ /**
11644
+ *
11645
+ * @type {string}
11646
+ * @memberof RespondToEventBookingInvitation200Response
11647
+ */
11648
+ 'message': string;
11649
+ }
11650
+ /**
11651
+ *
11652
+ * @export
11653
+ * @interface RespondToEventBookingInvitationRequest
11654
+ */
11655
+ export interface RespondToEventBookingInvitationRequest {
11656
+ /**
11657
+ *
11658
+ * @type {boolean}
11659
+ * @memberof RespondToEventBookingInvitationRequest
11660
+ */
11661
+ 'accept': boolean;
11662
+ }
11473
11663
  /**
11474
11664
  *
11475
11665
  * @export
@@ -13012,6 +13202,406 @@ export interface SubscriptionPlanResponse {
13012
13202
  }
13013
13203
 
13014
13204
 
13205
+ /**
13206
+ *
13207
+ * @export
13208
+ * @interface SumupAccountStatusResponse
13209
+ */
13210
+ export interface SumupAccountStatusResponse {
13211
+ /**
13212
+ *
13213
+ * @type {boolean}
13214
+ * @memberof SumupAccountStatusResponse
13215
+ */
13216
+ 'connected': boolean;
13217
+ /**
13218
+ *
13219
+ * @type {string}
13220
+ * @memberof SumupAccountStatusResponse
13221
+ */
13222
+ 'merchantCode'?: string;
13223
+ /**
13224
+ *
13225
+ * @type {string}
13226
+ * @memberof SumupAccountStatusResponse
13227
+ */
13228
+ 'readerId'?: string;
13229
+ /**
13230
+ *
13231
+ * @type {string}
13232
+ * @memberof SumupAccountStatusResponse
13233
+ */
13234
+ 'readerName'?: string;
13235
+ /**
13236
+ *
13237
+ * @type {string}
13238
+ * @memberof SumupAccountStatusResponse
13239
+ */
13240
+ 'readerPairedAt'?: string;
13241
+ /**
13242
+ *
13243
+ * @type {string}
13244
+ * @memberof SumupAccountStatusResponse
13245
+ */
13246
+ 'scope'?: string;
13247
+ /**
13248
+ *
13249
+ * @type {string}
13250
+ * @memberof SumupAccountStatusResponse
13251
+ */
13252
+ 'connectedAt'?: string;
13253
+ }
13254
+ /**
13255
+ *
13256
+ * @export
13257
+ * @interface SumupCancelPaymentRequest
13258
+ */
13259
+ export interface SumupCancelPaymentRequest {
13260
+ /**
13261
+ *
13262
+ * @type {string}
13263
+ * @memberof SumupCancelPaymentRequest
13264
+ */
13265
+ 'checkoutId'?: string;
13266
+ }
13267
+ /**
13268
+ *
13269
+ * @export
13270
+ * @interface SumupConnectUrlResponse
13271
+ */
13272
+ export interface SumupConnectUrlResponse {
13273
+ /**
13274
+ *
13275
+ * @type {string}
13276
+ * @memberof SumupConnectUrlResponse
13277
+ */
13278
+ 'url': string;
13279
+ }
13280
+ /**
13281
+ *
13282
+ * @export
13283
+ * @interface SumupCreatePaymentRequest
13284
+ */
13285
+ export interface SumupCreatePaymentRequest {
13286
+ /**
13287
+ *
13288
+ * @type {number}
13289
+ * @memberof SumupCreatePaymentRequest
13290
+ */
13291
+ 'amountInCents': number;
13292
+ /**
13293
+ *
13294
+ * @type {string}
13295
+ * @memberof SumupCreatePaymentRequest
13296
+ */
13297
+ 'currency': string;
13298
+ /**
13299
+ *
13300
+ * @type {string}
13301
+ * @memberof SumupCreatePaymentRequest
13302
+ */
13303
+ 'readerId'?: string;
13304
+ /**
13305
+ *
13306
+ * @type {string}
13307
+ * @memberof SumupCreatePaymentRequest
13308
+ */
13309
+ 'description'?: string;
13310
+ /**
13311
+ *
13312
+ * @type {string}
13313
+ * @memberof SumupCreatePaymentRequest
13314
+ */
13315
+ 'reference'?: string;
13316
+ /**
13317
+ * Construct a type with a set of properties K of type T
13318
+ * @type {{ [key: string]: string; }}
13319
+ * @memberof SumupCreatePaymentRequest
13320
+ */
13321
+ 'metadata'?: { [key: string]: string; };
13322
+ /**
13323
+ *
13324
+ * @type {string}
13325
+ * @memberof SumupCreatePaymentRequest
13326
+ */
13327
+ 'userId'?: string;
13328
+ }
13329
+ /**
13330
+ *
13331
+ * @export
13332
+ * @interface SumupOAuthCallbackResponse
13333
+ */
13334
+ export interface SumupOAuthCallbackResponse {
13335
+ /**
13336
+ *
13337
+ * @type {string}
13338
+ * @memberof SumupOAuthCallbackResponse
13339
+ */
13340
+ 'clubId': string;
13341
+ /**
13342
+ *
13343
+ * @type {string}
13344
+ * @memberof SumupOAuthCallbackResponse
13345
+ */
13346
+ 'merchantCode': string;
13347
+ /**
13348
+ *
13349
+ * @type {string}
13350
+ * @memberof SumupOAuthCallbackResponse
13351
+ */
13352
+ 'scope'?: string;
13353
+ }
13354
+ /**
13355
+ *
13356
+ * @export
13357
+ * @interface SumupPairReaderRequest
13358
+ */
13359
+ export interface SumupPairReaderRequest {
13360
+ /**
13361
+ *
13362
+ * @type {string}
13363
+ * @memberof SumupPairReaderRequest
13364
+ */
13365
+ 'pairingCode': string;
13366
+ /**
13367
+ *
13368
+ * @type {string}
13369
+ * @memberof SumupPairReaderRequest
13370
+ */
13371
+ 'name': string;
13372
+ /**
13373
+ * Construct a type with a set of properties K of type T
13374
+ * @type {{ [key: string]: any; }}
13375
+ * @memberof SumupPairReaderRequest
13376
+ */
13377
+ 'metadata'?: { [key: string]: any; };
13378
+ }
13379
+ /**
13380
+ *
13381
+ * @export
13382
+ * @interface SumupPairReaderResponse
13383
+ */
13384
+ export interface SumupPairReaderResponse {
13385
+ /**
13386
+ *
13387
+ * @type {SumupReaderInfo}
13388
+ * @memberof SumupPairReaderResponse
13389
+ */
13390
+ 'reader': SumupReaderInfo;
13391
+ }
13392
+ /**
13393
+ *
13394
+ * @export
13395
+ * @interface SumupReaderInfo
13396
+ */
13397
+ export interface SumupReaderInfo {
13398
+ [key: string]: any;
13399
+
13400
+ /**
13401
+ *
13402
+ * @type {string}
13403
+ * @memberof SumupReaderInfo
13404
+ */
13405
+ 'id'?: string;
13406
+ /**
13407
+ *
13408
+ * @type {string}
13409
+ * @memberof SumupReaderInfo
13410
+ */
13411
+ 'reader_id'?: string;
13412
+ /**
13413
+ *
13414
+ * @type {string}
13415
+ * @memberof SumupReaderInfo
13416
+ */
13417
+ 'serial_number'?: string;
13418
+ /**
13419
+ *
13420
+ * @type {string}
13421
+ * @memberof SumupReaderInfo
13422
+ */
13423
+ 'name'?: string;
13424
+ /**
13425
+ *
13426
+ * @type {string}
13427
+ * @memberof SumupReaderInfo
13428
+ */
13429
+ 'status'?: string;
13430
+ /**
13431
+ *
13432
+ * @type {SumupReaderInfoDevice}
13433
+ * @memberof SumupReaderInfo
13434
+ */
13435
+ 'device'?: SumupReaderInfoDevice;
13436
+ /**
13437
+ * Construct a type with a set of properties K of type T
13438
+ * @type {{ [key: string]: any; }}
13439
+ * @memberof SumupReaderInfo
13440
+ */
13441
+ 'metadata'?: { [key: string]: any; };
13442
+ /**
13443
+ *
13444
+ * @type {string}
13445
+ * @memberof SumupReaderInfo
13446
+ */
13447
+ 'created_at'?: string;
13448
+ /**
13449
+ *
13450
+ * @type {string}
13451
+ * @memberof SumupReaderInfo
13452
+ */
13453
+ 'updated_at'?: string;
13454
+ /**
13455
+ *
13456
+ * @type {string}
13457
+ * @memberof SumupReaderInfo
13458
+ */
13459
+ 'model'?: string;
13460
+ /**
13461
+ *
13462
+ * @type {string}
13463
+ * @memberof SumupReaderInfo
13464
+ */
13465
+ 'device_type'?: string;
13466
+ /**
13467
+ *
13468
+ * @type {string}
13469
+ * @memberof SumupReaderInfo
13470
+ */
13471
+ 'last_seen_at'?: string;
13472
+ }
13473
+ /**
13474
+ *
13475
+ * @export
13476
+ * @interface SumupReaderInfoDevice
13477
+ */
13478
+ export interface SumupReaderInfoDevice {
13479
+ [key: string]: any;
13480
+
13481
+ /**
13482
+ *
13483
+ * @type {string}
13484
+ * @memberof SumupReaderInfoDevice
13485
+ */
13486
+ 'model'?: string;
13487
+ /**
13488
+ *
13489
+ * @type {string}
13490
+ * @memberof SumupReaderInfoDevice
13491
+ */
13492
+ 'identifier'?: string;
13493
+ }
13494
+ /**
13495
+ *
13496
+ * @export
13497
+ * @interface SumupReaderResponse
13498
+ */
13499
+ export interface SumupReaderResponse {
13500
+ /**
13501
+ *
13502
+ * @type {SumupReaderInfo}
13503
+ * @memberof SumupReaderResponse
13504
+ */
13505
+ 'reader': SumupReaderInfo;
13506
+ }
13507
+ /**
13508
+ *
13509
+ * @export
13510
+ * @interface SumupReaderStatusInfo
13511
+ */
13512
+ export interface SumupReaderStatusInfo {
13513
+ [key: string]: any;
13514
+
13515
+ /**
13516
+ *
13517
+ * @type {number}
13518
+ * @memberof SumupReaderStatusInfo
13519
+ */
13520
+ 'battery_level'?: number;
13521
+ /**
13522
+ *
13523
+ * @type {number}
13524
+ * @memberof SumupReaderStatusInfo
13525
+ */
13526
+ 'battery_temperature'?: number;
13527
+ /**
13528
+ *
13529
+ * @type {string}
13530
+ * @memberof SumupReaderStatusInfo
13531
+ */
13532
+ 'connection_type'?: string;
13533
+ /**
13534
+ *
13535
+ * @type {string}
13536
+ * @memberof SumupReaderStatusInfo
13537
+ */
13538
+ 'firmware_version'?: string;
13539
+ /**
13540
+ *
13541
+ * @type {string}
13542
+ * @memberof SumupReaderStatusInfo
13543
+ */
13544
+ 'last_activity'?: string;
13545
+ /**
13546
+ *
13547
+ * @type {string}
13548
+ * @memberof SumupReaderStatusInfo
13549
+ */
13550
+ 'state'?: string;
13551
+ /**
13552
+ *
13553
+ * @type {string}
13554
+ * @memberof SumupReaderStatusInfo
13555
+ */
13556
+ 'status'?: string;
13557
+ }
13558
+ /**
13559
+ *
13560
+ * @export
13561
+ * @interface SumupReaderStatusResponse
13562
+ */
13563
+ export interface SumupReaderStatusResponse {
13564
+ [key: string]: any;
13565
+
13566
+ /**
13567
+ *
13568
+ * @type {SumupReaderStatusInfo}
13569
+ * @memberof SumupReaderStatusResponse
13570
+ */
13571
+ 'data'?: SumupReaderStatusInfo;
13572
+ }
13573
+ /**
13574
+ *
13575
+ * @export
13576
+ * @interface SumupReadersResponse
13577
+ */
13578
+ export interface SumupReadersResponse {
13579
+ /**
13580
+ *
13581
+ * @type {Array<SumupReaderInfo>}
13582
+ * @memberof SumupReadersResponse
13583
+ */
13584
+ 'readers': Array<SumupReaderInfo>;
13585
+ }
13586
+ /**
13587
+ *
13588
+ * @export
13589
+ * @interface SumupUpdateReaderRequest
13590
+ */
13591
+ export interface SumupUpdateReaderRequest {
13592
+ /**
13593
+ *
13594
+ * @type {string}
13595
+ * @memberof SumupUpdateReaderRequest
13596
+ */
13597
+ 'name'?: string;
13598
+ /**
13599
+ * Construct a type with a set of properties K of type T
13600
+ * @type {{ [key: string]: any; }}
13601
+ * @memberof SumupUpdateReaderRequest
13602
+ */
13603
+ 'metadata'?: { [key: string]: any; };
13604
+ }
13015
13605
  /**
13016
13606
  *
13017
13607
  * @export
@@ -17083,7 +17673,7 @@ export class BookingsManagerApi extends BaseAPI {
17083
17673
  export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
17084
17674
  return {
17085
17675
  /**
17086
- * Check-in d\'un joueur (paiement en ligne ou sur place)
17676
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
17087
17677
  * @param {string} bookingId
17088
17678
  * @param {CheckInPlayerRequest} checkInPlayerRequest
17089
17679
  * @param {*} [options] Override http request option.
@@ -17125,6 +17715,49 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
17125
17715
  options: localVarRequestOptions,
17126
17716
  };
17127
17717
  },
17718
+ /**
17719
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
17720
+ * @param {string} bookingId
17721
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
17722
+ * @param {*} [options] Override http request option.
17723
+ * @throws {RequiredError}
17724
+ */
17725
+ checkInPlayerWithSumup: async (bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17726
+ // verify required parameter 'bookingId' is not null or undefined
17727
+ assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId)
17728
+ // verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
17729
+ assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest)
17730
+ const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
17731
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
17732
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17733
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17734
+ let baseOptions;
17735
+ if (configuration) {
17736
+ baseOptions = configuration.baseOptions;
17737
+ }
17738
+
17739
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17740
+ const localVarHeaderParameter = {} as any;
17741
+ const localVarQueryParameter = {} as any;
17742
+
17743
+ // authentication bearerAuth required
17744
+ // http bearer authentication required
17745
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17746
+
17747
+
17748
+
17749
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17750
+
17751
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17752
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17753
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17754
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration)
17755
+
17756
+ return {
17757
+ url: toPathString(localVarUrlObj),
17758
+ options: localVarRequestOptions,
17759
+ };
17760
+ },
17128
17761
  /**
17129
17762
  * Créer une réservation pour un joueur depuis l\'espace staff
17130
17763
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -17418,7 +18051,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
17418
18051
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
17419
18052
  return {
17420
18053
  /**
17421
- * Check-in d\'un joueur (paiement en ligne ou sur place)
18054
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
17422
18055
  * @param {string} bookingId
17423
18056
  * @param {CheckInPlayerRequest} checkInPlayerRequest
17424
18057
  * @param {*} [options] Override http request option.
@@ -17430,6 +18063,19 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
17430
18063
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
17431
18064
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17432
18065
  },
18066
+ /**
18067
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
18068
+ * @param {string} bookingId
18069
+ * @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
18070
+ * @param {*} [options] Override http request option.
18071
+ * @throws {RequiredError}
18072
+ */
18073
+ async checkInPlayerWithSumup(bookingId: string, checkInPlayerSumupRequest: CheckInPlayerSumupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerSumupResponse>> {
18074
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
18075
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18076
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']?.[localVarOperationServerIndex]?.url;
18077
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18078
+ },
17433
18079
  /**
17434
18080
  * Créer une réservation pour un joueur depuis l\'espace staff
17435
18081
  * @param {StaffCreateBookingRequest} staffCreateBookingRequest
@@ -17529,7 +18175,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
17529
18175
  const localVarFp = BookingsStaffApiFp(configuration)
17530
18176
  return {
17531
18177
  /**
17532
- * Check-in d\'un joueur (paiement en ligne ou sur place)
18178
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
17533
18179
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
17534
18180
  * @param {*} [options] Override http request option.
17535
18181
  * @throws {RequiredError}
@@ -17537,6 +18183,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
17537
18183
  checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse> {
17538
18184
  return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
17539
18185
  },
18186
+ /**
18187
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
18188
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
18189
+ * @param {*} [options] Override http request option.
18190
+ * @throws {RequiredError}
18191
+ */
18192
+ checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerSumupResponse> {
18193
+ return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
18194
+ },
17540
18195
  /**
17541
18196
  * Créer une réservation pour un joueur depuis l\'espace staff
17542
18197
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -17624,6 +18279,27 @@ export interface BookingsStaffApiCheckInPlayerRequest {
17624
18279
  readonly checkInPlayerRequest: CheckInPlayerRequest
17625
18280
  }
17626
18281
 
18282
+ /**
18283
+ * Request parameters for checkInPlayerWithSumup operation in BookingsStaffApi.
18284
+ * @export
18285
+ * @interface BookingsStaffApiCheckInPlayerWithSumupRequest
18286
+ */
18287
+ export interface BookingsStaffApiCheckInPlayerWithSumupRequest {
18288
+ /**
18289
+ *
18290
+ * @type {string}
18291
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
18292
+ */
18293
+ readonly bookingId: string
18294
+
18295
+ /**
18296
+ *
18297
+ * @type {CheckInPlayerSumupRequest}
18298
+ * @memberof BookingsStaffApiCheckInPlayerWithSumup
18299
+ */
18300
+ readonly checkInPlayerSumupRequest: CheckInPlayerSumupRequest
18301
+ }
18302
+
17627
18303
  /**
17628
18304
  * Request parameters for createStaffBooking operation in BookingsStaffApi.
17629
18305
  * @export
@@ -17758,7 +18434,7 @@ export interface BookingsStaffApiListClubBookingsRequest {
17758
18434
  */
17759
18435
  export class BookingsStaffApi extends BaseAPI {
17760
18436
  /**
17761
- * Check-in d\'un joueur (paiement en ligne ou sur place)
18437
+ * Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
17762
18438
  * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
17763
18439
  * @param {*} [options] Override http request option.
17764
18440
  * @throws {RequiredError}
@@ -17768,6 +18444,17 @@ export class BookingsStaffApi extends BaseAPI {
17768
18444
  return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
17769
18445
  }
17770
18446
 
18447
+ /**
18448
+ * Check-in d\'un joueur avec création d\'un checkout SumUp
18449
+ * @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
18450
+ * @param {*} [options] Override http request option.
18451
+ * @throws {RequiredError}
18452
+ * @memberof BookingsStaffApi
18453
+ */
18454
+ public checkInPlayerWithSumup(requestParameters: BookingsStaffApiCheckInPlayerWithSumupRequest, options?: RawAxiosRequestConfig) {
18455
+ return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
18456
+ }
18457
+
17771
18458
  /**
17772
18459
  * Créer une réservation pour un joueur depuis l\'espace staff
17773
18460
  * @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
@@ -27654,6 +28341,49 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
27654
28341
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27655
28342
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27656
28343
 
28344
+ return {
28345
+ url: toPathString(localVarUrlObj),
28346
+ options: localVarRequestOptions,
28347
+ };
28348
+ },
28349
+ /**
28350
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
28351
+ * @param {string} eventBookingId
28352
+ * @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
28353
+ * @param {*} [options] Override http request option.
28354
+ * @throws {RequiredError}
28355
+ */
28356
+ respondToEventBookingInvitation: async (eventBookingId: string, respondToEventBookingInvitationRequest: RespondToEventBookingInvitationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28357
+ // verify required parameter 'eventBookingId' is not null or undefined
28358
+ assertParamExists('respondToEventBookingInvitation', 'eventBookingId', eventBookingId)
28359
+ // verify required parameter 'respondToEventBookingInvitationRequest' is not null or undefined
28360
+ assertParamExists('respondToEventBookingInvitation', 'respondToEventBookingInvitationRequest', respondToEventBookingInvitationRequest)
28361
+ const localVarPath = `/api/events/{eventBookingId}/respond-invitation`
28362
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
28363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28364
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28365
+ let baseOptions;
28366
+ if (configuration) {
28367
+ baseOptions = configuration.baseOptions;
28368
+ }
28369
+
28370
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28371
+ const localVarHeaderParameter = {} as any;
28372
+ const localVarQueryParameter = {} as any;
28373
+
28374
+ // authentication bearerAuth required
28375
+ // http bearer authentication required
28376
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28377
+
28378
+
28379
+
28380
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28381
+
28382
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28383
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28384
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28385
+ localVarRequestOptions.data = serializeDataIfNeeded(respondToEventBookingInvitationRequest, localVarRequestOptions, configuration)
28386
+
27657
28387
  return {
27658
28388
  url: toPathString(localVarUrlObj),
27659
28389
  options: localVarRequestOptions,
@@ -27837,6 +28567,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
27837
28567
  const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveOpenEventBooking']?.[localVarOperationServerIndex]?.url;
27838
28568
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27839
28569
  },
28570
+ /**
28571
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
28572
+ * @param {string} eventBookingId
28573
+ * @param {RespondToEventBookingInvitationRequest} respondToEventBookingInvitationRequest
28574
+ * @param {*} [options] Override http request option.
28575
+ * @throws {RequiredError}
28576
+ */
28577
+ async respondToEventBookingInvitation(eventBookingId: string, respondToEventBookingInvitationRequest: RespondToEventBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToEventBookingInvitation200Response>> {
28578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.respondToEventBookingInvitation(eventBookingId, respondToEventBookingInvitationRequest, options);
28579
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28580
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.respondToEventBookingInvitation']?.[localVarOperationServerIndex]?.url;
28581
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28582
+ },
27840
28583
  }
27841
28584
  };
27842
28585
 
@@ -27964,6 +28707,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
27964
28707
  leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
27965
28708
  return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
27966
28709
  },
28710
+ /**
28711
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
28712
+ * @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
28713
+ * @param {*} [options] Override http request option.
28714
+ * @throws {RequiredError}
28715
+ */
28716
+ respondToEventBookingInvitation(requestParameters: EventsApiRespondToEventBookingInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RespondToEventBookingInvitation200Response> {
28717
+ return localVarFp.respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(axios, basePath));
28718
+ },
27967
28719
  };
27968
28720
  };
27969
28721
 
@@ -28233,6 +28985,27 @@ export interface EventsApiLeaveOpenEventBookingRequest {
28233
28985
  readonly eventBookingId: string
28234
28986
  }
28235
28987
 
28988
+ /**
28989
+ * Request parameters for respondToEventBookingInvitation operation in EventsApi.
28990
+ * @export
28991
+ * @interface EventsApiRespondToEventBookingInvitationRequest
28992
+ */
28993
+ export interface EventsApiRespondToEventBookingInvitationRequest {
28994
+ /**
28995
+ *
28996
+ * @type {string}
28997
+ * @memberof EventsApiRespondToEventBookingInvitation
28998
+ */
28999
+ readonly eventBookingId: string
29000
+
29001
+ /**
29002
+ *
29003
+ * @type {RespondToEventBookingInvitationRequest}
29004
+ * @memberof EventsApiRespondToEventBookingInvitation
29005
+ */
29006
+ readonly respondToEventBookingInvitationRequest: RespondToEventBookingInvitationRequest
29007
+ }
29008
+
28236
29009
  /**
28237
29010
  * EventsApi - object-oriented interface
28238
29011
  * @export
@@ -28382,6 +29155,17 @@ export class EventsApi extends BaseAPI {
28382
29155
  public leaveOpenEventBooking(requestParameters: EventsApiLeaveOpenEventBookingRequest, options?: RawAxiosRequestConfig) {
28383
29156
  return EventsApiFp(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
28384
29157
  }
29158
+
29159
+ /**
29160
+ * Répondre à une invitation d\'EventBooking (accepter ou refuser)
29161
+ * @param {EventsApiRespondToEventBookingInvitationRequest} requestParameters Request parameters.
29162
+ * @param {*} [options] Override http request option.
29163
+ * @throws {RequiredError}
29164
+ * @memberof EventsApi
29165
+ */
29166
+ public respondToEventBookingInvitation(requestParameters: EventsApiRespondToEventBookingInvitationRequest, options?: RawAxiosRequestConfig) {
29167
+ return EventsApiFp(this.configuration).respondToEventBookingInvitation(requestParameters.eventBookingId, requestParameters.respondToEventBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
29168
+ }
28385
29169
  }
28386
29170
 
28387
29171
  /**
@@ -30759,6 +31543,249 @@ export class JobsApi extends BaseAPI {
30759
31543
 
30760
31544
 
30761
31545
 
31546
+ /**
31547
+ * PaymentsStaffApi - axios parameter creator
31548
+ * @export
31549
+ */
31550
+ export const PaymentsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
31551
+ return {
31552
+ /**
31553
+ * Cancel a SumUp reader checkout.
31554
+ * @param {string} clubId
31555
+ * @param {string} paymentId
31556
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
31557
+ * @param {*} [options] Override http request option.
31558
+ * @throws {RequiredError}
31559
+ */
31560
+ cancelSumupPayment: async (clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31561
+ // verify required parameter 'clubId' is not null or undefined
31562
+ assertParamExists('cancelSumupPayment', 'clubId', clubId)
31563
+ // verify required parameter 'paymentId' is not null or undefined
31564
+ assertParamExists('cancelSumupPayment', 'paymentId', paymentId)
31565
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
31566
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
31567
+ .replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
31568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31569
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31570
+ let baseOptions;
31571
+ if (configuration) {
31572
+ baseOptions = configuration.baseOptions;
31573
+ }
31574
+
31575
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
31576
+ const localVarHeaderParameter = {} as any;
31577
+ const localVarQueryParameter = {} as any;
31578
+
31579
+ // authentication bearerAuth required
31580
+ // http bearer authentication required
31581
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31582
+
31583
+
31584
+
31585
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31586
+
31587
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31588
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31589
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31590
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration)
31591
+
31592
+ return {
31593
+ url: toPathString(localVarUrlObj),
31594
+ options: localVarRequestOptions,
31595
+ };
31596
+ },
31597
+ /**
31598
+ * Start a SumUp reader checkout (manual payment trigger).
31599
+ * @param {string} clubId
31600
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
31601
+ * @param {*} [options] Override http request option.
31602
+ * @throws {RequiredError}
31603
+ */
31604
+ createSumupPayment: async (clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31605
+ // verify required parameter 'clubId' is not null or undefined
31606
+ assertParamExists('createSumupPayment', 'clubId', clubId)
31607
+ // verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
31608
+ assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest)
31609
+ const localVarPath = `/api/clubs/{clubId}/payments/sumup`
31610
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
31611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31613
+ let baseOptions;
31614
+ if (configuration) {
31615
+ baseOptions = configuration.baseOptions;
31616
+ }
31617
+
31618
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
31619
+ const localVarHeaderParameter = {} as any;
31620
+ const localVarQueryParameter = {} as any;
31621
+
31622
+ // authentication bearerAuth required
31623
+ // http bearer authentication required
31624
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31625
+
31626
+
31627
+
31628
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31629
+
31630
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31632
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31633
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration)
31634
+
31635
+ return {
31636
+ url: toPathString(localVarUrlObj),
31637
+ options: localVarRequestOptions,
31638
+ };
31639
+ },
31640
+ }
31641
+ };
31642
+
31643
+ /**
31644
+ * PaymentsStaffApi - functional programming interface
31645
+ * @export
31646
+ */
31647
+ export const PaymentsStaffApiFp = function(configuration?: Configuration) {
31648
+ const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration)
31649
+ return {
31650
+ /**
31651
+ * Cancel a SumUp reader checkout.
31652
+ * @param {string} clubId
31653
+ * @param {string} paymentId
31654
+ * @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
31655
+ * @param {*} [options] Override http request option.
31656
+ * @throws {RequiredError}
31657
+ */
31658
+ async cancelSumupPayment(clubId: string, paymentId: string, sumupCancelPaymentRequest?: SumupCancelPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
31659
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
31660
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31661
+ const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.cancelSumupPayment']?.[localVarOperationServerIndex]?.url;
31662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31663
+ },
31664
+ /**
31665
+ * Start a SumUp reader checkout (manual payment trigger).
31666
+ * @param {string} clubId
31667
+ * @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
31668
+ * @param {*} [options] Override http request option.
31669
+ * @throws {RequiredError}
31670
+ */
31671
+ async createSumupPayment(clubId: string, sumupCreatePaymentRequest: SumupCreatePaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentIntentResult>> {
31672
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
31673
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31674
+ const localVarOperationServerBasePath = operationServerMap['PaymentsStaffApi.createSumupPayment']?.[localVarOperationServerIndex]?.url;
31675
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31676
+ },
31677
+ }
31678
+ };
31679
+
31680
+ /**
31681
+ * PaymentsStaffApi - factory interface
31682
+ * @export
31683
+ */
31684
+ export const PaymentsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
31685
+ const localVarFp = PaymentsStaffApiFp(configuration)
31686
+ return {
31687
+ /**
31688
+ * Cancel a SumUp reader checkout.
31689
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
31690
+ * @param {*} [options] Override http request option.
31691
+ * @throws {RequiredError}
31692
+ */
31693
+ cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
31694
+ return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
31695
+ },
31696
+ /**
31697
+ * Start a SumUp reader checkout (manual payment trigger).
31698
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
31699
+ * @param {*} [options] Override http request option.
31700
+ * @throws {RequiredError}
31701
+ */
31702
+ createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentIntentResult> {
31703
+ return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
31704
+ },
31705
+ };
31706
+ };
31707
+
31708
+ /**
31709
+ * Request parameters for cancelSumupPayment operation in PaymentsStaffApi.
31710
+ * @export
31711
+ * @interface PaymentsStaffApiCancelSumupPaymentRequest
31712
+ */
31713
+ export interface PaymentsStaffApiCancelSumupPaymentRequest {
31714
+ /**
31715
+ *
31716
+ * @type {string}
31717
+ * @memberof PaymentsStaffApiCancelSumupPayment
31718
+ */
31719
+ readonly clubId: string
31720
+
31721
+ /**
31722
+ *
31723
+ * @type {string}
31724
+ * @memberof PaymentsStaffApiCancelSumupPayment
31725
+ */
31726
+ readonly paymentId: string
31727
+
31728
+ /**
31729
+ *
31730
+ * @type {SumupCancelPaymentRequest}
31731
+ * @memberof PaymentsStaffApiCancelSumupPayment
31732
+ */
31733
+ readonly sumupCancelPaymentRequest?: SumupCancelPaymentRequest
31734
+ }
31735
+
31736
+ /**
31737
+ * Request parameters for createSumupPayment operation in PaymentsStaffApi.
31738
+ * @export
31739
+ * @interface PaymentsStaffApiCreateSumupPaymentRequest
31740
+ */
31741
+ export interface PaymentsStaffApiCreateSumupPaymentRequest {
31742
+ /**
31743
+ *
31744
+ * @type {string}
31745
+ * @memberof PaymentsStaffApiCreateSumupPayment
31746
+ */
31747
+ readonly clubId: string
31748
+
31749
+ /**
31750
+ *
31751
+ * @type {SumupCreatePaymentRequest}
31752
+ * @memberof PaymentsStaffApiCreateSumupPayment
31753
+ */
31754
+ readonly sumupCreatePaymentRequest: SumupCreatePaymentRequest
31755
+ }
31756
+
31757
+ /**
31758
+ * PaymentsStaffApi - object-oriented interface
31759
+ * @export
31760
+ * @class PaymentsStaffApi
31761
+ * @extends {BaseAPI}
31762
+ */
31763
+ export class PaymentsStaffApi extends BaseAPI {
31764
+ /**
31765
+ * Cancel a SumUp reader checkout.
31766
+ * @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
31767
+ * @param {*} [options] Override http request option.
31768
+ * @throws {RequiredError}
31769
+ * @memberof PaymentsStaffApi
31770
+ */
31771
+ public cancelSumupPayment(requestParameters: PaymentsStaffApiCancelSumupPaymentRequest, options?: RawAxiosRequestConfig) {
31772
+ return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
31773
+ }
31774
+
31775
+ /**
31776
+ * Start a SumUp reader checkout (manual payment trigger).
31777
+ * @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
31778
+ * @param {*} [options] Override http request option.
31779
+ * @throws {RequiredError}
31780
+ * @memberof PaymentsStaffApi
31781
+ */
31782
+ public createSumupPayment(requestParameters: PaymentsStaffApiCreateSumupPaymentRequest, options?: RawAxiosRequestConfig) {
31783
+ return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
31784
+ }
31785
+ }
31786
+
31787
+
31788
+
30762
31789
  /**
30763
31790
  * PublicEmailApi - axios parameter creator
30764
31791
  * @export
@@ -32497,6 +33524,1196 @@ export class SubscriptionsUserApi extends BaseAPI {
32497
33524
 
32498
33525
 
32499
33526
 
33527
+ /**
33528
+ * SumUpApi - axios parameter creator
33529
+ * @export
33530
+ */
33531
+ export const SumUpApiAxiosParamCreator = function (configuration?: Configuration) {
33532
+ return {
33533
+ /**
33534
+ * OAuth callback for SumUp.
33535
+ * @param {string} code
33536
+ * @param {string} state
33537
+ * @param {*} [options] Override http request option.
33538
+ * @throws {RequiredError}
33539
+ */
33540
+ sumupOauthCallback: async (code: string, state: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33541
+ // verify required parameter 'code' is not null or undefined
33542
+ assertParamExists('sumupOauthCallback', 'code', code)
33543
+ // verify required parameter 'state' is not null or undefined
33544
+ assertParamExists('sumupOauthCallback', 'state', state)
33545
+ const localVarPath = `/api/sumup/oauth/callback`;
33546
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33547
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33548
+ let baseOptions;
33549
+ if (configuration) {
33550
+ baseOptions = configuration.baseOptions;
33551
+ }
33552
+
33553
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33554
+ const localVarHeaderParameter = {} as any;
33555
+ const localVarQueryParameter = {} as any;
33556
+
33557
+ if (code !== undefined) {
33558
+ localVarQueryParameter['code'] = code;
33559
+ }
33560
+
33561
+ if (state !== undefined) {
33562
+ localVarQueryParameter['state'] = state;
33563
+ }
33564
+
33565
+
33566
+
33567
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33568
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33569
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33570
+
33571
+ return {
33572
+ url: toPathString(localVarUrlObj),
33573
+ options: localVarRequestOptions,
33574
+ };
33575
+ },
33576
+ }
33577
+ };
33578
+
33579
+ /**
33580
+ * SumUpApi - functional programming interface
33581
+ * @export
33582
+ */
33583
+ export const SumUpApiFp = function(configuration?: Configuration) {
33584
+ const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration)
33585
+ return {
33586
+ /**
33587
+ * OAuth callback for SumUp.
33588
+ * @param {string} code
33589
+ * @param {string} state
33590
+ * @param {*} [options] Override http request option.
33591
+ * @throws {RequiredError}
33592
+ */
33593
+ async sumupOauthCallback(code: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupOAuthCallbackResponse>> {
33594
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
33595
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33596
+ const localVarOperationServerBasePath = operationServerMap['SumUpApi.sumupOauthCallback']?.[localVarOperationServerIndex]?.url;
33597
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33598
+ },
33599
+ }
33600
+ };
33601
+
33602
+ /**
33603
+ * SumUpApi - factory interface
33604
+ * @export
33605
+ */
33606
+ export const SumUpApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
33607
+ const localVarFp = SumUpApiFp(configuration)
33608
+ return {
33609
+ /**
33610
+ * OAuth callback for SumUp.
33611
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
33612
+ * @param {*} [options] Override http request option.
33613
+ * @throws {RequiredError}
33614
+ */
33615
+ sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupOAuthCallbackResponse> {
33616
+ return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
33617
+ },
33618
+ };
33619
+ };
33620
+
33621
+ /**
33622
+ * Request parameters for sumupOauthCallback operation in SumUpApi.
33623
+ * @export
33624
+ * @interface SumUpApiSumupOauthCallbackRequest
33625
+ */
33626
+ export interface SumUpApiSumupOauthCallbackRequest {
33627
+ /**
33628
+ *
33629
+ * @type {string}
33630
+ * @memberof SumUpApiSumupOauthCallback
33631
+ */
33632
+ readonly code: string
33633
+
33634
+ /**
33635
+ *
33636
+ * @type {string}
33637
+ * @memberof SumUpApiSumupOauthCallback
33638
+ */
33639
+ readonly state: string
33640
+ }
33641
+
33642
+ /**
33643
+ * SumUpApi - object-oriented interface
33644
+ * @export
33645
+ * @class SumUpApi
33646
+ * @extends {BaseAPI}
33647
+ */
33648
+ export class SumUpApi extends BaseAPI {
33649
+ /**
33650
+ * OAuth callback for SumUp.
33651
+ * @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
33652
+ * @param {*} [options] Override http request option.
33653
+ * @throws {RequiredError}
33654
+ * @memberof SumUpApi
33655
+ */
33656
+ public sumupOauthCallback(requestParameters: SumUpApiSumupOauthCallbackRequest, options?: RawAxiosRequestConfig) {
33657
+ return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
33658
+ }
33659
+ }
33660
+
33661
+
33662
+
33663
+ /**
33664
+ * SumUpManagerApi - axios parameter creator
33665
+ * @export
33666
+ */
33667
+ export const SumUpManagerApiAxiosParamCreator = function (configuration?: Configuration) {
33668
+ return {
33669
+ /**
33670
+ * Pair a SumUp reader with a club.
33671
+ * @param {string} clubId
33672
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
33673
+ * @param {*} [options] Override http request option.
33674
+ * @throws {RequiredError}
33675
+ */
33676
+ createSumupReader: async (clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33677
+ // verify required parameter 'clubId' is not null or undefined
33678
+ assertParamExists('createSumupReader', 'clubId', clubId)
33679
+ // verify required parameter 'sumupPairReaderRequest' is not null or undefined
33680
+ assertParamExists('createSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest)
33681
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers`
33682
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
33683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33684
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33685
+ let baseOptions;
33686
+ if (configuration) {
33687
+ baseOptions = configuration.baseOptions;
33688
+ }
33689
+
33690
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33691
+ const localVarHeaderParameter = {} as any;
33692
+ const localVarQueryParameter = {} as any;
33693
+
33694
+ // authentication bearerAuth required
33695
+ // http bearer authentication required
33696
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33697
+
33698
+
33699
+
33700
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33701
+
33702
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33703
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33704
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33705
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration)
33706
+
33707
+ return {
33708
+ url: toPathString(localVarUrlObj),
33709
+ options: localVarRequestOptions,
33710
+ };
33711
+ },
33712
+ /**
33713
+ * Delete a SumUp reader.
33714
+ * @param {string} clubId
33715
+ * @param {string} readerId
33716
+ * @param {*} [options] Override http request option.
33717
+ * @throws {RequiredError}
33718
+ */
33719
+ deleteSumupReader: async (clubId: string, readerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33720
+ // verify required parameter 'clubId' is not null or undefined
33721
+ assertParamExists('deleteSumupReader', 'clubId', clubId)
33722
+ // verify required parameter 'readerId' is not null or undefined
33723
+ assertParamExists('deleteSumupReader', 'readerId', readerId)
33724
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
33725
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
33726
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
33727
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33728
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33729
+ let baseOptions;
33730
+ if (configuration) {
33731
+ baseOptions = configuration.baseOptions;
33732
+ }
33733
+
33734
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
33735
+ const localVarHeaderParameter = {} as any;
33736
+ const localVarQueryParameter = {} as any;
33737
+
33738
+ // authentication bearerAuth required
33739
+ // http bearer authentication required
33740
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33741
+
33742
+
33743
+
33744
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33745
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33746
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33747
+
33748
+ return {
33749
+ url: toPathString(localVarUrlObj),
33750
+ options: localVarRequestOptions,
33751
+ };
33752
+ },
33753
+ /**
33754
+ * Disconnect SumUp account for a club.
33755
+ * @param {string} clubId
33756
+ * @param {*} [options] Override http request option.
33757
+ * @throws {RequiredError}
33758
+ */
33759
+ disconnectSumup: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33760
+ // verify required parameter 'clubId' is not null or undefined
33761
+ assertParamExists('disconnectSumup', 'clubId', clubId)
33762
+ const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
33763
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
33764
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33765
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33766
+ let baseOptions;
33767
+ if (configuration) {
33768
+ baseOptions = configuration.baseOptions;
33769
+ }
33770
+
33771
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33772
+ const localVarHeaderParameter = {} as any;
33773
+ const localVarQueryParameter = {} as any;
33774
+
33775
+ // authentication bearerAuth required
33776
+ // http bearer authentication required
33777
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33778
+
33779
+
33780
+
33781
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33782
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33783
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33784
+
33785
+ return {
33786
+ url: toPathString(localVarUrlObj),
33787
+ options: localVarRequestOptions,
33788
+ };
33789
+ },
33790
+ /**
33791
+ * Start SumUp OAuth connection for a club.
33792
+ * @param {string} clubId
33793
+ * @param {*} [options] Override http request option.
33794
+ * @throws {RequiredError}
33795
+ */
33796
+ getSumupConnectUrl: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33797
+ // verify required parameter 'clubId' is not null or undefined
33798
+ assertParamExists('getSumupConnectUrl', 'clubId', clubId)
33799
+ const localVarPath = `/api/clubs/{clubId}/sumup/connect`
33800
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
33801
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33802
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33803
+ let baseOptions;
33804
+ if (configuration) {
33805
+ baseOptions = configuration.baseOptions;
33806
+ }
33807
+
33808
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33809
+ const localVarHeaderParameter = {} as any;
33810
+ const localVarQueryParameter = {} as any;
33811
+
33812
+ // authentication bearerAuth required
33813
+ // http bearer authentication required
33814
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33815
+
33816
+
33817
+
33818
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33819
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33820
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33821
+
33822
+ return {
33823
+ url: toPathString(localVarUrlObj),
33824
+ options: localVarRequestOptions,
33825
+ };
33826
+ },
33827
+ /**
33828
+ * Retrieve a SumUp reader.
33829
+ * @param {string} clubId
33830
+ * @param {string} readerId
33831
+ * @param {*} [options] Override http request option.
33832
+ * @throws {RequiredError}
33833
+ */
33834
+ getSumupReader: async (clubId: string, readerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33835
+ // verify required parameter 'clubId' is not null or undefined
33836
+ assertParamExists('getSumupReader', 'clubId', clubId)
33837
+ // verify required parameter 'readerId' is not null or undefined
33838
+ assertParamExists('getSumupReader', 'readerId', readerId)
33839
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
33840
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
33841
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
33842
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33843
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33844
+ let baseOptions;
33845
+ if (configuration) {
33846
+ baseOptions = configuration.baseOptions;
33847
+ }
33848
+
33849
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33850
+ const localVarHeaderParameter = {} as any;
33851
+ const localVarQueryParameter = {} as any;
33852
+
33853
+ // authentication bearerAuth required
33854
+ // http bearer authentication required
33855
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33856
+
33857
+
33858
+
33859
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33860
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33861
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33862
+
33863
+ return {
33864
+ url: toPathString(localVarUrlObj),
33865
+ options: localVarRequestOptions,
33866
+ };
33867
+ },
33868
+ /**
33869
+ * Get SumUp reader status.
33870
+ * @param {string} clubId
33871
+ * @param {string} readerId
33872
+ * @param {*} [options] Override http request option.
33873
+ * @throws {RequiredError}
33874
+ */
33875
+ getSumupReaderStatus: async (clubId: string, readerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33876
+ // verify required parameter 'clubId' is not null or undefined
33877
+ assertParamExists('getSumupReaderStatus', 'clubId', clubId)
33878
+ // verify required parameter 'readerId' is not null or undefined
33879
+ assertParamExists('getSumupReaderStatus', 'readerId', readerId)
33880
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/status`
33881
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
33882
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
33883
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33884
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33885
+ let baseOptions;
33886
+ if (configuration) {
33887
+ baseOptions = configuration.baseOptions;
33888
+ }
33889
+
33890
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33891
+ const localVarHeaderParameter = {} as any;
33892
+ const localVarQueryParameter = {} as any;
33893
+
33894
+ // authentication bearerAuth required
33895
+ // http bearer authentication required
33896
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33897
+
33898
+
33899
+
33900
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33901
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33902
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33903
+
33904
+ return {
33905
+ url: toPathString(localVarUrlObj),
33906
+ options: localVarRequestOptions,
33907
+ };
33908
+ },
33909
+ /**
33910
+ * Get SumUp connection status for a club.
33911
+ * @param {string} clubId
33912
+ * @param {*} [options] Override http request option.
33913
+ * @throws {RequiredError}
33914
+ */
33915
+ getSumupStatus: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33916
+ // verify required parameter 'clubId' is not null or undefined
33917
+ assertParamExists('getSumupStatus', 'clubId', clubId)
33918
+ const localVarPath = `/api/clubs/{clubId}/sumup/status`
33919
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
33920
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33921
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33922
+ let baseOptions;
33923
+ if (configuration) {
33924
+ baseOptions = configuration.baseOptions;
33925
+ }
33926
+
33927
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33928
+ const localVarHeaderParameter = {} as any;
33929
+ const localVarQueryParameter = {} as any;
33930
+
33931
+ // authentication bearerAuth required
33932
+ // http bearer authentication required
33933
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33934
+
33935
+
33936
+
33937
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33938
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33939
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33940
+
33941
+ return {
33942
+ url: toPathString(localVarUrlObj),
33943
+ options: localVarRequestOptions,
33944
+ };
33945
+ },
33946
+ /**
33947
+ * List SumUp readers for a club.
33948
+ * @param {string} clubId
33949
+ * @param {*} [options] Override http request option.
33950
+ * @throws {RequiredError}
33951
+ */
33952
+ listSumupReaders: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33953
+ // verify required parameter 'clubId' is not null or undefined
33954
+ assertParamExists('listSumupReaders', 'clubId', clubId)
33955
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers`
33956
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
33957
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33958
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33959
+ let baseOptions;
33960
+ if (configuration) {
33961
+ baseOptions = configuration.baseOptions;
33962
+ }
33963
+
33964
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33965
+ const localVarHeaderParameter = {} as any;
33966
+ const localVarQueryParameter = {} as any;
33967
+
33968
+ // authentication bearerAuth required
33969
+ // http bearer authentication required
33970
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33971
+
33972
+
33973
+
33974
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33975
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33976
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33977
+
33978
+ return {
33979
+ url: toPathString(localVarUrlObj),
33980
+ options: localVarRequestOptions,
33981
+ };
33982
+ },
33983
+ /**
33984
+ * Pair a SumUp reader with a club.
33985
+ * @param {string} clubId
33986
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
33987
+ * @param {*} [options] Override http request option.
33988
+ * @throws {RequiredError}
33989
+ */
33990
+ pairSumupReader: async (clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33991
+ // verify required parameter 'clubId' is not null or undefined
33992
+ assertParamExists('pairSumupReader', 'clubId', clubId)
33993
+ // verify required parameter 'sumupPairReaderRequest' is not null or undefined
33994
+ assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest)
33995
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
33996
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
33997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33998
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33999
+ let baseOptions;
34000
+ if (configuration) {
34001
+ baseOptions = configuration.baseOptions;
34002
+ }
34003
+
34004
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34005
+ const localVarHeaderParameter = {} as any;
34006
+ const localVarQueryParameter = {} as any;
34007
+
34008
+ // authentication bearerAuth required
34009
+ // http bearer authentication required
34010
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34011
+
34012
+
34013
+
34014
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34015
+
34016
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34017
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34018
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34019
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration)
34020
+
34021
+ return {
34022
+ url: toPathString(localVarUrlObj),
34023
+ options: localVarRequestOptions,
34024
+ };
34025
+ },
34026
+ /**
34027
+ * Select a SumUp reader for a club.
34028
+ * @param {string} clubId
34029
+ * @param {string} readerId
34030
+ * @param {*} [options] Override http request option.
34031
+ * @throws {RequiredError}
34032
+ */
34033
+ selectSumupReader: async (clubId: string, readerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34034
+ // verify required parameter 'clubId' is not null or undefined
34035
+ assertParamExists('selectSumupReader', 'clubId', clubId)
34036
+ // verify required parameter 'readerId' is not null or undefined
34037
+ assertParamExists('selectSumupReader', 'readerId', readerId)
34038
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
34039
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
34040
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
34041
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34042
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34043
+ let baseOptions;
34044
+ if (configuration) {
34045
+ baseOptions = configuration.baseOptions;
34046
+ }
34047
+
34048
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34049
+ const localVarHeaderParameter = {} as any;
34050
+ const localVarQueryParameter = {} as any;
34051
+
34052
+ // authentication bearerAuth required
34053
+ // http bearer authentication required
34054
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34055
+
34056
+
34057
+
34058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34060
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34061
+
34062
+ return {
34063
+ url: toPathString(localVarUrlObj),
34064
+ options: localVarRequestOptions,
34065
+ };
34066
+ },
34067
+ /**
34068
+ * Update a SumUp reader.
34069
+ * @param {string} clubId
34070
+ * @param {string} readerId
34071
+ * @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
34072
+ * @param {*} [options] Override http request option.
34073
+ * @throws {RequiredError}
34074
+ */
34075
+ updateSumupReader: async (clubId: string, readerId: string, sumupUpdateReaderRequest: SumupUpdateReaderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34076
+ // verify required parameter 'clubId' is not null or undefined
34077
+ assertParamExists('updateSumupReader', 'clubId', clubId)
34078
+ // verify required parameter 'readerId' is not null or undefined
34079
+ assertParamExists('updateSumupReader', 'readerId', readerId)
34080
+ // verify required parameter 'sumupUpdateReaderRequest' is not null or undefined
34081
+ assertParamExists('updateSumupReader', 'sumupUpdateReaderRequest', sumupUpdateReaderRequest)
34082
+ const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}`
34083
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
34084
+ .replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
34085
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34086
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34087
+ let baseOptions;
34088
+ if (configuration) {
34089
+ baseOptions = configuration.baseOptions;
34090
+ }
34091
+
34092
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
34093
+ const localVarHeaderParameter = {} as any;
34094
+ const localVarQueryParameter = {} as any;
34095
+
34096
+ // authentication bearerAuth required
34097
+ // http bearer authentication required
34098
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34099
+
34100
+
34101
+
34102
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34103
+
34104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34106
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34107
+ localVarRequestOptions.data = serializeDataIfNeeded(sumupUpdateReaderRequest, localVarRequestOptions, configuration)
34108
+
34109
+ return {
34110
+ url: toPathString(localVarUrlObj),
34111
+ options: localVarRequestOptions,
34112
+ };
34113
+ },
34114
+ }
34115
+ };
34116
+
34117
+ /**
34118
+ * SumUpManagerApi - functional programming interface
34119
+ * @export
34120
+ */
34121
+ export const SumUpManagerApiFp = function(configuration?: Configuration) {
34122
+ const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration)
34123
+ return {
34124
+ /**
34125
+ * Pair a SumUp reader with a club.
34126
+ * @param {string} clubId
34127
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
34128
+ * @param {*} [options] Override http request option.
34129
+ * @throws {RequiredError}
34130
+ */
34131
+ async createSumupReader(clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupPairReaderResponse>> {
34132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSumupReader(clubId, sumupPairReaderRequest, options);
34133
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34134
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.createSumupReader']?.[localVarOperationServerIndex]?.url;
34135
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34136
+ },
34137
+ /**
34138
+ * Delete a SumUp reader.
34139
+ * @param {string} clubId
34140
+ * @param {string} readerId
34141
+ * @param {*} [options] Override http request option.
34142
+ * @throws {RequiredError}
34143
+ */
34144
+ async deleteSumupReader(clubId: string, readerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSumupReader(clubId, readerId, options);
34146
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34147
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.deleteSumupReader']?.[localVarOperationServerIndex]?.url;
34148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34149
+ },
34150
+ /**
34151
+ * Disconnect SumUp account for a club.
34152
+ * @param {string} clubId
34153
+ * @param {*} [options] Override http request option.
34154
+ * @throws {RequiredError}
34155
+ */
34156
+ async disconnectSumup(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34157
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disconnectSumup(clubId, options);
34158
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34159
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.disconnectSumup']?.[localVarOperationServerIndex]?.url;
34160
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34161
+ },
34162
+ /**
34163
+ * Start SumUp OAuth connection for a club.
34164
+ * @param {string} clubId
34165
+ * @param {*} [options] Override http request option.
34166
+ * @throws {RequiredError}
34167
+ */
34168
+ async getSumupConnectUrl(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupConnectUrlResponse>> {
34169
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
34170
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34171
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupConnectUrl']?.[localVarOperationServerIndex]?.url;
34172
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34173
+ },
34174
+ /**
34175
+ * Retrieve a SumUp reader.
34176
+ * @param {string} clubId
34177
+ * @param {string} readerId
34178
+ * @param {*} [options] Override http request option.
34179
+ * @throws {RequiredError}
34180
+ */
34181
+ async getSumupReader(clubId: string, readerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReaderResponse>> {
34182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupReader(clubId, readerId, options);
34183
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34184
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupReader']?.[localVarOperationServerIndex]?.url;
34185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34186
+ },
34187
+ /**
34188
+ * Get SumUp reader status.
34189
+ * @param {string} clubId
34190
+ * @param {string} readerId
34191
+ * @param {*} [options] Override http request option.
34192
+ * @throws {RequiredError}
34193
+ */
34194
+ async getSumupReaderStatus(clubId: string, readerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReaderStatusResponse>> {
34195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupReaderStatus(clubId, readerId, options);
34196
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34197
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupReaderStatus']?.[localVarOperationServerIndex]?.url;
34198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34199
+ },
34200
+ /**
34201
+ * Get SumUp connection status for a club.
34202
+ * @param {string} clubId
34203
+ * @param {*} [options] Override http request option.
34204
+ * @throws {RequiredError}
34205
+ */
34206
+ async getSumupStatus(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupAccountStatusResponse>> {
34207
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSumupStatus(clubId, options);
34208
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34209
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.getSumupStatus']?.[localVarOperationServerIndex]?.url;
34210
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34211
+ },
34212
+ /**
34213
+ * List SumUp readers for a club.
34214
+ * @param {string} clubId
34215
+ * @param {*} [options] Override http request option.
34216
+ * @throws {RequiredError}
34217
+ */
34218
+ async listSumupReaders(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReadersResponse>> {
34219
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSumupReaders(clubId, options);
34220
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34221
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.listSumupReaders']?.[localVarOperationServerIndex]?.url;
34222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34223
+ },
34224
+ /**
34225
+ * Pair a SumUp reader with a club.
34226
+ * @param {string} clubId
34227
+ * @param {SumupPairReaderRequest} sumupPairReaderRequest
34228
+ * @param {*} [options] Override http request option.
34229
+ * @throws {RequiredError}
34230
+ */
34231
+ async pairSumupReader(clubId: string, sumupPairReaderRequest: SumupPairReaderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupPairReaderResponse>> {
34232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
34233
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34234
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.pairSumupReader']?.[localVarOperationServerIndex]?.url;
34235
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34236
+ },
34237
+ /**
34238
+ * Select a SumUp reader for a club.
34239
+ * @param {string} clubId
34240
+ * @param {string} readerId
34241
+ * @param {*} [options] Override http request option.
34242
+ * @throws {RequiredError}
34243
+ */
34244
+ async selectSumupReader(clubId: string, readerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
34246
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34247
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.selectSumupReader']?.[localVarOperationServerIndex]?.url;
34248
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34249
+ },
34250
+ /**
34251
+ * Update a SumUp reader.
34252
+ * @param {string} clubId
34253
+ * @param {string} readerId
34254
+ * @param {SumupUpdateReaderRequest} sumupUpdateReaderRequest
34255
+ * @param {*} [options] Override http request option.
34256
+ * @throws {RequiredError}
34257
+ */
34258
+ async updateSumupReader(clubId: string, readerId: string, sumupUpdateReaderRequest: SumupUpdateReaderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SumupReaderResponse>> {
34259
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSumupReader(clubId, readerId, sumupUpdateReaderRequest, options);
34260
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34261
+ const localVarOperationServerBasePath = operationServerMap['SumUpManagerApi.updateSumupReader']?.[localVarOperationServerIndex]?.url;
34262
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34263
+ },
34264
+ }
34265
+ };
34266
+
34267
+ /**
34268
+ * SumUpManagerApi - factory interface
34269
+ * @export
34270
+ */
34271
+ export const SumUpManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34272
+ const localVarFp = SumUpManagerApiFp(configuration)
34273
+ return {
34274
+ /**
34275
+ * Pair a SumUp reader with a club.
34276
+ * @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
34277
+ * @param {*} [options] Override http request option.
34278
+ * @throws {RequiredError}
34279
+ */
34280
+ createSumupReader(requestParameters: SumUpManagerApiCreateSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupPairReaderResponse> {
34281
+ return localVarFp.createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
34282
+ },
34283
+ /**
34284
+ * Delete a SumUp reader.
34285
+ * @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
34286
+ * @param {*} [options] Override http request option.
34287
+ * @throws {RequiredError}
34288
+ */
34289
+ deleteSumupReader(requestParameters: SumUpManagerApiDeleteSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34290
+ return localVarFp.deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
34291
+ },
34292
+ /**
34293
+ * Disconnect SumUp account for a club.
34294
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
34295
+ * @param {*} [options] Override http request option.
34296
+ * @throws {RequiredError}
34297
+ */
34298
+ disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34299
+ return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
34300
+ },
34301
+ /**
34302
+ * Start SumUp OAuth connection for a club.
34303
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
34304
+ * @param {*} [options] Override http request option.
34305
+ * @throws {RequiredError}
34306
+ */
34307
+ getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupConnectUrlResponse> {
34308
+ return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
34309
+ },
34310
+ /**
34311
+ * Retrieve a SumUp reader.
34312
+ * @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
34313
+ * @param {*} [options] Override http request option.
34314
+ * @throws {RequiredError}
34315
+ */
34316
+ getSumupReader(requestParameters: SumUpManagerApiGetSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReaderResponse> {
34317
+ return localVarFp.getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
34318
+ },
34319
+ /**
34320
+ * Get SumUp reader status.
34321
+ * @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
34322
+ * @param {*} [options] Override http request option.
34323
+ * @throws {RequiredError}
34324
+ */
34325
+ getSumupReaderStatus(requestParameters: SumUpManagerApiGetSumupReaderStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReaderStatusResponse> {
34326
+ return localVarFp.getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
34327
+ },
34328
+ /**
34329
+ * Get SumUp connection status for a club.
34330
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
34331
+ * @param {*} [options] Override http request option.
34332
+ * @throws {RequiredError}
34333
+ */
34334
+ getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupAccountStatusResponse> {
34335
+ return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
34336
+ },
34337
+ /**
34338
+ * List SumUp readers for a club.
34339
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
34340
+ * @param {*} [options] Override http request option.
34341
+ * @throws {RequiredError}
34342
+ */
34343
+ listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReadersResponse> {
34344
+ return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
34345
+ },
34346
+ /**
34347
+ * Pair a SumUp reader with a club.
34348
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
34349
+ * @param {*} [options] Override http request option.
34350
+ * @throws {RequiredError}
34351
+ */
34352
+ pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupPairReaderResponse> {
34353
+ return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
34354
+ },
34355
+ /**
34356
+ * Select a SumUp reader for a club.
34357
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
34358
+ * @param {*} [options] Override http request option.
34359
+ * @throws {RequiredError}
34360
+ */
34361
+ selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34362
+ return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
34363
+ },
34364
+ /**
34365
+ * Update a SumUp reader.
34366
+ * @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
34367
+ * @param {*} [options] Override http request option.
34368
+ * @throws {RequiredError}
34369
+ */
34370
+ updateSumupReader(requestParameters: SumUpManagerApiUpdateSumupReaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<SumupReaderResponse> {
34371
+ return localVarFp.updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(axios, basePath));
34372
+ },
34373
+ };
34374
+ };
34375
+
34376
+ /**
34377
+ * Request parameters for createSumupReader operation in SumUpManagerApi.
34378
+ * @export
34379
+ * @interface SumUpManagerApiCreateSumupReaderRequest
34380
+ */
34381
+ export interface SumUpManagerApiCreateSumupReaderRequest {
34382
+ /**
34383
+ *
34384
+ * @type {string}
34385
+ * @memberof SumUpManagerApiCreateSumupReader
34386
+ */
34387
+ readonly clubId: string
34388
+
34389
+ /**
34390
+ *
34391
+ * @type {SumupPairReaderRequest}
34392
+ * @memberof SumUpManagerApiCreateSumupReader
34393
+ */
34394
+ readonly sumupPairReaderRequest: SumupPairReaderRequest
34395
+ }
34396
+
34397
+ /**
34398
+ * Request parameters for deleteSumupReader operation in SumUpManagerApi.
34399
+ * @export
34400
+ * @interface SumUpManagerApiDeleteSumupReaderRequest
34401
+ */
34402
+ export interface SumUpManagerApiDeleteSumupReaderRequest {
34403
+ /**
34404
+ *
34405
+ * @type {string}
34406
+ * @memberof SumUpManagerApiDeleteSumupReader
34407
+ */
34408
+ readonly clubId: string
34409
+
34410
+ /**
34411
+ *
34412
+ * @type {string}
34413
+ * @memberof SumUpManagerApiDeleteSumupReader
34414
+ */
34415
+ readonly readerId: string
34416
+ }
34417
+
34418
+ /**
34419
+ * Request parameters for disconnectSumup operation in SumUpManagerApi.
34420
+ * @export
34421
+ * @interface SumUpManagerApiDisconnectSumupRequest
34422
+ */
34423
+ export interface SumUpManagerApiDisconnectSumupRequest {
34424
+ /**
34425
+ *
34426
+ * @type {string}
34427
+ * @memberof SumUpManagerApiDisconnectSumup
34428
+ */
34429
+ readonly clubId: string
34430
+ }
34431
+
34432
+ /**
34433
+ * Request parameters for getSumupConnectUrl operation in SumUpManagerApi.
34434
+ * @export
34435
+ * @interface SumUpManagerApiGetSumupConnectUrlRequest
34436
+ */
34437
+ export interface SumUpManagerApiGetSumupConnectUrlRequest {
34438
+ /**
34439
+ *
34440
+ * @type {string}
34441
+ * @memberof SumUpManagerApiGetSumupConnectUrl
34442
+ */
34443
+ readonly clubId: string
34444
+ }
34445
+
34446
+ /**
34447
+ * Request parameters for getSumupReader operation in SumUpManagerApi.
34448
+ * @export
34449
+ * @interface SumUpManagerApiGetSumupReaderRequest
34450
+ */
34451
+ export interface SumUpManagerApiGetSumupReaderRequest {
34452
+ /**
34453
+ *
34454
+ * @type {string}
34455
+ * @memberof SumUpManagerApiGetSumupReader
34456
+ */
34457
+ readonly clubId: string
34458
+
34459
+ /**
34460
+ *
34461
+ * @type {string}
34462
+ * @memberof SumUpManagerApiGetSumupReader
34463
+ */
34464
+ readonly readerId: string
34465
+ }
34466
+
34467
+ /**
34468
+ * Request parameters for getSumupReaderStatus operation in SumUpManagerApi.
34469
+ * @export
34470
+ * @interface SumUpManagerApiGetSumupReaderStatusRequest
34471
+ */
34472
+ export interface SumUpManagerApiGetSumupReaderStatusRequest {
34473
+ /**
34474
+ *
34475
+ * @type {string}
34476
+ * @memberof SumUpManagerApiGetSumupReaderStatus
34477
+ */
34478
+ readonly clubId: string
34479
+
34480
+ /**
34481
+ *
34482
+ * @type {string}
34483
+ * @memberof SumUpManagerApiGetSumupReaderStatus
34484
+ */
34485
+ readonly readerId: string
34486
+ }
34487
+
34488
+ /**
34489
+ * Request parameters for getSumupStatus operation in SumUpManagerApi.
34490
+ * @export
34491
+ * @interface SumUpManagerApiGetSumupStatusRequest
34492
+ */
34493
+ export interface SumUpManagerApiGetSumupStatusRequest {
34494
+ /**
34495
+ *
34496
+ * @type {string}
34497
+ * @memberof SumUpManagerApiGetSumupStatus
34498
+ */
34499
+ readonly clubId: string
34500
+ }
34501
+
34502
+ /**
34503
+ * Request parameters for listSumupReaders operation in SumUpManagerApi.
34504
+ * @export
34505
+ * @interface SumUpManagerApiListSumupReadersRequest
34506
+ */
34507
+ export interface SumUpManagerApiListSumupReadersRequest {
34508
+ /**
34509
+ *
34510
+ * @type {string}
34511
+ * @memberof SumUpManagerApiListSumupReaders
34512
+ */
34513
+ readonly clubId: string
34514
+ }
34515
+
34516
+ /**
34517
+ * Request parameters for pairSumupReader operation in SumUpManagerApi.
34518
+ * @export
34519
+ * @interface SumUpManagerApiPairSumupReaderRequest
34520
+ */
34521
+ export interface SumUpManagerApiPairSumupReaderRequest {
34522
+ /**
34523
+ *
34524
+ * @type {string}
34525
+ * @memberof SumUpManagerApiPairSumupReader
34526
+ */
34527
+ readonly clubId: string
34528
+
34529
+ /**
34530
+ *
34531
+ * @type {SumupPairReaderRequest}
34532
+ * @memberof SumUpManagerApiPairSumupReader
34533
+ */
34534
+ readonly sumupPairReaderRequest: SumupPairReaderRequest
34535
+ }
34536
+
34537
+ /**
34538
+ * Request parameters for selectSumupReader operation in SumUpManagerApi.
34539
+ * @export
34540
+ * @interface SumUpManagerApiSelectSumupReaderRequest
34541
+ */
34542
+ export interface SumUpManagerApiSelectSumupReaderRequest {
34543
+ /**
34544
+ *
34545
+ * @type {string}
34546
+ * @memberof SumUpManagerApiSelectSumupReader
34547
+ */
34548
+ readonly clubId: string
34549
+
34550
+ /**
34551
+ *
34552
+ * @type {string}
34553
+ * @memberof SumUpManagerApiSelectSumupReader
34554
+ */
34555
+ readonly readerId: string
34556
+ }
34557
+
34558
+ /**
34559
+ * Request parameters for updateSumupReader operation in SumUpManagerApi.
34560
+ * @export
34561
+ * @interface SumUpManagerApiUpdateSumupReaderRequest
34562
+ */
34563
+ export interface SumUpManagerApiUpdateSumupReaderRequest {
34564
+ /**
34565
+ *
34566
+ * @type {string}
34567
+ * @memberof SumUpManagerApiUpdateSumupReader
34568
+ */
34569
+ readonly clubId: string
34570
+
34571
+ /**
34572
+ *
34573
+ * @type {string}
34574
+ * @memberof SumUpManagerApiUpdateSumupReader
34575
+ */
34576
+ readonly readerId: string
34577
+
34578
+ /**
34579
+ *
34580
+ * @type {SumupUpdateReaderRequest}
34581
+ * @memberof SumUpManagerApiUpdateSumupReader
34582
+ */
34583
+ readonly sumupUpdateReaderRequest: SumupUpdateReaderRequest
34584
+ }
34585
+
34586
+ /**
34587
+ * SumUpManagerApi - object-oriented interface
34588
+ * @export
34589
+ * @class SumUpManagerApi
34590
+ * @extends {BaseAPI}
34591
+ */
34592
+ export class SumUpManagerApi extends BaseAPI {
34593
+ /**
34594
+ * Pair a SumUp reader with a club.
34595
+ * @param {SumUpManagerApiCreateSumupReaderRequest} requestParameters Request parameters.
34596
+ * @param {*} [options] Override http request option.
34597
+ * @throws {RequiredError}
34598
+ * @memberof SumUpManagerApi
34599
+ */
34600
+ public createSumupReader(requestParameters: SumUpManagerApiCreateSumupReaderRequest, options?: RawAxiosRequestConfig) {
34601
+ return SumUpManagerApiFp(this.configuration).createSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
34602
+ }
34603
+
34604
+ /**
34605
+ * Delete a SumUp reader.
34606
+ * @param {SumUpManagerApiDeleteSumupReaderRequest} requestParameters Request parameters.
34607
+ * @param {*} [options] Override http request option.
34608
+ * @throws {RequiredError}
34609
+ * @memberof SumUpManagerApi
34610
+ */
34611
+ public deleteSumupReader(requestParameters: SumUpManagerApiDeleteSumupReaderRequest, options?: RawAxiosRequestConfig) {
34612
+ return SumUpManagerApiFp(this.configuration).deleteSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
34613
+ }
34614
+
34615
+ /**
34616
+ * Disconnect SumUp account for a club.
34617
+ * @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
34618
+ * @param {*} [options] Override http request option.
34619
+ * @throws {RequiredError}
34620
+ * @memberof SumUpManagerApi
34621
+ */
34622
+ public disconnectSumup(requestParameters: SumUpManagerApiDisconnectSumupRequest, options?: RawAxiosRequestConfig) {
34623
+ return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
34624
+ }
34625
+
34626
+ /**
34627
+ * Start SumUp OAuth connection for a club.
34628
+ * @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
34629
+ * @param {*} [options] Override http request option.
34630
+ * @throws {RequiredError}
34631
+ * @memberof SumUpManagerApi
34632
+ */
34633
+ public getSumupConnectUrl(requestParameters: SumUpManagerApiGetSumupConnectUrlRequest, options?: RawAxiosRequestConfig) {
34634
+ return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
34635
+ }
34636
+
34637
+ /**
34638
+ * Retrieve a SumUp reader.
34639
+ * @param {SumUpManagerApiGetSumupReaderRequest} requestParameters Request parameters.
34640
+ * @param {*} [options] Override http request option.
34641
+ * @throws {RequiredError}
34642
+ * @memberof SumUpManagerApi
34643
+ */
34644
+ public getSumupReader(requestParameters: SumUpManagerApiGetSumupReaderRequest, options?: RawAxiosRequestConfig) {
34645
+ return SumUpManagerApiFp(this.configuration).getSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
34646
+ }
34647
+
34648
+ /**
34649
+ * Get SumUp reader status.
34650
+ * @param {SumUpManagerApiGetSumupReaderStatusRequest} requestParameters Request parameters.
34651
+ * @param {*} [options] Override http request option.
34652
+ * @throws {RequiredError}
34653
+ * @memberof SumUpManagerApi
34654
+ */
34655
+ public getSumupReaderStatus(requestParameters: SumUpManagerApiGetSumupReaderStatusRequest, options?: RawAxiosRequestConfig) {
34656
+ return SumUpManagerApiFp(this.configuration).getSumupReaderStatus(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
34657
+ }
34658
+
34659
+ /**
34660
+ * Get SumUp connection status for a club.
34661
+ * @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
34662
+ * @param {*} [options] Override http request option.
34663
+ * @throws {RequiredError}
34664
+ * @memberof SumUpManagerApi
34665
+ */
34666
+ public getSumupStatus(requestParameters: SumUpManagerApiGetSumupStatusRequest, options?: RawAxiosRequestConfig) {
34667
+ return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
34668
+ }
34669
+
34670
+ /**
34671
+ * List SumUp readers for a club.
34672
+ * @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
34673
+ * @param {*} [options] Override http request option.
34674
+ * @throws {RequiredError}
34675
+ * @memberof SumUpManagerApi
34676
+ */
34677
+ public listSumupReaders(requestParameters: SumUpManagerApiListSumupReadersRequest, options?: RawAxiosRequestConfig) {
34678
+ return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
34679
+ }
34680
+
34681
+ /**
34682
+ * Pair a SumUp reader with a club.
34683
+ * @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
34684
+ * @param {*} [options] Override http request option.
34685
+ * @throws {RequiredError}
34686
+ * @memberof SumUpManagerApi
34687
+ */
34688
+ public pairSumupReader(requestParameters: SumUpManagerApiPairSumupReaderRequest, options?: RawAxiosRequestConfig) {
34689
+ return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
34690
+ }
34691
+
34692
+ /**
34693
+ * Select a SumUp reader for a club.
34694
+ * @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
34695
+ * @param {*} [options] Override http request option.
34696
+ * @throws {RequiredError}
34697
+ * @memberof SumUpManagerApi
34698
+ */
34699
+ public selectSumupReader(requestParameters: SumUpManagerApiSelectSumupReaderRequest, options?: RawAxiosRequestConfig) {
34700
+ return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
34701
+ }
34702
+
34703
+ /**
34704
+ * Update a SumUp reader.
34705
+ * @param {SumUpManagerApiUpdateSumupReaderRequest} requestParameters Request parameters.
34706
+ * @param {*} [options] Override http request option.
34707
+ * @throws {RequiredError}
34708
+ * @memberof SumUpManagerApi
34709
+ */
34710
+ public updateSumupReader(requestParameters: SumUpManagerApiUpdateSumupReaderRequest, options?: RawAxiosRequestConfig) {
34711
+ return SumUpManagerApiFp(this.configuration).updateSumupReader(requestParameters.clubId, requestParameters.readerId, requestParameters.sumupUpdateReaderRequest, options).then((request) => request(this.axios, this.basePath));
34712
+ }
34713
+ }
34714
+
34715
+
34716
+
32500
34717
  /**
32501
34718
  * UserApi - axios parameter creator
32502
34719
  * @export