@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/dist/api.js
CHANGED
|
@@ -22,11 +22,11 @@ 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.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.GetUserBookingsTimeFilterEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SumUpManagerApi = exports.SumUpManagerApiFactory = exports.SumUpManagerApiFp = exports.SumUpManagerApiAxiosParamCreator = exports.SumUpApi = exports.SumUpApiFactory = exports.SumUpApiFp = exports.SumUpApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
25
|
+
exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.QuickReservationCourtType = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentStatus = exports.PaymentProviderType = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.NotificationType = exports.NotificationTargetPreviewTypeEnum = exports.NotificationActorType = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.EventBookingDetailSummaryUserParticipationStatusEnum = exports.EventBookingDetailEventSummaryParticipationTypeEnum = exports.EventBookingDetailEventSummaryRecurringTypeEnum = exports.EventBookingDetailEventSummaryTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.CourtEnvironment = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingSummaryUserParticipationStatusEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.WaitListEntryWithPlayerTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.SupportedLanguage = void 0;
|
|
27
|
+
exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = void 0;
|
|
28
|
+
exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsMobileApi = exports.SubscriptionsMobileApiFactory = exports.SubscriptionsMobileApiFp = exports.SubscriptionsMobileApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.PaymentsStaffApi = exports.PaymentsStaffApiFactory = exports.PaymentsStaffApiFp = exports.PaymentsStaffApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = void 0;
|
|
29
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.GetUserBookingsTimeFilterEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SumUpManagerApi = exports.SumUpManagerApiFactory = exports.SumUpManagerApiFp = exports.SumUpManagerApiAxiosParamCreator = exports.SumUpApi = exports.SumUpApiFactory = exports.SumUpApiFp = exports.SumUpApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -148,6 +148,20 @@ exports.DiscountType = {
|
|
|
148
148
|
Percentage: 'percentage',
|
|
149
149
|
OffPeak: 'off_peak'
|
|
150
150
|
};
|
|
151
|
+
exports.EventBookingDetailEventSummaryTypeEnum = {
|
|
152
|
+
Event: 'event',
|
|
153
|
+
Closure: 'closure'
|
|
154
|
+
};
|
|
155
|
+
exports.EventBookingDetailEventSummaryRecurringTypeEnum = {
|
|
156
|
+
Unique: 'unique',
|
|
157
|
+
Daily: 'daily',
|
|
158
|
+
Weekly: 'weekly',
|
|
159
|
+
Monthly: 'monthly'
|
|
160
|
+
};
|
|
161
|
+
exports.EventBookingDetailEventSummaryParticipationTypeEnum = {
|
|
162
|
+
Solo: 'solo',
|
|
163
|
+
Team: 'team'
|
|
164
|
+
};
|
|
151
165
|
exports.EventBookingDetailSummaryUserParticipationStatusEnum = {
|
|
152
166
|
Participant: 'participant',
|
|
153
167
|
WaitingJoinPayment: 'waitingJoinPayment',
|
|
@@ -13765,6 +13779,176 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
|
13765
13779
|
}
|
|
13766
13780
|
}
|
|
13767
13781
|
exports.SubscriptionsManagerApi = SubscriptionsManagerApi;
|
|
13782
|
+
/**
|
|
13783
|
+
* SubscriptionsMobileApi - axios parameter creator
|
|
13784
|
+
* @export
|
|
13785
|
+
*/
|
|
13786
|
+
const SubscriptionsMobileApiAxiosParamCreator = function (configuration) {
|
|
13787
|
+
return {
|
|
13788
|
+
/**
|
|
13789
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
13790
|
+
* @param {CancelIncompleteBody} cancelIncompleteBody
|
|
13791
|
+
* @param {*} [options] Override http request option.
|
|
13792
|
+
* @throws {RequiredError}
|
|
13793
|
+
*/
|
|
13794
|
+
cancelIncomplete: (cancelIncompleteBody_1, ...args_1) => __awaiter(this, [cancelIncompleteBody_1, ...args_1], void 0, function* (cancelIncompleteBody, options = {}) {
|
|
13795
|
+
// verify required parameter 'cancelIncompleteBody' is not null or undefined
|
|
13796
|
+
(0, common_1.assertParamExists)('cancelIncomplete', 'cancelIncompleteBody', cancelIncompleteBody);
|
|
13797
|
+
const localVarPath = `/api/mobile/subscriptions/cancel-incomplete`;
|
|
13798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13799
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13800
|
+
let baseOptions;
|
|
13801
|
+
if (configuration) {
|
|
13802
|
+
baseOptions = configuration.baseOptions;
|
|
13803
|
+
}
|
|
13804
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13805
|
+
const localVarHeaderParameter = {};
|
|
13806
|
+
const localVarQueryParameter = {};
|
|
13807
|
+
// authentication bearerAuth required
|
|
13808
|
+
// http bearer authentication required
|
|
13809
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13810
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13811
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13813
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13814
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cancelIncompleteBody, localVarRequestOptions, configuration);
|
|
13815
|
+
return {
|
|
13816
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13817
|
+
options: localVarRequestOptions,
|
|
13818
|
+
};
|
|
13819
|
+
}),
|
|
13820
|
+
/**
|
|
13821
|
+
* 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.
|
|
13822
|
+
* @param {MobilePaymentSheetBody} mobilePaymentSheetBody
|
|
13823
|
+
* @param {*} [options] Override http request option.
|
|
13824
|
+
* @throws {RequiredError}
|
|
13825
|
+
*/
|
|
13826
|
+
mobilePaymentSheet: (mobilePaymentSheetBody_1, ...args_1) => __awaiter(this, [mobilePaymentSheetBody_1, ...args_1], void 0, function* (mobilePaymentSheetBody, options = {}) {
|
|
13827
|
+
// verify required parameter 'mobilePaymentSheetBody' is not null or undefined
|
|
13828
|
+
(0, common_1.assertParamExists)('mobilePaymentSheet', 'mobilePaymentSheetBody', mobilePaymentSheetBody);
|
|
13829
|
+
const localVarPath = `/api/mobile/subscriptions/payment-sheet`;
|
|
13830
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13831
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13832
|
+
let baseOptions;
|
|
13833
|
+
if (configuration) {
|
|
13834
|
+
baseOptions = configuration.baseOptions;
|
|
13835
|
+
}
|
|
13836
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13837
|
+
const localVarHeaderParameter = {};
|
|
13838
|
+
const localVarQueryParameter = {};
|
|
13839
|
+
// authentication bearerAuth required
|
|
13840
|
+
// http bearer authentication required
|
|
13841
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13842
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13843
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13845
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13846
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mobilePaymentSheetBody, localVarRequestOptions, configuration);
|
|
13847
|
+
return {
|
|
13848
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13849
|
+
options: localVarRequestOptions,
|
|
13850
|
+
};
|
|
13851
|
+
}),
|
|
13852
|
+
};
|
|
13853
|
+
};
|
|
13854
|
+
exports.SubscriptionsMobileApiAxiosParamCreator = SubscriptionsMobileApiAxiosParamCreator;
|
|
13855
|
+
/**
|
|
13856
|
+
* SubscriptionsMobileApi - functional programming interface
|
|
13857
|
+
* @export
|
|
13858
|
+
*/
|
|
13859
|
+
const SubscriptionsMobileApiFp = function (configuration) {
|
|
13860
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionsMobileApiAxiosParamCreator)(configuration);
|
|
13861
|
+
return {
|
|
13862
|
+
/**
|
|
13863
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
13864
|
+
* @param {CancelIncompleteBody} cancelIncompleteBody
|
|
13865
|
+
* @param {*} [options] Override http request option.
|
|
13866
|
+
* @throws {RequiredError}
|
|
13867
|
+
*/
|
|
13868
|
+
cancelIncomplete(cancelIncompleteBody, options) {
|
|
13869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13870
|
+
var _a, _b, _c;
|
|
13871
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelIncomplete(cancelIncompleteBody, options);
|
|
13872
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13873
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsMobileApi.cancelIncomplete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13874
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13875
|
+
});
|
|
13876
|
+
},
|
|
13877
|
+
/**
|
|
13878
|
+
* 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.
|
|
13879
|
+
* @param {MobilePaymentSheetBody} mobilePaymentSheetBody
|
|
13880
|
+
* @param {*} [options] Override http request option.
|
|
13881
|
+
* @throws {RequiredError}
|
|
13882
|
+
*/
|
|
13883
|
+
mobilePaymentSheet(mobilePaymentSheetBody, options) {
|
|
13884
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13885
|
+
var _a, _b, _c;
|
|
13886
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mobilePaymentSheet(mobilePaymentSheetBody, options);
|
|
13887
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13888
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsMobileApi.mobilePaymentSheet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13889
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13890
|
+
});
|
|
13891
|
+
},
|
|
13892
|
+
};
|
|
13893
|
+
};
|
|
13894
|
+
exports.SubscriptionsMobileApiFp = SubscriptionsMobileApiFp;
|
|
13895
|
+
/**
|
|
13896
|
+
* SubscriptionsMobileApi - factory interface
|
|
13897
|
+
* @export
|
|
13898
|
+
*/
|
|
13899
|
+
const SubscriptionsMobileApiFactory = function (configuration, basePath, axios) {
|
|
13900
|
+
const localVarFp = (0, exports.SubscriptionsMobileApiFp)(configuration);
|
|
13901
|
+
return {
|
|
13902
|
+
/**
|
|
13903
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
13904
|
+
* @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
|
|
13905
|
+
* @param {*} [options] Override http request option.
|
|
13906
|
+
* @throws {RequiredError}
|
|
13907
|
+
*/
|
|
13908
|
+
cancelIncomplete(requestParameters, options) {
|
|
13909
|
+
return localVarFp.cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(axios, basePath));
|
|
13910
|
+
},
|
|
13911
|
+
/**
|
|
13912
|
+
* 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.
|
|
13913
|
+
* @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
|
|
13914
|
+
* @param {*} [options] Override http request option.
|
|
13915
|
+
* @throws {RequiredError}
|
|
13916
|
+
*/
|
|
13917
|
+
mobilePaymentSheet(requestParameters, options) {
|
|
13918
|
+
return localVarFp.mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(axios, basePath));
|
|
13919
|
+
},
|
|
13920
|
+
};
|
|
13921
|
+
};
|
|
13922
|
+
exports.SubscriptionsMobileApiFactory = SubscriptionsMobileApiFactory;
|
|
13923
|
+
/**
|
|
13924
|
+
* SubscriptionsMobileApi - object-oriented interface
|
|
13925
|
+
* @export
|
|
13926
|
+
* @class SubscriptionsMobileApi
|
|
13927
|
+
* @extends {BaseAPI}
|
|
13928
|
+
*/
|
|
13929
|
+
class SubscriptionsMobileApi extends base_1.BaseAPI {
|
|
13930
|
+
/**
|
|
13931
|
+
* Annule immédiatement une subscription restée en statut \"incomplete\" (après fermeture PaymentSheet).
|
|
13932
|
+
* @param {SubscriptionsMobileApiCancelIncompleteRequest} requestParameters Request parameters.
|
|
13933
|
+
* @param {*} [options] Override http request option.
|
|
13934
|
+
* @throws {RequiredError}
|
|
13935
|
+
* @memberof SubscriptionsMobileApi
|
|
13936
|
+
*/
|
|
13937
|
+
cancelIncomplete(requestParameters, options) {
|
|
13938
|
+
return (0, exports.SubscriptionsMobileApiFp)(this.configuration).cancelIncomplete(requestParameters.cancelIncompleteBody, options).then((request) => request(this.axios, this.basePath));
|
|
13939
|
+
}
|
|
13940
|
+
/**
|
|
13941
|
+
* 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.
|
|
13942
|
+
* @param {SubscriptionsMobileApiMobilePaymentSheetRequest} requestParameters Request parameters.
|
|
13943
|
+
* @param {*} [options] Override http request option.
|
|
13944
|
+
* @throws {RequiredError}
|
|
13945
|
+
* @memberof SubscriptionsMobileApi
|
|
13946
|
+
*/
|
|
13947
|
+
mobilePaymentSheet(requestParameters, options) {
|
|
13948
|
+
return (0, exports.SubscriptionsMobileApiFp)(this.configuration).mobilePaymentSheet(requestParameters.mobilePaymentSheetBody, options).then((request) => request(this.axios, this.basePath));
|
|
13949
|
+
}
|
|
13950
|
+
}
|
|
13951
|
+
exports.SubscriptionsMobileApi = SubscriptionsMobileApi;
|
|
13768
13952
|
/**
|
|
13769
13953
|
* SubscriptionsPublicApi - axios parameter creator
|
|
13770
13954
|
* @export
|
|
@@ -15309,6 +15493,37 @@ exports.SumUpManagerApi = SumUpManagerApi;
|
|
|
15309
15493
|
*/
|
|
15310
15494
|
const UserApiAxiosParamCreator = function (configuration) {
|
|
15311
15495
|
return {
|
|
15496
|
+
/**
|
|
15497
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
15498
|
+
* @param {string} clubId
|
|
15499
|
+
* @param {*} [options] Override http request option.
|
|
15500
|
+
* @throws {RequiredError}
|
|
15501
|
+
*/
|
|
15502
|
+
getMyClubCustomerSettings: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
15503
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
15504
|
+
(0, common_1.assertParamExists)('getMyClubCustomerSettings', 'clubId', clubId);
|
|
15505
|
+
const localVarPath = `/api/users/me/clubCustomers/{clubId}`
|
|
15506
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
15507
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15508
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15509
|
+
let baseOptions;
|
|
15510
|
+
if (configuration) {
|
|
15511
|
+
baseOptions = configuration.baseOptions;
|
|
15512
|
+
}
|
|
15513
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15514
|
+
const localVarHeaderParameter = {};
|
|
15515
|
+
const localVarQueryParameter = {};
|
|
15516
|
+
// authentication bearerAuth required
|
|
15517
|
+
// http bearer authentication required
|
|
15518
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15519
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15520
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15521
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15522
|
+
return {
|
|
15523
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15524
|
+
options: localVarRequestOptions,
|
|
15525
|
+
};
|
|
15526
|
+
}),
|
|
15312
15527
|
/**
|
|
15313
15528
|
* Récupère les informations du club de l\'utilisateur
|
|
15314
15529
|
* @param {string} clubId
|
|
@@ -15352,6 +15567,21 @@ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
|
15352
15567
|
const UserApiFp = function (configuration) {
|
|
15353
15568
|
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
15354
15569
|
return {
|
|
15570
|
+
/**
|
|
15571
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
15572
|
+
* @param {string} clubId
|
|
15573
|
+
* @param {*} [options] Override http request option.
|
|
15574
|
+
* @throws {RequiredError}
|
|
15575
|
+
*/
|
|
15576
|
+
getMyClubCustomerSettings(clubId, options) {
|
|
15577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15578
|
+
var _a, _b, _c;
|
|
15579
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubCustomerSettings(clubId, options);
|
|
15580
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15581
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getMyClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15582
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15583
|
+
});
|
|
15584
|
+
},
|
|
15355
15585
|
/**
|
|
15356
15586
|
* Récupère les informations du club de l\'utilisateur
|
|
15357
15587
|
* @param {string} clubId
|
|
@@ -15377,6 +15607,15 @@ exports.UserApiFp = UserApiFp;
|
|
|
15377
15607
|
const UserApiFactory = function (configuration, basePath, axios) {
|
|
15378
15608
|
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
15379
15609
|
return {
|
|
15610
|
+
/**
|
|
15611
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
15612
|
+
* @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
15613
|
+
* @param {*} [options] Override http request option.
|
|
15614
|
+
* @throws {RequiredError}
|
|
15615
|
+
*/
|
|
15616
|
+
getMyClubCustomerSettings(requestParameters, options) {
|
|
15617
|
+
return localVarFp.getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
15618
|
+
},
|
|
15380
15619
|
/**
|
|
15381
15620
|
* Récupère les informations du club de l\'utilisateur
|
|
15382
15621
|
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
@@ -15396,6 +15635,16 @@ exports.UserApiFactory = UserApiFactory;
|
|
|
15396
15635
|
* @extends {BaseAPI}
|
|
15397
15636
|
*/
|
|
15398
15637
|
class UserApi extends base_1.BaseAPI {
|
|
15638
|
+
/**
|
|
15639
|
+
* Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
|
|
15640
|
+
* @param {UserApiGetMyClubCustomerSettingsRequest} requestParameters Request parameters.
|
|
15641
|
+
* @param {*} [options] Override http request option.
|
|
15642
|
+
* @throws {RequiredError}
|
|
15643
|
+
* @memberof UserApi
|
|
15644
|
+
*/
|
|
15645
|
+
getMyClubCustomerSettings(requestParameters, options) {
|
|
15646
|
+
return (0, exports.UserApiFp)(this.configuration).getMyClubCustomerSettings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
15647
|
+
}
|
|
15399
15648
|
/**
|
|
15400
15649
|
* Récupère les informations du club de l\'utilisateur
|
|
15401
15650
|
* @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
|
|
@@ -15632,6 +15881,37 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15632
15881
|
options: localVarRequestOptions,
|
|
15633
15882
|
};
|
|
15634
15883
|
}),
|
|
15884
|
+
/**
|
|
15885
|
+
*
|
|
15886
|
+
* @param {string} eventBookingId
|
|
15887
|
+
* @param {*} [options] Override http request option.
|
|
15888
|
+
* @throws {RequiredError}
|
|
15889
|
+
*/
|
|
15890
|
+
getEventBookingDetail: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
|
|
15891
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
15892
|
+
(0, common_1.assertParamExists)('getEventBookingDetail', 'eventBookingId', eventBookingId);
|
|
15893
|
+
const localVarPath = `/api/users/me/event-booking-detail/{eventBookingId}`
|
|
15894
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
15895
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15896
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15897
|
+
let baseOptions;
|
|
15898
|
+
if (configuration) {
|
|
15899
|
+
baseOptions = configuration.baseOptions;
|
|
15900
|
+
}
|
|
15901
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15902
|
+
const localVarHeaderParameter = {};
|
|
15903
|
+
const localVarQueryParameter = {};
|
|
15904
|
+
// authentication bearerAuth required
|
|
15905
|
+
// http bearer authentication required
|
|
15906
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15907
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15909
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15910
|
+
return {
|
|
15911
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15912
|
+
options: localVarRequestOptions,
|
|
15913
|
+
};
|
|
15914
|
+
}),
|
|
15635
15915
|
/**
|
|
15636
15916
|
*
|
|
15637
15917
|
* @param {*} [options] Override http request option.
|
|
@@ -17075,6 +17355,21 @@ const UsersApiFp = function (configuration) {
|
|
|
17075
17355
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17076
17356
|
});
|
|
17077
17357
|
},
|
|
17358
|
+
/**
|
|
17359
|
+
*
|
|
17360
|
+
* @param {string} eventBookingId
|
|
17361
|
+
* @param {*} [options] Override http request option.
|
|
17362
|
+
* @throws {RequiredError}
|
|
17363
|
+
*/
|
|
17364
|
+
getEventBookingDetail(eventBookingId, options) {
|
|
17365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17366
|
+
var _a, _b, _c;
|
|
17367
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventBookingDetail(eventBookingId, options);
|
|
17368
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17369
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getEventBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17370
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17371
|
+
});
|
|
17372
|
+
},
|
|
17078
17373
|
/**
|
|
17079
17374
|
*
|
|
17080
17375
|
* @param {*} [options] Override http request option.
|
|
@@ -17781,6 +18076,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
17781
18076
|
getBookingDetail(requestParameters, options) {
|
|
17782
18077
|
return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
17783
18078
|
},
|
|
18079
|
+
/**
|
|
18080
|
+
*
|
|
18081
|
+
* @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
|
|
18082
|
+
* @param {*} [options] Override http request option.
|
|
18083
|
+
* @throws {RequiredError}
|
|
18084
|
+
*/
|
|
18085
|
+
getEventBookingDetail(requestParameters, options) {
|
|
18086
|
+
return localVarFp.getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
18087
|
+
},
|
|
17784
18088
|
/**
|
|
17785
18089
|
*
|
|
17786
18090
|
* @param {*} [options] Override http request option.
|
|
@@ -18221,6 +18525,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
18221
18525
|
getBookingDetail(requestParameters, options) {
|
|
18222
18526
|
return (0, exports.UsersApiFp)(this.configuration).getBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
18223
18527
|
}
|
|
18528
|
+
/**
|
|
18529
|
+
*
|
|
18530
|
+
* @param {UsersApiGetEventBookingDetailRequest} requestParameters Request parameters.
|
|
18531
|
+
* @param {*} [options] Override http request option.
|
|
18532
|
+
* @throws {RequiredError}
|
|
18533
|
+
* @memberof UsersApi
|
|
18534
|
+
*/
|
|
18535
|
+
getEventBookingDetail(requestParameters, options) {
|
|
18536
|
+
return (0, exports.UsersApiFp)(this.configuration).getEventBookingDetail(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
18537
|
+
}
|
|
18224
18538
|
/**
|
|
18225
18539
|
*
|
|
18226
18540
|
* @param {*} [options] Override http request option.
|