ch-api-client-typescript2 3.2.1 → 3.2.2
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/lib/api.d.ts +66 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +170 -0
- package/package.json +1 -1
- package/src/api.ts +142 -0
package/lib/api.js
CHANGED
|
@@ -2218,6 +2218,49 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2218
2218
|
});
|
|
2219
2219
|
});
|
|
2220
2220
|
},
|
|
2221
|
+
/**
|
|
2222
|
+
*
|
|
2223
|
+
* @summary Mark as Paid booking.
|
|
2224
|
+
* @param {string} bookingId
|
|
2225
|
+
* @param {*} [options] Override http request option.
|
|
2226
|
+
* @throws {RequiredError}
|
|
2227
|
+
*/
|
|
2228
|
+
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
2229
|
+
if (options === void 0) { options = {}; }
|
|
2230
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2231
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2232
|
+
return __generator(this, function (_a) {
|
|
2233
|
+
switch (_a.label) {
|
|
2234
|
+
case 0:
|
|
2235
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
2236
|
+
(0, common_1.assertParamExists)('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId);
|
|
2237
|
+
localVarPath = "/api/v2/bookings/{bookingId}/paid"
|
|
2238
|
+
.replace("{".concat("bookingId", "}"), encodeURIComponent(String(bookingId)));
|
|
2239
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2240
|
+
if (configuration) {
|
|
2241
|
+
baseOptions = configuration.baseOptions;
|
|
2242
|
+
}
|
|
2243
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2244
|
+
localVarHeaderParameter = {};
|
|
2245
|
+
localVarQueryParameter = {};
|
|
2246
|
+
// authentication oauth2 required
|
|
2247
|
+
// oauth required
|
|
2248
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2249
|
+
case 1:
|
|
2250
|
+
// authentication oauth2 required
|
|
2251
|
+
// oauth required
|
|
2252
|
+
_a.sent();
|
|
2253
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2254
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2255
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2256
|
+
return [2 /*return*/, {
|
|
2257
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2258
|
+
options: localVarRequestOptions,
|
|
2259
|
+
}];
|
|
2260
|
+
}
|
|
2261
|
+
});
|
|
2262
|
+
});
|
|
2263
|
+
},
|
|
2221
2264
|
/**
|
|
2222
2265
|
*
|
|
2223
2266
|
* @summary Pay booking.
|
|
@@ -2460,6 +2503,26 @@ var BookingsApiFp = function (configuration) {
|
|
|
2460
2503
|
});
|
|
2461
2504
|
});
|
|
2462
2505
|
},
|
|
2506
|
+
/**
|
|
2507
|
+
*
|
|
2508
|
+
* @summary Mark as Paid booking.
|
|
2509
|
+
* @param {string} bookingId
|
|
2510
|
+
* @param {*} [options] Override http request option.
|
|
2511
|
+
* @throws {RequiredError}
|
|
2512
|
+
*/
|
|
2513
|
+
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
2514
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2515
|
+
var localVarAxiosArgs;
|
|
2516
|
+
return __generator(this, function (_a) {
|
|
2517
|
+
switch (_a.label) {
|
|
2518
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options)];
|
|
2519
|
+
case 1:
|
|
2520
|
+
localVarAxiosArgs = _a.sent();
|
|
2521
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2522
|
+
}
|
|
2523
|
+
});
|
|
2524
|
+
});
|
|
2525
|
+
},
|
|
2463
2526
|
/**
|
|
2464
2527
|
*
|
|
2465
2528
|
* @summary Pay booking.
|
|
@@ -2570,6 +2633,16 @@ var BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2570
2633
|
apiV2BookingsBookingIdGet: function (bookingId, options) {
|
|
2571
2634
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2572
2635
|
},
|
|
2636
|
+
/**
|
|
2637
|
+
*
|
|
2638
|
+
* @summary Mark as Paid booking.
|
|
2639
|
+
* @param {string} bookingId
|
|
2640
|
+
* @param {*} [options] Override http request option.
|
|
2641
|
+
* @throws {RequiredError}
|
|
2642
|
+
*/
|
|
2643
|
+
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
2644
|
+
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2645
|
+
},
|
|
2573
2646
|
/**
|
|
2574
2647
|
*
|
|
2575
2648
|
* @summary Pay booking.
|
|
@@ -2646,6 +2719,18 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2646
2719
|
var _this = this;
|
|
2647
2720
|
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2648
2721
|
};
|
|
2722
|
+
/**
|
|
2723
|
+
*
|
|
2724
|
+
* @summary Mark as Paid booking.
|
|
2725
|
+
* @param {string} bookingId
|
|
2726
|
+
* @param {*} [options] Override http request option.
|
|
2727
|
+
* @throws {RequiredError}
|
|
2728
|
+
* @memberof BookingsApi
|
|
2729
|
+
*/
|
|
2730
|
+
BookingsApi.prototype.apiV2BookingsBookingIdPaidPost = function (bookingId, options) {
|
|
2731
|
+
var _this = this;
|
|
2732
|
+
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2733
|
+
};
|
|
2649
2734
|
/**
|
|
2650
2735
|
*
|
|
2651
2736
|
* @summary Pay booking.
|
|
@@ -3611,6 +3696,49 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3611
3696
|
});
|
|
3612
3697
|
});
|
|
3613
3698
|
},
|
|
3699
|
+
/**
|
|
3700
|
+
*
|
|
3701
|
+
* @summary Mark as Paid booking.
|
|
3702
|
+
* @param {string} consultationId
|
|
3703
|
+
* @param {*} [options] Override http request option.
|
|
3704
|
+
* @throws {RequiredError}
|
|
3705
|
+
*/
|
|
3706
|
+
apiV2ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
3707
|
+
if (options === void 0) { options = {}; }
|
|
3708
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3709
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3710
|
+
return __generator(this, function (_a) {
|
|
3711
|
+
switch (_a.label) {
|
|
3712
|
+
case 0:
|
|
3713
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
3714
|
+
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPaidPost', 'consultationId', consultationId);
|
|
3715
|
+
localVarPath = "/api/v2/consultations/{consultationId}/paid"
|
|
3716
|
+
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
3717
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3718
|
+
if (configuration) {
|
|
3719
|
+
baseOptions = configuration.baseOptions;
|
|
3720
|
+
}
|
|
3721
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
3722
|
+
localVarHeaderParameter = {};
|
|
3723
|
+
localVarQueryParameter = {};
|
|
3724
|
+
// authentication oauth2 required
|
|
3725
|
+
// oauth required
|
|
3726
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
3727
|
+
case 1:
|
|
3728
|
+
// authentication oauth2 required
|
|
3729
|
+
// oauth required
|
|
3730
|
+
_a.sent();
|
|
3731
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3732
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3733
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3734
|
+
return [2 /*return*/, {
|
|
3735
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3736
|
+
options: localVarRequestOptions,
|
|
3737
|
+
}];
|
|
3738
|
+
}
|
|
3739
|
+
});
|
|
3740
|
+
});
|
|
3741
|
+
},
|
|
3614
3742
|
/**
|
|
3615
3743
|
*
|
|
3616
3744
|
* @summary Pay consultation.
|
|
@@ -3853,6 +3981,26 @@ var ConsultationsApiFp = function (configuration) {
|
|
|
3853
3981
|
});
|
|
3854
3982
|
});
|
|
3855
3983
|
},
|
|
3984
|
+
/**
|
|
3985
|
+
*
|
|
3986
|
+
* @summary Mark as Paid booking.
|
|
3987
|
+
* @param {string} consultationId
|
|
3988
|
+
* @param {*} [options] Override http request option.
|
|
3989
|
+
* @throws {RequiredError}
|
|
3990
|
+
*/
|
|
3991
|
+
apiV2ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
3992
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3993
|
+
var localVarAxiosArgs;
|
|
3994
|
+
return __generator(this, function (_a) {
|
|
3995
|
+
switch (_a.label) {
|
|
3996
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPaidPost(consultationId, options)];
|
|
3997
|
+
case 1:
|
|
3998
|
+
localVarAxiosArgs = _a.sent();
|
|
3999
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4000
|
+
}
|
|
4001
|
+
});
|
|
4002
|
+
});
|
|
4003
|
+
},
|
|
3856
4004
|
/**
|
|
3857
4005
|
*
|
|
3858
4006
|
* @summary Pay consultation.
|
|
@@ -3963,6 +4111,16 @@ var ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
3963
4111
|
apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
|
|
3964
4112
|
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
3965
4113
|
},
|
|
4114
|
+
/**
|
|
4115
|
+
*
|
|
4116
|
+
* @summary Mark as Paid booking.
|
|
4117
|
+
* @param {string} consultationId
|
|
4118
|
+
* @param {*} [options] Override http request option.
|
|
4119
|
+
* @throws {RequiredError}
|
|
4120
|
+
*/
|
|
4121
|
+
apiV2ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
4122
|
+
return localVarFp.apiV2ConsultationsConsultationIdPaidPost(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
4123
|
+
},
|
|
3966
4124
|
/**
|
|
3967
4125
|
*
|
|
3968
4126
|
* @summary Pay consultation.
|
|
@@ -4039,6 +4197,18 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
4039
4197
|
var _this = this;
|
|
4040
4198
|
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4041
4199
|
};
|
|
4200
|
+
/**
|
|
4201
|
+
*
|
|
4202
|
+
* @summary Mark as Paid booking.
|
|
4203
|
+
* @param {string} consultationId
|
|
4204
|
+
* @param {*} [options] Override http request option.
|
|
4205
|
+
* @throws {RequiredError}
|
|
4206
|
+
* @memberof ConsultationsApi
|
|
4207
|
+
*/
|
|
4208
|
+
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdPaidPost = function (consultationId, options) {
|
|
4209
|
+
var _this = this;
|
|
4210
|
+
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdPaidPost(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4211
|
+
};
|
|
4042
4212
|
/**
|
|
4043
4213
|
*
|
|
4044
4214
|
* @summary Pay consultation.
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -12116,6 +12116,44 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12116
12116
|
|
|
12117
12117
|
|
|
12118
12118
|
|
|
12119
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12120
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12121
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12122
|
+
|
|
12123
|
+
return {
|
|
12124
|
+
url: toPathString(localVarUrlObj),
|
|
12125
|
+
options: localVarRequestOptions,
|
|
12126
|
+
};
|
|
12127
|
+
},
|
|
12128
|
+
/**
|
|
12129
|
+
*
|
|
12130
|
+
* @summary Mark as Paid booking.
|
|
12131
|
+
* @param {string} bookingId
|
|
12132
|
+
* @param {*} [options] Override http request option.
|
|
12133
|
+
* @throws {RequiredError}
|
|
12134
|
+
*/
|
|
12135
|
+
apiV2BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12136
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
12137
|
+
assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId)
|
|
12138
|
+
const localVarPath = `/api/v2/bookings/{bookingId}/paid`
|
|
12139
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12142
|
+
let baseOptions;
|
|
12143
|
+
if (configuration) {
|
|
12144
|
+
baseOptions = configuration.baseOptions;
|
|
12145
|
+
}
|
|
12146
|
+
|
|
12147
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12148
|
+
const localVarHeaderParameter = {} as any;
|
|
12149
|
+
const localVarQueryParameter = {} as any;
|
|
12150
|
+
|
|
12151
|
+
// authentication oauth2 required
|
|
12152
|
+
// oauth required
|
|
12153
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12154
|
+
|
|
12155
|
+
|
|
12156
|
+
|
|
12119
12157
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12120
12158
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12121
12159
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12349,6 +12387,17 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12349
12387
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
|
|
12350
12388
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12351
12389
|
},
|
|
12390
|
+
/**
|
|
12391
|
+
*
|
|
12392
|
+
* @summary Mark as Paid booking.
|
|
12393
|
+
* @param {string} bookingId
|
|
12394
|
+
* @param {*} [options] Override http request option.
|
|
12395
|
+
* @throws {RequiredError}
|
|
12396
|
+
*/
|
|
12397
|
+
async apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12398
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options);
|
|
12399
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12400
|
+
},
|
|
12352
12401
|
/**
|
|
12353
12402
|
*
|
|
12354
12403
|
* @summary Pay booking.
|
|
@@ -12423,6 +12472,16 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12423
12472
|
apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
|
|
12424
12473
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
|
|
12425
12474
|
},
|
|
12475
|
+
/**
|
|
12476
|
+
*
|
|
12477
|
+
* @summary Mark as Paid booking.
|
|
12478
|
+
* @param {string} bookingId
|
|
12479
|
+
* @param {*} [options] Override http request option.
|
|
12480
|
+
* @throws {RequiredError}
|
|
12481
|
+
*/
|
|
12482
|
+
apiV2BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
12483
|
+
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
|
|
12484
|
+
},
|
|
12426
12485
|
/**
|
|
12427
12486
|
*
|
|
12428
12487
|
* @summary Pay booking.
|
|
@@ -12495,6 +12554,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
12495
12554
|
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12496
12555
|
}
|
|
12497
12556
|
|
|
12557
|
+
/**
|
|
12558
|
+
*
|
|
12559
|
+
* @summary Mark as Paid booking.
|
|
12560
|
+
* @param {string} bookingId
|
|
12561
|
+
* @param {*} [options] Override http request option.
|
|
12562
|
+
* @throws {RequiredError}
|
|
12563
|
+
* @memberof BookingsApi
|
|
12564
|
+
*/
|
|
12565
|
+
public apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
12566
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12567
|
+
}
|
|
12568
|
+
|
|
12498
12569
|
/**
|
|
12499
12570
|
*
|
|
12500
12571
|
* @summary Pay booking.
|
|
@@ -13313,6 +13384,44 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13313
13384
|
|
|
13314
13385
|
|
|
13315
13386
|
|
|
13387
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13389
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13390
|
+
|
|
13391
|
+
return {
|
|
13392
|
+
url: toPathString(localVarUrlObj),
|
|
13393
|
+
options: localVarRequestOptions,
|
|
13394
|
+
};
|
|
13395
|
+
},
|
|
13396
|
+
/**
|
|
13397
|
+
*
|
|
13398
|
+
* @summary Mark as Paid booking.
|
|
13399
|
+
* @param {string} consultationId
|
|
13400
|
+
* @param {*} [options] Override http request option.
|
|
13401
|
+
* @throws {RequiredError}
|
|
13402
|
+
*/
|
|
13403
|
+
apiV2ConsultationsConsultationIdPaidPost: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13404
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
13405
|
+
assertParamExists('apiV2ConsultationsConsultationIdPaidPost', 'consultationId', consultationId)
|
|
13406
|
+
const localVarPath = `/api/v2/consultations/{consultationId}/paid`
|
|
13407
|
+
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13408
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13409
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13410
|
+
let baseOptions;
|
|
13411
|
+
if (configuration) {
|
|
13412
|
+
baseOptions = configuration.baseOptions;
|
|
13413
|
+
}
|
|
13414
|
+
|
|
13415
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13416
|
+
const localVarHeaderParameter = {} as any;
|
|
13417
|
+
const localVarQueryParameter = {} as any;
|
|
13418
|
+
|
|
13419
|
+
// authentication oauth2 required
|
|
13420
|
+
// oauth required
|
|
13421
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13422
|
+
|
|
13423
|
+
|
|
13424
|
+
|
|
13316
13425
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13317
13426
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13318
13427
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13546,6 +13655,17 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
13546
13655
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdGet(consultationId, options);
|
|
13547
13656
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13548
13657
|
},
|
|
13658
|
+
/**
|
|
13659
|
+
*
|
|
13660
|
+
* @summary Mark as Paid booking.
|
|
13661
|
+
* @param {string} consultationId
|
|
13662
|
+
* @param {*} [options] Override http request option.
|
|
13663
|
+
* @throws {RequiredError}
|
|
13664
|
+
*/
|
|
13665
|
+
async apiV2ConsultationsConsultationIdPaidPost(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
13666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPaidPost(consultationId, options);
|
|
13667
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13668
|
+
},
|
|
13549
13669
|
/**
|
|
13550
13670
|
*
|
|
13551
13671
|
* @summary Pay consultation.
|
|
@@ -13620,6 +13740,16 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
13620
13740
|
apiV2ConsultationsConsultationIdGet(consultationId: string, options?: any): AxiosPromise<ConsultationModel> {
|
|
13621
13741
|
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(axios, basePath));
|
|
13622
13742
|
},
|
|
13743
|
+
/**
|
|
13744
|
+
*
|
|
13745
|
+
* @summary Mark as Paid booking.
|
|
13746
|
+
* @param {string} consultationId
|
|
13747
|
+
* @param {*} [options] Override http request option.
|
|
13748
|
+
* @throws {RequiredError}
|
|
13749
|
+
*/
|
|
13750
|
+
apiV2ConsultationsConsultationIdPaidPost(consultationId: string, options?: any): AxiosPromise<string> {
|
|
13751
|
+
return localVarFp.apiV2ConsultationsConsultationIdPaidPost(consultationId, options).then((request) => request(axios, basePath));
|
|
13752
|
+
},
|
|
13623
13753
|
/**
|
|
13624
13754
|
*
|
|
13625
13755
|
* @summary Pay consultation.
|
|
@@ -13692,6 +13822,18 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
13692
13822
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
13693
13823
|
}
|
|
13694
13824
|
|
|
13825
|
+
/**
|
|
13826
|
+
*
|
|
13827
|
+
* @summary Mark as Paid booking.
|
|
13828
|
+
* @param {string} consultationId
|
|
13829
|
+
* @param {*} [options] Override http request option.
|
|
13830
|
+
* @throws {RequiredError}
|
|
13831
|
+
* @memberof ConsultationsApi
|
|
13832
|
+
*/
|
|
13833
|
+
public apiV2ConsultationsConsultationIdPaidPost(consultationId: string, options?: AxiosRequestConfig) {
|
|
13834
|
+
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPaidPost(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
13835
|
+
}
|
|
13836
|
+
|
|
13695
13837
|
/**
|
|
13696
13838
|
*
|
|
13697
13839
|
* @summary Pay consultation.
|