@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/api.ts
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).
|
|
@@ -23,25 +23,6 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @interface ActiveSubscriptionResponse
|
|
30
|
-
*/
|
|
31
|
-
export interface ActiveSubscriptionResponse {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ActiveSubscriptionResponse
|
|
36
|
-
*/
|
|
37
|
-
'clientAccountId': string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {ClientSubscriptionResponse}
|
|
41
|
-
* @memberof ActiveSubscriptionResponse
|
|
42
|
-
*/
|
|
43
|
-
'subscription': ClientSubscriptionResponse | null;
|
|
44
|
-
}
|
|
45
26
|
/**
|
|
46
27
|
*
|
|
47
28
|
* @export
|
|
@@ -1358,233 +1339,73 @@ export interface CheckedInPlayer {
|
|
|
1358
1339
|
}
|
|
1359
1340
|
|
|
1360
1341
|
|
|
1361
|
-
/**
|
|
1362
|
-
* Types pour les requêtes/réponses
|
|
1363
|
-
* @export
|
|
1364
|
-
* @interface ClientAccountOnboardingRequest
|
|
1365
|
-
*/
|
|
1366
|
-
export interface ClientAccountOnboardingRequest {
|
|
1367
|
-
/**
|
|
1368
|
-
*
|
|
1369
|
-
* @type {string}
|
|
1370
|
-
* @memberof ClientAccountOnboardingRequest
|
|
1371
|
-
*/
|
|
1372
|
-
'businessName': string;
|
|
1373
|
-
/**
|
|
1374
|
-
*
|
|
1375
|
-
* @type {string}
|
|
1376
|
-
* @memberof ClientAccountOnboardingRequest
|
|
1377
|
-
*/
|
|
1378
|
-
'businessType'?: ClientAccountOnboardingRequestBusinessTypeEnum;
|
|
1379
|
-
/**
|
|
1380
|
-
*
|
|
1381
|
-
* @type {string}
|
|
1382
|
-
* @memberof ClientAccountOnboardingRequest
|
|
1383
|
-
*/
|
|
1384
|
-
'subscriptionType'?: ClientAccountOnboardingRequestSubscriptionTypeEnum;
|
|
1385
|
-
/**
|
|
1386
|
-
*
|
|
1387
|
-
* @type {boolean}
|
|
1388
|
-
* @memberof ClientAccountOnboardingRequest
|
|
1389
|
-
*/
|
|
1390
|
-
'isPublicOrganization'?: boolean;
|
|
1391
|
-
/**
|
|
1392
|
-
*
|
|
1393
|
-
* @type {string}
|
|
1394
|
-
* @memberof ClientAccountOnboardingRequest
|
|
1395
|
-
*/
|
|
1396
|
-
'priceId': string;
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
export const ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
1400
|
-
Individual: 'individual',
|
|
1401
|
-
Company: 'company'
|
|
1402
|
-
} as const;
|
|
1403
|
-
|
|
1404
|
-
export type ClientAccountOnboardingRequestBusinessTypeEnum = typeof ClientAccountOnboardingRequestBusinessTypeEnum[keyof typeof ClientAccountOnboardingRequestBusinessTypeEnum];
|
|
1405
|
-
export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
1406
|
-
Basic: 'basic',
|
|
1407
|
-
PlatformWithConnect: 'platform_with_connect'
|
|
1408
|
-
} as const;
|
|
1409
|
-
|
|
1410
|
-
export type ClientAccountOnboardingRequestSubscriptionTypeEnum = typeof ClientAccountOnboardingRequestSubscriptionTypeEnum[keyof typeof ClientAccountOnboardingRequestSubscriptionTypeEnum];
|
|
1411
|
-
|
|
1412
1342
|
/**
|
|
1413
1343
|
*
|
|
1414
1344
|
* @export
|
|
1415
|
-
* @interface
|
|
1345
|
+
* @interface ClientFullOnboardingResponse
|
|
1416
1346
|
*/
|
|
1417
|
-
export interface
|
|
1347
|
+
export interface ClientFullOnboardingResponse {
|
|
1418
1348
|
/**
|
|
1419
1349
|
*
|
|
1420
1350
|
* @type {string}
|
|
1421
|
-
* @memberof
|
|
1351
|
+
* @memberof ClientFullOnboardingResponse
|
|
1422
1352
|
*/
|
|
1423
1353
|
'clientAccountId': string;
|
|
1424
1354
|
/**
|
|
1425
1355
|
*
|
|
1426
1356
|
* @type {string}
|
|
1427
|
-
* @memberof
|
|
1357
|
+
* @memberof ClientFullOnboardingResponse
|
|
1428
1358
|
*/
|
|
1429
1359
|
'stripeCustomerId': string;
|
|
1430
1360
|
/**
|
|
1431
1361
|
*
|
|
1432
1362
|
* @type {string}
|
|
1433
|
-
* @memberof
|
|
1363
|
+
* @memberof ClientFullOnboardingResponse
|
|
1434
1364
|
*/
|
|
1435
1365
|
'stripeConnectedAccountId'?: string;
|
|
1436
1366
|
/**
|
|
1437
1367
|
*
|
|
1438
1368
|
* @type {string}
|
|
1439
|
-
* @memberof
|
|
1369
|
+
* @memberof ClientFullOnboardingResponse
|
|
1440
1370
|
*/
|
|
1441
|
-
'
|
|
1371
|
+
'clientOnboardingLink'?: string;
|
|
1442
1372
|
/**
|
|
1443
1373
|
*
|
|
1444
|
-
* @type {
|
|
1445
|
-
* @memberof
|
|
1374
|
+
* @type {ClientFullOnboardingResponseClub}
|
|
1375
|
+
* @memberof ClientFullOnboardingResponse
|
|
1446
1376
|
*/
|
|
1447
|
-
'
|
|
1377
|
+
'club': ClientFullOnboardingResponseClub;
|
|
1448
1378
|
/**
|
|
1449
1379
|
*
|
|
1450
1380
|
* @type {string}
|
|
1451
|
-
* @memberof
|
|
1381
|
+
* @memberof ClientFullOnboardingResponse
|
|
1452
1382
|
*/
|
|
1453
1383
|
'message': string;
|
|
1454
|
-
/**
|
|
1455
|
-
*
|
|
1456
|
-
* @type {boolean}
|
|
1457
|
-
* @memberof ClientAccountOnboardingResponse
|
|
1458
|
-
*/
|
|
1459
|
-
'isPublicOrganization': boolean;
|
|
1460
|
-
/**
|
|
1461
|
-
*
|
|
1462
|
-
* @type {boolean}
|
|
1463
|
-
* @memberof ClientAccountOnboardingResponse
|
|
1464
|
-
*/
|
|
1465
|
-
'manualInvoiceRequired'?: boolean;
|
|
1466
|
-
}
|
|
1467
|
-
/**
|
|
1468
|
-
*
|
|
1469
|
-
* @export
|
|
1470
|
-
* @interface ClientAccountResponse
|
|
1471
|
-
*/
|
|
1472
|
-
export interface ClientAccountResponse {
|
|
1473
|
-
/**
|
|
1474
|
-
*
|
|
1475
|
-
* @type {string}
|
|
1476
|
-
* @memberof ClientAccountResponse
|
|
1477
|
-
*/
|
|
1478
|
-
'id': string;
|
|
1479
|
-
/**
|
|
1480
|
-
*
|
|
1481
|
-
* @type {string}
|
|
1482
|
-
* @memberof ClientAccountResponse
|
|
1483
|
-
*/
|
|
1484
|
-
'email': string;
|
|
1485
|
-
/**
|
|
1486
|
-
*
|
|
1487
|
-
* @type {string}
|
|
1488
|
-
* @memberof ClientAccountResponse
|
|
1489
|
-
*/
|
|
1490
|
-
'businessName': string;
|
|
1491
|
-
/**
|
|
1492
|
-
*
|
|
1493
|
-
* @type {string}
|
|
1494
|
-
* @memberof ClientAccountResponse
|
|
1495
|
-
*/
|
|
1496
|
-
'businessType': string;
|
|
1497
|
-
/**
|
|
1498
|
-
*
|
|
1499
|
-
* @type {string}
|
|
1500
|
-
* @memberof ClientAccountResponse
|
|
1501
|
-
*/
|
|
1502
|
-
'subscriptionType': string;
|
|
1503
|
-
/**
|
|
1504
|
-
*
|
|
1505
|
-
* @type {string}
|
|
1506
|
-
* @memberof ClientAccountResponse
|
|
1507
|
-
*/
|
|
1508
|
-
'status': string;
|
|
1509
|
-
/**
|
|
1510
|
-
*
|
|
1511
|
-
* @type {boolean}
|
|
1512
|
-
* @memberof ClientAccountResponse
|
|
1513
|
-
*/
|
|
1514
|
-
'platformPaymentMethodSetup': boolean;
|
|
1515
|
-
/**
|
|
1516
|
-
*
|
|
1517
|
-
* @type {string}
|
|
1518
|
-
* @memberof ClientAccountResponse
|
|
1519
|
-
*/
|
|
1520
|
-
'stripeConnectedAccountId'?: string;
|
|
1521
|
-
/**
|
|
1522
|
-
*
|
|
1523
|
-
* @type {boolean}
|
|
1524
|
-
* @memberof ClientAccountResponse
|
|
1525
|
-
*/
|
|
1526
|
-
'connectedAccountOnboardingRequired'?: boolean;
|
|
1527
|
-
/**
|
|
1528
|
-
*
|
|
1529
|
-
* @type {boolean}
|
|
1530
|
-
* @memberof ClientAccountResponse
|
|
1531
|
-
*/
|
|
1532
|
-
'isPublicOrganization': boolean;
|
|
1533
|
-
/**
|
|
1534
|
-
*
|
|
1535
|
-
* @type {boolean}
|
|
1536
|
-
* @memberof ClientAccountResponse
|
|
1537
|
-
*/
|
|
1538
|
-
'manualInvoiceRequired'?: boolean;
|
|
1539
|
-
/**
|
|
1540
|
-
*
|
|
1541
|
-
* @type {string}
|
|
1542
|
-
* @memberof ClientAccountResponse
|
|
1543
|
-
*/
|
|
1544
|
-
'createdAt': string;
|
|
1545
|
-
/**
|
|
1546
|
-
*
|
|
1547
|
-
* @type {string}
|
|
1548
|
-
* @memberof ClientAccountResponse
|
|
1549
|
-
*/
|
|
1550
|
-
'updatedAt': string;
|
|
1551
1384
|
}
|
|
1552
1385
|
/**
|
|
1553
1386
|
*
|
|
1554
1387
|
* @export
|
|
1555
|
-
* @interface
|
|
1388
|
+
* @interface ClientFullOnboardingResponseClub
|
|
1556
1389
|
*/
|
|
1557
|
-
export interface
|
|
1558
|
-
/**
|
|
1559
|
-
*
|
|
1560
|
-
* @type {string}
|
|
1561
|
-
* @memberof ClientMeResponse
|
|
1562
|
-
*/
|
|
1563
|
-
'id': string;
|
|
1390
|
+
export interface ClientFullOnboardingResponseClub {
|
|
1564
1391
|
/**
|
|
1565
1392
|
*
|
|
1566
1393
|
* @type {string}
|
|
1567
|
-
* @memberof
|
|
1394
|
+
* @memberof ClientFullOnboardingResponseClub
|
|
1568
1395
|
*/
|
|
1569
|
-
'
|
|
1396
|
+
'clubOnboardingLink'?: string;
|
|
1570
1397
|
/**
|
|
1571
1398
|
*
|
|
1572
1399
|
* @type {string}
|
|
1573
|
-
* @memberof
|
|
1400
|
+
* @memberof ClientFullOnboardingResponseClub
|
|
1574
1401
|
*/
|
|
1575
|
-
'
|
|
1402
|
+
'stripeAccountId': string;
|
|
1576
1403
|
/**
|
|
1577
1404
|
*
|
|
1578
1405
|
* @type {string}
|
|
1579
|
-
* @memberof
|
|
1580
|
-
*/
|
|
1581
|
-
'lastName': string;
|
|
1582
|
-
/**
|
|
1583
|
-
*
|
|
1584
|
-
* @type {boolean}
|
|
1585
|
-
* @memberof ClientMeResponse
|
|
1406
|
+
* @memberof ClientFullOnboardingResponseClub
|
|
1586
1407
|
*/
|
|
1587
|
-
'
|
|
1408
|
+
'clubId': string;
|
|
1588
1409
|
}
|
|
1589
1410
|
/**
|
|
1590
1411
|
* Requête pour l\'onboarding d\'un club
|
|
@@ -1635,141 +1456,67 @@ export interface ClientOnboardingRequestBody {
|
|
|
1635
1456
|
*/
|
|
1636
1457
|
'country'?: string;
|
|
1637
1458
|
}
|
|
1638
|
-
/**
|
|
1639
|
-
* Réponse pour l\'onboarding d\'un club
|
|
1640
|
-
* @export
|
|
1641
|
-
* @interface ClientOnboardingResponse
|
|
1642
|
-
*/
|
|
1643
|
-
export interface ClientOnboardingResponse {
|
|
1644
|
-
/**
|
|
1645
|
-
* ID unique du club créé
|
|
1646
|
-
* @type {string}
|
|
1647
|
-
* @memberof ClientOnboardingResponse
|
|
1648
|
-
*/
|
|
1649
|
-
'clubId': string;
|
|
1650
|
-
/**
|
|
1651
|
-
* ID du compte Stripe Connect du club
|
|
1652
|
-
* @type {string}
|
|
1653
|
-
* @memberof ClientOnboardingResponse
|
|
1654
|
-
*/
|
|
1655
|
-
'stripeAccountId': string;
|
|
1656
|
-
/**
|
|
1657
|
-
* Lien d\'onboarding Stripe pour configurer le compte
|
|
1658
|
-
* @type {string}
|
|
1659
|
-
* @memberof ClientOnboardingResponse
|
|
1660
|
-
*/
|
|
1661
|
-
'onboardingLink': string;
|
|
1662
|
-
/**
|
|
1663
|
-
* Message de confirmation
|
|
1664
|
-
* @type {string}
|
|
1665
|
-
* @memberof ClientOnboardingResponse
|
|
1666
|
-
*/
|
|
1667
|
-
'message': string;
|
|
1668
|
-
}
|
|
1669
1459
|
/**
|
|
1670
1460
|
*
|
|
1671
1461
|
* @export
|
|
1672
|
-
* @interface
|
|
1462
|
+
* @interface ClientRegister201Response
|
|
1673
1463
|
*/
|
|
1674
|
-
export interface
|
|
1675
|
-
/**
|
|
1676
|
-
*
|
|
1677
|
-
* @type {string}
|
|
1678
|
-
* @memberof ClientRegisterRequestBody
|
|
1679
|
-
*/
|
|
1680
|
-
'email': string;
|
|
1681
|
-
/**
|
|
1682
|
-
*
|
|
1683
|
-
* @type {string}
|
|
1684
|
-
* @memberof ClientRegisterRequestBody
|
|
1685
|
-
*/
|
|
1686
|
-
'password': string;
|
|
1464
|
+
export interface ClientRegister201Response {
|
|
1687
1465
|
/**
|
|
1688
1466
|
*
|
|
1689
1467
|
* @type {string}
|
|
1690
|
-
* @memberof
|
|
1468
|
+
* @memberof ClientRegister201Response
|
|
1691
1469
|
*/
|
|
1692
|
-
'
|
|
1470
|
+
'message': string;
|
|
1693
1471
|
/**
|
|
1694
1472
|
*
|
|
1695
1473
|
* @type {string}
|
|
1696
|
-
* @memberof
|
|
1474
|
+
* @memberof ClientRegister201Response
|
|
1697
1475
|
*/
|
|
1698
|
-
'
|
|
1699
|
-
}
|
|
1700
|
-
/**
|
|
1701
|
-
*
|
|
1702
|
-
* @export
|
|
1703
|
-
* @interface ClientRegisterResponse
|
|
1704
|
-
*/
|
|
1705
|
-
export interface ClientRegisterResponse {
|
|
1476
|
+
'stripeCustomerId': string;
|
|
1706
1477
|
/**
|
|
1707
1478
|
*
|
|
1708
1479
|
* @type {string}
|
|
1709
|
-
* @memberof
|
|
1480
|
+
* @memberof ClientRegister201Response
|
|
1710
1481
|
*/
|
|
1711
|
-
'
|
|
1482
|
+
'email': string;
|
|
1712
1483
|
/**
|
|
1713
1484
|
*
|
|
1714
1485
|
* @type {string}
|
|
1715
|
-
* @memberof
|
|
1486
|
+
* @memberof ClientRegister201Response
|
|
1716
1487
|
*/
|
|
1717
|
-
'
|
|
1488
|
+
'userId': string;
|
|
1718
1489
|
}
|
|
1719
1490
|
/**
|
|
1720
1491
|
*
|
|
1721
1492
|
* @export
|
|
1722
|
-
* @interface
|
|
1493
|
+
* @interface ClientRegisterRequest
|
|
1723
1494
|
*/
|
|
1724
|
-
export interface
|
|
1725
|
-
/**
|
|
1726
|
-
*
|
|
1727
|
-
* @type {string}
|
|
1728
|
-
* @memberof ClientSubscriptionResponse
|
|
1729
|
-
*/
|
|
1730
|
-
'id': string;
|
|
1731
|
-
/**
|
|
1732
|
-
*
|
|
1733
|
-
* @type {string}
|
|
1734
|
-
* @memberof ClientSubscriptionResponse
|
|
1735
|
-
*/
|
|
1736
|
-
'subscriptionType': string;
|
|
1737
|
-
/**
|
|
1738
|
-
*
|
|
1739
|
-
* @type {string}
|
|
1740
|
-
* @memberof ClientSubscriptionResponse
|
|
1741
|
-
*/
|
|
1742
|
-
'status': string;
|
|
1495
|
+
export interface ClientRegisterRequest {
|
|
1743
1496
|
/**
|
|
1744
1497
|
*
|
|
1745
1498
|
* @type {string}
|
|
1746
|
-
* @memberof
|
|
1499
|
+
* @memberof ClientRegisterRequest
|
|
1747
1500
|
*/
|
|
1748
|
-
'
|
|
1501
|
+
'password': string;
|
|
1749
1502
|
/**
|
|
1750
1503
|
*
|
|
1751
1504
|
* @type {string}
|
|
1752
|
-
* @memberof
|
|
1753
|
-
*/
|
|
1754
|
-
'endDate'?: string;
|
|
1755
|
-
/**
|
|
1756
|
-
*
|
|
1757
|
-
* @type {number}
|
|
1758
|
-
* @memberof ClientSubscriptionResponse
|
|
1505
|
+
* @memberof ClientRegisterRequest
|
|
1759
1506
|
*/
|
|
1760
|
-
'
|
|
1507
|
+
'email': string;
|
|
1761
1508
|
/**
|
|
1762
1509
|
*
|
|
1763
1510
|
* @type {string}
|
|
1764
|
-
* @memberof
|
|
1511
|
+
* @memberof ClientRegisterRequest
|
|
1765
1512
|
*/
|
|
1766
|
-
'
|
|
1513
|
+
'lastName': string;
|
|
1767
1514
|
/**
|
|
1768
1515
|
*
|
|
1769
1516
|
* @type {string}
|
|
1770
|
-
* @memberof
|
|
1517
|
+
* @memberof ClientRegisterRequest
|
|
1771
1518
|
*/
|
|
1772
|
-
'
|
|
1519
|
+
'firstName': string;
|
|
1773
1520
|
}
|
|
1774
1521
|
/**
|
|
1775
1522
|
*
|
|
@@ -4490,25 +4237,6 @@ export interface GetSlotsByClubById200Response {
|
|
|
4490
4237
|
*/
|
|
4491
4238
|
'slots': Array<any>;
|
|
4492
4239
|
}
|
|
4493
|
-
/**
|
|
4494
|
-
*
|
|
4495
|
-
* @export
|
|
4496
|
-
* @interface GetSubscriptionsHistory200Response
|
|
4497
|
-
*/
|
|
4498
|
-
export interface GetSubscriptionsHistory200Response {
|
|
4499
|
-
/**
|
|
4500
|
-
*
|
|
4501
|
-
* @type {Array<ClientSubscriptionResponse>}
|
|
4502
|
-
* @memberof GetSubscriptionsHistory200Response
|
|
4503
|
-
*/
|
|
4504
|
-
'subscriptions': Array<ClientSubscriptionResponse>;
|
|
4505
|
-
/**
|
|
4506
|
-
*
|
|
4507
|
-
* @type {string}
|
|
4508
|
-
* @memberof GetSubscriptionsHistory200Response
|
|
4509
|
-
*/
|
|
4510
|
-
'clientAccountId': string;
|
|
4511
|
-
}
|
|
4512
4240
|
/**
|
|
4513
4241
|
*
|
|
4514
4242
|
* @export
|
|
@@ -5597,6 +5325,8 @@ export interface PaymentByPlayerInfo {
|
|
|
5597
5325
|
export const PaymentMethod = {
|
|
5598
5326
|
Online: 'online',
|
|
5599
5327
|
Onsite: 'onsite',
|
|
5328
|
+
OnsiteCard: 'onsite_card',
|
|
5329
|
+
OnsiteCash: 'onsite_cash',
|
|
5600
5330
|
Free: 'free'
|
|
5601
5331
|
} as const;
|
|
5602
5332
|
|
|
@@ -11266,6 +10996,41 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
11266
10996
|
*/
|
|
11267
10997
|
export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11268
10998
|
return {
|
|
10999
|
+
/**
|
|
11000
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11001
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
11002
|
+
* @param {*} [options] Override http request option.
|
|
11003
|
+
* @throws {RequiredError}
|
|
11004
|
+
*/
|
|
11005
|
+
clientRegister: async (clientRegisterRequest: ClientRegisterRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11006
|
+
// verify required parameter 'clientRegisterRequest' is not null or undefined
|
|
11007
|
+
assertParamExists('clientRegister', 'clientRegisterRequest', clientRegisterRequest)
|
|
11008
|
+
const localVarPath = `/clients/register`;
|
|
11009
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11010
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11011
|
+
let baseOptions;
|
|
11012
|
+
if (configuration) {
|
|
11013
|
+
baseOptions = configuration.baseOptions;
|
|
11014
|
+
}
|
|
11015
|
+
|
|
11016
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11017
|
+
const localVarHeaderParameter = {} as any;
|
|
11018
|
+
const localVarQueryParameter = {} as any;
|
|
11019
|
+
|
|
11020
|
+
|
|
11021
|
+
|
|
11022
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11023
|
+
|
|
11024
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11025
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11026
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11027
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration)
|
|
11028
|
+
|
|
11029
|
+
return {
|
|
11030
|
+
url: toPathString(localVarUrlObj),
|
|
11031
|
+
options: localVarRequestOptions,
|
|
11032
|
+
};
|
|
11033
|
+
},
|
|
11269
11034
|
/**
|
|
11270
11035
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11271
11036
|
* @param {*} [options] Override http request option.
|
|
@@ -11300,7 +11065,7 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11300
11065
|
};
|
|
11301
11066
|
},
|
|
11302
11067
|
/**
|
|
11303
|
-
* Enregistre un nouveau club pour la plateforme
|
|
11068
|
+
* 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
|
|
11304
11069
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
11305
11070
|
* @param {*} [options] Override http request option.
|
|
11306
11071
|
* @throws {RequiredError}
|
|
@@ -11320,6 +11085,10 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11320
11085
|
const localVarHeaderParameter = {} as any;
|
|
11321
11086
|
const localVarQueryParameter = {} as any;
|
|
11322
11087
|
|
|
11088
|
+
// authentication clientAuth required
|
|
11089
|
+
// http bearer authentication required
|
|
11090
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11091
|
+
|
|
11323
11092
|
|
|
11324
11093
|
|
|
11325
11094
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -11344,6 +11113,18 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11344
11113
|
export const ClientApiFp = function(configuration?: Configuration) {
|
|
11345
11114
|
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
|
|
11346
11115
|
return {
|
|
11116
|
+
/**
|
|
11117
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11118
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
11119
|
+
* @param {*} [options] Override http request option.
|
|
11120
|
+
* @throws {RequiredError}
|
|
11121
|
+
*/
|
|
11122
|
+
async clientRegister(clientRegisterRequest: ClientRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegister201Response>> {
|
|
11123
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
|
|
11124
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11125
|
+
const localVarOperationServerBasePath = operationServerMap['ClientApi.clientRegister']?.[localVarOperationServerIndex]?.url;
|
|
11126
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11127
|
+
},
|
|
11347
11128
|
/**
|
|
11348
11129
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11349
11130
|
* @param {*} [options] Override http request option.
|
|
@@ -11356,12 +11137,12 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
11356
11137
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11357
11138
|
},
|
|
11358
11139
|
/**
|
|
11359
|
-
* Enregistre un nouveau club pour la plateforme
|
|
11140
|
+
* 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
|
|
11360
11141
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
11361
11142
|
* @param {*} [options] Override http request option.
|
|
11362
11143
|
* @throws {RequiredError}
|
|
11363
11144
|
*/
|
|
11364
|
-
async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11145
|
+
async onboardClub(clientOnboardingRequestBody: ClientOnboardingRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientFullOnboardingResponse>> {
|
|
11365
11146
|
const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
|
|
11366
11147
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11367
11148
|
const localVarOperationServerBasePath = operationServerMap['ClientApi.onboardClub']?.[localVarOperationServerIndex]?.url;
|
|
@@ -11377,6 +11158,15 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
11377
11158
|
export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
11378
11159
|
const localVarFp = ClientApiFp(configuration)
|
|
11379
11160
|
return {
|
|
11161
|
+
/**
|
|
11162
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11163
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
11164
|
+
* @param {*} [options] Override http request option.
|
|
11165
|
+
* @throws {RequiredError}
|
|
11166
|
+
*/
|
|
11167
|
+
clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegister201Response> {
|
|
11168
|
+
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
11169
|
+
},
|
|
11380
11170
|
/**
|
|
11381
11171
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11382
11172
|
* @param {*} [options] Override http request option.
|
|
@@ -11386,17 +11176,31 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
11386
11176
|
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
11387
11177
|
},
|
|
11388
11178
|
/**
|
|
11389
|
-
* Enregistre un nouveau club pour la plateforme
|
|
11179
|
+
* 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
|
|
11390
11180
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
11391
11181
|
* @param {*} [options] Override http request option.
|
|
11392
11182
|
* @throws {RequiredError}
|
|
11393
11183
|
*/
|
|
11394
|
-
onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
11184
|
+
onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientFullOnboardingResponse> {
|
|
11395
11185
|
return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
|
|
11396
11186
|
},
|
|
11397
11187
|
};
|
|
11398
11188
|
};
|
|
11399
11189
|
|
|
11190
|
+
/**
|
|
11191
|
+
* Request parameters for clientRegister operation in ClientApi.
|
|
11192
|
+
* @export
|
|
11193
|
+
* @interface ClientApiClientRegisterRequest
|
|
11194
|
+
*/
|
|
11195
|
+
export interface ClientApiClientRegisterRequest {
|
|
11196
|
+
/**
|
|
11197
|
+
*
|
|
11198
|
+
* @type {ClientRegisterRequest}
|
|
11199
|
+
* @memberof ClientApiClientRegister
|
|
11200
|
+
*/
|
|
11201
|
+
readonly clientRegisterRequest: ClientRegisterRequest
|
|
11202
|
+
}
|
|
11203
|
+
|
|
11400
11204
|
/**
|
|
11401
11205
|
* Request parameters for onboardClub operation in ClientApi.
|
|
11402
11206
|
* @export
|
|
@@ -11419,622 +11223,35 @@ export interface ClientApiOnboardClubRequest {
|
|
|
11419
11223
|
*/
|
|
11420
11224
|
export class ClientApi extends BaseAPI {
|
|
11421
11225
|
/**
|
|
11422
|
-
*
|
|
11226
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
11227
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
11423
11228
|
* @param {*} [options] Override http request option.
|
|
11424
11229
|
* @throws {RequiredError}
|
|
11425
11230
|
* @memberof ClientApi
|
|
11426
11231
|
*/
|
|
11427
|
-
public
|
|
11428
|
-
return ClientApiFp(this.configuration).
|
|
11232
|
+
public clientRegister(requestParameters: ClientApiClientRegisterRequest, options?: RawAxiosRequestConfig) {
|
|
11233
|
+
return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11429
11234
|
}
|
|
11430
11235
|
|
|
11431
11236
|
/**
|
|
11432
|
-
*
|
|
11433
|
-
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
11237
|
+
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
11434
11238
|
* @param {*} [options] Override http request option.
|
|
11435
11239
|
* @throws {RequiredError}
|
|
11436
11240
|
* @memberof ClientApi
|
|
11437
11241
|
*/
|
|
11438
|
-
public
|
|
11439
|
-
return ClientApiFp(this.configuration).
|
|
11440
|
-
}
|
|
11441
|
-
}
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
/**
|
|
11446
|
-
* ClientAccountsApi - axios parameter creator
|
|
11447
|
-
* @export
|
|
11448
|
-
*/
|
|
11449
|
-
export const ClientAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11450
|
-
return {
|
|
11451
|
-
/**
|
|
11452
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
11453
|
-
* @param {*} [options] Override http request option.
|
|
11454
|
-
* @throws {RequiredError}
|
|
11455
|
-
*/
|
|
11456
|
-
clientAuthMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11457
|
-
const localVarPath = `/client-accounts/client-auth/me`;
|
|
11458
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11459
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11460
|
-
let baseOptions;
|
|
11461
|
-
if (configuration) {
|
|
11462
|
-
baseOptions = configuration.baseOptions;
|
|
11463
|
-
}
|
|
11464
|
-
|
|
11465
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11466
|
-
const localVarHeaderParameter = {} as any;
|
|
11467
|
-
const localVarQueryParameter = {} as any;
|
|
11468
|
-
|
|
11469
|
-
// authentication clientAuth required
|
|
11470
|
-
// http bearer authentication required
|
|
11471
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11476
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11477
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11478
|
-
|
|
11479
|
-
return {
|
|
11480
|
-
url: toPathString(localVarUrlObj),
|
|
11481
|
-
options: localVarRequestOptions,
|
|
11482
|
-
};
|
|
11483
|
-
},
|
|
11484
|
-
/**
|
|
11485
|
-
* Récupère le compte client par son ID
|
|
11486
|
-
* @param {string} accountId L\'ID du compte client
|
|
11487
|
-
* @param {*} [options] Override http request option.
|
|
11488
|
-
* @throws {RequiredError}
|
|
11489
|
-
*/
|
|
11490
|
-
getClientAccountById: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11491
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
11492
|
-
assertParamExists('getClientAccountById', 'accountId', accountId)
|
|
11493
|
-
const localVarPath = `/client-accounts/{accountId}`
|
|
11494
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
11495
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11496
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11497
|
-
let baseOptions;
|
|
11498
|
-
if (configuration) {
|
|
11499
|
-
baseOptions = configuration.baseOptions;
|
|
11500
|
-
}
|
|
11501
|
-
|
|
11502
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11503
|
-
const localVarHeaderParameter = {} as any;
|
|
11504
|
-
const localVarQueryParameter = {} as any;
|
|
11505
|
-
|
|
11506
|
-
// authentication bearerAuth required
|
|
11507
|
-
// http bearer authentication required
|
|
11508
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11513
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11514
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11515
|
-
|
|
11516
|
-
return {
|
|
11517
|
-
url: toPathString(localVarUrlObj),
|
|
11518
|
-
options: localVarRequestOptions,
|
|
11519
|
-
};
|
|
11520
|
-
},
|
|
11521
|
-
/**
|
|
11522
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
11523
|
-
* @param {*} [options] Override http request option.
|
|
11524
|
-
* @throws {RequiredError}
|
|
11525
|
-
*/
|
|
11526
|
-
getMyActiveSubscription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11527
|
-
const localVarPath = `/client-accounts/me/subscription`;
|
|
11528
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11529
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11530
|
-
let baseOptions;
|
|
11531
|
-
if (configuration) {
|
|
11532
|
-
baseOptions = configuration.baseOptions;
|
|
11533
|
-
}
|
|
11534
|
-
|
|
11535
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11536
|
-
const localVarHeaderParameter = {} as any;
|
|
11537
|
-
const localVarQueryParameter = {} as any;
|
|
11538
|
-
|
|
11539
|
-
// authentication bearerAuth required
|
|
11540
|
-
// http bearer authentication required
|
|
11541
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11546
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11547
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11548
|
-
|
|
11549
|
-
return {
|
|
11550
|
-
url: toPathString(localVarUrlObj),
|
|
11551
|
-
options: localVarRequestOptions,
|
|
11552
|
-
};
|
|
11553
|
-
},
|
|
11554
|
-
/**
|
|
11555
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
11556
|
-
* @param {*} [options] Override http request option.
|
|
11557
|
-
* @throws {RequiredError}
|
|
11558
|
-
*/
|
|
11559
|
-
getMyClientAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11560
|
-
const localVarPath = `/client-accounts/me`;
|
|
11561
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11562
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11563
|
-
let baseOptions;
|
|
11564
|
-
if (configuration) {
|
|
11565
|
-
baseOptions = configuration.baseOptions;
|
|
11566
|
-
}
|
|
11567
|
-
|
|
11568
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11569
|
-
const localVarHeaderParameter = {} as any;
|
|
11570
|
-
const localVarQueryParameter = {} as any;
|
|
11571
|
-
|
|
11572
|
-
// authentication bearerAuth required
|
|
11573
|
-
// http bearer authentication required
|
|
11574
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11579
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11580
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11581
|
-
|
|
11582
|
-
return {
|
|
11583
|
-
url: toPathString(localVarUrlObj),
|
|
11584
|
-
options: localVarRequestOptions,
|
|
11585
|
-
};
|
|
11586
|
-
},
|
|
11587
|
-
/**
|
|
11588
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
11589
|
-
* @param {*} [options] Override http request option.
|
|
11590
|
-
* @throws {RequiredError}
|
|
11591
|
-
*/
|
|
11592
|
-
getSubscriptionsHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11593
|
-
const localVarPath = `/client-accounts/me/subscriptions-history`;
|
|
11594
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11595
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11596
|
-
let baseOptions;
|
|
11597
|
-
if (configuration) {
|
|
11598
|
-
baseOptions = configuration.baseOptions;
|
|
11599
|
-
}
|
|
11600
|
-
|
|
11601
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11602
|
-
const localVarHeaderParameter = {} as any;
|
|
11603
|
-
const localVarQueryParameter = {} as any;
|
|
11604
|
-
|
|
11605
|
-
// authentication bearerAuth required
|
|
11606
|
-
// http bearer authentication required
|
|
11607
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11612
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11613
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11614
|
-
|
|
11615
|
-
return {
|
|
11616
|
-
url: toPathString(localVarUrlObj),
|
|
11617
|
-
options: localVarRequestOptions,
|
|
11618
|
-
};
|
|
11619
|
-
},
|
|
11620
|
-
/**
|
|
11621
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
11622
|
-
* @param {*} [options] Override http request option.
|
|
11623
|
-
* @throws {RequiredError}
|
|
11624
|
-
*/
|
|
11625
|
-
listAvailablePrices: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11626
|
-
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
11627
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11628
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11629
|
-
let baseOptions;
|
|
11630
|
-
if (configuration) {
|
|
11631
|
-
baseOptions = configuration.baseOptions;
|
|
11632
|
-
}
|
|
11633
|
-
|
|
11634
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11635
|
-
const localVarHeaderParameter = {} as any;
|
|
11636
|
-
const localVarQueryParameter = {} as any;
|
|
11637
|
-
|
|
11638
|
-
// authentication bearerAuth required
|
|
11639
|
-
// http bearer authentication required
|
|
11640
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11645
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11646
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11647
|
-
|
|
11648
|
-
return {
|
|
11649
|
-
url: toPathString(localVarUrlObj),
|
|
11650
|
-
options: localVarRequestOptions,
|
|
11651
|
-
};
|
|
11652
|
-
},
|
|
11653
|
-
/**
|
|
11654
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
11655
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
11656
|
-
* @param {*} [options] Override http request option.
|
|
11657
|
-
* @throws {RequiredError}
|
|
11658
|
-
*/
|
|
11659
|
-
onboardClientAccount: async (clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11660
|
-
// verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
|
|
11661
|
-
assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest)
|
|
11662
|
-
const localVarPath = `/client-accounts/onboarding`;
|
|
11663
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11664
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11665
|
-
let baseOptions;
|
|
11666
|
-
if (configuration) {
|
|
11667
|
-
baseOptions = configuration.baseOptions;
|
|
11668
|
-
}
|
|
11669
|
-
|
|
11670
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11671
|
-
const localVarHeaderParameter = {} as any;
|
|
11672
|
-
const localVarQueryParameter = {} as any;
|
|
11673
|
-
|
|
11674
|
-
// authentication clientAuth required
|
|
11675
|
-
// http bearer authentication required
|
|
11676
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11681
|
-
|
|
11682
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11683
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11684
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11685
|
-
localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration)
|
|
11686
|
-
|
|
11687
|
-
return {
|
|
11688
|
-
url: toPathString(localVarUrlObj),
|
|
11689
|
-
options: localVarRequestOptions,
|
|
11690
|
-
};
|
|
11691
|
-
},
|
|
11692
|
-
/**
|
|
11693
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
11694
|
-
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
11695
|
-
* @param {*} [options] Override http request option.
|
|
11696
|
-
* @throws {RequiredError}
|
|
11697
|
-
*/
|
|
11698
|
-
registerClientUser: async (clientRegisterRequestBody: ClientRegisterRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11699
|
-
// verify required parameter 'clientRegisterRequestBody' is not null or undefined
|
|
11700
|
-
assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody)
|
|
11701
|
-
const localVarPath = `/client-accounts/register-client-user`;
|
|
11702
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11703
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11704
|
-
let baseOptions;
|
|
11705
|
-
if (configuration) {
|
|
11706
|
-
baseOptions = configuration.baseOptions;
|
|
11707
|
-
}
|
|
11708
|
-
|
|
11709
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
11710
|
-
const localVarHeaderParameter = {} as any;
|
|
11711
|
-
const localVarQueryParameter = {} as any;
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11716
|
-
|
|
11717
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11718
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11719
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11720
|
-
localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration)
|
|
11721
|
-
|
|
11722
|
-
return {
|
|
11723
|
-
url: toPathString(localVarUrlObj),
|
|
11724
|
-
options: localVarRequestOptions,
|
|
11725
|
-
};
|
|
11726
|
-
},
|
|
11727
|
-
}
|
|
11728
|
-
};
|
|
11729
|
-
|
|
11730
|
-
/**
|
|
11731
|
-
* ClientAccountsApi - functional programming interface
|
|
11732
|
-
* @export
|
|
11733
|
-
*/
|
|
11734
|
-
export const ClientAccountsApiFp = function(configuration?: Configuration) {
|
|
11735
|
-
const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration)
|
|
11736
|
-
return {
|
|
11737
|
-
/**
|
|
11738
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
11739
|
-
* @param {*} [options] Override http request option.
|
|
11740
|
-
* @throws {RequiredError}
|
|
11741
|
-
*/
|
|
11742
|
-
async clientAuthMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientMeResponse>> {
|
|
11743
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.clientAuthMe(options);
|
|
11744
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11745
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.clientAuthMe']?.[localVarOperationServerIndex]?.url;
|
|
11746
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11747
|
-
},
|
|
11748
|
-
/**
|
|
11749
|
-
* Récupère le compte client par son ID
|
|
11750
|
-
* @param {string} accountId L\'ID du compte client
|
|
11751
|
-
* @param {*} [options] Override http request option.
|
|
11752
|
-
* @throws {RequiredError}
|
|
11753
|
-
*/
|
|
11754
|
-
async getClientAccountById(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
|
|
11755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClientAccountById(accountId, options);
|
|
11756
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11757
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getClientAccountById']?.[localVarOperationServerIndex]?.url;
|
|
11758
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11759
|
-
},
|
|
11760
|
-
/**
|
|
11761
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
11762
|
-
* @param {*} [options] Override http request option.
|
|
11763
|
-
* @throws {RequiredError}
|
|
11764
|
-
*/
|
|
11765
|
-
async getMyActiveSubscription(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActiveSubscriptionResponse>> {
|
|
11766
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyActiveSubscription(options);
|
|
11767
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11768
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyActiveSubscription']?.[localVarOperationServerIndex]?.url;
|
|
11769
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11770
|
-
},
|
|
11771
|
-
/**
|
|
11772
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
11773
|
-
* @param {*} [options] Override http request option.
|
|
11774
|
-
* @throws {RequiredError}
|
|
11775
|
-
*/
|
|
11776
|
-
async getMyClientAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountResponse>> {
|
|
11777
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClientAccount(options);
|
|
11778
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11779
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getMyClientAccount']?.[localVarOperationServerIndex]?.url;
|
|
11780
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11781
|
-
},
|
|
11782
|
-
/**
|
|
11783
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
11784
|
-
* @param {*} [options] Override http request option.
|
|
11785
|
-
* @throws {RequiredError}
|
|
11786
|
-
*/
|
|
11787
|
-
async getSubscriptionsHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubscriptionsHistory200Response>> {
|
|
11788
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionsHistory(options);
|
|
11789
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11790
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']?.[localVarOperationServerIndex]?.url;
|
|
11791
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11792
|
-
},
|
|
11793
|
-
/**
|
|
11794
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
11795
|
-
* @param {*} [options] Override http request option.
|
|
11796
|
-
* @throws {RequiredError}
|
|
11797
|
-
*/
|
|
11798
|
-
async listAvailablePrices(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<any>>> {
|
|
11799
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailablePrices(options);
|
|
11800
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11801
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.listAvailablePrices']?.[localVarOperationServerIndex]?.url;
|
|
11802
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11803
|
-
},
|
|
11804
|
-
/**
|
|
11805
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
11806
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
11807
|
-
* @param {*} [options] Override http request option.
|
|
11808
|
-
* @throws {RequiredError}
|
|
11809
|
-
*/
|
|
11810
|
-
async onboardClientAccount(clientAccountOnboardingRequest: ClientAccountOnboardingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientAccountOnboardingResponse>> {
|
|
11811
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
|
|
11812
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11813
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.onboardClientAccount']?.[localVarOperationServerIndex]?.url;
|
|
11814
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11815
|
-
},
|
|
11816
|
-
/**
|
|
11817
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
11818
|
-
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
11819
|
-
* @param {*} [options] Override http request option.
|
|
11820
|
-
* @throws {RequiredError}
|
|
11821
|
-
*/
|
|
11822
|
-
async registerClientUser(clientRegisterRequestBody: ClientRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientRegisterResponse>> {
|
|
11823
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
|
|
11824
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11825
|
-
const localVarOperationServerBasePath = operationServerMap['ClientAccountsApi.registerClientUser']?.[localVarOperationServerIndex]?.url;
|
|
11826
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11827
|
-
},
|
|
11828
|
-
}
|
|
11829
|
-
};
|
|
11830
|
-
|
|
11831
|
-
/**
|
|
11832
|
-
* ClientAccountsApi - factory interface
|
|
11833
|
-
* @export
|
|
11834
|
-
*/
|
|
11835
|
-
export const ClientAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
11836
|
-
const localVarFp = ClientAccountsApiFp(configuration)
|
|
11837
|
-
return {
|
|
11838
|
-
/**
|
|
11839
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
11840
|
-
* @param {*} [options] Override http request option.
|
|
11841
|
-
* @throws {RequiredError}
|
|
11842
|
-
*/
|
|
11843
|
-
clientAuthMe(options?: RawAxiosRequestConfig): AxiosPromise<ClientMeResponse> {
|
|
11844
|
-
return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
|
|
11845
|
-
},
|
|
11846
|
-
/**
|
|
11847
|
-
* Récupère le compte client par son ID
|
|
11848
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
11849
|
-
* @param {*} [options] Override http request option.
|
|
11850
|
-
* @throws {RequiredError}
|
|
11851
|
-
*/
|
|
11852
|
-
getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
|
|
11853
|
-
return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
11854
|
-
},
|
|
11855
|
-
/**
|
|
11856
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
11857
|
-
* @param {*} [options] Override http request option.
|
|
11858
|
-
* @throws {RequiredError}
|
|
11859
|
-
*/
|
|
11860
|
-
getMyActiveSubscription(options?: RawAxiosRequestConfig): AxiosPromise<ActiveSubscriptionResponse> {
|
|
11861
|
-
return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
|
|
11862
|
-
},
|
|
11863
|
-
/**
|
|
11864
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
11865
|
-
* @param {*} [options] Override http request option.
|
|
11866
|
-
* @throws {RequiredError}
|
|
11867
|
-
*/
|
|
11868
|
-
getMyClientAccount(options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountResponse> {
|
|
11869
|
-
return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
|
|
11870
|
-
},
|
|
11871
|
-
/**
|
|
11872
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
11873
|
-
* @param {*} [options] Override http request option.
|
|
11874
|
-
* @throws {RequiredError}
|
|
11875
|
-
*/
|
|
11876
|
-
getSubscriptionsHistory(options?: RawAxiosRequestConfig): AxiosPromise<GetSubscriptionsHistory200Response> {
|
|
11877
|
-
return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
|
|
11878
|
-
},
|
|
11879
|
-
/**
|
|
11880
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
11881
|
-
* @param {*} [options] Override http request option.
|
|
11882
|
-
* @throws {RequiredError}
|
|
11883
|
-
*/
|
|
11884
|
-
listAvailablePrices(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
|
|
11885
|
-
return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
|
|
11886
|
-
},
|
|
11887
|
-
/**
|
|
11888
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
11889
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
11890
|
-
* @param {*} [options] Override http request option.
|
|
11891
|
-
* @throws {RequiredError}
|
|
11892
|
-
*/
|
|
11893
|
-
onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientAccountOnboardingResponse> {
|
|
11894
|
-
return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
|
|
11895
|
-
},
|
|
11896
|
-
/**
|
|
11897
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
11898
|
-
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
11899
|
-
* @param {*} [options] Override http request option.
|
|
11900
|
-
* @throws {RequiredError}
|
|
11901
|
-
*/
|
|
11902
|
-
registerClientUser(requestParameters: ClientAccountsApiRegisterClientUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClientRegisterResponse> {
|
|
11903
|
-
return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
11904
|
-
},
|
|
11905
|
-
};
|
|
11906
|
-
};
|
|
11907
|
-
|
|
11908
|
-
/**
|
|
11909
|
-
* Request parameters for getClientAccountById operation in ClientAccountsApi.
|
|
11910
|
-
* @export
|
|
11911
|
-
* @interface ClientAccountsApiGetClientAccountByIdRequest
|
|
11912
|
-
*/
|
|
11913
|
-
export interface ClientAccountsApiGetClientAccountByIdRequest {
|
|
11914
|
-
/**
|
|
11915
|
-
* L\'ID du compte client
|
|
11916
|
-
* @type {string}
|
|
11917
|
-
* @memberof ClientAccountsApiGetClientAccountById
|
|
11918
|
-
*/
|
|
11919
|
-
readonly accountId: string
|
|
11920
|
-
}
|
|
11921
|
-
|
|
11922
|
-
/**
|
|
11923
|
-
* Request parameters for onboardClientAccount operation in ClientAccountsApi.
|
|
11924
|
-
* @export
|
|
11925
|
-
* @interface ClientAccountsApiOnboardClientAccountRequest
|
|
11926
|
-
*/
|
|
11927
|
-
export interface ClientAccountsApiOnboardClientAccountRequest {
|
|
11928
|
-
/**
|
|
11929
|
-
* Les données du compte à créer
|
|
11930
|
-
* @type {ClientAccountOnboardingRequest}
|
|
11931
|
-
* @memberof ClientAccountsApiOnboardClientAccount
|
|
11932
|
-
*/
|
|
11933
|
-
readonly clientAccountOnboardingRequest: ClientAccountOnboardingRequest
|
|
11934
|
-
}
|
|
11935
|
-
|
|
11936
|
-
/**
|
|
11937
|
-
* Request parameters for registerClientUser operation in ClientAccountsApi.
|
|
11938
|
-
* @export
|
|
11939
|
-
* @interface ClientAccountsApiRegisterClientUserRequest
|
|
11940
|
-
*/
|
|
11941
|
-
export interface ClientAccountsApiRegisterClientUserRequest {
|
|
11942
|
-
/**
|
|
11943
|
-
*
|
|
11944
|
-
* @type {ClientRegisterRequestBody}
|
|
11945
|
-
* @memberof ClientAccountsApiRegisterClientUser
|
|
11946
|
-
*/
|
|
11947
|
-
readonly clientRegisterRequestBody: ClientRegisterRequestBody
|
|
11948
|
-
}
|
|
11949
|
-
|
|
11950
|
-
/**
|
|
11951
|
-
* ClientAccountsApi - object-oriented interface
|
|
11952
|
-
* @export
|
|
11953
|
-
* @class ClientAccountsApi
|
|
11954
|
-
* @extends {BaseAPI}
|
|
11955
|
-
*/
|
|
11956
|
-
export class ClientAccountsApi extends BaseAPI {
|
|
11957
|
-
/**
|
|
11958
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
11959
|
-
* @param {*} [options] Override http request option.
|
|
11960
|
-
* @throws {RequiredError}
|
|
11961
|
-
* @memberof ClientAccountsApi
|
|
11962
|
-
*/
|
|
11963
|
-
public clientAuthMe(options?: RawAxiosRequestConfig) {
|
|
11964
|
-
return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
|
|
11965
|
-
}
|
|
11966
|
-
|
|
11967
|
-
/**
|
|
11968
|
-
* Récupère le compte client par son ID
|
|
11969
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
11970
|
-
* @param {*} [options] Override http request option.
|
|
11971
|
-
* @throws {RequiredError}
|
|
11972
|
-
* @memberof ClientAccountsApi
|
|
11973
|
-
*/
|
|
11974
|
-
public getClientAccountById(requestParameters: ClientAccountsApiGetClientAccountByIdRequest, options?: RawAxiosRequestConfig) {
|
|
11975
|
-
return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
11976
|
-
}
|
|
11977
|
-
|
|
11978
|
-
/**
|
|
11979
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
11980
|
-
* @param {*} [options] Override http request option.
|
|
11981
|
-
* @throws {RequiredError}
|
|
11982
|
-
* @memberof ClientAccountsApi
|
|
11983
|
-
*/
|
|
11984
|
-
public getMyActiveSubscription(options?: RawAxiosRequestConfig) {
|
|
11985
|
-
return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
|
|
11986
|
-
}
|
|
11987
|
-
|
|
11988
|
-
/**
|
|
11989
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
11990
|
-
* @param {*} [options] Override http request option.
|
|
11991
|
-
* @throws {RequiredError}
|
|
11992
|
-
* @memberof ClientAccountsApi
|
|
11993
|
-
*/
|
|
11994
|
-
public getMyClientAccount(options?: RawAxiosRequestConfig) {
|
|
11995
|
-
return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
|
|
11996
|
-
}
|
|
11997
|
-
|
|
11998
|
-
/**
|
|
11999
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
12000
|
-
* @param {*} [options] Override http request option.
|
|
12001
|
-
* @throws {RequiredError}
|
|
12002
|
-
* @memberof ClientAccountsApi
|
|
12003
|
-
*/
|
|
12004
|
-
public getSubscriptionsHistory(options?: RawAxiosRequestConfig) {
|
|
12005
|
-
return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
|
|
12006
|
-
}
|
|
12007
|
-
|
|
12008
|
-
/**
|
|
12009
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
12010
|
-
* @param {*} [options] Override http request option.
|
|
12011
|
-
* @throws {RequiredError}
|
|
12012
|
-
* @memberof ClientAccountsApi
|
|
12013
|
-
*/
|
|
12014
|
-
public listAvailablePrices(options?: RawAxiosRequestConfig) {
|
|
12015
|
-
return ClientAccountsApiFp(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
|
|
12016
|
-
}
|
|
12017
|
-
|
|
12018
|
-
/**
|
|
12019
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
12020
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
12021
|
-
* @param {*} [options] Override http request option.
|
|
12022
|
-
* @throws {RequiredError}
|
|
12023
|
-
* @memberof ClientAccountsApi
|
|
12024
|
-
*/
|
|
12025
|
-
public onboardClientAccount(requestParameters: ClientAccountsApiOnboardClientAccountRequest, options?: RawAxiosRequestConfig) {
|
|
12026
|
-
return ClientAccountsApiFp(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11242
|
+
public getManagedClubs(options?: RawAxiosRequestConfig) {
|
|
11243
|
+
return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
12027
11244
|
}
|
|
12028
11245
|
|
|
12029
11246
|
/**
|
|
12030
|
-
*
|
|
12031
|
-
* @param {
|
|
11247
|
+
* 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
|
|
11248
|
+
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
12032
11249
|
* @param {*} [options] Override http request option.
|
|
12033
11250
|
* @throws {RequiredError}
|
|
12034
|
-
* @memberof
|
|
11251
|
+
* @memberof ClientApi
|
|
12035
11252
|
*/
|
|
12036
|
-
public
|
|
12037
|
-
return
|
|
11253
|
+
public onboardClub(requestParameters: ClientApiOnboardClubRequest, options?: RawAxiosRequestConfig) {
|
|
11254
|
+
return ClientApiFp(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
12038
11255
|
}
|
|
12039
11256
|
}
|
|
12040
11257
|
|