@tennac-booking/sdk 1.0.85 → 1.0.86
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 +2 -0
- package/README.md +3 -2
- package/api.ts +22 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +23 -4
- package/dist/api.js +1 -1
- 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 +23 -4
- package/dist/esm/api.js +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingPriceResponse.md +22 -0
- package/docs/BookingsApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingDetailResponse.md +0 -46
package/.openapi-generator/FILES
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
|
+
.openapi-generator-ignore
|
|
3
4
|
README.md
|
|
4
5
|
api.ts
|
|
5
6
|
base.ts
|
|
@@ -20,6 +21,7 @@ docs/BookingPaymentStatusResponseSummary.md
|
|
|
20
21
|
docs/BookingPlayerPaymentSummary.md
|
|
21
22
|
docs/BookingPopulated.md
|
|
22
23
|
docs/BookingPriceBody.md
|
|
24
|
+
docs/BookingPriceResponse.md
|
|
23
25
|
docs/BookingResponse.md
|
|
24
26
|
docs/BookingResponseOnsitePaymentsInner.md
|
|
25
27
|
docs/BookingSlotInfo.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.86
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @tennac-booking/sdk@1.0.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.86 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -202,6 +202,7 @@ Class | Method | HTTP request | Description
|
|
|
202
202
|
- [BookingPlayerPaymentSummary](docs/BookingPlayerPaymentSummary.md)
|
|
203
203
|
- [BookingPopulated](docs/BookingPopulated.md)
|
|
204
204
|
- [BookingPriceBody](docs/BookingPriceBody.md)
|
|
205
|
+
- [BookingPriceResponse](docs/BookingPriceResponse.md)
|
|
205
206
|
- [BookingResponse](docs/BookingResponse.md)
|
|
206
207
|
- [BookingResponseOnsitePaymentsInner](docs/BookingResponseOnsitePaymentsInner.md)
|
|
207
208
|
- [BookingSlotInfo](docs/BookingSlotInfo.md)
|
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.86
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -669,6 +669,25 @@ export interface BookingPriceBody {
|
|
|
669
669
|
*/
|
|
670
670
|
'players': Array<string>;
|
|
671
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @export
|
|
675
|
+
* @interface BookingPriceResponse
|
|
676
|
+
*/
|
|
677
|
+
export interface BookingPriceResponse {
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @type {boolean}
|
|
681
|
+
* @memberof BookingPriceResponse
|
|
682
|
+
*/
|
|
683
|
+
'creatorNeedsToRegisterPaymentMethod': boolean;
|
|
684
|
+
/**
|
|
685
|
+
*
|
|
686
|
+
* @type {Array<PlayerPrice>}
|
|
687
|
+
* @memberof BookingPriceResponse
|
|
688
|
+
*/
|
|
689
|
+
'playerPrices': Array<PlayerPrice>;
|
|
690
|
+
}
|
|
672
691
|
/**
|
|
673
692
|
*
|
|
674
693
|
* @export
|
|
@@ -8295,7 +8314,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
8295
8314
|
* @param {*} [options] Override http request option.
|
|
8296
8315
|
* @throws {RequiredError}
|
|
8297
8316
|
*/
|
|
8298
|
-
async getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8317
|
+
async getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>> {
|
|
8299
8318
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
8300
8319
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8301
8320
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
@@ -8348,7 +8367,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
8348
8367
|
* @param {*} [options] Override http request option.
|
|
8349
8368
|
* @throws {RequiredError}
|
|
8350
8369
|
*/
|
|
8351
|
-
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8370
|
+
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
|
|
8352
8371
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
8353
8372
|
},
|
|
8354
8373
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.86
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -648,6 +648,25 @@ export interface BookingPriceBody {
|
|
|
648
648
|
*/
|
|
649
649
|
'players': Array<string>;
|
|
650
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @export
|
|
654
|
+
* @interface BookingPriceResponse
|
|
655
|
+
*/
|
|
656
|
+
export interface BookingPriceResponse {
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @type {boolean}
|
|
660
|
+
* @memberof BookingPriceResponse
|
|
661
|
+
*/
|
|
662
|
+
'creatorNeedsToRegisterPaymentMethod': boolean;
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @type {Array<PlayerPrice>}
|
|
666
|
+
* @memberof BookingPriceResponse
|
|
667
|
+
*/
|
|
668
|
+
'playerPrices': Array<PlayerPrice>;
|
|
669
|
+
}
|
|
651
670
|
/**
|
|
652
671
|
*
|
|
653
672
|
* @export
|
|
@@ -8002,7 +8021,7 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
8002
8021
|
* @param {*} [options] Override http request option.
|
|
8003
8022
|
* @throws {RequiredError}
|
|
8004
8023
|
*/
|
|
8005
|
-
getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8024
|
+
getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
|
|
8006
8025
|
/**
|
|
8007
8026
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
8008
8027
|
* @param {number} [latitude]
|
|
@@ -8039,7 +8058,7 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
8039
8058
|
* @param {*} [options] Override http request option.
|
|
8040
8059
|
* @throws {RequiredError}
|
|
8041
8060
|
*/
|
|
8042
|
-
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8061
|
+
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
|
|
8043
8062
|
/**
|
|
8044
8063
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
8045
8064
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -8169,7 +8188,7 @@ export declare class BookingsApi extends BaseAPI {
|
|
|
8169
8188
|
* @throws {RequiredError}
|
|
8170
8189
|
* @memberof BookingsApi
|
|
8171
8190
|
*/
|
|
8172
|
-
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
8191
|
+
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any>>;
|
|
8173
8192
|
/**
|
|
8174
8193
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
8175
8194
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
package/dist/api.js
CHANGED
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.86
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -648,6 +648,25 @@ export interface BookingPriceBody {
|
|
|
648
648
|
*/
|
|
649
649
|
'players': Array<string>;
|
|
650
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @export
|
|
654
|
+
* @interface BookingPriceResponse
|
|
655
|
+
*/
|
|
656
|
+
export interface BookingPriceResponse {
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @type {boolean}
|
|
660
|
+
* @memberof BookingPriceResponse
|
|
661
|
+
*/
|
|
662
|
+
'creatorNeedsToRegisterPaymentMethod': boolean;
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @type {Array<PlayerPrice>}
|
|
666
|
+
* @memberof BookingPriceResponse
|
|
667
|
+
*/
|
|
668
|
+
'playerPrices': Array<PlayerPrice>;
|
|
669
|
+
}
|
|
651
670
|
/**
|
|
652
671
|
*
|
|
653
672
|
* @export
|
|
@@ -8002,7 +8021,7 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
8002
8021
|
* @param {*} [options] Override http request option.
|
|
8003
8022
|
* @throws {RequiredError}
|
|
8004
8023
|
*/
|
|
8005
|
-
getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8024
|
+
getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
|
|
8006
8025
|
/**
|
|
8007
8026
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
8008
8027
|
* @param {number} [latitude]
|
|
@@ -8039,7 +8058,7 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
8039
8058
|
* @param {*} [options] Override http request option.
|
|
8040
8059
|
* @throws {RequiredError}
|
|
8041
8060
|
*/
|
|
8042
|
-
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8061
|
+
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
|
|
8043
8062
|
/**
|
|
8044
8063
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
8045
8064
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -8169,7 +8188,7 @@ export declare class BookingsApi extends BaseAPI {
|
|
|
8169
8188
|
* @throws {RequiredError}
|
|
8170
8189
|
* @memberof BookingsApi
|
|
8171
8190
|
*/
|
|
8172
|
-
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
8191
|
+
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any>>;
|
|
8173
8192
|
/**
|
|
8174
8193
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
8175
8194
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
CHANGED
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingPriceResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**creatorNeedsToRegisterPaymentMethod** | **boolean** | | [default to undefined]
|
|
9
|
+
**playerPrices** | [**Array<PlayerPrice>**](PlayerPrice.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingPriceResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingPriceResponse = {
|
|
17
|
+
creatorNeedsToRegisterPaymentMethod,
|
|
18
|
+
playerPrices,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/BookingsApi.md
CHANGED
|
@@ -60,7 +60,7 @@ const { status, data } = await apiInstance.getBookingHistory(
|
|
|
60
60
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
61
61
|
|
|
62
62
|
# **getBookingPrice**
|
|
63
|
-
>
|
|
63
|
+
> BookingPriceResponse getBookingPrice(bookingPriceBody)
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
### Example
|
|
@@ -91,7 +91,7 @@ const { status, data } = await apiInstance.getBookingPrice(
|
|
|
91
91
|
|
|
92
92
|
### Return type
|
|
93
93
|
|
|
94
|
-
**
|
|
94
|
+
**BookingPriceResponse**
|
|
95
95
|
|
|
96
96
|
### Authorization
|
|
97
97
|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# BookingDetailResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [default to undefined]
|
|
9
|
-
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**courtName** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**sportName** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**myPaymentStatus** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**bookingStatus** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**playersName** | **Array<string>** | | [default to undefined]
|
|
16
|
-
**myAmountToPay** | **number** | | [default to undefined]
|
|
17
|
-
**totalAmount** | **number** | | [default to undefined]
|
|
18
|
-
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
|
-
**bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
|
|
21
|
-
**paymentStatus** | **Array<{ [key: string]: any; }>** | | [default to undefined]
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import { BookingDetailResponse } from '@tennac-booking/sdk';
|
|
27
|
-
|
|
28
|
-
const instance: BookingDetailResponse = {
|
|
29
|
-
id,
|
|
30
|
-
clubPicture,
|
|
31
|
-
courtName,
|
|
32
|
-
sportName,
|
|
33
|
-
startDate,
|
|
34
|
-
myPaymentStatus,
|
|
35
|
-
bookingStatus,
|
|
36
|
-
playersName,
|
|
37
|
-
myAmountToPay,
|
|
38
|
-
totalAmount,
|
|
39
|
-
timeBeforeCancel,
|
|
40
|
-
clubAddress,
|
|
41
|
-
bookingHistory,
|
|
42
|
-
paymentStatus,
|
|
43
|
-
};
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|