@tennac-booking/sdk 1.0.15 → 1.0.81

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/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -217,6 +217,72 @@ export declare const BookingStatus: {
217
217
  readonly Inactive: "inactive";
218
218
  };
219
219
  export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
220
+ /**
221
+ *
222
+ * @export
223
+ * @interface CancelBookingResponse
224
+ */
225
+ export interface CancelBookingResponse {
226
+ /**
227
+ * Message de confirmation
228
+ * @type {string}
229
+ * @memberof CancelBookingResponse
230
+ */
231
+ 'message': string;
232
+ /**
233
+ *
234
+ * @type {CancelBookingResponseBooking}
235
+ * @memberof CancelBookingResponse
236
+ */
237
+ 'booking': CancelBookingResponseBooking;
238
+ }
239
+ /**
240
+ *
241
+ * @export
242
+ * @interface CancelBookingResponseBooking
243
+ */
244
+ export interface CancelBookingResponseBooking {
245
+ /**
246
+ * ID de la réservation
247
+ * @type {string}
248
+ * @memberof CancelBookingResponseBooking
249
+ */
250
+ 'id': string;
251
+ /**
252
+ * Nouveau statut de la réservation
253
+ * @type {string}
254
+ * @memberof CancelBookingResponseBooking
255
+ */
256
+ 'status': CancelBookingResponseBookingStatusEnum;
257
+ /**
258
+ * Date et heure d\'annulation
259
+ * @type {string}
260
+ * @memberof CancelBookingResponseBooking
261
+ */
262
+ 'cancelledAt': string;
263
+ /**
264
+ * ID de l\'utilisateur qui a annulé
265
+ * @type {string}
266
+ * @memberof CancelBookingResponseBooking
267
+ */
268
+ 'cancelledBy': string;
269
+ /**
270
+ * Indique si annulé par un gestionnaire
271
+ * @type {boolean}
272
+ * @memberof CancelBookingResponseBooking
273
+ */
274
+ 'cancelledByManager': boolean;
275
+ /**
276
+ * Raison de l\'annulation (si fournie)
277
+ * @type {string}
278
+ * @memberof CancelBookingResponseBooking
279
+ */
280
+ 'cancellationReason'?: string;
281
+ }
282
+ export declare const CancelBookingResponseBookingStatusEnum: {
283
+ readonly Cancelled: "cancelled";
284
+ };
285
+ export type CancelBookingResponseBookingStatusEnum = typeof CancelBookingResponseBookingStatusEnum[keyof typeof CancelBookingResponseBookingStatusEnum];
220
286
  /**
221
287
  *
222
288
  * @export
@@ -794,6 +860,44 @@ export interface ClubsResponse {
794
860
  */
795
861
  'total'?: number;
796
862
  }
863
+ /**
864
+ *
865
+ * @export
866
+ * @interface ConfirmPaymentMethodSetupRequestBody
867
+ */
868
+ export interface ConfirmPaymentMethodSetupRequestBody {
869
+ /**
870
+ * ID de l\'utilisateur
871
+ * @type {string}
872
+ * @memberof ConfirmPaymentMethodSetupRequestBody
873
+ */
874
+ 'userId': string;
875
+ /**
876
+ * ID du Setup Intent à confirmer
877
+ * @type {string}
878
+ * @memberof ConfirmPaymentMethodSetupRequestBody
879
+ */
880
+ 'setupIntentId': string;
881
+ }
882
+ /**
883
+ *
884
+ * @export
885
+ * @interface ConfirmPaymentMethodSetupResponse
886
+ */
887
+ export interface ConfirmPaymentMethodSetupResponse {
888
+ /**
889
+ * Message de confirmation
890
+ * @type {string}
891
+ * @memberof ConfirmPaymentMethodSetupResponse
892
+ */
893
+ 'message'?: string;
894
+ /**
895
+ * ID de la méthode de paiement configurée
896
+ * @type {string}
897
+ * @memberof ConfirmPaymentMethodSetupResponse
898
+ */
899
+ 'paymentMethodId'?: string;
900
+ }
797
901
  /**
798
902
  *
799
903
  * @export
@@ -854,79 +958,85 @@ export interface CourtResponse {
854
958
  * @type {string}
855
959
  * @memberof CourtResponse
856
960
  */
