@tennac-booking/sdk 1.0.107 → 1.0.108
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 +284 -291
- package/README.md +7 -20
- package/api.ts +133 -916
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +90 -591
- package/dist/api.js +75 -537
- 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 +90 -591
- package/dist/esm/api.js +67 -525
- 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/ClientApi.md +59 -4
- package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
- package/docs/ClientFullOnboardingResponseClub.md +24 -0
- package/docs/ClientRegister201Response.md +26 -0
- package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
- package/docs/PaymentMethod.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveSubscriptionResponse.md +0 -22
- package/docs/ClientAccountOnboardingRequest.md +0 -29
- package/docs/ClientAccountResponse.md +0 -44
- package/docs/ClientAccountsApi.md +0 -408
- package/docs/ClientMeResponse.md +0 -28
- package/docs/ClientOnboardingResponse.md +0 -27
- package/docs/ClientRegisterResponse.md +0 -22
- package/docs/ClientSubscriptionResponse.md +0 -34
- package/docs/GetSubscriptionsHistory200Response.md +0 -22
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.108
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -53,14 +53,6 @@ export const CaptureResultStatusEnum = {
|
|
|
53
53
|
Captured: 'captured',
|
|
54
54
|
Failed: 'failed'
|
|
55
55
|
};
|
|
56
|
-
export const ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
57
|
-
Individual: 'individual',
|
|
58
|
-
Company: 'company'
|
|
59
|
-
};
|
|
60
|
-
export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
61
|
-
Basic: 'basic',
|
|
62
|
-
PlatformWithConnect: 'platform_with_connect'
|
|
63
|
-
};
|
|
64
56
|
export const ClubRoleResponseRoleEnum = {
|
|
65
57
|
Admin: 'admin',
|
|
66
58
|
Manager: 'manager',
|
|
@@ -165,6 +157,8 @@ export const InvoiceStatus = {
|
|
|
165
157
|
export const PaymentMethod = {
|
|
166
158
|
Online: 'online',
|
|
167
159
|
Onsite: 'onsite',
|
|
160
|
+
OnsiteCard: 'onsite_card',
|
|
161
|
+
OnsiteCash: 'onsite_cash',
|
|
168
162
|
Free: 'free'
|
|
169
163
|
};
|
|
170
164
|
/**
|
|
@@ -1404,42 +1398,15 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
1404
1398
|
export const ClientApiAxiosParamCreator = function (configuration) {
|
|
1405
1399
|
return {
|
|
1406
1400
|
/**
|
|
1407
|
-
*
|
|
1408
|
-
* @param {
|
|
1409
|
-
* @throws {RequiredError}
|
|
1410
|
-
*/
|
|
1411
|
-
getManagedClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1412
|
-
const localVarPath = `/clients/managed-clubs`;
|
|
1413
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1414
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1415
|
-
let baseOptions;
|
|
1416
|
-
if (configuration) {
|
|
1417
|
-
baseOptions = configuration.baseOptions;
|
|
1418
|
-
}
|
|
1419
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1420
|
-
const localVarHeaderParameter = {};
|
|
1421
|
-
const localVarQueryParameter = {};
|
|
1422
|
-
// authentication bearerAuth required
|
|
1423
|
-
// http bearer authentication required
|
|
1424
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1425
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1426
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1427
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1428
|
-
return {
|
|
1429
|
-
url: toPathString(localVarUrlObj),
|
|
1430
|
-
options: localVarRequestOptions,
|
|
1431
|
-
};
|
|
1432
|
-
}),
|
|
1433
|
-
/**
|
|
1434
|
-
* 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
|
|
1435
|
-
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1401
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1402
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1436
1403
|
* @param {*} [options] Override http request option.
|
|
1437
1404
|
* @throws {RequiredError}
|
|
1438
1405
|
*/
|
|
1439
|
-
|
|
1440
|
-
// verify required parameter '
|
|
1441
|
-
assertParamExists('
|
|
1442
|
-
const localVarPath = `/clients/
|
|
1406
|
+
clientRegister: (clientRegisterRequest_1, ...args_1) => __awaiter(this, [clientRegisterRequest_1, ...args_1], void 0, function* (clientRegisterRequest, options = {}) {
|
|
1407
|
+
// verify required parameter 'clientRegisterRequest' is not null or undefined
|
|
1408
|
+
assertParamExists('clientRegister', 'clientRegisterRequest', clientRegisterRequest);
|
|
1409
|
+
const localVarPath = `/clients/register`;
|
|
1443
1410
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1444
1411
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1445
1412
|
let baseOptions;
|
|
@@ -1453,257 +1420,19 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1453
1420
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1454
1421
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1455
1422
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1456
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration);
|
|
1457
1424
|
return {
|
|
1458
1425
|
url: toPathString(localVarUrlObj),
|
|
1459
1426
|
options: localVarRequestOptions,
|
|
1460
1427
|
};
|
|
1461
1428
|
}),
|
|
1462
|
-
};
|
|
1463
|
-
};
|
|
1464
|
-
/**
|
|
1465
|
-
* ClientApi - functional programming interface
|
|
1466
|
-
* @export
|
|
1467
|
-
*/
|
|
1468
|
-
export const ClientApiFp = function (configuration) {
|
|
1469
|
-
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
|
|
1470
|
-
return {
|
|
1471
1429
|
/**
|
|
1472
1430
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1473
1431
|
* @param {*} [options] Override http request option.
|
|
1474
1432
|
* @throws {RequiredError}
|
|
1475
1433
|
*/
|
|
1476
|
-
getManagedClubs(options) {
|
|
1477
|
-
|
|
1478
|
-
var _a, _b, _c;
|
|
1479
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getManagedClubs(options);
|
|
1480
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1481
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.getManagedClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1482
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1483
|
-
});
|
|
1484
|
-
},
|
|
1485
|
-
/**
|
|
1486
|
-
* 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
|
|
1487
|
-
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1488
|
-
* @param {*} [options] Override http request option.
|
|
1489
|
-
* @throws {RequiredError}
|
|
1490
|
-
*/
|
|
1491
|
-
onboardClub(clientOnboardingRequestBody, options) {
|
|
1492
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1493
|
-
var _a, _b, _c;
|
|
1494
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
|
|
1495
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1496
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.onboardClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1497
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1498
|
-
});
|
|
1499
|
-
},
|
|
1500
|
-
};
|
|
1501
|
-
};
|
|
1502
|
-
/**
|
|
1503
|
-
* ClientApi - factory interface
|
|
1504
|
-
* @export
|
|
1505
|
-
*/
|
|
1506
|
-
export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1507
|
-
const localVarFp = ClientApiFp(configuration);
|
|
1508
|
-
return {
|
|
1509
|
-
/**
|
|
1510
|
-
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1511
|
-
* @param {*} [options] Override http request option.
|
|
1512
|
-
* @throws {RequiredError}
|
|
1513
|
-
*/
|
|
1514
|
-
getManagedClubs(options) {
|
|
1515
|
-
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1516
|
-
},
|
|
1517
|
-
/**
|
|
1518
|
-
* 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
|
|
1519
|
-
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1520
|
-
* @param {*} [options] Override http request option.
|
|
1521
|
-
* @throws {RequiredError}
|
|
1522
|
-
*/
|
|
1523
|
-
onboardClub(requestParameters, options) {
|
|
1524
|
-
return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
|
|
1525
|
-
},
|
|
1526
|
-
};
|
|
1527
|
-
};
|
|
1528
|
-
/**
|
|
1529
|
-
* ClientApi - object-oriented interface
|
|
1530
|
-
* @export
|
|
1531
|
-
* @class ClientApi
|
|
1532
|
-
* @extends {BaseAPI}
|
|
1533
|
-
*/
|
|
1534
|
-
export class ClientApi extends BaseAPI {
|
|
1535
|
-
/**
|
|
1536
|
-
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1537
|
-
* @param {*} [options] Override http request option.
|
|
1538
|
-
* @throws {RequiredError}
|
|
1539
|
-
* @memberof ClientApi
|
|
1540
|
-
*/
|
|
1541
|
-
getManagedClubs(options) {
|
|
1542
|
-
return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1543
|
-
}
|
|
1544
|
-
/**
|
|
1545
|
-
* 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
|
|
1546
|
-
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1547
|
-
* @param {*} [options] Override http request option.
|
|
1548
|
-
* @throws {RequiredError}
|
|
1549
|
-
* @memberof ClientApi
|
|
1550
|
-
*/
|
|
1551
|
-
onboardClub(requestParameters, options) {
|
|
1552
|
-
return ClientApiFp(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
/**
|
|
1556
|
-
* ClientAccountsApi - axios parameter creator
|
|
1557
|
-
* @export
|
|
1558
|
-
*/
|
|
1559
|
-
export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
1560
|
-
return {
|
|
1561
|
-
/**
|
|
1562
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1563
|
-
* @param {*} [options] Override http request option.
|
|
1564
|
-
* @throws {RequiredError}
|
|
1565
|
-
*/
|
|
1566
|
-
clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1567
|
-
const localVarPath = `/client-accounts/client-auth/me`;
|
|
1568
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1569
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1570
|
-
let baseOptions;
|
|
1571
|
-
if (configuration) {
|
|
1572
|
-
baseOptions = configuration.baseOptions;
|
|
1573
|
-
}
|
|
1574
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1575
|
-
const localVarHeaderParameter = {};
|
|
1576
|
-
const localVarQueryParameter = {};
|
|
1577
|
-
// authentication clientAuth required
|
|
1578
|
-
// http bearer authentication required
|
|
1579
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1580
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1581
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1582
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1583
|
-
return {
|
|
1584
|
-
url: toPathString(localVarUrlObj),
|
|
1585
|
-
options: localVarRequestOptions,
|
|
1586
|
-
};
|
|
1587
|
-
}),
|
|
1588
|
-
/**
|
|
1589
|
-
* Récupère le compte client par son ID
|
|
1590
|
-
* @param {string} accountId L\'ID du compte client
|
|
1591
|
-
* @param {*} [options] Override http request option.
|
|
1592
|
-
* @throws {RequiredError}
|
|
1593
|
-
*/
|
|
1594
|
-
getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
|
|
1595
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
1596
|
-
assertParamExists('getClientAccountById', 'accountId', accountId);
|
|
1597
|
-
const localVarPath = `/client-accounts/{accountId}`
|
|
1598
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
1599
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1600
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1601
|
-
let baseOptions;
|
|
1602
|
-
if (configuration) {
|
|
1603
|
-
baseOptions = configuration.baseOptions;
|
|
1604
|
-
}
|
|
1605
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1606
|
-
const localVarHeaderParameter = {};
|
|
1607
|
-
const localVarQueryParameter = {};
|
|
1608
|
-
// authentication bearerAuth required
|
|
1609
|
-
// http bearer authentication required
|
|
1610
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1611
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1612
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1613
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1614
|
-
return {
|
|
1615
|
-
url: toPathString(localVarUrlObj),
|
|
1616
|
-
options: localVarRequestOptions,
|
|
1617
|
-
};
|
|
1618
|
-
}),
|
|
1619
|
-
/**
|
|
1620
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1621
|
-
* @param {*} [options] Override http request option.
|
|
1622
|
-
* @throws {RequiredError}
|
|
1623
|
-
*/
|
|
1624
|
-
getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1625
|
-
const localVarPath = `/client-accounts/me/subscription`;
|
|
1626
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1627
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1628
|
-
let baseOptions;
|
|
1629
|
-
if (configuration) {
|
|
1630
|
-
baseOptions = configuration.baseOptions;
|
|
1631
|
-
}
|
|
1632
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1633
|
-
const localVarHeaderParameter = {};
|
|
1634
|
-
const localVarQueryParameter = {};
|
|
1635
|
-
// authentication bearerAuth required
|
|
1636
|
-
// http bearer authentication required
|
|
1637
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1638
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1639
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1640
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1641
|
-
return {
|
|
1642
|
-
url: toPathString(localVarUrlObj),
|
|
1643
|
-
options: localVarRequestOptions,
|
|
1644
|
-
};
|
|
1645
|
-
}),
|
|
1646
|
-
/**
|
|
1647
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1648
|
-
* @param {*} [options] Override http request option.
|
|
1649
|
-
* @throws {RequiredError}
|
|
1650
|
-
*/
|
|
1651
|
-
getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1652
|
-
const localVarPath = `/client-accounts/me`;
|
|
1653
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1654
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1655
|
-
let baseOptions;
|
|
1656
|
-
if (configuration) {
|
|
1657
|
-
baseOptions = configuration.baseOptions;
|
|
1658
|
-
}
|
|
1659
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1660
|
-
const localVarHeaderParameter = {};
|
|
1661
|
-
const localVarQueryParameter = {};
|
|
1662
|
-
// authentication bearerAuth required
|
|
1663
|
-
// http bearer authentication required
|
|
1664
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1665
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1666
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1667
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1668
|
-
return {
|
|
1669
|
-
url: toPathString(localVarUrlObj),
|
|
1670
|
-
options: localVarRequestOptions,
|
|
1671
|
-
};
|
|
1672
|
-
}),
|
|
1673
|
-
/**
|
|
1674
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1675
|
-
* @param {*} [options] Override http request option.
|
|
1676
|
-
* @throws {RequiredError}
|
|
1677
|
-
*/
|
|
1678
|
-
getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1679
|
-
const localVarPath = `/client-accounts/me/subscriptions-history`;
|
|
1680
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1681
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1682
|
-
let baseOptions;
|
|
1683
|
-
if (configuration) {
|
|
1684
|
-
baseOptions = configuration.baseOptions;
|
|
1685
|
-
}
|
|
1686
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1687
|
-
const localVarHeaderParameter = {};
|
|
1688
|
-
const localVarQueryParameter = {};
|
|
1689
|
-
// authentication bearerAuth required
|
|
1690
|
-
// http bearer authentication required
|
|
1691
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1692
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1693
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1694
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1695
|
-
return {
|
|
1696
|
-
url: toPathString(localVarUrlObj),
|
|
1697
|
-
options: localVarRequestOptions,
|
|
1698
|
-
};
|
|
1699
|
-
}),
|
|
1700
|
-
/**
|
|
1701
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1702
|
-
* @param {*} [options] Override http request option.
|
|
1703
|
-
* @throws {RequiredError}
|
|
1704
|
-
*/
|
|
1705
|
-
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1706
|
-
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1434
|
+
getManagedClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1435
|
+
const localVarPath = `/clients/managed-clubs`;
|
|
1707
1436
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1708
1437
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1709
1438
|
let baseOptions;
|
|
@@ -1725,15 +1454,15 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1725
1454
|
};
|
|
1726
1455
|
}),
|
|
1727
1456
|
/**
|
|
1728
|
-
*
|
|
1729
|
-
* @param {
|
|
1457
|
+
* 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
|
|
1458
|
+
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1730
1459
|
* @param {*} [options] Override http request option.
|
|
1731
1460
|
* @throws {RequiredError}
|
|
1732
1461
|
*/
|
|
1733
|
-
|
|
1734
|
-
// verify required parameter '
|
|
1735
|
-
assertParamExists('
|
|
1736
|
-
const localVarPath = `/
|
|
1462
|
+
onboardClub: (clientOnboardingRequestBody_1, ...args_1) => __awaiter(this, [clientOnboardingRequestBody_1, ...args_1], void 0, function* (clientOnboardingRequestBody, options = {}) {
|
|
1463
|
+
// verify required parameter 'clientOnboardingRequestBody' is not null or undefined
|
|
1464
|
+
assertParamExists('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody);
|
|
1465
|
+
const localVarPath = `/clients/onboarding`;
|
|
1737
1466
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1738
1467
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1739
1468
|
let baseOptions;
|
|
@@ -1750,36 +1479,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1750
1479
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1751
1480
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1752
1481
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1753
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1754
|
-
return {
|
|
1755
|
-
url: toPathString(localVarUrlObj),
|
|
1756
|
-
options: localVarRequestOptions,
|
|
1757
|
-
};
|
|
1758
|
-
}),
|
|
1759
|
-
/**
|
|
1760
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1761
|
-
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1762
|
-
* @param {*} [options] Override http request option.
|
|
1763
|
-
* @throws {RequiredError}
|
|
1764
|
-
*/
|
|
1765
|
-
registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
|
|
1766
|
-
// verify required parameter 'clientRegisterRequestBody' is not null or undefined
|
|
1767
|
-
assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
|
|
1768
|
-
const localVarPath = `/client-accounts/register-client-user`;
|
|
1769
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1770
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1771
|
-
let baseOptions;
|
|
1772
|
-
if (configuration) {
|
|
1773
|
-
baseOptions = configuration.baseOptions;
|
|
1774
|
-
}
|
|
1775
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1776
|
-
const localVarHeaderParameter = {};
|
|
1777
|
-
const localVarQueryParameter = {};
|
|
1778
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1779
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1780
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1781
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1782
|
-
localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration);
|
|
1482
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientOnboardingRequestBody, localVarRequestOptions, configuration);
|
|
1783
1483
|
return {
|
|
1784
1484
|
url: toPathString(localVarUrlObj),
|
|
1785
1485
|
options: localVarRequestOptions,
|
|
@@ -1788,286 +1488,128 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1788
1488
|
};
|
|
1789
1489
|
};
|
|
1790
1490
|
/**
|
|
1791
|
-
*
|
|
1491
|
+
* ClientApi - functional programming interface
|
|
1792
1492
|
* @export
|
|
1793
1493
|
*/
|
|
1794
|
-
export const
|
|
1795
|
-
const localVarAxiosParamCreator =
|
|
1494
|
+
export const ClientApiFp = function (configuration) {
|
|
1495
|
+
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
|
|
1796
1496
|
return {
|
|
1797
1497
|
/**
|
|
1798
|
-
*
|
|
1498
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1499
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1799
1500
|
* @param {*} [options] Override http request option.
|
|
1800
1501
|
* @throws {RequiredError}
|
|
1801
1502
|
*/
|
|
1802
|
-
|
|
1503
|
+
clientRegister(clientRegisterRequest, options) {
|
|
1803
1504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1804
1505
|
var _a, _b, _c;
|
|
1805
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1506
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
|
|
1806
1507
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1807
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1508
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.clientRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1808
1509
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1809
1510
|
});
|
|
1810
1511
|
},
|
|
1811
1512
|
/**
|
|
1812
|
-
* Récupère
|
|
1813
|
-
* @param {string} accountId L\'ID du compte client
|
|
1814
|
-
* @param {*} [options] Override http request option.
|
|
1815
|
-
* @throws {RequiredError}
|
|
1816
|
-
*/
|
|
1817
|
-
getClientAccountById(accountId, options) {
|
|
1818
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1819
|
-
var _a, _b, _c;
|
|
1820
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
|
|
1821
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1822
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1823
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1824
|
-
});
|
|
1825
|
-
},
|
|
1826
|
-
/**
|
|
1827
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1828
|
-
* @param {*} [options] Override http request option.
|
|
1829
|
-
* @throws {RequiredError}
|
|
1830
|
-
*/
|
|
1831
|
-
getMyActiveSubscription(options) {
|
|
1832
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1833
|
-
var _a, _b, _c;
|
|
1834
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
|
|
1835
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1836
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyActiveSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1837
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1838
|
-
});
|
|
1839
|
-
},
|
|
1840
|
-
/**
|
|
1841
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1842
|
-
* @param {*} [options] Override http request option.
|
|
1843
|
-
* @throws {RequiredError}
|
|
1844
|
-
*/
|
|
1845
|
-
getMyClientAccount(options) {
|
|
1846
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1847
|
-
var _a, _b, _c;
|
|
1848
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
|
|
1849
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1850
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1851
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1852
|
-
});
|
|
1853
|
-
},
|
|
1854
|
-
/**
|
|
1855
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1856
|
-
* @param {*} [options] Override http request option.
|
|
1857
|
-
* @throws {RequiredError}
|
|
1858
|
-
*/
|
|
1859
|
-
getSubscriptionsHistory(options) {
|
|
1860
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1861
|
-
var _a, _b, _c;
|
|
1862
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
|
|
1863
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1864
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1865
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1866
|
-
});
|
|
1867
|
-
},
|
|
1868
|
-
/**
|
|
1869
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1870
|
-
* @param {*} [options] Override http request option.
|
|
1871
|
-
* @throws {RequiredError}
|
|
1872
|
-
*/
|
|
1873
|
-
listAvailablePrices(options) {
|
|
1874
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1875
|
-
var _a, _b, _c;
|
|
1876
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
|
|
1877
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1878
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1879
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1880
|
-
});
|
|
1881
|
-
},
|
|
1882
|
-
/**
|
|
1883
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
1884
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1513
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1885
1514
|
* @param {*} [options] Override http request option.
|
|
1886
1515
|
* @throws {RequiredError}
|
|
1887
1516
|
*/
|
|
1888
|
-
|
|
1517
|
+
getManagedClubs(options) {
|
|
1889
1518
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1890
1519
|
var _a, _b, _c;
|
|
1891
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1520
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getManagedClubs(options);
|
|
1892
1521
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1893
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1522
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.getManagedClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1894
1523
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1895
1524
|
});
|
|
1896
1525
|
},
|
|
1897
1526
|
/**
|
|
1898
|
-
*
|
|
1899
|
-
* @param {
|
|
1527
|
+
* 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
|
|
1528
|
+
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1900
1529
|
* @param {*} [options] Override http request option.
|
|
1901
1530
|
* @throws {RequiredError}
|
|
1902
1531
|
*/
|
|
1903
|
-
|
|
1532
|
+
onboardClub(clientOnboardingRequestBody, options) {
|
|
1904
1533
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1905
1534
|
var _a, _b, _c;
|
|
1906
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1535
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
|
|
1907
1536
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1908
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1537
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.onboardClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1909
1538
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1910
1539
|
});
|
|
1911
1540
|
},
|
|
1912
1541
|
};
|
|
1913
1542
|
};
|
|
1914
1543
|
/**
|
|
1915
|
-
*
|
|
1544
|
+
* ClientApi - factory interface
|
|
1916
1545
|
* @export
|
|
1917
1546
|
*/
|
|
1918
|
-
export const
|
|
1919
|
-
const localVarFp =
|
|
1547
|
+
export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1548
|
+
const localVarFp = ClientApiFp(configuration);
|
|
1920
1549
|
return {
|
|
1921
1550
|
/**
|
|
1922
|
-
*
|
|
1923
|
-
* @param {
|
|
1924
|
-
* @throws {RequiredError}
|
|
1925
|
-
*/
|
|
1926
|
-
clientAuthMe(options) {
|
|
1927
|
-
return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
|
|
1928
|
-
},
|
|
1929
|
-
/**
|
|
1930
|
-
* Récupère le compte client par son ID
|
|
1931
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
1932
|
-
* @param {*} [options] Override http request option.
|
|
1933
|
-
* @throws {RequiredError}
|
|
1934
|
-
*/
|
|
1935
|
-
getClientAccountById(requestParameters, options) {
|
|
1936
|
-
return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
1937
|
-
},
|
|
1938
|
-
/**
|
|
1939
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1940
|
-
* @param {*} [options] Override http request option.
|
|
1941
|
-
* @throws {RequiredError}
|
|
1942
|
-
*/
|
|
1943
|
-
getMyActiveSubscription(options) {
|
|
1944
|
-
return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
|
|
1945
|
-
},
|
|
1946
|
-
/**
|
|
1947
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1948
|
-
* @param {*} [options] Override http request option.
|
|
1949
|
-
* @throws {RequiredError}
|
|
1950
|
-
*/
|
|
1951
|
-
getMyClientAccount(options) {
|
|
1952
|
-
return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
|
|
1953
|
-
},
|
|
1954
|
-
/**
|
|
1955
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1551
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1552
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1956
1553
|
* @param {*} [options] Override http request option.
|
|
1957
1554
|
* @throws {RequiredError}
|
|
1958
1555
|
*/
|
|
1959
|
-
|
|
1960
|
-
return localVarFp.
|
|
1556
|
+
clientRegister(requestParameters, options) {
|
|
1557
|
+
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1961
1558
|
},
|
|
1962
1559
|
/**
|
|
1963
|
-
*
|
|
1964
|
-
* @param {*} [options] Override http request option.
|
|
1965
|
-
* @throws {RequiredError}
|
|
1966
|
-
*/
|
|
1967
|
-
listAvailablePrices(options) {
|
|
1968
|
-
return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
|
|
1969
|
-
},
|
|
1970
|
-
/**
|
|
1971
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
1972
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
1560
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1973
1561
|
* @param {*} [options] Override http request option.
|
|
1974
1562
|
* @throws {RequiredError}
|
|
1975
1563
|
*/
|
|
1976
|
-
|
|
1977
|
-
return localVarFp.
|
|
1564
|
+
getManagedClubs(options) {
|
|
1565
|
+
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1978
1566
|
},
|
|
1979
1567
|
/**
|
|
1980
|
-
*
|
|
1981
|
-
* @param {
|
|
1568
|
+
* 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
|
|
1569
|
+
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1982
1570
|
* @param {*} [options] Override http request option.
|
|
1983
1571
|
* @throws {RequiredError}
|
|
1984
1572
|
*/
|
|
1985
|
-
|
|
1986
|
-
return localVarFp.
|
|
1573
|
+
onboardClub(requestParameters, options) {
|
|
1574
|
+
return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
|
|
1987
1575
|
},
|
|
1988
1576
|
};
|
|
1989
1577
|
};
|
|
1990
1578
|
/**
|
|
1991
|
-
*
|
|
1579
|
+
* ClientApi - object-oriented interface
|
|
1992
1580
|
* @export
|
|
1993
|
-
* @class
|
|
1581
|
+
* @class ClientApi
|
|
1994
1582
|
* @extends {BaseAPI}
|
|
1995
1583
|
*/
|
|
1996
|
-
export class
|
|
1997
|
-
/**
|
|
1998
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1999
|
-
* @param {*} [options] Override http request option.
|
|
2000
|
-
* @throws {RequiredError}
|
|
2001
|
-
* @memberof ClientAccountsApi
|
|
2002
|
-
*/
|
|
2003
|
-
clientAuthMe(options) {
|
|
2004
|
-
return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
|
|
2005
|
-
}
|
|
2006
|
-
/**
|
|
2007
|
-
* Récupère le compte client par son ID
|
|
2008
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
2009
|
-
* @param {*} [options] Override http request option.
|
|
2010
|
-
* @throws {RequiredError}
|
|
2011
|
-
* @memberof ClientAccountsApi
|
|
2012
|
-
*/
|
|
2013
|
-
getClientAccountById(requestParameters, options) {
|
|
2014
|
-
return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
2015
|
-
}
|
|
2016
|
-
/**
|
|
2017
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
2018
|
-
* @param {*} [options] Override http request option.
|
|
2019
|
-
* @throws {RequiredError}
|
|
2020
|
-
* @memberof ClientAccountsApi
|
|
2021
|
-
*/
|
|
2022
|
-
getMyActiveSubscription(options) {
|
|
2023
|
-
return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
|
|
2024
|
-
}
|
|
2025
|
-
/**
|
|
2026
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
2027
|
-
* @param {*} [options] Override http request option.
|
|
2028
|
-
* @throws {RequiredError}
|
|
2029
|
-
* @memberof ClientAccountsApi
|
|
2030
|
-
*/
|
|
2031
|
-
getMyClientAccount(options) {
|
|
2032
|
-
return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
|
|
2033
|
-
}
|
|
2034
|
-
/**
|
|
2035
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
2036
|
-
* @param {*} [options] Override http request option.
|
|
2037
|
-
* @throws {RequiredError}
|
|
2038
|
-
* @memberof ClientAccountsApi
|
|
2039
|
-
*/
|
|
2040
|
-
getSubscriptionsHistory(options) {
|
|
2041
|
-
return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
|
|
2042
|
-
}
|
|
1584
|
+
export class ClientApi extends BaseAPI {
|
|
2043
1585
|
/**
|
|
2044
|
-
*
|
|
1586
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1587
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
2045
1588
|
* @param {*} [options] Override http request option.
|
|
2046
1589
|
* @throws {RequiredError}
|
|
2047
|
-
* @memberof
|
|
1590
|
+
* @memberof ClientApi
|
|
2048
1591
|
*/
|
|
2049
|
-
|
|
2050
|
-
return
|
|
1592
|
+
clientRegister(requestParameters, options) {
|
|
1593
|
+
return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2051
1594
|
}
|
|
2052
1595
|
/**
|
|
2053
|
-
*
|
|
2054
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
1596
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
2055
1597
|
* @param {*} [options] Override http request option.
|
|
2056
1598
|
* @throws {RequiredError}
|
|
2057
|
-
* @memberof
|
|
1599
|
+
* @memberof ClientApi
|
|
2058
1600
|
*/
|
|
2059
|
-
|
|
2060
|
-
return
|
|
1601
|
+
getManagedClubs(options) {
|
|
1602
|
+
return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2061
1603
|
}
|
|
2062
1604
|
/**
|
|
2063
|
-
*
|
|
2064
|
-
* @param {
|
|
1605
|
+
* 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
|
|
1606
|
+
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
2065
1607
|
* @param {*} [options] Override http request option.
|
|
2066
1608
|
* @throws {RequiredError}
|
|
2067
|
-
* @memberof
|
|
1609
|
+
* @memberof ClientApi
|
|
2068
1610
|
*/
|
|
2069
|
-
|
|
2070
|
-
return
|
|
1611
|
+
onboardClub(requestParameters, options) {
|
|
1612
|
+
return ClientApiFp(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2071
1613
|
}
|
|
2072
1614
|
}
|
|
2073
1615
|
/**
|