ch-api-client-typescript2 3.2.0 → 3.2.4
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 +78 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +170 -0
- package/package.json +1 -1
- package/src/api.ts +154 -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
|
@@ -9323,6 +9323,12 @@ export interface SpecialtyTypeItemModel {
|
|
|
9323
9323
|
* @memberof SpecialtyTypeItemModel
|
|
9324
9324
|
*/
|
|
9325
9325
|
'confirmed'?: boolean;
|
|
9326
|
+
/**
|
|
9327
|
+
*
|
|
9328
|
+
* @type {Array<MediaModel>}
|
|
9329
|
+
* @memberof SpecialtyTypeItemModel
|
|
9330
|
+
*/
|
|
9331
|
+
'medias'?: Array<MediaModel> | null;
|
|
9326
9332
|
}
|
|
9327
9333
|
/**
|
|
9328
9334
|
*
|
|
@@ -9396,6 +9402,12 @@ export interface SpecialtyTypeModel {
|
|
|
9396
9402
|
* @memberof SpecialtyTypeModel
|
|
9397
9403
|
*/
|
|
9398
9404
|
'confirmed'?: boolean;
|
|
9405
|
+
/**
|
|
9406
|
+
*
|
|
9407
|
+
* @type {Array<MediaModel>}
|
|
9408
|
+
* @memberof SpecialtyTypeModel
|
|
9409
|
+
*/
|
|
9410
|
+
'medias'?: Array<MediaModel> | null;
|
|
9399
9411
|
/**
|
|
9400
9412
|
*
|
|
9401
9413
|
* @type {string}
|
|
@@ -12116,6 +12128,44 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12116
12128
|
|
|
12117
12129
|
|
|
12118
12130
|
|
|
12131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12133
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12134
|
+
|
|
12135
|
+
return {
|
|
12136
|
+
url: toPathString(localVarUrlObj),
|
|
12137
|
+
options: localVarRequestOptions,
|
|
12138
|
+
};
|
|
12139
|
+
},
|
|
12140
|
+
/**
|
|
12141
|
+
*
|
|
12142
|
+
* @summary Mark as Paid booking.
|
|
12143
|
+
* @param {string} bookingId
|
|
12144
|
+
* @param {*} [options] Override http request option.
|
|
12145
|
+
* @throws {RequiredError}
|
|
12146
|
+
*/
|
|
12147
|
+
apiV2BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12148
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
12149
|
+
assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId)
|
|
12150
|
+
const localVarPath = `/api/v2/bookings/{bookingId}/paid`
|
|
12151
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12154
|
+
let baseOptions;
|
|
12155
|
+
if (configuration) {
|
|
12156
|
+
baseOptions = configuration.baseOptions;
|
|
12157
|
+
}
|
|
12158
|
+
|
|
12159
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12160
|
+
const localVarHeaderParameter = {} as any;
|
|
12161
|
+
const localVarQueryParameter = {} as any;
|
|
12162
|
+
|
|
12163
|
+
// authentication oauth2 required
|
|
12164
|
+
// oauth required
|
|
12165
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12166
|
+
|
|
12167
|
+
|
|
12168
|
+
|
|
12119
12169
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12120
12170
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12121
12171
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12349,6 +12399,17 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12349
12399
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
|
|
12350
12400
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12351
12401
|
},
|
|
12402
|
+
/**
|
|
12403
|
+
*
|
|
12404
|
+
* @summary Mark as Paid booking.
|
|
12405
|
+
* @param {string} bookingId
|
|
12406
|
+
* @param {*} [options] Override http request option.
|
|
12407
|
+
* @throws {RequiredError}
|
|
12408
|
+
*/
|
|
12409
|
+
async apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options);
|
|
12411
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12412
|
+
},
|
|
12352
12413
|
/**
|
|
12353
12414
|
*
|
|
12354
12415
|
* @summary Pay booking.
|
|
@@ -12423,6 +12484,16 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12423
12484
|
apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
|
|
12424
12485
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
|
|
12425
12486
|
},
|
|
12487
|
+
/**
|
|
12488
|
+
*
|
|
12489
|
+
* @summary Mark as Paid booking.
|
|
12490
|
+
* @param {string} bookingId
|
|
12491
|
+
* @param {*} [options] Override http request option.
|
|
12492
|
+
* @throws {RequiredError}
|
|
12493
|
+
*/
|
|
12494
|
+
apiV2BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
12495
|
+
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
|
|
12496
|
+
},
|
|
12426
12497
|
/**
|
|
12427
12498
|
*
|
|
12428
12499
|
* @summary Pay booking.
|
|
@@ -12495,6 +12566,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
12495
12566
|
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12496
12567
|
}
|
|
12497
12568
|
|
|
12569
|
+
/**
|
|
12570
|
+
*
|
|
12571
|
+
* @summary Mark as Paid booking.
|
|
12572
|
+
* @param {string} bookingId
|
|
12573
|
+
* @param {*} [options] Override http request option.
|
|
12574
|
+
* @throws {RequiredError}
|
|
12575
|
+
* @memberof BookingsApi
|
|
12576
|
+
*/
|
|
12577
|
+
public apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
12578
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12579
|
+
}
|
|
12580
|
+
|
|
12498
12581
|
/**
|
|
12499
12582
|
*
|
|
12500
12583
|
* @summary Pay booking.
|
|
@@ -13313,6 +13396,44 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13313
13396
|
|
|
13314
13397
|
|
|
13315
13398
|
|
|
13399
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13401
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13402
|
+
|
|
13403
|
+
return {
|
|
13404
|
+
url: toPathString(localVarUrlObj),
|
|
13405
|
+
options: localVarRequestOptions,
|
|
13406
|
+
};
|
|
13407
|
+
},
|
|
13408
|
+
/**
|
|
13409
|
+
*
|
|
13410
|
+
* @summary Mark as Paid booking.
|
|
13411
|
+
* @param {string} consultationId
|
|
13412
|
+
* @param {*} [options] Override http request option.
|
|
13413
|
+
* @throws {RequiredError}
|
|
13414
|
+
*/
|
|
13415
|
+
apiV2ConsultationsConsultationIdPaidPost: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13416
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
13417
|
+
assertParamExists('apiV2ConsultationsConsultationIdPaidPost', 'consultationId', consultationId)
|
|
13418
|
+
const localVarPath = `/api/v2/consultations/{consultationId}/paid`
|
|
13419
|
+
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13422
|
+
let baseOptions;
|
|
13423
|
+
if (configuration) {
|
|
13424
|
+
baseOptions = configuration.baseOptions;
|
|
13425
|
+
}
|
|
13426
|
+
|
|
13427
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13428
|
+
const localVarHeaderParameter = {} as any;
|
|
13429
|
+
const localVarQueryParameter = {} as any;
|
|
13430
|
+
|
|
13431
|
+
// authentication oauth2 required
|
|
13432
|
+
// oauth required
|
|
13433
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13434
|
+
|
|
13435
|
+
|
|
13436
|
+
|
|
13316
13437
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13317
13438
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13318
13439
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13546,6 +13667,17 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
13546
13667
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdGet(consultationId, options);
|
|
13547
13668
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13548
13669
|
},
|
|
13670
|
+
/**
|
|
13671
|
+
*
|
|
13672
|
+
* @summary Mark as Paid booking.
|
|
13673
|
+
* @param {string} consultationId
|
|
13674
|
+
* @param {*} [options] Override http request option.
|
|
13675
|
+
* @throws {RequiredError}
|
|
13676
|
+
*/
|
|
13677
|
+
async apiV2ConsultationsConsultationIdPaidPost(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
13678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPaidPost(consultationId, options);
|
|
13679
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13680
|
+
},
|
|
13549
13681
|
/**
|
|
13550
13682
|
*
|
|
13551
13683
|
* @summary Pay consultation.
|
|
@@ -13620,6 +13752,16 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
13620
13752
|
apiV2ConsultationsConsultationIdGet(consultationId: string, options?: any): AxiosPromise<ConsultationModel> {
|
|
13621
13753
|
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(axios, basePath));
|
|
13622
13754
|
},
|
|
13755
|
+
/**
|
|
13756
|
+
*
|
|
13757
|
+
* @summary Mark as Paid booking.
|
|
13758
|
+
* @param {string} consultationId
|
|
13759
|
+
* @param {*} [options] Override http request option.
|
|
13760
|
+
* @throws {RequiredError}
|
|
13761
|
+
*/
|
|
13762
|
+
apiV2ConsultationsConsultationIdPaidPost(consultationId: string, options?: any): AxiosPromise<string> {
|
|
13763
|
+
return localVarFp.apiV2ConsultationsConsultationIdPaidPost(consultationId, options).then((request) => request(axios, basePath));
|
|
13764
|
+
},
|
|
13623
13765
|
/**
|
|
13624
13766
|
*
|
|
13625
13767
|
* @summary Pay consultation.
|
|
@@ -13692,6 +13834,18 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
13692
13834
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
13693
13835
|
}
|
|
13694
13836
|
|
|
13837
|
+
/**
|
|
13838
|
+
*
|
|
13839
|
+
* @summary Mark as Paid booking.
|
|
13840
|
+
* @param {string} consultationId
|
|
13841
|
+
* @param {*} [options] Override http request option.
|
|
13842
|
+
* @throws {RequiredError}
|
|
13843
|
+
* @memberof ConsultationsApi
|
|
13844
|
+
*/
|
|
13845
|
+
public apiV2ConsultationsConsultationIdPaidPost(consultationId: string, options?: AxiosRequestConfig) {
|
|
13846
|
+
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPaidPost(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
13847
|
+
}
|
|
13848
|
+
|
|
13695
13849
|
/**
|
|
13696
13850
|
*
|
|
13697
13851
|
* @summary Pay consultation.
|