857
- 'id'?: string;
961
+ 'id': string;
858
962
  /**
859
963
  *
860
964
  * @type {string}
861
965
  * @memberof CourtResponse
862
966
  */
863
- 'name'?: string;
967
+ 'name': string;
864
968
  /**
865
969
  *
866
970
  * @type {string}
867
971
  * @memberof CourtResponse
868
972
  */
869
- 'status'?: CourtResponseStatusEnum;
973
+ 'status': CourtResponseStatusEnum;
870
974
  /**
871
975
  *
872
976
  * @type {string}
873
977
  * @memberof CourtResponse
874
978
  */
875
- 'comments'?: string;
979
+ 'comments': string;
876
980
  /**
877
981
  *
878
982
  * @type {number}
879
983
  * @memberof CourtResponse
880
984
  */
881
- 'slotDefaultDuration'?: number;
985
+ 'slotDefaultDuration': number;
882
986
  /**
883
987
  *
884
988
  * @type {number}
885
989
  * @memberof CourtResponse
886
990
  */
887
- 'startTimeInTheDayInMinutes'?: number;
991
+ 'startTimeInTheDayInMinutes': number;
888
992
  /**
889
993
  *
890
994
  * @type {number}
891
995
  * @memberof CourtResponse
892
996
  */
893
- 'endTimeInTheDayInMinutes'?: number;
997
+ 'endTimeInTheDayInMinutes': number;
998
+ /**
999
+ *
1000
+ * @type {number}
1001
+ * @memberof CourtResponse
1002
+ */
1003
+ 'pricePerSlotInCents': number;
894
1004
  /**
895
1005
  *
896
1006
  * @type {string}
897
1007
  * @memberof CourtResponse
898
1008
  */
899
- 'sportId'?: string;
1009
+ 'sportId': string;
900
1010
  /**
901
1011
  *
902
1012
  * @type {string}
903
1013
  * @memberof CourtResponse
904
1014
  */
905
- 'clubId'?: string;
1015
+ 'clubId': string;
906
1016
  /**
907
1017
  *
908
1018
  * @type {string}
909
1019
  * @memberof CourtResponse
910
1020
  */
911
- 'surface'?: CourtResponseSurfaceEnum;
1021
+ 'surface': CourtResponseSurfaceEnum;
912
1022
  /**
913
1023
  * Indique si le terrain est en intérieur ou extérieur
914
1024
  * @type {boolean}
915
1025
  * @memberof CourtResponse
916
1026
  */
917
- 'isIndoor'?: boolean;
1027
+ 'isIndoor': boolean;
918
1028
  /**
919
1029
  *
920
1030
  * @type {string}
921
1031
  * @memberof CourtResponse
922
1032
  */
923
- 'createdAt'?: string;
1033
+ 'createdAt': string;
924
1034
  /**
925
1035
  *
926
1036
  * @type {string}
927
1037
  * @memberof CourtResponse
928
1038
  */
929
- 'updatedAt'?: string;
1039
+ 'updatedAt': string;
930
1040
  }
