@tennac-booking/sdk 1.0.132 → 1.0.133
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 +337 -362
- package/README.md +3 -28
- package/api.ts +150 -1296
- package/dist/api.d.ts +141 -1243
- package/dist/api.js +18 -127
- package/dist/esm/api.d.ts +141 -1243
- package/dist/esm/api.js +14 -123
- package/docs/SubscriptionPlanDiscountUpdateRequest.md +36 -0
- package/docs/{UpdatePlanRequest.md → SubscriptionPlanDiscountUpdateRequestValidFrom.md} +3 -7
- package/docs/SubscriptionPlanResponse.md +2 -0
- package/docs/SubscriptionsManagerApi.md +7 -7
- package/docs/UpdateSubscriptionPlanRequest.md +34 -0
- package/package.json +1 -1
- package/docs/StripeStripeDeletedProduct.md +0 -25
- package/docs/StripeStripePrice.md +0 -63
- package/docs/StripeStripePriceBillingScheme.md +0 -10
- package/docs/StripeStripePriceCurrencyOptions.md +0 -28
- package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +0 -24
- package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +0 -12
- package/docs/StripeStripePriceCurrencyOptionsTier.md +0 -28
- package/docs/StripeStripePriceCustomUnitAmount.md +0 -24
- package/docs/StripeStripePriceProduct.md +0 -59
- package/docs/StripeStripePriceRecurring.md +0 -28
- package/docs/StripeStripePriceRecurringInterval.md +0 -14
- package/docs/StripeStripePriceRecurringUsageType.md +0 -10
- package/docs/StripeStripePriceTaxBehavior.md +0 -12
- package/docs/StripeStripePriceTier.md +0 -28
- package/docs/StripeStripePriceTiersMode.md +0 -10
- package/docs/StripeStripePriceTransformQuantity.md +0 -22
- package/docs/StripeStripePriceTransformQuantityRound.md +0 -10
- package/docs/StripeStripePriceType.md +0 -10
- package/docs/StripeStripeProduct.md +0 -59
- package/docs/StripeStripeProductDefaultPrice.md +0 -63
- package/docs/StripeStripeProductMarketingFeature.md +0 -20
- package/docs/StripeStripeProductPackageDimensions.md +0 -26
- package/docs/StripeStripeProductTaxCode.md +0 -27
- package/docs/StripeStripeProductType.md +0 -10
- package/docs/StripeStripeResponseStripeStripePrice.md +0 -64
- package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +0 -30
- package/docs/StripeStripeTaxCode.md +0 -27
package/dist/api.js
CHANGED
|
@@ -22,10 +22,10 @@ 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.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory =
|
|
25
|
+
exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
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.ClubAnalyticsStaffApi = 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 = void 0;
|
|
27
|
+
exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = 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.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 = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -298,115 +298,6 @@ exports.StaffBookingPaymentState = {
|
|
|
298
298
|
Failed: 'failed',
|
|
299
299
|
Partial: 'partial'
|
|
300
300
|
};
|
|
301
|
-
exports.StripeStripeDeletedProductObjectEnum = {
|
|
302
|
-
Product: 'product'
|
|
303
|
-
};
|
|
304
|
-
exports.StripeStripePriceObjectEnum = {
|
|
305
|
-
Price: 'price'
|
|
306
|
-
};
|
|
307
|
-
/**
|
|
308
|
-
*
|
|
309
|
-
* @export
|
|
310
|
-
* @enum {string}
|
|
311
|
-
*/
|
|
312
|
-
exports.StripeStripePriceBillingScheme = {
|
|
313
|
-
PerUnit: 'per_unit',
|
|
314
|
-
Tiered: 'tiered'
|
|
315
|
-
};
|
|
316
|
-
/**
|
|
317
|
-
*
|
|
318
|
-
* @export
|
|
319
|
-
* @enum {string}
|
|
320
|
-
*/
|
|
321
|
-
exports.StripeStripePriceCurrencyOptionsTaxBehavior = {
|
|
322
|
-
Exclusive: 'exclusive',
|
|
323
|
-
Inclusive: 'inclusive',
|
|
324
|
-
Unspecified: 'unspecified'
|
|
325
|
-
};
|
|
326
|
-
exports.StripeStripePriceProductObjectEnum = {
|
|
327
|
-
Product: 'product'
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
*
|
|
331
|
-
* @export
|
|
332
|
-
* @enum {string}
|
|
333
|
-
*/
|
|
334
|
-
exports.StripeStripePriceRecurringInterval = {
|
|
335
|
-
Day: 'day',
|
|
336
|
-
Month: 'month',
|
|
337
|
-
Week: 'week',
|
|
338
|
-
Year: 'year'
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
*
|
|
342
|
-
* @export
|
|
343
|
-
* @enum {string}
|
|
344
|
-
*/
|
|
345
|
-
exports.StripeStripePriceRecurringUsageType = {
|
|
346
|
-
Licensed: 'licensed',
|
|
347
|
-
Metered: 'metered'
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
*
|
|
351
|
-
* @export
|
|
352
|
-
* @enum {string}
|
|
353
|
-
*/
|
|
354
|
-
exports.StripeStripePriceTaxBehavior = {
|
|
355
|
-
Exclusive: 'exclusive',
|
|
356
|
-
Inclusive: 'inclusive',
|
|
357
|
-
Unspecified: 'unspecified'
|
|
358
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
*
|
|
361
|
-
* @export
|
|
362
|
-
* @enum {string}
|
|
363
|
-
*/
|
|
364
|
-
exports.StripeStripePriceTiersMode = {
|
|
365
|
-
Graduated: 'graduated',
|
|
366
|
-
Volume: 'volume'
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
*
|
|
370
|
-
* @export
|
|
371
|
-
* @enum {string}
|
|
372
|
-
*/
|
|
373
|
-
exports.StripeStripePriceTransformQuantityRound = {
|
|
374
|
-
Down: 'down',
|
|
375
|
-
Up: 'up'
|
|
376
|
-
};
|
|
377
|
-
/**
|
|
378
|
-
*
|
|
379
|
-
* @export
|
|
380
|
-
* @enum {string}
|
|
381
|
-
*/
|
|
382
|
-
exports.StripeStripePriceType = {
|
|
383
|
-
OneTime: 'one_time',
|
|
384
|
-
Recurring: 'recurring'
|
|
385
|
-
};
|
|
386
|
-
exports.StripeStripeProductObjectEnum = {
|
|
387
|
-
Product: 'product'
|
|
388
|
-
};
|
|
389
|
-
exports.StripeStripeProductDefaultPriceObjectEnum = {
|
|
390
|
-
Price: 'price'
|
|
391
|
-
};
|
|
392
|
-
exports.StripeStripeProductTaxCodeObjectEnum = {
|
|
393
|
-
TaxCode: 'tax_code'
|
|
394
|
-
};
|
|
395
|
-
/**
|
|
396
|
-
*
|
|
397
|
-
* @export
|
|
398
|
-
* @enum {string}
|
|
399
|
-
*/
|
|
400
|
-
exports.StripeStripeProductType = {
|
|
401
|
-
Good: 'good',
|
|
402
|
-
Service: 'service'
|
|
403
|
-
};
|
|
404
|
-
exports.StripeStripeResponseStripeStripePriceObjectEnum = {
|
|
405
|
-
Price: 'price'
|
|
406
|
-
};
|
|
407
|
-
exports.StripeStripeTaxCodeObjectEnum = {
|
|
408
|
-
TaxCode: 'tax_code'
|
|
409
|
-
};
|
|
410
301
|
/**
|
|
411
302
|
*
|
|
412
303
|
* @export
|
|
@@ -9648,14 +9539,14 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
9648
9539
|
};
|
|
9649
9540
|
}),
|
|
9650
9541
|
/**
|
|
9651
|
-
* Met à jour un plan en
|
|
9652
|
-
* @param {
|
|
9542
|
+
* Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
|
|
9543
|
+
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
9653
9544
|
* @param {*} [options] Override http request option.
|
|
9654
9545
|
* @throws {RequiredError}
|
|
9655
9546
|
*/
|
|
9656
|
-
updatePlan: (
|
|
9657
|
-
// verify required parameter '
|
|
9658
|
-
(0, common_1.assertParamExists)('updatePlan', '
|
|
9547
|
+
updatePlan: (updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (updateSubscriptionPlanRequest, options = {}) {
|
|
9548
|
+
// verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
|
|
9549
|
+
(0, common_1.assertParamExists)('updatePlan', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
|
|
9659
9550
|
const localVarPath = `/api/subscriptions/plans`;
|
|
9660
9551
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9661
9552
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -9673,7 +9564,7 @@ const SubscriptionsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
9673
9564
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9674
9565
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9675
9566
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9676
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
9567
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
|
|
9677
9568
|
return {
|
|
9678
9569
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9679
9570
|
options: localVarRequestOptions,
|
|
@@ -9735,15 +9626,15 @@ const SubscriptionsManagerApiFp = function (configuration) {
|
|
|
9735
9626
|
});
|
|
9736
9627
|
},
|
|
9737
9628
|
/**
|
|
9738
|
-
* Met à jour un plan en
|
|
9739
|
-
* @param {
|
|
9629
|
+
* Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
|
|
9630
|
+
* @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
|
|
9740
9631
|
* @param {*} [options] Override http request option.
|
|
9741
9632
|
* @throws {RequiredError}
|
|
9742
9633
|
*/
|
|
9743
|
-
updatePlan(
|
|
9634
|
+
updatePlan(updateSubscriptionPlanRequest, options) {
|
|
9744
9635
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9745
9636
|
var _a, _b, _c;
|
|
9746
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(
|
|
9637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlan(updateSubscriptionPlanRequest, options);
|
|
9747
9638
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9748
9639
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsManagerApi.updatePlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9749
9640
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9787,13 +9678,13 @@ const SubscriptionsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
9787
9678
|
return localVarFp.deletePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
9788
9679
|
},
|
|
9789
9680
|
/**
|
|
9790
|
-
* Met à jour un plan en
|
|
9681
|
+
* Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
|
|
9791
9682
|
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
9792
9683
|
* @param {*} [options] Override http request option.
|
|
9793
9684
|
* @throws {RequiredError}
|
|
9794
9685
|
*/
|
|
9795
9686
|
updatePlan(requestParameters, options) {
|
|
9796
|
-
return localVarFp.updatePlan(requestParameters.
|
|
9687
|
+
return localVarFp.updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
9797
9688
|
},
|
|
9798
9689
|
};
|
|
9799
9690
|
};
|
|
@@ -9836,14 +9727,14 @@ class SubscriptionsManagerApi extends base_1.BaseAPI {
|
|
|
9836
9727
|
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).deletePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
9837
9728
|
}
|
|
9838
9729
|
/**
|
|
9839
|
-
* Met à jour un plan en
|
|
9730
|
+
* Met à jour un plan en annotant ses métadonnées et, si demandé, son prix (manager)
|
|
9840
9731
|
* @param {SubscriptionsManagerApiUpdatePlanRequest} requestParameters Request parameters.
|
|
9841
9732
|
* @param {*} [options] Override http request option.
|
|
9842
9733
|
* @throws {RequiredError}
|
|
9843
9734
|
* @memberof SubscriptionsManagerApi
|
|
9844
9735
|
*/
|
|
9845
9736
|
updatePlan(requestParameters, options) {
|
|
9846
|
-
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).updatePlan(requestParameters.
|
|
9737
|
+
return (0, exports.SubscriptionsManagerApiFp)(this.configuration).updatePlan(requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9847
9738
|
}
|
|
9848
9739
|
}
|
|
9849
9740
|
exports.SubscriptionsManagerApi = SubscriptionsManagerApi;
|