@tennac-booking/sdk 1.0.244 → 1.0.246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -0
- package/README.md +12 -0
- package/api.ts +781 -2
- package/dist/api.d.ts +593 -2
- package/dist/api.js +319 -5
- package/dist/esm/api.d.ts +593 -2
- package/dist/esm/api.js +310 -0
- package/docs/CancelIncompleteBody.md +22 -0
- package/docs/CancelIncompleteResponse.md +24 -0
- package/docs/EventBookingDetailClubInfo.md +26 -0
- package/docs/EventBookingDetailEventSummary.md +56 -0
- package/docs/EventBookingDetailResponse.md +28 -0
- package/docs/EventBookingDetailResponseBooking.md +38 -0
- package/docs/MobilePaymentSheetBody.md +24 -0
- package/docs/MyClubCustomerSettingsResponse.md +32 -0
- package/docs/SubscriptionPaymentSheetResponse.md +4 -1
- package/docs/SubscriptionsMobileApi.md +117 -0
- package/docs/UserApi.md +54 -0
- package/docs/UsersApi.md +51 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1556,6 +1556,50 @@ export interface CancelBookingResponse {
|
|
|
1556
1556
|
*/
|
|
1557
1557
|
'booking': BookingInfo;
|
|
1558
1558
|
}
|
|
1559
|
+
/**
|
|
1560
|
+
*
|
|
1561
|
+
* @export
|
|
1562
|
+
* @interface CancelIncompleteBody
|
|
1563
|
+
*/
|
|
1564
|
+
export interface CancelIncompleteBody {
|
|
1565
|
+
/**
|
|
1566
|
+
*
|
|
1567
|
+
* @type {string}
|
|
1568
|
+
* @memberof CancelIncompleteBody
|
|
1569
|
+
*/
|
|
1570
|
+
'subscriptionId': string;
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
* @type {string}
|
|
1574
|
+
* @memberof CancelIncompleteBody
|
|
1575
|
+
*/
|
|
1576
|
+
'clubId': string;
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
*
|
|
1580
|
+
* @export
|
|
1581
|
+
* @interface CancelIncompleteResponse
|
|
1582
|
+
*/
|
|
1583
|
+
export interface CancelIncompleteResponse {
|
|
1584
|
+
/**
|
|
1585
|
+
*
|
|
1586
|
+
* @type {string}
|
|
1587
|
+
* @memberof CancelIncompleteResponse
|
|
1588
|
+
*/
|
|
1589
|
+
'subscriptionId'?: string;
|
|
1590
|
+
/**
|
|
1591
|
+
*
|
|
1592
|
+
* @type {string}
|
|
1593
|
+
* @memberof CancelIncompleteResponse
|
|
1594
|
+
*/
|
|
1595
|
+
'status'?: string;
|
|
1596
|
+
/**
|
|
1597
|
+
*
|
|
1598
|
+
* @type {boolean}
|
|
1599
|
+
* @memberof CancelIncompleteResponse
|
|
1600
|
+
*/
|
|
1601
|
+
'canceled': boolean;
|
|
1602
|
+
}
|
|
1559
1603
|
/**
|
|
1560
1604
|
*
|
|
1561
1605
|
* @export
|
|
@@ -5863,6 +5907,286 @@ export interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo {
|
|
|
5863
5907
|
*/
|
|
5864
5908
|
'hasSubscription': boolean;
|
|
5865
5909
|
}
|
|
5910
|
+
/**
|
|
5911
|
+
*
|
|
5912
|
+
* @export
|
|
5913
|
+
* @interface EventBookingDetailClubInfo
|
|
5914
|
+
*/
|
|
5915
|
+
export interface EventBookingDetailClubInfo {
|
|
5916
|
+
/**
|
|
5917
|
+
*
|
|
5918
|
+
* @type {string}
|
|
5919
|
+
* @memberof EventBookingDetailClubInfo
|
|
5920
|
+
*/
|
|
5921
|
+
'id': string;
|
|
5922
|
+
/**
|
|
5923
|
+
*
|
|
5924
|
+
* @type {string}
|
|
5925
|
+
* @memberof EventBookingDetailClubInfo
|
|
5926
|
+
*/
|
|
5927
|
+
'name'?: string | null;
|
|
5928
|
+
/**
|
|
5929
|
+
*
|
|
5930
|
+
* @type {string}
|
|
5931
|
+
* @memberof EventBookingDetailClubInfo
|
|
5932
|
+
*/
|
|
5933
|
+
'picture'?: string | null;
|
|
5934
|
+
/**
|
|
5935
|
+
*
|
|
5936
|
+
* @type {string}
|
|
5937
|
+
* @memberof EventBookingDetailClubInfo
|
|
5938
|
+
*/
|
|
5939
|
+
'address'?: string | null;
|
|
5940
|
+
}
|
|
5941
|
+
/**
|
|
5942
|
+
*
|
|
5943
|
+
* @export
|
|
5944
|
+
* @interface EventBookingDetailEventSummary
|
|
5945
|
+
*/
|
|
5946
|
+
export interface EventBookingDetailEventSummary {
|
|
5947
|
+
/**
|
|
5948
|
+
*
|
|
5949
|
+
* @type {string}
|
|
5950
|
+
* @memberof EventBookingDetailEventSummary
|
|
5951
|
+
*/
|
|
5952
|
+
'id': string;
|
|
5953
|
+
/**
|
|
5954
|
+
*
|
|
5955
|
+
* @type {string}
|
|
5956
|
+
* @memberof EventBookingDetailEventSummary
|
|
5957
|
+
*/
|
|
5958
|
+
'clubId': string;
|
|
5959
|
+
/**
|
|
5960
|
+
*
|
|
5961
|
+
* @type {string}
|
|
5962
|
+
* @memberof EventBookingDetailEventSummary
|
|
5963
|
+
*/
|
|
5964
|
+
'type': EventBookingDetailEventSummaryTypeEnum;
|
|
5965
|
+
/**
|
|
5966
|
+
*
|
|
5967
|
+
* @type {string}
|
|
5968
|
+
* @memberof EventBookingDetailEventSummary
|
|
5969
|
+
*/
|
|
5970
|
+
'title': string;
|
|
5971
|
+
/**
|
|
5972
|
+
*
|
|
5973
|
+
* @type {string}
|
|
5974
|
+
* @memberof EventBookingDetailEventSummary
|
|
5975
|
+
*/
|
|
5976
|
+
'category'?: string;
|
|
5977
|
+
/**
|
|
5978
|
+
*
|
|
5979
|
+
* @type {string}
|
|
5980
|
+
* @memberof EventBookingDetailEventSummary
|
|
5981
|
+
*/
|
|
5982
|
+
'description'?: string;
|
|
5983
|
+
/**
|
|
5984
|
+
*
|
|
5985
|
+
* @type {string}
|
|
5986
|
+
* @memberof EventBookingDetailEventSummary
|
|
5987
|
+
*/
|
|
5988
|
+
'photoUrl'?: string;
|
|
5989
|
+
/**
|
|
5990
|
+
*
|
|
5991
|
+
* @type {boolean}
|
|
5992
|
+
* @memberof EventBookingDetailEventSummary
|
|
5993
|
+
*/
|
|
5994
|
+
'isAllDay': boolean;
|
|
5995
|
+
/**
|
|
5996
|
+
*
|
|
5997
|
+
* @type {string}
|
|
5998
|
+
* @memberof EventBookingDetailEventSummary
|
|
5999
|
+
*/
|
|
6000
|
+
'date': string;
|
|
6001
|
+
/**
|
|
6002
|
+
*
|
|
6003
|
+
* @type {number}
|
|
6004
|
+
* @memberof EventBookingDetailEventSummary
|
|
6005
|
+
*/
|
|
6006
|
+
'startTime'?: number;
|
|
6007
|
+
/**
|
|
6008
|
+
*
|
|
6009
|
+
* @type {number}
|
|
6010
|
+
* @memberof EventBookingDetailEventSummary
|
|
6011
|
+
*/
|
|
6012
|
+
'endTime'?: number;
|
|
6013
|
+
/**
|
|
6014
|
+
*
|
|
6015
|
+
* @type {Array<string>}
|
|
6016
|
+
* @memberof EventBookingDetailEventSummary
|
|
6017
|
+
*/
|
|
6018
|
+
'courts': Array<string>;
|
|
6019
|
+
/**
|
|
6020
|
+
*
|
|
6021
|
+
* @type {Array<SportWithLevels>}
|
|
6022
|
+
* @memberof EventBookingDetailEventSummary
|
|
6023
|
+
*/
|
|
6024
|
+
'sports': Array<SportWithLevels>;
|
|
6025
|
+
/**
|
|
6026
|
+
*
|
|
6027
|
+
* @type {string}
|
|
6028
|
+
* @memberof EventBookingDetailEventSummary
|
|
6029
|
+
*/
|
|
6030
|
+
'recurringType': EventBookingDetailEventSummaryRecurringTypeEnum;
|
|
6031
|
+
/**
|
|
6032
|
+
*
|
|
6033
|
+
* @type {string}
|
|
6034
|
+
* @memberof EventBookingDetailEventSummary
|
|
6035
|
+
*/
|
|
6036
|
+
'recurrenceEndDate'?: string;
|
|
6037
|
+
/**
|
|
6038
|
+
*
|
|
6039
|
+
* @type {string}
|
|
6040
|
+
* @memberof EventBookingDetailEventSummary
|
|
6041
|
+
*/
|
|
6042
|
+
'participationType': EventBookingDetailEventSummaryParticipationTypeEnum;
|
|
6043
|
+
/**
|
|
6044
|
+
*
|
|
6045
|
+
* @type {number}
|
|
6046
|
+
* @memberof EventBookingDetailEventSummary
|
|
6047
|
+
*/
|
|
6048
|
+
'playersPerTeam'?: number;
|
|
6049
|
+
/**
|
|
6050
|
+
*
|
|
6051
|
+
* @type {Array<string | null>}
|
|
6052
|
+
* @memberof EventBookingDetailEventSummary
|
|
6053
|
+
*/
|
|
6054
|
+
'levels'?: Array<string | null>;
|
|
6055
|
+
/**
|
|
6056
|
+
*
|
|
6057
|
+
* @type {Array<EventSponsor>}
|
|
6058
|
+
* @memberof EventBookingDetailEventSummary
|
|
6059
|
+
*/
|
|
6060
|
+
'sponsors'?: Array<EventSponsor>;
|
|
6061
|
+
}
|
|
6062
|
+
|
|
6063
|
+
export const EventBookingDetailEventSummaryTypeEnum = {
|
|
6064
|
+
Event: 'event',
|
|
6065
|
+
Closure: 'closure'
|
|
6066
|
+
} as const;
|
|
6067
|
+
|
|
6068
|
+
export type EventBookingDetailEventSummaryTypeEnum = typeof EventBookingDetailEventSummaryTypeEnum[keyof typeof EventBookingDetailEventSummaryTypeEnum];
|
|
6069
|
+
export const EventBookingDetailEventSummaryRecurringTypeEnum = {
|
|
6070
|
+
Unique: 'unique',
|
|
6071
|
+
Daily: 'daily',
|
|
6072
|
+
Weekly: 'weekly',
|
|
6073
|
+
Monthly: 'monthly'
|
|
6074
|
+
} as const;
|
|
6075
|
+
|
|
6076
|
+
export type EventBookingDetailEventSummaryRecurringTypeEnum = typeof EventBookingDetailEventSummaryRecurringTypeEnum[keyof typeof EventBookingDetailEventSummaryRecurringTypeEnum];
|
|
6077
|
+
export const EventBookingDetailEventSummaryParticipationTypeEnum = {
|
|
6078
|
+
Solo: 'solo',
|
|
6079
|
+
Team: 'team'
|
|
6080
|
+
} as const;
|
|
6081
|
+
|
|
6082
|
+
export type EventBookingDetailEventSummaryParticipationTypeEnum = typeof EventBookingDetailEventSummaryParticipationTypeEnum[keyof typeof EventBookingDetailEventSummaryParticipationTypeEnum];
|
|
6083
|
+
|
|
6084
|
+
/**
|
|
6085
|
+
*
|
|
6086
|
+
* @export
|
|
6087
|
+
* @interface EventBookingDetailResponse
|
|
6088
|
+
*/
|
|
6089
|
+
export interface EventBookingDetailResponse {
|
|
6090
|
+
/**
|
|
6091
|
+
*
|
|
6092
|
+
* @type {EventBookingDetailClubInfo}
|
|
6093
|
+
* @memberof EventBookingDetailResponse
|
|
6094
|
+
*/
|
|
6095
|
+
'club': EventBookingDetailClubInfo;
|
|
6096
|
+
/**
|
|
6097
|
+
*
|
|
6098
|
+
* @type {EventBookingDetailEventSummary}
|
|
6099
|
+
* @memberof EventBookingDetailResponse
|
|
6100
|
+
*/
|
|
6101
|
+
'event': EventBookingDetailEventSummary;
|
|
6102
|
+
/**
|
|
6103
|
+
*
|
|
6104
|
+
* @type {EventBookingDetailResponseBooking}
|
|
6105
|
+
* @memberof EventBookingDetailResponse
|
|
6106
|
+
*/
|
|
6107
|
+
'booking': EventBookingDetailResponseBooking;
|
|
6108
|
+
/**
|
|
6109
|
+
*
|
|
6110
|
+
* @type {Array<BookingPlayerPaymentSummary>}
|
|
6111
|
+
* @memberof EventBookingDetailResponse
|
|
6112
|
+
*/
|
|
6113
|
+
'players': Array<BookingPlayerPaymentSummary>;
|
|
6114
|
+
/**
|
|
6115
|
+
*
|
|
6116
|
+
* @type {Array<BookingHistoryPopulated>}
|
|
6117
|
+
* @memberof EventBookingDetailResponse
|
|
6118
|
+
*/
|
|
6119
|
+
'history': Array<BookingHistoryPopulated>;
|
|
6120
|
+
}
|
|
6121
|
+
/**
|
|
6122
|
+
*
|
|
6123
|
+
* @export
|
|
6124
|
+
* @interface EventBookingDetailResponseBooking
|
|
6125
|
+
*/
|
|
6126
|
+
export interface EventBookingDetailResponseBooking {
|
|
6127
|
+
/**
|
|
6128
|
+
*
|
|
6129
|
+
* @type {number}
|
|
6130
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6131
|
+
*/
|
|
6132
|
+
'participantsCount': number;
|
|
6133
|
+
/**
|
|
6134
|
+
*
|
|
6135
|
+
* @type {string}
|
|
6136
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6137
|
+
*/
|
|
6138
|
+
'updatedAt': string;
|
|
6139
|
+
/**
|
|
6140
|
+
*
|
|
6141
|
+
* @type {string}
|
|
6142
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6143
|
+
*/
|
|
6144
|
+
'createdAt': string;
|
|
6145
|
+
/**
|
|
6146
|
+
*
|
|
6147
|
+
* @type {string}
|
|
6148
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6149
|
+
*/
|
|
6150
|
+
'limitCancellationDate'?: string | null;
|
|
6151
|
+
/**
|
|
6152
|
+
*
|
|
6153
|
+
* @type {string}
|
|
6154
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6155
|
+
*/
|
|
6156
|
+
'limitSetupDate'?: string | null;
|
|
6157
|
+
/**
|
|
6158
|
+
*
|
|
6159
|
+
* @type {boolean}
|
|
6160
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6161
|
+
*/
|
|
6162
|
+
'paymentMethodSetupCompleted': boolean;
|
|
6163
|
+
/**
|
|
6164
|
+
*
|
|
6165
|
+
* @type {boolean}
|
|
6166
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6167
|
+
*/
|
|
6168
|
+
'isCreatorPayingAll': boolean;
|
|
6169
|
+
/**
|
|
6170
|
+
*
|
|
6171
|
+
* @type {string}
|
|
6172
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6173
|
+
*/
|
|
6174
|
+
'teamName'?: string | null;
|
|
6175
|
+
/**
|
|
6176
|
+
*
|
|
6177
|
+
* @type {EventBookingStatus}
|
|
6178
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6179
|
+
*/
|
|
6180
|
+
'status': EventBookingStatus;
|
|
6181
|
+
/**
|
|
6182
|
+
*
|
|
6183
|
+
* @type {string}
|
|
6184
|
+
* @memberof EventBookingDetailResponseBooking
|
|
6185
|
+
*/
|
|
6186
|
+
'id': string;
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6189
|
+
|
|
5866
6190
|
/**
|
|
5867
6191
|
*
|
|
5868
6192
|
* @export
|
|
@@ -8877,6 +9201,31 @@ export interface MigrateUserRequest {
|
|
|
8877
9201
|
*/
|
|
8878
9202
|
'firstName': string;
|
|
8879
9203
|
}
|
|
9204
|
+
/**
|
|
9205
|
+
*
|
|
9206
|
+
* @export
|
|
9207
|
+
* @interface MobilePaymentSheetBody
|
|
9208
|
+
*/
|
|
9209
|
+
export interface MobilePaymentSheetBody {
|
|
9210
|
+
/**
|
|
9211
|
+
*
|
|
9212
|
+
* @type {boolean}
|
|
9213
|
+
* @memberof MobilePaymentSheetBody
|
|
9214
|
+
*/
|
|
9215
|
+
'useEphemeralKey'?: boolean;
|
|
9216
|
+
/**
|
|
9217
|
+
*
|
|
9218
|
+
* @type {string}
|
|
9219
|
+
* @memberof MobilePaymentSheetBody
|
|
9220
|
+
*/
|
|
9221
|
+
'priceId': string;
|
|
9222
|
+
/**
|
|
9223
|
+
*
|
|
9224
|
+
* @type {string}
|
|
9225
|
+
* @memberof MobilePaymentSheetBody
|
|
9226
|
+
*/
|
|
9227
|
+
'clubId': string;
|
|
9228
|
+
}
|
|
8880
9229
|
/**
|
|
8881
9230
|
*
|
|
8882
9231
|
* @export
|
|
@@ -8965,6 +9314,55 @@ export interface MonthlyTurnoverResponse {
|
|
|
8965
9314
|
}
|
|
8966
9315
|
|
|
8967
9316
|
|
|
9317
|
+
/**
|
|
9318
|
+
*
|
|
9319
|
+
* @export
|
|
9320
|
+
* @interface MyClubCustomerSettingsResponse
|
|
9321
|
+
*/
|
|
9322
|
+
export interface MyClubCustomerSettingsResponse {
|
|
9323
|
+
/**
|
|
9324
|
+
*
|
|
9325
|
+
* @type {number}
|
|
9326
|
+
* @memberof MyClubCustomerSettingsResponse
|
|
9327
|
+
*/
|
|
9328
|
+
'maxSlotsPerBooking': number | null;
|
|
9329
|
+
/**
|
|
9330
|
+
*
|
|
9331
|
+
* @type {number}
|
|
9332
|
+
* @memberof MyClubCustomerSettingsResponse
|
|
9333
|
+
*/
|
|
9334
|
+
'maxWeeklyBookings': number | null;
|
|
9335
|
+
/**
|
|
9336
|
+
*
|
|
9337
|
+
* @type {number}
|
|
9338
|
+
* @memberof MyClubCustomerSettingsResponse
|
|
9339
|
+
*/
|
|
9340
|
+
'cancellationLimitHours': number | null;
|
|
9341
|
+
/**
|
|
9342
|
+
*
|
|
9343
|
+
* @type {boolean}
|
|
9344
|
+
* @memberof MyClubCustomerSettingsResponse
|
|
9345
|
+
*/
|
|
9346
|
+
'isBanned': boolean;
|
|
9347
|
+
/**
|
|
9348
|
+
*
|
|
9349
|
+
* @type {boolean}
|
|
9350
|
+
* @memberof MyClubCustomerSettingsResponse
|
|
9351
|
+
*/
|
|
9352
|
+
'isFree': boolean;
|
|
9353
|
+
/**
|
|
9354
|
+
*
|
|
9355
|
+
* @type {boolean}
|
|
9356
|
+
* @memberof MyClubCustomerSettingsResponse
|
|
9357
|
+
*/
|
|
9358
|
+
'isIllimited': boolean;
|
|
9359
|
+
/**
|
|
9360
|
+
*
|
|
9361
|
+
* @type {boolean}
|
|
9362
|
+
* @memberof MyClubCustomerSettingsResponse
|
|
9363
|
+
*/
|
|
9364
|
+
'isNoShowForced': boolean;
|
|
9365
|
+
}
|
|
8968
9366
|
/**
|
|
8969
9367
|
*
|
|
8970
9368
|
* @export
|
|
@@ -13359,7 +13757,7 @@ export interface SubscriptionPaymentSheetRequest {
|
|
|
13359
13757
|
'clubId': string;
|
|
13360
13758
|
}
|
|
13361
13759
|
/**
|
|
13362
|
-
*
|
|
13760
|
+
* Réponse utilisée pour préparer la PaymentSheet mobile. Si `paymentIntentClientSecret` est undefined et amount est 0, la subscription est déjà active/gratuite.
|
|
13363
13761
|
* @export
|
|
13364
13762
|
* @interface SubscriptionPaymentSheetResponse
|
|
13365
13763
|
*/
|
|
@@ -13405,7 +13803,13 @@ export interface SubscriptionPaymentSheetResponse {
|
|
|
13405
13803
|
* @type {string}
|
|
13406
13804
|
* @memberof SubscriptionPaymentSheetResponse
|
|
13407
13805
|
*/
|
|
13408
|
-
'
|
|
13806
|
+
'setupIntentClientSecret'?: string;
|
|
13807
|
+
/**
|
|
13808
|
+
*
|
|
13809
|
+
* @type {string}
|
|
13810
|
+
* @memberof SubscriptionPaymentSheetResponse
|
|
13811
|
+
*/
|
|
13812
|
+
'paymentIntentClientSecret'?: string;
|
|
13409
13813
|
}
|
|
13410
13814
|
/**
|
|
13411
13815
|
*
|
|
@@ -33392,6 +33796,215 @@ export class SubscriptionsManagerApi extends BaseAPI {
|
|
|
33392
33796
|
|
|
33393
33797
|
|
|
33394
33798
|
|
|
33799
|
+
/**
|
|
33800
|
+
* SubscriptionsMobileApi - axios parameter creator
|
|
33801
|
+
* @export
|
|
33802
|
+
*/
|
|
33803
|
+
export const SubscriptionsMobileApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33804
|
+
return {
|
|
33805
|
+
/**
|
|
33806
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
33807
|
+
* @param {CancelIncompleteBody} cancelIncompleteBody
|
|
33808
|
+
* @param {*} [options] Override http request option.
|
|
33809
|
+
* @throws {RequiredError}
|
|
33810
|
+
*/
|
|
33811
|
+
cancelIncomplete: async (cancelIncompleteBody: CancelIncompleteBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33812
|
+
// verify required parameter 'cancelIncompleteBody' is not null or undefined
|
|
33813
|
+
assertParamExists('cancelIncomplete', 'cancelIncompleteBody', cancelIncompleteBody)
|
|
33814
|
+
const localVarPath = `/api/mobile/subscriptions/cancel-incomplete`;
|
|
33815
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33816
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33817
|
+
let baseOptions;
|
|
33818
|
+
if (configuration) {
|
|
33819
|
+
baseOptions = configuration.baseOptions;
|
|
33820
|
+
}
|
|
33821
|
+
|
|
33822
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33823
|
+
const localVarHeaderParameter = {} as any;
|
|
33824
|
+
const localVarQueryParameter = {} as any;
|
|
33825
|
+
|
|
33826
|
+
// authentication bearerAuth required
|
|
33827
|
+
// http bearer authentication required
|
|
33828
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33829
|
+
|
|
33830
|
+
|
|
33831
|
+
|
|
33832
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33833
|
+
|
|
33834
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33835
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33836
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33837
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cancelIncompleteBody, localVarRequestOptions, configuration)
|
|
33838
|
+
|
|
33839
|
+
return {
|
|
33840
|
+
url: toPathString(localVarUrlObj),
|
|
33841
|
+
options: localVarRequestOptions,
|
|
33842
|
+
};
|
|
33843
|
+
},
|
|
33844
|
+
/**
|
|
33845
|
+
* Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
|
|
33846
|
+
* @param {MobilePaymentSheetBody} mobilePaymentSheetBody
|
|
33847
|
+
* @param {*} [options] Override http request option.
|
|
33848
|
+
* @throws {RequiredError}
|
|
33849
|
+
*/
|
|
33850
|
+
mobilePaymentSheet: async (mobilePaymentSheetBody: MobilePaymentSheetBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33851
|
+
// verify required parameter 'mobilePaymentSheetBody' is not null or undefined
|
|
33852
|
+
assertParamExists('mobilePaymentSheet', 'mobilePaymentSheetBody', mobilePaymentSheetBody)
|
|
33853
|
+
const localVarPath = `/api/mobile/subscriptions/payment-sheet`;
|
|
33854
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33855
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33856
|
+
let baseOptions;
|
|
33857
|
+
if (configuration) {
|
|
33858
|
+
baseOptions = configuration.baseOptions;
|
|
33859
|
+
}
|
|
33860
|
+
|
|
33861
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33862
|
+
const localVarHeaderParameter = {} as any;
|
|
33863
|
+
const localVarQueryParameter = {} as any;
|
|
33864
|
+
|
|
33865
|
+
// authentication bearerAuth required
|
|
33866
|
+
// http bearer authentication required
|
|
33867
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33868
|
+
|
|
33869
|
+
|
|
33870
|
+
|
|
33871
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33872
|
+
|
|
33873
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33874
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33875
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33876
|
+
localVarRequestOptions.data = serializeDataIfNeeded(mobilePaymentSheetBody, localVarRequestOptions, configuration)
|
|
33877
|
+
|
|
33878
|
+
return {
|
|
33879
|
+
url: toPathString(localVarUrlObj),
|
|
33880
|
+
options: localVarRequestOptions,
|
|
33881
|
+
};
|
|
33882
|
+
},
|
|
33883
|
+
}
|
|
33884
|
+
};
|
|
33885
|
+
|
|
33886
|
+
/**
|
|
33887
|
+
* SubscriptionsMobileApi - functional programming interface
|
|
33888
|
+
* @export
|
|
33889
|
+
*/
|
|
33890
|
+
export const SubscriptionsMobileApiFp = function(configuration?: Configuration) {
|
|
33891
|
+
const localVarAxiosParamCreator = SubscriptionsMobileApiAxiosParamCreator(configuration)
|
|
33892
|
+
return {
|
|
33893
|
+
/**
|
|
33894
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
33895
|
+
* @param {CancelIncompleteBody} cancelIncompleteBody
|
|
33896
|
+
* @param {*} [options] Override http request option.
|
|
33897
|
+
* @throws {RequiredError}
|
|
33898
|
+
*/
|
|
33899
|
+
async cancelIncomplete(cancelIncompleteBody: CancelIncompleteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelIncompleteResponse>> {
|
|
33900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelIncomplete(cancelIncompleteBody, options);
|
|
33901
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33902
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.cancelIncomplete']?.[localVarOperationServerIndex]?.url;
|
|
33903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33904
|
+
},
|
|
33905
|
+
/**
|
|
33906
|
+
* Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
|
|
33907
|
+
* @param {MobilePaymentSheetBody} mobilePaymentSheetBody
|
|
33908
|
+
* @param {*} [options] Override http request option.
|
|
33909
|
+
* @throws {RequiredError}
|
|
33910
|
+
*/
|
|
33911
|
+
async mobilePaymentSheet(mobilePaymentSheetBody: MobilePaymentSheetBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionPaymentSheetResponse>> {
|
|
33912
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mobilePaymentSheet(mobilePaymentSheetBody, options);
|
|
33913
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33914
|
+
const localVarOperationServerBasePath = operationServerMap['SubscriptionsMobileApi.mobilePaymentSheet']?.[localVarOperationServerIndex]?.url;
|
|
33915
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33916
|
+
},
|
|
33917
|
+
}
|
|
33918
|
+
};
|
|
33919
|
+
|
|
33920
|
+
/**
|
|
33921
|
+
* SubscriptionsMobileApi - factory interface
|
|
33922
|
+
* @export
|
|
33923
|
+
*/
|
|
33924
|
+
export const SubscriptionsMobileApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
33925
|
+
const localVarFp = SubscriptionsMobileApiFp(configuration)
|
|
33926
|
+
return {
|
|
33927
|
+
/**
|
|
33928
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
33929
|
+
* @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
|
|
33930
|
+
* @param {*} [options] Override http request option.
|
|
33931
|
+
* @throws {RequiredError}
|
|
33932
|
+
*/
|
|
33933
|
+
cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelIncompleteResponse> {
|
|
33934
|
+
return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
|
|
33935
|
+
},
|
|
33936
|
+
/**
|
|
33937
|
+
* Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
|
|
33938
|
+
* @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
|
|
33939
|
+
* @param {*} [options] Override http request option.
|
|
33940
|
+
* @throws {RequiredError}
|
|
33941
|
+
*/
|
|
33942
|
+
mobilePaymentSheet(requestParameters: SubscriptionsMobileApiMobilePaymentSheetRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionPaymentSheetResponse> {
|
|
33943
|
+
return localVarFp.mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(axios, basePath));
|
|
33944
|
+
},
|
|
33945
|
+
};
|
|
33946
|
+
};
|
|
33947
|
+
|
|
33948
|
+
/**
|
|
33949
|
+
* Request parameters for cancelIncomplete operation in SubscriptionsMobileApi.
|
|
33950
|
+
* @export
|
|
33951
|
+
* @interface SubscriptionsMobileApiCancelIncompleteRequest
|
|
33952
|
+
*/
|
|
33953
|
+
export interface SubscriptionsMobileApiCancelIncompleteRequest {
|
|
33954
|
+
/**
|
|
33955
|
+
*
|
|
33956
|
+
* @type {CancelIncompleteBody}
|
|
33957
|
+
* @memberof SubscriptionsMobileApiCancelIncomplete
|
|
33958
|
+
*/
|
|
33959
|
+
readonly cancelIncompleteBody: CancelIncompleteBody
|
|
33960
|
+
}
|
|
33961
|
+
|
|
33962
|
+
/**
|
|
33963
|
+
* Request parameters for mobilePaymentSheet operation in SubscriptionsMobileApi.
|
|
33964
|
+
* @export
|
|
33965
|
+
* @interface SubscriptionsMobileApiMobilePaymentSheetRequest
|
|
33966
|
+
*/
|
|
33967
|
+
export interface SubscriptionsMobileApiMobilePaymentSheetRequest {
|
|
33968
|
+
/**
|
|
33969
|
+
*
|
|
33970
|
+
* @type {MobilePaymentSheetBody}
|
|
33971
|
+
* @memberof SubscriptionsMobileApiMobilePaymentSheet
|
|
33972
|
+
*/
|
|
33973
|
+
readonly mobilePaymentSheetBody: MobilePaymentSheetBody
|
|
33974
|
+
}
|
|
33975
|
+
|
|
33976
|
+
/**
|
|
33977
|
+
* SubscriptionsMobileApi - object-oriented interface
|
|
33978
|
+
* @export
|
|
33979
|
+
* @class SubscriptionsMobileApi
|
|
33980
|
+
* @extends {BaseAPI}
|
|
33981
|
+
*/
|
|
33982
|
+
export class SubscriptionsMobileApi extends BaseAPI {
|
|
33983
|
+
/**
|
|
33984
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
33985
|
+
* @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
|
|
33986
|
+
* @param {*} [options] Override http request option.
|
|
33987
|
+
* @throws {RequiredError}
|
|
33988
|
+
* @memberof SubscriptionsMobileApi
|
|
33989
|
+
*/
|
|
33990
|
+
public cancelIncomplete(requestParameters: SubscriptionsMobileApiCancelIncompleteRequest, options?: RawAxiosRequestConfig) {
|
|
33991
|
+
return SubscriptionsMobileApiFp(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
|
|
33992
|
+
}
|
|
33993
|
+
|
|
33994
|
+
/**
|
|
33995
|
+
* Prépare une PaymentSheet pour l\'app mobile (compte connecté du club). Renvoie soit un PaymentIntent client secret, soit un SetupIntent si Stripe n\'a pas généré de PI.
|
|
33996
|
+
* @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
|
|
33997
|
+
* @param {*} [options] Override http request option.
|
|
33998
|
+
* @throws {RequiredError}
|
|
33999
|
+
* @memberof SubscriptionsMobileApi
|
|
34000
|
+
*/
|
|
34001
|
+
public mobilePaymentSheet(requestParameters: SubscriptionsMobileApiMobilePaymentSheetRequest, options?: RawAxiosRequestConfig) {
|
|
34002
|
+
return SubscriptionsMobileApiFp(this.configuration).mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(this.axios, this.basePath));
|
|
34003
|
+
}
|
|
34004
|
+
}
|
|
34005
|
+
|
|
34006
|
+
|
|
34007
|
+
|
|
33395
34008
|
/**
|
|
33396
34009
|
* SubscriptionsPublicApi - axios parameter creator
|
|
33397
34010
|
* @export
|
|
@@ -35357,6 +35970,43 @@ export class SumUpManagerApi extends BaseAPI {
|
|
|
35357
35970
|
*/
|
|
35358
35971
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35359
35972
|
return {
|
|
35973
|
+
/**
|
|
35974
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
35975
|
+
* @param {string} clubId
|
|
35976
|
+
* @param {*} [options] Override http request option.
|
|
35977
|
+
* @throws {RequiredError}
|
|
35978
|
+
*/
|
|
35979
|
+
getMyClubCustomerSettings: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35980
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
35981
|
+
assertParamExists('getMyClubCustomerSettings', 'clubId', clubId)
|
|
35982
|
+
const localVarPath = `/api/users/me/clubCustomers/{clubId}`
|
|
35983
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
35984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35986
|
+
let baseOptions;
|
|
35987
|
+
if (configuration) {
|
|
35988
|
+
baseOptions = configuration.baseOptions;
|
|
35989
|
+
}
|
|
35990
|
+
|
|
35991
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
35992
|
+
const localVarHeaderParameter = {} as any;
|
|
35993
|
+
const localVarQueryParameter = {} as any;
|
|
35994
|
+
|
|
35995
|
+
// authentication bearerAuth required
|
|
35996
|
+
// http bearer authentication required
|
|
35997
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
35998
|
+
|
|
35999
|
+
|
|
36000
|
+
|
|
36001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36003
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
36004
|
+
|
|
36005
|
+
return {
|
|
36006
|
+
url: toPathString(localVarUrlObj),
|
|
36007
|
+
options: localVarRequestOptions,
|
|
36008
|
+
};
|
|
36009
|
+
},
|
|
35360
36010
|
/**
|
|
35361
36011
|
* Récupère les informations du club de l\'utilisateur
|
|
35362
36012
|
* @param {string} clubId
|
|
@@ -35407,6 +36057,18 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
35407
36057
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
35408
36058
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
35409
36059
|
return {
|
|
36060
|
+
/**
|
|
36061
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
36062
|
+
* @param {string} clubId
|
|
36063
|
+
* @param {*} [options] Override http request option.
|
|
36064
|
+
* @throws {RequiredError}
|
|
36065
|
+
*/
|
|
36066
|
+
async getMyClubCustomerSettings(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyClubCustomerSettingsResponse>> {
|
|
36067
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClubCustomerSettings(clubId, options);
|
|
36068
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
36069
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.getMyClubCustomerSettings']?.[localVarOperationServerIndex]?.url;
|
|
36070
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36071
|
+
},
|
|
35410
36072
|
/**
|
|
35411
36073
|
* Récupère les informations du club de l\'utilisateur
|
|
35412
36074
|
* @param {string} clubId
|
|
@@ -35429,6 +36091,15 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
35429
36091
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
35430
36092
|
const localVarFp = UserApiFp(configuration)
|
|
35431
36093
|
return {
|
|
36094
|
+
/**
|
|
36095
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
36096
|
+
* @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
36097
|
+
* @param {*} [options] Override http request option.
|
|
36098
|
+
* @throws {RequiredError}
|
|
36099
|
+
*/
|
|
36100
|
+
getMyClubCustomerSettings(requestParameters: UserApiGetMyClubCustomerSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<MyClubCustomerSettingsResponse> {
|
|
36101
|
+
return localVarFp.getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
36102
|
+
},
|
|
35432
36103
|
/**
|
|
35433
36104
|
* Récupère les informations du club de l\'utilisateur
|
|
35434
36105
|
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
@@ -35441,6 +36112,20 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
35441
36112
|
};
|
|
35442
36113
|
};
|
|
35443
36114
|
|
|
36115
|
+
/**
|
|
36116
|
+
* Request parameters for getMyClubCustomerSettings operation in UserApi.
|
|
36117
|
+
* @export
|
|
36118
|
+
* @interface UserApiGetMyClubCustomerSettingsRequest
|
|
36119
|
+
*/
|
|
36120
|
+
export interface UserApiGetMyClubCustomerSettingsRequest {
|
|
36121
|
+
/**
|
|
36122
|
+
*
|
|
36123
|
+
* @type {string}
|
|
36124
|
+
* @memberof UserApiGetMyClubCustomerSettings
|
|
36125
|
+
*/
|
|
36126
|
+
readonly clubId: string
|
|
36127
|
+
}
|
|
36128
|
+
|
|
35444
36129
|
/**
|
|
35445
36130
|
* Request parameters for getMyClubInfos operation in UserApi.
|
|
35446
36131
|
* @export
|
|
@@ -35462,6 +36147,17 @@ export interface UserApiGetMyClubInfosRequest {
|
|
|
35462
36147
|
* @extends {BaseAPI}
|
|
35463
36148
|
*/
|
|
35464
36149
|
export class UserApi extends BaseAPI {
|
|
36150
|
+
/**
|
|
36151
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
36152
|
+
* @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
36153
|
+
* @param {*} [options] Override http request option.
|
|
36154
|
+
* @throws {RequiredError}
|
|
36155
|
+
* @memberof UserApi
|
|
36156
|
+
*/
|
|
36157
|
+
public getMyClubCustomerSettings(requestParameters: UserApiGetMyClubCustomerSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
36158
|
+
return UserApiFp(this.configuration).getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
36159
|
+
}
|
|
36160
|
+
|
|
35465
36161
|
/**
|
|
35466
36162
|
* Récupère les informations du club de l\'utilisateur
|
|
35467
36163
|
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
@@ -35738,6 +36434,43 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
35738
36434
|
|
|
35739
36435
|
|
|
35740
36436
|
|
|
36437
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36439
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
36440
|
+
|
|
36441
|
+
return {
|
|
36442
|
+
url: toPathString(localVarUrlObj),
|
|
36443
|
+
options: localVarRequestOptions,
|
|
36444
|
+
};
|
|
36445
|
+
},
|
|
36446
|
+
/**
|
|
36447
|
+
*
|
|
36448
|
+
* @param {string} eventBookingId
|
|
36449
|
+
* @param {*} [options] Override http request option.
|
|
36450
|
+
* @throws {RequiredError}
|
|
36451
|
+
*/
|
|
36452
|
+
getEventBookingDetail: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36453
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
36454
|
+
assertParamExists('getEventBookingDetail', 'eventBookingId', eventBookingId)
|
|
36455
|
+
const localVarPath = `/api/users/me/event-booking-detail/{eventBookingId}`
|
|
36456
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
36457
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
36458
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
36459
|
+
let baseOptions;
|
|
36460
|
+
if (configuration) {
|
|
36461
|
+
baseOptions = configuration.baseOptions;
|
|
36462
|
+
}
|
|
36463
|
+
|
|
36464
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
36465
|
+
const localVarHeaderParameter = {} as any;
|
|
36466
|
+
const localVarQueryParameter = {} as any;
|
|
36467
|
+
|
|
36468
|
+
// authentication bearerAuth required
|
|
36469
|
+
// http bearer authentication required
|
|
36470
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
36471
|
+
|
|
36472
|
+
|
|
36473
|
+
|
|
35741
36474
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35742
36475
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35743
36476
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -37457,6 +38190,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
37457
38190
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getBookingDetail']?.[localVarOperationServerIndex]?.url;
|
|
37458
38191
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37459
38192
|
},
|
|
38193
|
+
/**
|
|
38194
|
+
*
|
|
38195
|
+
* @param {string} eventBookingId
|
|
38196
|
+
* @param {*} [options] Override http request option.
|
|
38197
|
+
* @throws {RequiredError}
|
|
38198
|
+
*/
|
|
38199
|
+
async getEventBookingDetail(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventBookingDetailResponse>> {
|
|
38200
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventBookingDetail(eventBookingId, options);
|
|
38201
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
38202
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getEventBookingDetail']?.[localVarOperationServerIndex]?.url;
|
|
38203
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38204
|
+
},
|
|
37460
38205
|
/**
|
|
37461
38206
|
*
|
|
37462
38207
|
* @param {*} [options] Override http request option.
|
|
@@ -38040,6 +38785,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
38040
38785
|
getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingSummary> {
|
|
38041
38786
|
return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
38042
38787
|
},
|
|
38788
|
+
/**
|
|
38789
|
+
*
|
|
38790
|
+
* @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
|
|
38791
|
+
* @param {*} [options] Override http request option.
|
|
38792
|
+
* @throws {RequiredError}
|
|
38793
|
+
*/
|
|
38794
|
+
getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventBookingDetailResponse> {
|
|
38795
|
+
return localVarFp.getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
38796
|
+
},
|
|
38043
38797
|
/**
|
|
38044
38798
|
*
|
|
38045
38799
|
* @param {*} [options] Override http request option.
|
|
@@ -38488,6 +39242,20 @@ export interface UsersApiGetBookingDetailRequest {
|
|
|
38488
39242
|
readonly bookingId: string
|
|
38489
39243
|
}
|
|
38490
39244
|
|
|
39245
|
+
/**
|
|
39246
|
+
* Request parameters for getEventBookingDetail operation in UsersApi.
|
|
39247
|
+
* @export
|
|
39248
|
+
* @interface UsersApiGetEventBookingDetailRequest
|
|
39249
|
+
*/
|
|
39250
|
+
export interface UsersApiGetEventBookingDetailRequest {
|
|
39251
|
+
/**
|
|
39252
|
+
*
|
|
39253
|
+
* @type {string}
|
|
39254
|
+
* @memberof UsersApiGetEventBookingDetail
|
|
39255
|
+
*/
|
|
39256
|
+
readonly eventBookingId: string
|
|
39257
|
+
}
|
|
39258
|
+
|
|
38491
39259
|
/**
|
|
38492
39260
|
* Request parameters for getNearestClubs operation in UsersApi.
|
|
38493
39261
|
* @export
|
|
@@ -39222,6 +39990,17 @@ export class UsersApi extends BaseAPI {
|
|
|
39222
39990
|
return UsersApiFp(this.configuration).getBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
39223
39991
|
}
|
|
39224
39992
|
|
|
39993
|
+
/**
|
|
39994
|
+
*
|
|
39995
|
+
* @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
|
|
39996
|
+
* @param {*} [options] Override http request option.
|
|
39997
|
+
* @throws {RequiredError}
|
|
39998
|
+
* @memberof UsersApi
|
|
39999
|
+
*/
|
|
40000
|
+
public getEventBookingDetail(requestParameters: UsersApiGetEventBookingDetailRequest, options?: RawAxiosRequestConfig) {
|
|
40001
|
+
return UsersApiFp(this.configuration).getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
40002
|
+
}
|
|
40003
|
+
|
|
39225
40004
|
/**
|
|
39226
40005
|
*
|
|
39227
40006
|
* @param {*} [options] Override http request option.
|