@tennac-booking/sdk 1.0.15 → 1.0.16
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 +134 -125
- package/README.md +10 -0
- package/api.ts +443 -0
- package/dist/api.d.ts +338 -0
- package/dist/api.js +187 -2
- package/dist/esm/api.d.ts +338 -0
- package/dist/esm/api.js +180 -0
- package/docs/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +22 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtResponse.md +2 -0
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/SetupPaymentMethodRequestBody.md +22 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/UserPaymentApi.md +121 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -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
|
|
@@ -891,6 +995,12 @@ export interface CourtResponse {
|
|
|
891
995
|
* @memberof CourtResponse
|
|
892
996
|
*/
|
|
893
997
|
'endTimeInTheDayInMinutes'?: number;
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @type {number}
|
|
1001
|
+
* @memberof CourtResponse
|
|
1002
|
+
*/
|
|
1003
|
+
'pricePerSlotInCents'?: number;
|
|
894
1004
|
/**
|
|
895
1005
|
*
|
|
896
1006
|
* @type {string}
|
|
@@ -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/api.js
CHANGED
|
@@ -22,8 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
25
|
+
exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = void 0;
|
|
26
|
+
exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffSportsApi = exports.StaffSportsApiFactory = exports.StaffSportsApiFp = exports.StaffSportsApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubSettingsApi = exports.StaffClubSettingsApiFactory = exports.StaffClubSettingsApiFp = exports.StaffClubSettingsApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -39,6 +40,9 @@ exports.BookingStatus = {
|
|
|
39
40
|
Active: 'active',
|
|
40
41
|
Inactive: 'inactive'
|
|
41
42
|
};
|
|
43
|
+
exports.CancelBookingResponseBookingStatusEnum = {
|
|
44
|
+
Cancelled: 'cancelled'
|
|
45
|
+
};
|
|
42
46
|
exports.CourtResponseStatusEnum = {
|
|
43
47
|
Available: 'available',
|
|
44
48
|
Unavailable: 'unavailable'
|
|
@@ -64,6 +68,9 @@ exports.CreatePriceRequestIntervalEnum = {
|
|
|
64
68
|
Month: 'month',
|
|
65
69
|
Year: 'year'
|
|
66
70
|
};
|
|
71
|
+
exports.ManagerCancelBookingResponseBookingStatusEnum = {
|
|
72
|
+
Cancelled: 'cancelled'
|
|
73
|
+
};
|
|
67
74
|
/**
|
|
68
75
|
* Méthode de paiement
|
|
69
76
|
* @export
|
|
@@ -4262,6 +4269,184 @@ class UserClubsApi extends base_1.BaseAPI {
|
|
|
4262
4269
|
}
|
|
4263
4270
|
}
|
|
4264
4271
|
exports.UserClubsApi = UserClubsApi;
|
|
4272
|
+
/**
|
|
4273
|
+
* UserPaymentApi - axios parameter creator
|
|
4274
|
+
* @export
|
|
4275
|
+
*/
|
|
4276
|
+
const UserPaymentApiAxiosParamCreator = function (configuration) {
|
|
4277
|
+
return {
|
|
4278
|
+
/**
|
|
4279
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4280
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4281
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
4282
|
+
* @param {*} [options] Override http request option.
|
|
4283
|
+
* @throws {RequiredError}
|
|
4284
|
+
*/
|
|
4285
|
+
confirmPaymentMethodSetup: (confirmPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodSetupRequestBody, options = {}) {
|
|
4286
|
+
// verify required parameter 'confirmPaymentMethodSetupRequestBody' is not null or undefined
|
|
4287
|
+
(0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodSetupRequestBody', confirmPaymentMethodSetupRequestBody);
|
|
4288
|
+
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
4289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4290
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4291
|
+
let baseOptions;
|
|
4292
|
+
if (configuration) {
|
|
4293
|
+
baseOptions = configuration.baseOptions;
|
|
4294
|
+
}
|
|
4295
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4296
|
+
const localVarHeaderParameter = {};
|
|
4297
|
+
const localVarQueryParameter = {};
|
|
4298
|
+
// authentication bearerAuth required
|
|
4299
|
+
// http bearer authentication required
|
|
4300
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4301
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4302
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4304
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4305
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
|
|
4306
|
+
return {
|
|
4307
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4308
|
+
options: localVarRequestOptions,
|
|
4309
|
+
};
|
|
4310
|
+
}),
|
|
4311
|
+
/**
|
|
4312
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4313
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4314
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
4315
|
+
* @param {*} [options] Override http request option.
|
|
4316
|
+
* @throws {RequiredError}
|
|
4317
|
+
*/
|
|
4318
|
+
setupPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
4319
|
+
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
4320
|
+
(0, common_1.assertParamExists)('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
4321
|
+
const localVarPath = `/api/users/setupPaymentMethod`;
|
|
4322
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4323
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4324
|
+
let baseOptions;
|
|
4325
|
+
if (configuration) {
|
|
4326
|
+
baseOptions = configuration.baseOptions;
|
|
4327
|
+
}
|
|
4328
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4329
|
+
const localVarHeaderParameter = {};
|
|
4330
|
+
const localVarQueryParameter = {};
|
|
4331
|
+
// authentication bearerAuth required
|
|
4332
|
+
// http bearer authentication required
|
|
4333
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4335
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4337
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4338
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
4339
|
+
return {
|
|
4340
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4341
|
+
options: localVarRequestOptions,
|
|
4342
|
+
};
|
|
4343
|
+
}),
|
|
4344
|
+
};
|
|
4345
|
+
};
|
|
4346
|
+
exports.UserPaymentApiAxiosParamCreator = UserPaymentApiAxiosParamCreator;
|
|
4347
|
+
/**
|
|
4348
|
+
* UserPaymentApi - functional programming interface
|
|
4349
|
+
* @export
|
|
4350
|
+
*/
|
|
4351
|
+
const UserPaymentApiFp = function (configuration) {
|
|
4352
|
+
const localVarAxiosParamCreator = (0, exports.UserPaymentApiAxiosParamCreator)(configuration);
|
|
4353
|
+
return {
|
|
4354
|
+
/**
|
|
4355
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4356
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4357
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
4358
|
+
* @param {*} [options] Override http request option.
|
|
4359
|
+
* @throws {RequiredError}
|
|
4360
|
+
*/
|
|
4361
|
+
confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options) {
|
|
4362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4363
|
+
var _a, _b, _c;
|
|
4364
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options);
|
|
4365
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4366
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4367
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4368
|
+
});
|
|
4369
|
+
},
|
|
4370
|
+
/**
|
|
4371
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4372
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4373
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
4374
|
+
* @param {*} [options] Override http request option.
|
|
4375
|
+
* @throws {RequiredError}
|
|
4376
|
+
*/
|
|
4377
|
+
setupPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
4378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4379
|
+
var _a, _b, _c;
|
|
4380
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
4381
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4382
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.setupPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4383
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4384
|
+
});
|
|
4385
|
+
},
|
|
4386
|
+
};
|
|
4387
|
+
};
|
|
4388
|
+
exports.UserPaymentApiFp = UserPaymentApiFp;
|
|
4389
|
+
/**
|
|
4390
|
+
* UserPaymentApi - factory interface
|
|
4391
|
+
* @export
|
|
4392
|
+
*/
|
|
4393
|
+
const UserPaymentApiFactory = function (configuration, basePath, axios) {
|
|
4394
|
+
const localVarFp = (0, exports.UserPaymentApiFp)(configuration);
|
|
4395
|
+
return {
|
|
4396
|
+
/**
|
|
4397
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4398
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4399
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
4400
|
+
* @param {*} [options] Override http request option.
|
|
4401
|
+
* @throws {RequiredError}
|
|
4402
|
+
*/
|
|
4403
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
4404
|
+
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
|
|
4405
|
+
},
|
|
4406
|
+
/**
|
|
4407
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4408
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4409
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
4410
|
+
* @param {*} [options] Override http request option.
|
|
4411
|
+
* @throws {RequiredError}
|
|
4412
|
+
*/
|
|
4413
|
+
setupPaymentMethod(requestParameters, options) {
|
|
4414
|
+
return localVarFp.setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
4415
|
+
},
|
|
4416
|
+
};
|
|
4417
|
+
};
|
|
4418
|
+
exports.UserPaymentApiFactory = UserPaymentApiFactory;
|
|
4419
|
+
/**
|
|
4420
|
+
* UserPaymentApi - object-oriented interface
|
|
4421
|
+
* @export
|
|
4422
|
+
* @class UserPaymentApi
|
|
4423
|
+
* @extends {BaseAPI}
|
|
4424
|
+
*/
|
|
4425
|
+
class UserPaymentApi extends base_1.BaseAPI {
|
|
4426
|
+
/**
|
|
4427
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
4428
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
4429
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
4430
|
+
* @param {*} [options] Override http request option.
|
|
4431
|
+
* @throws {RequiredError}
|
|
4432
|
+
* @memberof UserPaymentApi
|
|
4433
|
+
*/
|
|
4434
|
+
confirmPaymentMethodSetup(requestParameters, options) {
|
|
4435
|
+
return (0, exports.UserPaymentApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4436
|
+
}
|
|
4437
|
+
/**
|
|
4438
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
4439
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
4440
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
4441
|
+
* @param {*} [options] Override http request option.
|
|
4442
|
+
* @throws {RequiredError}
|
|
4443
|
+
* @memberof UserPaymentApi
|
|
4444
|
+
*/
|
|
4445
|
+
setupPaymentMethod(requestParameters, options) {
|
|
4446
|
+
return (0, exports.UserPaymentApiFp)(this.configuration).setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4447
|
+
}
|
|
4448
|
+
}
|
|
4449
|
+
exports.UserPaymentApi = UserPaymentApi;
|
|
4265
4450
|
/**
|
|
4266
4451
|
* UserProfileApi - axios parameter creator
|
|
4267
4452
|
* @export
|