@tennac-booking/sdk 1.0.96 → 1.0.98
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 +14 -0
- package/README.md +29 -2
- package/api.ts +6211 -4937
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +875 -15
- package/dist/api.js +694 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +875 -15
- package/dist/esm/api.js +682 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ActiveSubscriptionResponse.md +22 -0
- package/docs/BookingPriceBody.md +2 -0
- package/docs/BookingPriceResponse.md +2 -0
- package/docs/ClientAccountOnboardingRequest.md +29 -0
- package/docs/ClientAccountOnboardingResponse.md +34 -0
- package/docs/ClientAccountResponse.md +44 -0
- package/docs/ClientAccountsApi.md +408 -0
- package/docs/ClientApi.md +109 -0
- package/docs/ClientMeResponse.md +28 -0
- package/docs/ClientOnboardingRequestBody.md +33 -0
- package/docs/ClientOnboardingResponse.md +27 -0
- package/docs/ClientRegisterRequestBody.md +26 -0
- package/docs/ClientRegisterResponse.md +22 -0
- package/docs/ClientSubscriptionResponse.md +34 -0
- package/docs/CreateBookingRequest.md +0 -2
- package/docs/GetSubscriptionsHistory200Response.md +22 -0
- package/docs/IUserAttributes.md +2 -0
- package/docs/ManagedClubsResponse.md +23 -0
- package/docs/StaffUserProfileResponse.md +2 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.98
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,9 +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.
|
|
25
|
+
exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = 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.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = 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 = void 0;
|
|
27
|
+
exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = 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 = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
|
|
28
29
|
const axios_1 = require("axios");
|
|
29
30
|
// Some imports not used depending on template conditions
|
|
30
31
|
// @ts-ignore
|
|
@@ -58,6 +59,14 @@ exports.CaptureResultStatusEnum = {
|
|
|
58
59
|
Captured: 'captured',
|
|
59
60
|
Failed: 'failed'
|
|
60
61
|
};
|
|
62
|
+
exports.ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
63
|
+
Individual: 'individual',
|
|
64
|
+
Company: 'company'
|
|
65
|
+
};
|
|
66
|
+
exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
67
|
+
Basic: 'basic',
|
|
68
|
+
PlatformWithConnect: 'platform_with_connect'
|
|
69
|
+
};
|
|
61
70
|
exports.ClubRoleResponseRoleEnum = {
|
|
62
71
|
Admin: 'admin',
|
|
63
72
|
Manager: 'manager',
|
|
@@ -1405,6 +1414,687 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
1405
1414
|
}
|
|
1406
1415
|
}
|
|
1407
1416
|
exports.BookingsUserApi = BookingsUserApi;
|
|
1417
|
+
/**
|
|
1418
|
+
* ClientApi - axios parameter creator
|
|
1419
|
+
* @export
|
|
1420
|
+
*/
|
|
1421
|
+
const ClientApiAxiosParamCreator = function (configuration) {
|
|
1422
|
+
return {
|
|
1423
|
+
/**
|
|
1424
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
*/
|
|
1428
|
+
getManagedClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1429
|
+
const localVarPath = `/clients/managed-clubs`;
|
|
1430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1431
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1432
|
+
let baseOptions;
|
|
1433
|
+
if (configuration) {
|
|
1434
|
+
baseOptions = configuration.baseOptions;
|
|
1435
|
+
}
|
|
1436
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1437
|
+
const localVarHeaderParameter = {};
|
|
1438
|
+
const localVarQueryParameter = {};
|
|
1439
|
+
// authentication bearerAuth required
|
|
1440
|
+
// http bearer authentication required
|
|
1441
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1442
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1444
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1445
|
+
return {
|
|
1446
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1447
|
+
options: localVarRequestOptions,
|
|
1448
|
+
};
|
|
1449
|
+
}),
|
|
1450
|
+
/**
|
|
1451
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1452
|
+
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1453
|
+
* @param {*} [options] Override http request option.
|
|
1454
|
+
* @throws {RequiredError}
|
|
1455
|
+
*/
|
|
1456
|
+
onboardClub: (clientOnboardingRequestBody_1, ...args_1) => __awaiter(this, [clientOnboardingRequestBody_1, ...args_1], void 0, function* (clientOnboardingRequestBody, options = {}) {
|
|
1457
|
+
// verify required parameter 'clientOnboardingRequestBody' is not null or undefined
|
|
1458
|
+
(0, common_1.assertParamExists)('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody);
|
|
1459
|
+
const localVarPath = `/clients/onboarding`;
|
|
1460
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1461
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1462
|
+
let baseOptions;
|
|
1463
|
+
if (configuration) {
|
|
1464
|
+
baseOptions = configuration.baseOptions;
|
|
1465
|
+
}
|
|
1466
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1467
|
+
const localVarHeaderParameter = {};
|
|
1468
|
+
const localVarQueryParameter = {};
|
|
1469
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1470
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1471
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1472
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1473
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientOnboardingRequestBody, localVarRequestOptions, configuration);
|
|
1474
|
+
return {
|
|
1475
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1476
|
+
options: localVarRequestOptions,
|
|
1477
|
+
};
|
|
1478
|
+
}),
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
1482
|
+
/**
|
|
1483
|
+
* ClientApi - functional programming interface
|
|
1484
|
+
* @export
|
|
1485
|
+
*/
|
|
1486
|
+
const ClientApiFp = function (configuration) {
|
|
1487
|
+
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1488
|
+
return {
|
|
1489
|
+
/**
|
|
1490
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
*/
|
|
1494
|
+
getManagedClubs(options) {
|
|
1495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1496
|
+
var _a, _b, _c;
|
|
1497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getManagedClubs(options);
|
|
1498
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1499
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.getManagedClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1500
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1501
|
+
});
|
|
1502
|
+
},
|
|
1503
|
+
/**
|
|
1504
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1505
|
+
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1506
|
+
* @param {*} [options] Override http request option.
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
*/
|
|
1509
|
+
onboardClub(clientOnboardingRequestBody, options) {
|
|
1510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1511
|
+
var _a, _b, _c;
|
|
1512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
|
|
1513
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1514
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.onboardClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1515
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1516
|
+
});
|
|
1517
|
+
},
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
exports.ClientApiFp = ClientApiFp;
|
|
1521
|
+
/**
|
|
1522
|
+
* ClientApi - factory interface
|
|
1523
|
+
* @export
|
|
1524
|
+
*/
|
|
1525
|
+
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1526
|
+
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1527
|
+
return {
|
|
1528
|
+
/**
|
|
1529
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1530
|
+
* @param {*} [options] Override http request option.
|
|
1531
|
+
* @throws {RequiredError}
|
|
1532
|
+
*/
|
|
1533
|
+
getManagedClubs(options) {
|
|
1534
|
+
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1535
|
+
},
|
|
1536
|
+
/**
|
|
1537
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1538
|
+
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
*/
|
|
1542
|
+
onboardClub(requestParameters, options) {
|
|
1543
|
+
return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
|
|
1544
|
+
},
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
exports.ClientApiFactory = ClientApiFactory;
|
|
1548
|
+
/**
|
|
1549
|
+
* ClientApi - object-oriented interface
|
|
1550
|
+
* @export
|
|
1551
|
+
* @class ClientApi
|
|
1552
|
+
* @extends {BaseAPI}
|
|
1553
|
+
*/
|
|
1554
|
+
class ClientApi extends base_1.BaseAPI {
|
|
1555
|
+
/**
|
|
1556
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
* @memberof ClientApi
|
|
1560
|
+
*/
|
|
1561
|
+
getManagedClubs(options) {
|
|
1562
|
+
return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1566
|
+
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1567
|
+
* @param {*} [options] Override http request option.
|
|
1568
|
+
* @throws {RequiredError}
|
|
1569
|
+
* @memberof ClientApi
|
|
1570
|
+
*/
|
|
1571
|
+
onboardClub(requestParameters, options) {
|
|
1572
|
+
return (0, exports.ClientApiFp)(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
exports.ClientApi = ClientApi;
|
|
1576
|
+
/**
|
|
1577
|
+
* ClientAccountsApi - axios parameter creator
|
|
1578
|
+
* @export
|
|
1579
|
+
*/
|
|
1580
|
+
const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
1581
|
+
return {
|
|
1582
|
+
/**
|
|
1583
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1584
|
+
* @param {*} [options] Override http request option.
|
|
1585
|
+
* @throws {RequiredError}
|
|
1586
|
+
*/
|
|
1587
|
+
clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1588
|
+
const localVarPath = `/client-accounts/client-auth/me`;
|
|
1589
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1590
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1591
|
+
let baseOptions;
|
|
1592
|
+
if (configuration) {
|
|
1593
|
+
baseOptions = configuration.baseOptions;
|
|
1594
|
+
}
|
|
1595
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1596
|
+
const localVarHeaderParameter = {};
|
|
1597
|
+
const localVarQueryParameter = {};
|
|
1598
|
+
// authentication clientAuth required
|
|
1599
|
+
// http bearer authentication required
|
|
1600
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1601
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1602
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1603
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1604
|
+
return {
|
|
1605
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1606
|
+
options: localVarRequestOptions,
|
|
1607
|
+
};
|
|
1608
|
+
}),
|
|
1609
|
+
/**
|
|
1610
|
+
* Récupère le compte client par son ID
|
|
1611
|
+
* @param {string} accountId L\'ID du compte client
|
|
1612
|
+
* @param {*} [options] Override http request option.
|
|
1613
|
+
* @throws {RequiredError}
|
|
1614
|
+
*/
|
|
1615
|
+
getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
|
|
1616
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
1617
|
+
(0, common_1.assertParamExists)('getClientAccountById', 'accountId', accountId);
|
|
1618
|
+
const localVarPath = `/client-accounts/{accountId}`
|
|
1619
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
1620
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1621
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1622
|
+
let baseOptions;
|
|
1623
|
+
if (configuration) {
|
|
1624
|
+
baseOptions = configuration.baseOptions;
|
|
1625
|
+
}
|
|
1626
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1627
|
+
const localVarHeaderParameter = {};
|
|
1628
|
+
const localVarQueryParameter = {};
|
|
1629
|
+
// authentication bearerAuth required
|
|
1630
|
+
// http bearer authentication required
|
|
1631
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1632
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1634
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1635
|
+
return {
|
|
1636
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1637
|
+
options: localVarRequestOptions,
|
|
1638
|
+
};
|
|
1639
|
+
}),
|
|
1640
|
+
/**
|
|
1641
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
*/
|
|
1645
|
+
getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1646
|
+
const localVarPath = `/client-accounts/me/subscription`;
|
|
1647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1648
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1649
|
+
let baseOptions;
|
|
1650
|
+
if (configuration) {
|
|
1651
|
+
baseOptions = configuration.baseOptions;
|
|
1652
|
+
}
|
|
1653
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1654
|
+
const localVarHeaderParameter = {};
|
|
1655
|
+
const localVarQueryParameter = {};
|
|
1656
|
+
// authentication bearerAuth required
|
|
1657
|
+
// http bearer authentication required
|
|
1658
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1659
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1661
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1662
|
+
return {
|
|
1663
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1664
|
+
options: localVarRequestOptions,
|
|
1665
|
+
};
|
|
1666
|
+
}),
|
|
1667
|
+
/**
|
|
1668
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
1669
|
+
* @param {*} [options] Override http request option.
|
|
1670
|
+
* @throws {RequiredError}
|
|
1671
|
+
*/
|
|
1672
|
+
getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1673
|
+
const localVarPath = `/client-accounts/me`;
|
|
1674
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1675
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1676
|
+
let baseOptions;
|
|
1677
|
+
if (configuration) {
|
|
1678
|
+
baseOptions = configuration.baseOptions;
|
|
1679
|
+
}
|
|
1680
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1681
|
+
const localVarHeaderParameter = {};
|
|
1682
|
+
const localVarQueryParameter = {};
|
|
1683
|
+
// authentication bearerAuth required
|
|
1684
|
+
// http bearer authentication required
|
|
1685
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1686
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1687
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1688
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1689
|
+
return {
|
|
1690
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1691
|
+
options: localVarRequestOptions,
|
|
1692
|
+
};
|
|
1693
|
+
}),
|
|
1694
|
+
/**
|
|
1695
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1696
|
+
* @param {*} [options] Override http request option.
|
|
1697
|
+
* @throws {RequiredError}
|
|
1698
|
+
*/
|
|
1699
|
+
getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1700
|
+
const localVarPath = `/client-accounts/me/subscriptions-history`;
|
|
1701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1702
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1703
|
+
let baseOptions;
|
|
1704
|
+
if (configuration) {
|
|
1705
|
+
baseOptions = configuration.baseOptions;
|
|
1706
|
+
}
|
|
1707
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1708
|
+
const localVarHeaderParameter = {};
|
|
1709
|
+
const localVarQueryParameter = {};
|
|
1710
|
+
// authentication bearerAuth required
|
|
1711
|
+
// http bearer authentication required
|
|
1712
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1713
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1714
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1715
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1716
|
+
return {
|
|
1717
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1718
|
+
options: localVarRequestOptions,
|
|
1719
|
+
};
|
|
1720
|
+
}),
|
|
1721
|
+
/**
|
|
1722
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1723
|
+
* @param {*} [options] Override http request option.
|
|
1724
|
+
* @throws {RequiredError}
|
|
1725
|
+
*/
|
|
1726
|
+
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1727
|
+
const localVarPath = `/client-accounts/available-prices`;
|
|
1728
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1729
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1730
|
+
let baseOptions;
|
|
1731
|
+
if (configuration) {
|
|
1732
|
+
baseOptions = configuration.baseOptions;
|
|
1733
|
+
}
|
|
1734
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1735
|
+
const localVarHeaderParameter = {};
|
|
1736
|
+
const localVarQueryParameter = {};
|
|
1737
|
+
// authentication bearerAuth required
|
|
1738
|
+
// http bearer authentication required
|
|
1739
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1740
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1741
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1742
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1743
|
+
return {
|
|
1744
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1745
|
+
options: localVarRequestOptions,
|
|
1746
|
+
};
|
|
1747
|
+
}),
|
|
1748
|
+
/**
|
|
1749
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
1750
|
+
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1751
|
+
* @param {*} [options] Override http request option.
|
|
1752
|
+
* @throws {RequiredError}
|
|
1753
|
+
*/
|
|
1754
|
+
onboardClientAccount: (clientAccountOnboardingRequest_1, ...args_1) => __awaiter(this, [clientAccountOnboardingRequest_1, ...args_1], void 0, function* (clientAccountOnboardingRequest, options = {}) {
|
|
1755
|
+
// verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
|
|
1756
|
+
(0, common_1.assertParamExists)('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
|
|
1757
|
+
const localVarPath = `/client-accounts/onboarding`;
|
|
1758
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1759
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1760
|
+
let baseOptions;
|
|
1761
|
+
if (configuration) {
|
|
1762
|
+
baseOptions = configuration.baseOptions;
|
|
1763
|
+
}
|
|
1764
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1765
|
+
const localVarHeaderParameter = {};
|
|
1766
|
+
const localVarQueryParameter = {};
|
|
1767
|
+
// authentication clientAuth required
|
|
1768
|
+
// http bearer authentication required
|
|
1769
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1770
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1771
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1772
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1773
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1774
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
|
|
1775
|
+
return {
|
|
1776
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1777
|
+
options: localVarRequestOptions,
|
|
1778
|
+
};
|
|
1779
|
+
}),
|
|
1780
|
+
/**
|
|
1781
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1782
|
+
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1783
|
+
* @param {*} [options] Override http request option.
|
|
1784
|
+
* @throws {RequiredError}
|
|
1785
|
+
*/
|
|
1786
|
+
registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
|
|
1787
|
+
// verify required parameter 'clientRegisterRequestBody' is not null or undefined
|
|
1788
|
+
(0, common_1.assertParamExists)('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
|
|
1789
|
+
const localVarPath = `/client-accounts/register-client-user`;
|
|
1790
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1791
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1792
|
+
let baseOptions;
|
|
1793
|
+
if (configuration) {
|
|
1794
|
+
baseOptions = configuration.baseOptions;
|
|
1795
|
+
}
|
|
1796
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1797
|
+
const localVarHeaderParameter = {};
|
|
1798
|
+
const localVarQueryParameter = {};
|
|
1799
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1800
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1801
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1802
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1803
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequestBody, localVarRequestOptions, configuration);
|
|
1804
|
+
return {
|
|
1805
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1806
|
+
options: localVarRequestOptions,
|
|
1807
|
+
};
|
|
1808
|
+
}),
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
exports.ClientAccountsApiAxiosParamCreator = ClientAccountsApiAxiosParamCreator;
|
|
1812
|
+
/**
|
|
1813
|
+
* ClientAccountsApi - functional programming interface
|
|
1814
|
+
* @export
|
|
1815
|
+
*/
|
|
1816
|
+
const ClientAccountsApiFp = function (configuration) {
|
|
1817
|
+
const localVarAxiosParamCreator = (0, exports.ClientAccountsApiAxiosParamCreator)(configuration);
|
|
1818
|
+
return {
|
|
1819
|
+
/**
|
|
1820
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1821
|
+
* @param {*} [options] Override http request option.
|
|
1822
|
+
* @throws {RequiredError}
|
|
1823
|
+
*/
|
|
1824
|
+
clientAuthMe(options) {
|
|
1825
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1826
|
+
var _a, _b, _c;
|
|
1827
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
|
|
1828
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1829
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.clientAuthMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1830
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1831
|
+
});
|
|
1832
|
+
},
|
|
1833
|
+
/**
|
|
1834
|
+
* Récupère le compte client par son ID
|
|
1835
|
+
* @param {string} accountId L\'ID du compte client
|
|
1836
|
+
* @param {*} [options] Override http request option.
|
|
1837
|
+
* @throws {RequiredError}
|
|
1838
|
+
*/
|
|
1839
|
+
getClientAccountById(accountId, options) {
|
|
1840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1841
|
+
var _a, _b, _c;
|
|
1842
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
|
|
1843
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1844
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1845
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1846
|
+
});
|
|
1847
|
+
},
|
|
1848
|
+
/**
|
|
1849
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
getMyActiveSubscription(options) {
|
|
1854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1855
|
+
var _a, _b, _c;
|
|
1856
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
|
|
1857
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1858
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getMyActiveSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1859
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1860
|
+
});
|
|
1861
|
+
},
|
|
1862
|
+
/**
|
|
1863
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
1864
|
+
* @param {*} [options] Override http request option.
|
|
1865
|
+
* @throws {RequiredError}
|
|
1866
|
+
*/
|
|
1867
|
+
getMyClientAccount(options) {
|
|
1868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1869
|
+
var _a, _b, _c;
|
|
1870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
|
|
1871
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1872
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1873
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1874
|
+
});
|
|
1875
|
+
},
|
|
1876
|
+
/**
|
|
1877
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1878
|
+
* @param {*} [options] Override http request option.
|
|
1879
|
+
* @throws {RequiredError}
|
|
1880
|
+
*/
|
|
1881
|
+
getSubscriptionsHistory(options) {
|
|
1882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1883
|
+
var _a, _b, _c;
|
|
1884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
|
|
1885
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1886
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1887
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1888
|
+
});
|
|
1889
|
+
},
|
|
1890
|
+
/**
|
|
1891
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
listAvailablePrices(options) {
|
|
1896
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1897
|
+
var _a, _b, _c;
|
|
1898
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
|
|
1899
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1900
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1901
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1902
|
+
});
|
|
1903
|
+
},
|
|
1904
|
+
/**
|
|
1905
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
1906
|
+
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1907
|
+
* @param {*} [options] Override http request option.
|
|
1908
|
+
* @throws {RequiredError}
|
|
1909
|
+
*/
|
|
1910
|
+
onboardClientAccount(clientAccountOnboardingRequest, options) {
|
|
1911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1912
|
+
var _a, _b, _c;
|
|
1913
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
|
|
1914
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1915
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.onboardClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1916
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1917
|
+
});
|
|
1918
|
+
},
|
|
1919
|
+
/**
|
|
1920
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1921
|
+
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1922
|
+
* @param {*} [options] Override http request option.
|
|
1923
|
+
* @throws {RequiredError}
|
|
1924
|
+
*/
|
|
1925
|
+
registerClientUser(clientRegisterRequestBody, options) {
|
|
1926
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1927
|
+
var _a, _b, _c;
|
|
1928
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
|
|
1929
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1930
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.registerClientUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1931
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1932
|
+
});
|
|
1933
|
+
},
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1936
|
+
exports.ClientAccountsApiFp = ClientAccountsApiFp;
|
|
1937
|
+
/**
|
|
1938
|
+
* ClientAccountsApi - factory interface
|
|
1939
|
+
* @export
|
|
1940
|
+
*/
|
|
1941
|
+
const ClientAccountsApiFactory = function (configuration, basePath, axios) {
|
|
1942
|
+
const localVarFp = (0, exports.ClientAccountsApiFp)(configuration);
|
|
1943
|
+
return {
|
|
1944
|
+
/**
|
|
1945
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1946
|
+
* @param {*} [options] Override http request option.
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
*/
|
|
1949
|
+
clientAuthMe(options) {
|
|
1950
|
+
return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
|
|
1951
|
+
},
|
|
1952
|
+
/**
|
|
1953
|
+
* Récupère le compte client par son ID
|
|
1954
|
+
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
1955
|
+
* @param {*} [options] Override http request option.
|
|
1956
|
+
* @throws {RequiredError}
|
|
1957
|
+
*/
|
|
1958
|
+
getClientAccountById(requestParameters, options) {
|
|
1959
|
+
return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
1960
|
+
},
|
|
1961
|
+
/**
|
|
1962
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
1963
|
+
* @param {*} [options] Override http request option.
|
|
1964
|
+
* @throws {RequiredError}
|
|
1965
|
+
*/
|
|
1966
|
+
getMyActiveSubscription(options) {
|
|
1967
|
+
return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
|
|
1968
|
+
},
|
|
1969
|
+
/**
|
|
1970
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
1971
|
+
* @param {*} [options] Override http request option.
|
|
1972
|
+
* @throws {RequiredError}
|
|
1973
|
+
*/
|
|
1974
|
+
getMyClientAccount(options) {
|
|
1975
|
+
return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
|
|
1976
|
+
},
|
|
1977
|
+
/**
|
|
1978
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1979
|
+
* @param {*} [options] Override http request option.
|
|
1980
|
+
* @throws {RequiredError}
|
|
1981
|
+
*/
|
|
1982
|
+
getSubscriptionsHistory(options) {
|
|
1983
|
+
return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
|
|
1984
|
+
},
|
|
1985
|
+
/**
|
|
1986
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1987
|
+
* @param {*} [options] Override http request option.
|
|
1988
|
+
* @throws {RequiredError}
|
|
1989
|
+
*/
|
|
1990
|
+
listAvailablePrices(options) {
|
|
1991
|
+
return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
|
|
1992
|
+
},
|
|
1993
|
+
/**
|
|
1994
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
1995
|
+
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
1996
|
+
* @param {*} [options] Override http request option.
|
|
1997
|
+
* @throws {RequiredError}
|
|
1998
|
+
*/
|
|
1999
|
+
onboardClientAccount(requestParameters, options) {
|
|
2000
|
+
return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
|
|
2001
|
+
},
|
|
2002
|
+
/**
|
|
2003
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
2004
|
+
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
2005
|
+
* @param {*} [options] Override http request option.
|
|
2006
|
+
* @throws {RequiredError}
|
|
2007
|
+
*/
|
|
2008
|
+
registerClientUser(requestParameters, options) {
|
|
2009
|
+
return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
2010
|
+
},
|
|
2011
|
+
};
|
|
2012
|
+
};
|
|
2013
|
+
exports.ClientAccountsApiFactory = ClientAccountsApiFactory;
|
|
2014
|
+
/**
|
|
2015
|
+
* ClientAccountsApi - object-oriented interface
|
|
2016
|
+
* @export
|
|
2017
|
+
* @class ClientAccountsApi
|
|
2018
|
+
* @extends {BaseAPI}
|
|
2019
|
+
*/
|
|
2020
|
+
class ClientAccountsApi extends base_1.BaseAPI {
|
|
2021
|
+
/**
|
|
2022
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
2023
|
+
* @param {*} [options] Override http request option.
|
|
2024
|
+
* @throws {RequiredError}
|
|
2025
|
+
* @memberof ClientAccountsApi
|
|
2026
|
+
*/
|
|
2027
|
+
clientAuthMe(options) {
|
|
2028
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Récupère le compte client par son ID
|
|
2032
|
+
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
2033
|
+
* @param {*} [options] Override http request option.
|
|
2034
|
+
* @throws {RequiredError}
|
|
2035
|
+
* @memberof ClientAccountsApi
|
|
2036
|
+
*/
|
|
2037
|
+
getClientAccountById(requestParameters, options) {
|
|
2038
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
2042
|
+
* @param {*} [options] Override http request option.
|
|
2043
|
+
* @throws {RequiredError}
|
|
2044
|
+
* @memberof ClientAccountsApi
|
|
2045
|
+
*/
|
|
2046
|
+
getMyActiveSubscription(options) {
|
|
2047
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
2051
|
+
* @param {*} [options] Override http request option.
|
|
2052
|
+
* @throws {RequiredError}
|
|
2053
|
+
* @memberof ClientAccountsApi
|
|
2054
|
+
*/
|
|
2055
|
+
getMyClientAccount(options) {
|
|
2056
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
2060
|
+
* @param {*} [options] Override http request option.
|
|
2061
|
+
* @throws {RequiredError}
|
|
2062
|
+
* @memberof ClientAccountsApi
|
|
2063
|
+
*/
|
|
2064
|
+
getSubscriptionsHistory(options) {
|
|
2065
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
|
|
2066
|
+
}
|
|
2067
|
+
/**
|
|
2068
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
2069
|
+
* @param {*} [options] Override http request option.
|
|
2070
|
+
* @throws {RequiredError}
|
|
2071
|
+
* @memberof ClientAccountsApi
|
|
2072
|
+
*/
|
|
2073
|
+
listAvailablePrices(options) {
|
|
2074
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
2078
|
+
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
* @memberof ClientAccountsApi
|
|
2082
|
+
*/
|
|
2083
|
+
onboardClientAccount(requestParameters, options) {
|
|
2084
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2085
|
+
}
|
|
2086
|
+
/**
|
|
2087
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
2088
|
+
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
2089
|
+
* @param {*} [options] Override http request option.
|
|
2090
|
+
* @throws {RequiredError}
|
|
2091
|
+
* @memberof ClientAccountsApi
|
|
2092
|
+
*/
|
|
2093
|
+
registerClientUser(requestParameters, options) {
|
|
2094
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
exports.ClientAccountsApi = ClientAccountsApi;
|
|
1408
2098
|
/**
|
|
1409
2099
|
* ClubAnalyticsApi - axios parameter creator
|
|
1410
2100
|
* @export
|