931
1041
  export declare const CourtResponseStatusEnum: {
932
1042
  readonly Available: "available";
@@ -1726,6 +1836,72 @@ export interface LoginResponse {
1726
1836
  */
1727
1837
  'sessionEnd': number;
1728
1838
  }
1839
+ /**
1840
+ *
1841
+ * @export
1842
+ * @interface ManagerCancelBookingResponse
1843
+ */
1844
+ export interface ManagerCancelBookingResponse {
1845
+ /**
1846
+ * Message de confirmation
1847
+ * @type {string}
1848
+ * @memberof ManagerCancelBookingResponse
1849
+ */
1850
+ 'message': string;
1851
+ /**
1852
+ *
1853
+ * @type {ManagerCancelBookingResponseBooking}
1854
+ * @memberof ManagerCancelBookingResponse
1855
+ */
1856
+ 'booking': ManagerCancelBookingResponseBooking;
1857
+ }
1858
+ /**
1859
+ *
1860
+ * @export
1861
+ * @interface ManagerCancelBookingResponseBooking
1862
+ */
1863
+ export interface ManagerCancelBookingResponseBooking {
1864
+ /**
1865
+ * ID de la réservation
1866
+ * @type {string}
1867
+ * @memberof ManagerCancelBookingResponseBooking
1868
+ */
1869
+ 'id': string;
1870
+ /**
1871
+ * Nouveau statut de la réservation
1872
+ * @type {string}
1873
+ * @memberof ManagerCancelBookingResponseBooking
1874
+ */
1875
+ 'status': ManagerCancelBookingResponseBookingStatusEnum;
1876
+ /**
1877
+ * Raison de l\'annulation par le gestionnaire
1878
+ * @type {string}
1879
+ * @memberof ManagerCancelBookingResponseBooking
1880
+ */
1881
+ 'cancellationReason': string;
1882
+ /**
1883
+ * Date et heure d\'annulation
1884
+ * @type {string}
1885
+ * @memberof ManagerCancelBookingResponseBooking
1886
+ */
1887
+ 'cancelledAt': string;
1888
+ /**
1889
+ * ID du gestionnaire qui a annulé
1890
+ * @type {string}
1891
+ * @memberof ManagerCancelBookingResponseBooking
1892
+ */
1893
+ 'cancelledBy': string;
1894
+ /**
1895
+ * Toujours true pour les annulations par gestionnaire
1896
+ * @type {boolean}
1897
+ * @memberof ManagerCancelBookingResponseBooking
1898
+ */
1899
+ 'cancelledByManager': boolean;
1900
+ }
1901
+ export declare const ManagerCancelBookingResponseBookingStatusEnum: {
1902
+ readonly Cancelled: "cancelled";
1903
+ };
1904
+ export type ManagerCancelBookingResponseBookingStatusEnum = typeof ManagerCancelBookingResponseBookingStatusEnum[keyof typeof ManagerCancelBookingResponseBookingStatusEnum];
1729
1905
  /**
1730
1906
  * Méthode de paiement
1731
1907
  * @export
@@ -1910,6 +2086,50 @@ export interface RestoreSubscriptionPlanForClub200Response {
1910
2086
  */
1911
2087
  'message'?: string;
1912
2088
  }
2089
+ /**
2090
+ *
2091
+ * @export
2092
+ * @interface SetupPaymentMethodRequestBody
2093
+ */
2094
+ export interface SetupPaymentMethodRequestBody {
2095
+ /**
2096
+ * ID de l\'utilisateur
2097
+ * @type {string}
2098
+ * @memberof SetupPaymentMethodRequestBody
2099
+ */
2100
+ 'userId': string;
2101
+ /**
2102
+ * ID du club
2103
+ * @type {string}
2104
+ * @memberof SetupPaymentMethodRequestBody
2105
+ */
2106
+ 'clubId': string;
2107
+ }
2108
+ /**
2109
+ *
2110
+ * @export
2111
+ * @interface SetupPaymentMethodResponse
2112
+ */
2113
+ export interface SetupPaymentMethodResponse {
2114
+ /**
2115
+ * ID du Setup Intent Stripe
2116
+ * @type {string}
2117
+ * @memberof SetupPaymentMethodResponse
2118
+ */
2119
+ 'setupIntentId'?: string;
2120
+ /**
2121
+ * Client secret pour la configuration côté client
2122
+ * @type {string}
2123
+ * @memberof SetupPaymentMethodResponse
2124
+ */
2125
+ 'clientSecret'?: string;
2126
+ /**
2127
+ * Message de confirmation
2128
+ * @type {string}
2129
+ * @memberof SetupPaymentMethodResponse
2130
+ */
2131
+ 'message'?: string;
2132
+ }
1913
2133
  /**
1914
2134
  *
1915
2135
  * @export
@@ -5720,6 +5940,124 @@ export declare class UserClubsApi extends BaseAPI {
5720
5940
  */
