@tennac-booking/sdk 1.0.73 → 1.0.75
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 +234 -240
- package/README.md +2 -11
- package/api.ts +35 -482
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +167 -485
- package/dist/api.js +1 -199
- 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 +167 -485
- package/dist/esm/api.js +1 -199
- 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/BookingInfo.md +2 -2
- package/docs/BookingResponse.md +2 -0
- package/docs/ClubSettingsResponse.md +0 -2
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/IUserAttributes.md +2 -12
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/UserProfileResponse.md +2 -12
- package/docs/UsersApi.md +0 -156
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddPaymentMethodRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodRequestBody.md +0 -20
- package/docs/SetupPaymentMethodResponse.md +0 -24
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.75
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7481,38 +7481,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7481
7481
|
options: localVarRequestOptions,
|
|
7482
7482
|
};
|
|
7483
7483
|
}),
|
|
7484
|
-
/**
|
|
7485
|
-
*
|
|
7486
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
7487
|
-
* @param {*} [options] Override http request option.
|
|
7488
|
-
* @throws {RequiredError}
|
|
7489
|
-
*/
|
|
7490
|
-
addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
|
|
7491
|
-
// verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
|
|
7492
|
-
assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
|
|
7493
|
-
const localVarPath = `/api/users/addPaymentMethodSetup`;
|
|
7494
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7495
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7496
|
-
let baseOptions;
|
|
7497
|
-
if (configuration) {
|
|
7498
|
-
baseOptions = configuration.baseOptions;
|
|
7499
|
-
}
|
|
7500
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7501
|
-
const localVarHeaderParameter = {};
|
|
7502
|
-
const localVarQueryParameter = {};
|
|
7503
|
-
// authentication bearerAuth required
|
|
7504
|
-
// http bearer authentication required
|
|
7505
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7506
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7507
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7508
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7509
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7510
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7511
|
-
return {
|
|
7512
|
-
url: toPathString(localVarUrlObj),
|
|
7513
|
-
options: localVarRequestOptions,
|
|
7514
|
-
};
|
|
7515
|
-
}),
|
|
7516
7484
|
/**
|
|
7517
7485
|
*
|
|
7518
7486
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -7545,38 +7513,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7545
7513
|
options: localVarRequestOptions,
|
|
7546
7514
|
};
|
|
7547
7515
|
}),
|
|
7548
|
-
/**
|
|
7549
|
-
*
|
|
7550
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
7551
|
-
* @param {*} [options] Override http request option.
|
|
7552
|
-
* @throws {RequiredError}
|
|
7553
|
-
*/
|
|
7554
|
-
confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
|
|
7555
|
-
// verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
|
|
7556
|
-
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
|
|
7557
|
-
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
7558
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7559
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7560
|
-
let baseOptions;
|
|
7561
|
-
if (configuration) {
|
|
7562
|
-
baseOptions = configuration.baseOptions;
|
|
7563
|
-
}
|
|
7564
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7565
|
-
const localVarHeaderParameter = {};
|
|
7566
|
-
const localVarQueryParameter = {};
|
|
7567
|
-
// authentication bearerAuth required
|
|
7568
|
-
// http bearer authentication required
|
|
7569
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7570
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7571
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7572
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7573
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7574
|
-
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
7575
|
-
return {
|
|
7576
|
-
url: toPathString(localVarUrlObj),
|
|
7577
|
-
options: localVarRequestOptions,
|
|
7578
|
-
};
|
|
7579
|
-
}),
|
|
7580
7516
|
/**
|
|
7581
7517
|
*
|
|
7582
7518
|
* @param {*} [options] Override http request option.
|
|
@@ -8346,38 +8282,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
8346
8282
|
options: localVarRequestOptions,
|
|
8347
8283
|
};
|
|
8348
8284
|
}),
|
|
8349
|
-
/**
|
|
8350
|
-
*
|
|
8351
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8352
|
-
* @param {*} [options] Override http request option.
|
|
8353
|
-
* @throws {RequiredError}
|
|
8354
|
-
*/
|
|
8355
|
-
setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
|
|
8356
|
-
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8357
|
-
assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
|
|
8358
|
-
const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
|
|
8359
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8360
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8361
|
-
let baseOptions;
|
|
8362
|
-
if (configuration) {
|
|
8363
|
-
baseOptions = configuration.baseOptions;
|
|
8364
|
-
}
|
|
8365
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8366
|
-
const localVarHeaderParameter = {};
|
|
8367
|
-
const localVarQueryParameter = {};
|
|
8368
|
-
// authentication bearerAuth required
|
|
8369
|
-
// http bearer authentication required
|
|
8370
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8371
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8372
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8373
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8374
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8375
|
-
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
|
|
8376
|
-
return {
|
|
8377
|
-
url: toPathString(localVarUrlObj),
|
|
8378
|
-
options: localVarRequestOptions,
|
|
8379
|
-
};
|
|
8380
|
-
}),
|
|
8381
8285
|
/**
|
|
8382
8286
|
*
|
|
8383
8287
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -8647,21 +8551,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
8647
8551
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8648
8552
|
});
|
|
8649
8553
|
},
|
|
8650
|
-
/**
|
|
8651
|
-
*
|
|
8652
|
-
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
8653
|
-
* @param {*} [options] Override http request option.
|
|
8654
|
-
* @throws {RequiredError}
|
|
8655
|
-
*/
|
|
8656
|
-
addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
|
|
8657
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8658
|
-
var _a, _b, _c;
|
|
8659
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
|
|
8660
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8661
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8662
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8663
|
-
});
|
|
8664
|
-
},
|
|
8665
8554
|
/**
|
|
8666
8555
|
*
|
|
8667
8556
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
@@ -8677,21 +8566,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
8677
8566
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8678
8567
|
});
|
|
8679
8568
|
},
|
|
8680
|
-
/**
|
|
8681
|
-
*
|
|
8682
|
-
* @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
|
|
8683
|
-
* @param {*} [options] Override http request option.
|
|
8684
|
-
* @throws {RequiredError}
|
|
8685
|
-
*/
|
|
8686
|
-
confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
|
|
8687
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8688
|
-
var _a, _b, _c;
|
|
8689
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
|
|
8690
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8691
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8692
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8693
|
-
});
|
|
8694
|
-
},
|
|
8695
8569
|
/**
|
|
8696
8570
|
*
|
|
8697
8571
|
* @param {*} [options] Override http request option.
|
|
@@ -9062,21 +8936,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
9062
8936
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9063
8937
|
});
|
|
9064
8938
|
},
|
|
9065
|
-
/**
|
|
9066
|
-
*
|
|
9067
|
-
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
9068
|
-
* @param {*} [options] Override http request option.
|
|
9069
|
-
* @throws {RequiredError}
|
|
9070
|
-
*/
|
|
9071
|
-
setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
|
|
9072
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9073
|
-
var _a, _b, _c;
|
|
9074
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
9075
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9076
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9077
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9078
|
-
});
|
|
9079
|
-
},
|
|
9080
8939
|
/**
|
|
9081
8940
|
*
|
|
9082
8941
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -9218,15 +9077,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9218
9077
|
addOrganization(requestParameters, options) {
|
|
9219
9078
|
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
9220
9079
|
},
|
|
9221
|
-
/**
|
|
9222
|
-
*
|
|
9223
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9224
|
-
* @param {*} [options] Override http request option.
|
|
9225
|
-
* @throws {RequiredError}
|
|
9226
|
-
*/
|
|
9227
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9228
|
-
return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9229
|
-
},
|
|
9230
9080
|
/**
|
|
9231
9081
|
*
|
|
9232
9082
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9236,15 +9086,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9236
9086
|
changePassword(requestParameters, options) {
|
|
9237
9087
|
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
9238
9088
|
},
|
|
9239
|
-
/**
|
|
9240
|
-
*
|
|
9241
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9242
|
-
* @param {*} [options] Override http request option.
|
|
9243
|
-
* @throws {RequiredError}
|
|
9244
|
-
*/
|
|
9245
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9246
|
-
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9247
|
-
},
|
|
9248
9089
|
/**
|
|
9249
9090
|
*
|
|
9250
9091
|
* @param {*} [options] Override http request option.
|
|
@@ -9453,15 +9294,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
9453
9294
|
resetPassword(requestParameters, options) {
|
|
9454
9295
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
9455
9296
|
},
|
|
9456
|
-
/**
|
|
9457
|
-
*
|
|
9458
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9459
|
-
* @param {*} [options] Override http request option.
|
|
9460
|
-
* @throws {RequiredError}
|
|
9461
|
-
*/
|
|
9462
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9463
|
-
return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
9464
|
-
},
|
|
9465
9297
|
/**
|
|
9466
9298
|
*
|
|
9467
9299
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -9564,16 +9396,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9564
9396
|
addOrganization(requestParameters, options) {
|
|
9565
9397
|
return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9566
9398
|
}
|
|
9567
|
-
/**
|
|
9568
|
-
*
|
|
9569
|
-
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9570
|
-
* @param {*} [options] Override http request option.
|
|
9571
|
-
* @throws {RequiredError}
|
|
9572
|
-
* @memberof UsersApi
|
|
9573
|
-
*/
|
|
9574
|
-
addPaymentMethodSetup(requestParameters, options) {
|
|
9575
|
-
return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9576
|
-
}
|
|
9577
9399
|
/**
|
|
9578
9400
|
*
|
|
9579
9401
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
@@ -9584,16 +9406,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9584
9406
|
changePassword(requestParameters, options) {
|
|
9585
9407
|
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9586
9408
|
}
|
|
9587
|
-
/**
|
|
9588
|
-
*
|
|
9589
|
-
* @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
9590
|
-
* @param {*} [options] Override http request option.
|
|
9591
|
-
* @throws {RequiredError}
|
|
9592
|
-
* @memberof UsersApi
|
|
9593
|
-
*/
|
|
9594
|
-
confirmPaymentMethodSetup(requestParameters, options) {
|
|
9595
|
-
return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9596
|
-
}
|
|
9597
9409
|
/**
|
|
9598
9410
|
*
|
|
9599
9411
|
* @param {*} [options] Override http request option.
|
|
@@ -9826,16 +9638,6 @@ export class UsersApi extends BaseAPI {
|
|
|
9826
9638
|
resetPassword(requestParameters, options) {
|
|
9827
9639
|
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9828
9640
|
}
|
|
9829
|
-
/**
|
|
9830
|
-
*
|
|
9831
|
-
* @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
|
|
9832
|
-
* @param {*} [options] Override http request option.
|
|
9833
|
-
* @throws {RequiredError}
|
|
9834
|
-
* @memberof UsersApi
|
|
9835
|
-
*/
|
|
9836
|
-
setupOffSessionPaymentMethod(requestParameters, options) {
|
|
9837
|
-
return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
9838
|
-
}
|
|
9839
9641
|
/**
|
|
9840
9642
|
*
|
|
9841
9643
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
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
package/docs/BookingInfo.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**playersIds** | **Array<string>** | Liste des IDs des joueurs | [default to undefined]
|
|
12
12
|
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
13
13
|
**totalPrice** | **number** | Prix total en euros | [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**slotIds** | **Array<string>** | ID du créneau | [default to undefined]
|
|
15
15
|
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
|
|
16
16
|
**createdAt** | **string** | Date de création | [default to undefined]
|
|
17
17
|
**updatedAt** | **string** | Date de mise à jour | [default to undefined]
|
|
@@ -34,7 +34,7 @@ const instance: BookingInfo = {
|
|
|
34
34
|
playersIds,
|
|
35
35
|
status,
|
|
36
36
|
totalPrice,
|
|
37
|
-
|
|
37
|
+
slotIds,
|
|
38
38
|
isCreatorPayingAll,
|
|
39
39
|
createdAt,
|
|
40
40
|
updatedAt,
|
package/docs/BookingResponse.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**invoiceUrl** | **string** | URL de la facture (pour paiement en ligne) | [optional] [default to undefined]
|
|
10
10
|
**paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
11
11
|
**onsitePayments** | [**Array<BookingResponseOnsitePaymentsInner>**](BookingResponseOnsitePaymentsInner.md) | Paiements sur place requis | [optional] [default to undefined]
|
|
12
|
+
**setupNoShowPaymentUrl** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const instance: BookingResponse = {
|
|
|
21
22
|
invoiceUrl,
|
|
22
23
|
paymentLinks,
|
|
23
24
|
onsitePayments,
|
|
25
|
+
setupNoShowPaymentUrl,
|
|
24
26
|
message,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
10
|
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
11
|
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
-
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [default to undefined]
|
|
13
12
|
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
14
13
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
15
14
|
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
@@ -27,7 +26,6 @@ const instance: ClubSettingsResponse = {
|
|
|
27
26
|
_id,
|
|
28
27
|
clubId,
|
|
29
28
|
maxWeeklyBookings,
|
|
30
|
-
allowMultipleBookingsAtTheSameTime,
|
|
31
29
|
sameTimeBookingsLimit,
|
|
32
30
|
cancellationLimitHours,
|
|
33
31
|
availabilityPeriodInDays,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
9
|
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
|
|
10
10
|
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
|
|
11
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
import { CreateBookingRequest } from '@tennac-booking/sdk';
|
|
18
18
|
|
|
19
19
|
const instance: CreateBookingRequest = {
|
|
20
|
-
|
|
20
|
+
slotIds,
|
|
21
21
|
players,
|
|
22
22
|
isCreatorPayingAll,
|
|
23
23
|
paymentMethod,
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -13,9 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
15
|
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
16
|
-
**isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
|
|
17
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
18
|
-
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
19
17
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
18
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
19
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
@@ -28,15 +26,12 @@ Name | Type | Description | Notes
|
|
|
28
26
|
**createdAt** | **string** | | [default to undefined]
|
|
29
27
|
**updatedAt** | **string** | | [default to undefined]
|
|
30
28
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
31
|
-
**paymentMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
32
|
-
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
33
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
34
|
-
**setupIntentId** | **string** | | [optional] [default to undefined]
|
|
35
29
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
36
30
|
**description** | **string** | | [optional] [default to undefined]
|
|
37
31
|
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
38
32
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
39
33
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
34
|
+
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
40
35
|
|
|
41
36
|
## Example
|
|
42
37
|
|
|
@@ -52,9 +47,7 @@ const instance: IUserAttributes = {
|
|
|
52
47
|
gender,
|
|
53
48
|
location,
|
|
54
49
|
isAccountVerified,
|
|
55
|
-
isCreditCardRegistered,
|
|
56
50
|
levelBySports,
|
|
57
|
-
stripeCustomerId,
|
|
58
51
|
phone,
|
|
59
52
|
password,
|
|
60
53
|
profilePicture,
|
|
@@ -67,15 +60,12 @@ const instance: IUserAttributes = {
|
|
|
67
60
|
createdAt,
|
|
68
61
|
updatedAt,
|
|
69
62
|
isLevelCertified,
|
|
70
|
-
paymentMethods,
|
|
71
|
-
defaultPaymentMethodId,
|
|
72
|
-
paymentMethodSetupCompleted,
|
|
73
|
-
setupIntentId,
|
|
74
63
|
favoriteClubs,
|
|
75
64
|
description,
|
|
76
65
|
isProfileVisible,
|
|
77
66
|
favoritePlayers,
|
|
78
67
|
sports,
|
|
68
|
+
stripeCustomerId,
|
|
79
69
|
};
|
|
80
70
|
```
|
|
81
71
|
|
|
@@ -13,9 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
15
|
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
16
|
-
**isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
|
|
17
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
18
|
-
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
19
17
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
18
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
19
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
@@ -28,15 +26,12 @@ Name | Type | Description | Notes
|
|
|
28
26
|
**createdAt** | **string** | | [default to undefined]
|
|
29
27
|
**updatedAt** | **string** | | [default to undefined]
|
|
30
28
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
31
|
-
**paymentMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
32
|
-
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
33
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
34
|
-
**setupIntentId** | **string** | | [optional] [default to undefined]
|
|
35
29
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
36
30
|
**description** | **string** | | [optional] [default to undefined]
|
|
37
31
|
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
38
32
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
39
33
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
34
|
+
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
40
35
|
**isSubscribedToMyClub** | **boolean** | | [optional] [default to undefined]
|
|
41
36
|
**creditOnMyClub** | **number** | | [optional] [default to undefined]
|
|
42
37
|
|
|
@@ -54,9 +49,7 @@ const instance: StaffUserProfileResponse = {
|
|
|
54
49
|
gender,
|
|
55
50
|
location,
|
|
56
51
|
isAccountVerified,
|
|
57
|
-
isCreditCardRegistered,
|
|
58
52
|
levelBySports,
|
|
59
|
-
stripeCustomerId,
|
|
60
53
|
phone,
|
|
61
54
|
password,
|
|
62
55
|
profilePicture,
|
|
@@ -69,15 +62,12 @@ const instance: StaffUserProfileResponse = {
|
|
|
69
62
|
createdAt,
|
|
70
63
|
updatedAt,
|
|
71
64
|
isLevelCertified,
|
|
72
|
-
paymentMethods,
|
|
73
|
-
defaultPaymentMethodId,
|
|
74
|
-
paymentMethodSetupCompleted,
|
|
75
|
-
setupIntentId,
|
|
76
65
|
favoriteClubs,
|
|
77
66
|
description,
|
|
78
67
|
isProfileVisible,
|
|
79
68
|
favoritePlayers,
|
|
80
69
|
sports,
|
|
70
|
+
stripeCustomerId,
|
|
81
71
|
isSubscribedToMyClub,
|
|
82
72
|
creditOnMyClub,
|
|
83
73
|
};
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**clubId** | **string** | | [default to undefined]
|
|
9
9
|
**priceId** | **string** | | [default to undefined]
|
|
10
|
+
**useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { SubscribeRequestBody } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: SubscribeRequestBody = {
|
|
17
18
|
clubId,
|
|
18
19
|
priceId,
|
|
20
|
+
useDefaultPaymentMethod,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -13,9 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
15
|
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
16
|
-
**isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
|
|
17
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
18
|
-
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
19
17
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
18
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
19
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
@@ -28,15 +26,12 @@ Name | Type | Description | Notes
|
|
|
28
26
|
**createdAt** | **string** | | [default to undefined]
|
|
29
27
|
**updatedAt** | **string** | | [default to undefined]
|
|
30
28
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
31
|
-
**paymentMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
32
|
-
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
33
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
34
|
-
**setupIntentId** | **string** | | [optional] [default to undefined]
|
|
35
29
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
36
30
|
**description** | **string** | | [optional] [default to undefined]
|
|
37
31
|
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
38
32
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
39
33
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
34
|
+
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
40
35
|
**upcomingBookingsCount** | **number** | | [optional] [default to undefined]
|
|
41
36
|
**subscriptionsCount** | **number** | | [optional] [default to undefined]
|
|
42
37
|
**subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
|
|
@@ -59,9 +54,7 @@ const instance: UserProfileResponse = {
|
|
|
59
54
|
gender,
|
|
60
55
|
location,
|
|
61
56
|
isAccountVerified,
|
|
62
|
-
isCreditCardRegistered,
|
|
63
57
|
levelBySports,
|
|
64
|
-
stripeCustomerId,
|
|
65
58
|
phone,
|
|
66
59
|
password,
|
|
67
60
|
profilePicture,
|
|
@@ -74,15 +67,12 @@ const instance: UserProfileResponse = {
|
|
|
74
67
|
createdAt,
|
|
75
68
|
updatedAt,
|
|
76
69
|
isLevelCertified,
|
|
77
|
-
paymentMethods,
|
|
78
|
-
defaultPaymentMethodId,
|
|
79
|
-
paymentMethodSetupCompleted,
|
|
80
|
-
setupIntentId,
|
|
81
70
|
favoriteClubs,
|
|
82
71
|
description,
|
|
83
72
|
isProfileVisible,
|
|
84
73
|
favoritePlayers,
|
|
85
74
|
sports,
|
|
75
|
+
stripeCustomerId,
|
|
86
76
|
upcomingBookingsCount,
|
|
87
77
|
subscriptionsCount,
|
|
88
78
|
subscriptions,
|