5721
5941
  getActiveClubs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActiveClubs200Response, any>>;
5722
5942
  }
5943
+ /**
5944
+ * UserPaymentApi - axios parameter creator
5945
+ * @export
5946
+ */
5947
+ export declare const UserPaymentApiAxiosParamCreator: (configuration?: Configuration) => {
5948
+ /**
5949
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5950
+ * @summary Confirme la configuration d\'une méthode de paiement
5951
+ * @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
5952
+ * @param {*} [options] Override http request option.
5953
+ * @throws {RequiredError}
5954
+ */
5955
+ confirmPaymentMethodSetup: (confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5956
+ /**
5957
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
5958
+ * @summary Configure une méthode de paiement pour un utilisateur
5959
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
5960
+ * @param {*} [options] Override http request option.
5961
+ * @throws {RequiredError}
5962
+ */
5963
+ setupPaymentMethod: (setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5964
+ };
5965
+ /**
5966
+ * UserPaymentApi - functional programming interface
5967
+ * @export
5968
+ */
5969
+ export declare const UserPaymentApiFp: (configuration?: Configuration) => {
5970
+ /**
5971
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5972
+ * @summary Confirme la configuration d\'une méthode de paiement
5973
+ * @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
5974
+ * @param {*} [options] Override http request option.
5975
+ * @throws {RequiredError}
5976
+ */
5977
+ confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentMethodSetupResponse>>;
5978
+ /**
5979
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
5980
+ * @summary Configure une méthode de paiement pour un utilisateur
5981
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
5982
+ * @param {*} [options] Override http request option.
5983
+ * @throws {RequiredError}
5984
+ */
5985
+ setupPaymentMethod(setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetupPaymentMethodResponse>>;
5986
+ };
5987
+ /**
5988
+ * UserPaymentApi - factory interface
5989
+ * @export
5990
+ */
5991
+ export declare const UserPaymentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5992
+ /**
5993
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5994
+ * @summary Confirme la configuration d\'une méthode de paiement
5995
+ * @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
5996
+ * @param {*} [options] Override http request option.
5997
+ * @throws {RequiredError}
5998
+ */
5999
+ confirmPaymentMethodSetup(requestParameters: UserPaymentApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfirmPaymentMethodSetupResponse>;
6000
+ /**
6001
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
6002
+ * @summary Configure une méthode de paiement pour un utilisateur
6003
+ * @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
6004
+ * @param {*} [options] Override http request option.
6005
+ * @throws {RequiredError}
6006
+ */
6007
+ setupPaymentMethod(requestParameters: UserPaymentApiSetupPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetupPaymentMethodResponse>;
6008
+ };
6009
+ /**
6010
+ * Request parameters for confirmPaymentMethodSetup operation in UserPaymentApi.
6011
+ * @export
6012
+ * @interface UserPaymentApiConfirmPaymentMethodSetupRequest
6013
+ */
6014
+ export interface UserPaymentApiConfirmPaymentMethodSetupRequest {
6015
+ /**
6016
+ *
6017
+ * @type {ConfirmPaymentMethodSetupRequestBody}
6018
+ * @memberof UserPaymentApiConfirmPaymentMethodSetup
6019
+ */
6020
+ readonly confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody;
6021
+ }
6022
+ /**
6023
+ * Request parameters for setupPaymentMethod operation in UserPaymentApi.
6024
+ * @export
6025
+ * @interface UserPaymentApiSetupPaymentMethodRequest
6026
+ */
6027
+ export interface UserPaymentApiSetupPaymentMethodRequest {
6028
+ /**
6029
+ *
6030
+ * @type {SetupPaymentMethodRequestBody}
6031
+ * @memberof UserPaymentApiSetupPaymentMethod
6032
+ */
6033
+ readonly setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody;
6034
+ }
6035
+ /**
6036
+ * UserPaymentApi - object-oriented interface
6037
+ * @export
6038
+ * @class UserPaymentApi
6039
+ * @extends {BaseAPI}
6040
+ */
6041
+ export declare class UserPaymentApi extends BaseAPI {
6042
+ /**
6043
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6044
+ * @summary Confirme la configuration d\'une méthode de paiement
6045
+ * @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
6046
+ * @param {*} [options] Override http request option.
6047
+ * @throws {RequiredError}
6048
+ * @memberof UserPaymentApi
6049
+ */
6050
+ confirmPaymentMethodSetup(requestParameters: UserPaymentApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConfirmPaymentMethodSetupResponse, any>>;
6051
+ /**
6052
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
6053
+ * @summary Configure une méthode de paiement pour un utilisateur
6054
+ * @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
6055
+ * @param {*} [options] Override http request option.
6056
+ * @throws {RequiredError}
6057
+ * @memberof UserPaymentApi
6058
+ */
6059
+ setupPaymentMethod(requestParameters: UserPaymentApiSetupPaymentMethodRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SetupPaymentMethodResponse, any>>;
6060
+ }
5723
6061
  /**
5724
6062
  * UserProfileApi - axios parameter creator
5725
6063
  * @export
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,6 +35,9 @@ export const BookingStatus = {
35
35
  Active: 'active',
36
36
  Inactive: 'inactive'
37
37
  };
38
+ export const CancelBookingResponseBookingStatusEnum = {
39
+ Cancelled: 'cancelled'
40
+ };
38
41
  export const CourtResponseStatusEnum = {
39
42
  Available: 'available',
40
43
  Unavailable: 'unavailable'
@@ -60,6 +63,9 @@ export const CreatePriceRequestIntervalEnum = {
60
63
  Month: 'month',
61
64
  Year: 'year'
62
65
  };
66
+ export const ManagerCancelBookingResponseBookingStatusEnum = {
67
+ Cancelled: 'cancelled'
68
+ };
63
69
  /**
64
70
  * Méthode de paiement
65
71
  * @export
@@ -4174,6 +4180,180 @@ export class UserClubsApi extends BaseAPI {
4174
4180
  return UserClubsApiFp(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
4175
4181
  }
4176
4182
  }
4183
+ /**
4184
+ * UserPaymentApi - axios parameter creator
4185
+ * @export
4186
+ */
4187
+ export const UserPaymentApiAxiosParamCreator = function (configuration) {
4188
+ return {
4189
+ /**
4190
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
4191
+ * @summary Confirme la configuration d\'une méthode de paiement
4192
+ * @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
4193
+ * @param {*} [options] Override http request option.
4194
+ * @throws {RequiredError}
4195
+ */
4196
+ confirmPaymentMethodSetup: (confirmPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodSetupRequestBody, options = {}) {
4197
+ // verify required parameter 'confirmPaymentMethodSetupRequestBody' is not null or undefined
4198
+ assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodSetupRequestBody', confirmPaymentMethodSetupRequestBody);
4199
+ const localVarPath = `/api/users/confirmPaymentMethodSetup`;
4200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4202
+ let baseOptions;
4203
+ if (configuration) {
4204
+ baseOptions = configuration.baseOptions;
4205
+ }
4206
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4207
+ const localVarHeaderParameter = {};
4208
+ const localVarQueryParameter = {};
4209
+ // authentication bearerAuth required
4210
+ // http bearer authentication required
4211
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4212
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4215
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4216
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
4217
+ return {
4218
+ url: toPathString(localVarUrlObj),
4219
+ options: localVarRequestOptions,
4220
+ };
4221
+ }),
4222
+ /**
4223
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
4224
+ * @summary Configure une méthode de paiement pour un utilisateur
4225
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
4226
+ * @param {*} [options] Override http request option.
4227
+ * @throws {RequiredError}
4228
+ */
4229
+ setupPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
4230
+ // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
4231
+ assertParamExists('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
4232
+ const localVarPath = `/api/users/setupPaymentMethod`;
4233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4235
+ let baseOptions;
4236
+ if (configuration) {
4237
+ baseOptions = configuration.baseOptions;
4238
+ }
4239
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4240
+ const localVarHeaderParameter = {};
4241
+ const localVarQueryParameter = {};
4242
+ // authentication bearerAuth required
4243
+ // http bearer authentication required
4244
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4245
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4246
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4247
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4248
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4249
+ localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
4250
+ return {
4251
+ url: toPathString(localVarUrlObj),
4252
+ options: localVarRequestOptions,
4253
+ };
4254
+ }),
4255
+ };
4256
+ };
4257
+ /**
4258
+ * UserPaymentApi - functional programming interface
4259
+ * @export
4260
+ */
4261
+ export const UserPaymentApiFp = function (configuration) {
4262
+ const localVarAxiosParamCreator = UserPaymentApiAxiosParamCreator(configuration);
4263
+ return {
4264
+ /**
4265
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
4266
+ * @summary Confirme la configuration d\'une méthode de paiement
4267
+ * @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
4268
+ * @param {*} [options] Override http request option.
4269
+ * @throws {RequiredError}
4270
+ */
4271
+ confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options) {
4272
+ return __awaiter(this, void 0, void 0, function* () {
4273
+ var _a, _b, _c;
4274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options);
4275
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4276
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPaymentApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4277
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4278
+ });
4279
+ },
4280
+ /**
4281
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
4282
+ * @summary Configure une méthode de paiement pour un utilisateur
4283
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
4284
+ * @param {*} [options] Override http request option.
4285
+ * @throws {RequiredError}
4286
+ */
4287
+ setupPaymentMethod(setupPaymentMethodRequestBody, options) {
4288
+ return __awaiter(this, void 0, void 0, function* () {
4289
+ var _a, _b, _c;
4290
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setupPaymentMethod(setupPaymentMethodRequestBody, options);
4291
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4292
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPaymentApi.setupPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4293
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4294
+ });
4295
+ },
4296
+ };
4297
+ };
4298
+ /**
4299
+ * UserPaymentApi - factory interface
4300
+ * @export
4301
+ */
4302
+ export const UserPaymentApiFactory = function (configuration, basePath, axios) {
4303
+ const localVarFp = UserPaymentApiFp(configuration);
4304
+ return {
4305
+ /**
4306
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
4307
+ * @summary Confirme la configuration d\'une méthode de paiement
4308
+ * @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
4309
+ * @param {*} [options] Override http request option.
4310
+ * @throws {RequiredError}
4311
+ */
4312
+ confirmPaymentMethodSetup(requestParameters, options) {
4313
+ return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
4314
+ },
4315
+ /**
4316
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
4317
+ * @summary Configure une méthode de paiement pour un utilisateur
4318
+ * @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
4319
+ * @param {*} [options] Override http request option.
4320
+ * @throws {RequiredError}
4321
+ */
4322
+ setupPaymentMethod(requestParameters, options) {
4323
+ return localVarFp.setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
4324
+ },
4325
+ };
4326
+ };
4327
+ /**
4328
+ * UserPaymentApi - object-oriented interface
4329
+ * @export
4330
+ * @class UserPaymentApi
4331
+ * @extends {BaseAPI}
4332
+ */
4333
+ export class UserPaymentApi extends BaseAPI {
4334
+ /**
4335
+ * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
4336
+ * @summary Confirme la configuration d\'une méthode de paiement
4337
+ * @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
4338
+ * @param {*} [options] Override http request option.
4339
+ * @throws {RequiredError}
4340
+ * @memberof UserPaymentApi
4341
+ */
4342
+ confirmPaymentMethodSetup(requestParameters, options) {
4343
+ return UserPaymentApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
4344
+ }
4345
+ /**
4346
+ * Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
4347
+ * @summary Configure une méthode de paiement pour un utilisateur
4348
+ * @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
4349
+ * @param {*} [options] Override http request option.
4350
+ * @throws {RequiredError}
4351
+ * @memberof UserPaymentApi
4352
+ */
4353
+ setupPaymentMethod(requestParameters, options) {
4354
+ return UserPaymentApiFp(this.configuration).setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
4355
+ }
4356
+ }
4177
4357
  /**
4178
4358
  * UserProfileApi - axios parameter creator
4179
4359
  * @export
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).