ch-admin-api-client-typescript 2.9.7 → 2.9.8
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
|
@@ -4312,6 +4312,49 @@ exports.BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
4312
4312
|
});
|
|
4313
4313
|
});
|
|
4314
4314
|
},
|
|
4315
|
+
/**
|
|
4316
|
+
*
|
|
4317
|
+
* @summary Mark as Paid booking.
|
|
4318
|
+
* @param {string} bookingId
|
|
4319
|
+
* @param {*} [options] Override http request option.
|
|
4320
|
+
* @throws {RequiredError}
|
|
4321
|
+
*/
|
|
4322
|
+
apiV1BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
4323
|
+
if (options === void 0) { options = {}; }
|
|
4324
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
4325
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4326
|
+
return __generator(this, function (_a) {
|
|
4327
|
+
switch (_a.label) {
|
|
4328
|
+
case 0:
|
|
4329
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
4330
|
+
common_1.assertParamExists('apiV1BookingsBookingIdPaidPost', 'bookingId', bookingId);
|
|
4331
|
+
localVarPath = "/api/v1/bookings/{bookingId}/paid"
|
|
4332
|
+
.replace("{" + "bookingId" + "}", encodeURIComponent(String(bookingId)));
|
|
4333
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4334
|
+
if (configuration) {
|
|
4335
|
+
baseOptions = configuration.baseOptions;
|
|
4336
|
+
}
|
|
4337
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
4338
|
+
localVarHeaderParameter = {};
|
|
4339
|
+
localVarQueryParameter = {};
|
|
4340
|
+
// authentication oauth2 required
|
|
4341
|
+
// oauth required
|
|
4342
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
4343
|
+
case 1:
|
|
4344
|
+
// authentication oauth2 required
|
|
4345
|
+
// oauth required
|
|
4346
|
+
_a.sent();
|
|
4347
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4348
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4349
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4350
|
+
return [2 /*return*/, {
|
|
4351
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
4352
|
+
options: localVarRequestOptions,
|
|
4353
|
+
}];
|
|
4354
|
+
}
|
|
4355
|
+
});
|
|
4356
|
+
});
|
|
4357
|
+
},
|
|
4315
4358
|
/**
|
|
4316
4359
|
*
|
|
4317
4360
|
* @summary Reject booking.
|
|
@@ -4529,6 +4572,26 @@ exports.BookingsApiFp = function (configuration) {
|
|
|
4529
4572
|
});
|
|
4530
4573
|
});
|
|
4531
4574
|
},
|
|
4575
|
+
/**
|
|
4576
|
+
*
|
|
4577
|
+
* @summary Mark as Paid booking.
|
|
4578
|
+
* @param {string} bookingId
|
|
4579
|
+
* @param {*} [options] Override http request option.
|
|
4580
|
+
* @throws {RequiredError}
|
|
4581
|
+
*/
|
|
4582
|
+
apiV1BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
4583
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4584
|
+
var localVarAxiosArgs;
|
|
4585
|
+
return __generator(this, function (_a) {
|
|
4586
|
+
switch (_a.label) {
|
|
4587
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1BookingsBookingIdPaidPost(bookingId, options)];
|
|
4588
|
+
case 1:
|
|
4589
|
+
localVarAxiosArgs = _a.sent();
|
|
4590
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4591
|
+
}
|
|
4592
|
+
});
|
|
4593
|
+
});
|
|
4594
|
+
},
|
|
4532
4595
|
/**
|
|
4533
4596
|
*
|
|
4534
4597
|
* @summary Reject booking.
|
|
@@ -4629,6 +4692,16 @@ exports.BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
4629
4692
|
apiV1BookingsBookingIdGet: function (bookingId, options) {
|
|
4630
4693
|
return localVarFp.apiV1BookingsBookingIdGet(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
4631
4694
|
},
|
|
4695
|
+
/**
|
|
4696
|
+
*
|
|
4697
|
+
* @summary Mark as Paid booking.
|
|
4698
|
+
* @param {string} bookingId
|
|
4699
|
+
* @param {*} [options] Override http request option.
|
|
4700
|
+
* @throws {RequiredError}
|
|
4701
|
+
*/
|
|
4702
|
+
apiV1BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
4703
|
+
return localVarFp.apiV1BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
4704
|
+
},
|
|
4632
4705
|
/**
|
|
4633
4706
|
*
|
|
4634
4707
|
* @summary Reject booking.
|
|
@@ -4721,6 +4794,18 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
4721
4794
|
var _this = this;
|
|
4722
4795
|
return exports.BookingsApiFp(this.configuration).apiV1BookingsBookingIdGet(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4723
4796
|
};
|
|
4797
|
+
/**
|
|
4798
|
+
*
|
|
4799
|
+
* @summary Mark as Paid booking.
|
|
4800
|
+
* @param {string} bookingId
|
|
4801
|
+
* @param {*} [options] Override http request option.
|
|
4802
|
+
* @throws {RequiredError}
|
|
4803
|
+
* @memberof BookingsApi
|
|
4804
|
+
*/
|
|
4805
|
+
BookingsApi.prototype.apiV1BookingsBookingIdPaidPost = function (bookingId, options) {
|
|
4806
|
+
var _this = this;
|
|
4807
|
+
return exports.BookingsApiFp(this.configuration).apiV1BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4808
|
+
};
|
|
4724
4809
|
/**
|
|
4725
4810
|
*
|
|
4726
4811
|
* @summary Reject booking.
|
|
@@ -6868,6 +6953,49 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
6868
6953
|
});
|
|
6869
6954
|
});
|
|
6870
6955
|
},
|
|
6956
|
+
/**
|
|
6957
|
+
*
|
|
6958
|
+
* @summary Mark as Paid booking.
|
|
6959
|
+
* @param {string} consultationId
|
|
6960
|
+
* @param {*} [options] Override http request option.
|
|
6961
|
+
* @throws {RequiredError}
|
|
6962
|
+
*/
|
|
6963
|
+
apiV1ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
6964
|
+
if (options === void 0) { options = {}; }
|
|
6965
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6966
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6967
|
+
return __generator(this, function (_a) {
|
|
6968
|
+
switch (_a.label) {
|
|
6969
|
+
case 0:
|
|
6970
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
6971
|
+
common_1.assertParamExists('apiV1ConsultationsConsultationIdPaidPost', 'consultationId', consultationId);
|
|
6972
|
+
localVarPath = "/api/v1/consultations/{consultationId}/paid"
|
|
6973
|
+
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
6974
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6975
|
+
if (configuration) {
|
|
6976
|
+
baseOptions = configuration.baseOptions;
|
|
6977
|
+
}
|
|
6978
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6979
|
+
localVarHeaderParameter = {};
|
|
6980
|
+
localVarQueryParameter = {};
|
|
6981
|
+
// authentication oauth2 required
|
|
6982
|
+
// oauth required
|
|
6983
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
6984
|
+
case 1:
|
|
6985
|
+
// authentication oauth2 required
|
|
6986
|
+
// oauth required
|
|
6987
|
+
_a.sent();
|
|
6988
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6989
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6990
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6991
|
+
return [2 /*return*/, {
|
|
6992
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
6993
|
+
options: localVarRequestOptions,
|
|
6994
|
+
}];
|
|
6995
|
+
}
|
|
6996
|
+
});
|
|
6997
|
+
});
|
|
6998
|
+
},
|
|
6871
6999
|
/**
|
|
6872
7000
|
*
|
|
6873
7001
|
* @summary Reject consultation.
|
|
@@ -7085,6 +7213,26 @@ exports.ConsultationsApiFp = function (configuration) {
|
|
|
7085
7213
|
});
|
|
7086
7214
|
});
|
|
7087
7215
|
},
|
|
7216
|
+
/**
|
|
7217
|
+
*
|
|
7218
|
+
* @summary Mark as Paid booking.
|
|
7219
|
+
* @param {string} consultationId
|
|
7220
|
+
* @param {*} [options] Override http request option.
|
|
7221
|
+
* @throws {RequiredError}
|
|
7222
|
+
*/
|
|
7223
|
+
apiV1ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
7224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7225
|
+
var localVarAxiosArgs;
|
|
7226
|
+
return __generator(this, function (_a) {
|
|
7227
|
+
switch (_a.label) {
|
|
7228
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsConsultationIdPaidPost(consultationId, options)];
|
|
7229
|
+
case 1:
|
|
7230
|
+
localVarAxiosArgs = _a.sent();
|
|
7231
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7232
|
+
}
|
|
7233
|
+
});
|
|
7234
|
+
});
|
|
7235
|
+
},
|
|
7088
7236
|
/**
|
|
7089
7237
|
*
|
|
7090
7238
|
* @summary Reject consultation.
|
|
@@ -7185,6 +7333,16 @@ exports.ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
7185
7333
|
apiV1ConsultationsConsultationIdGet: function (consultationId, options) {
|
|
7186
7334
|
return localVarFp.apiV1ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
7187
7335
|
},
|
|
7336
|
+
/**
|
|
7337
|
+
*
|
|
7338
|
+
* @summary Mark as Paid booking.
|
|
7339
|
+
* @param {string} consultationId
|
|
7340
|
+
* @param {*} [options] Override http request option.
|
|
7341
|
+
* @throws {RequiredError}
|
|
7342
|
+
*/
|
|
7343
|
+
apiV1ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
7344
|
+
return localVarFp.apiV1ConsultationsConsultationIdPaidPost(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
7345
|
+
},
|
|
7188
7346
|
/**
|
|
7189
7347
|
*
|
|
7190
7348
|
* @summary Reject consultation.
|
|
@@ -7277,6 +7435,18 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
7277
7435
|
var _this = this;
|
|
7278
7436
|
return exports.ConsultationsApiFp(this.configuration).apiV1ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7279
7437
|
};
|
|
7438
|
+
/**
|
|
7439
|
+
*
|
|
7440
|
+
* @summary Mark as Paid booking.
|
|
7441
|
+
* @param {string} consultationId
|
|
7442
|
+
* @param {*} [options] Override http request option.
|
|
7443
|
+
* @throws {RequiredError}
|
|
7444
|
+
* @memberof ConsultationsApi
|
|
7445
|
+
*/
|
|
7446
|
+
ConsultationsApi.prototype.apiV1ConsultationsConsultationIdPaidPost = function (consultationId, options) {
|
|
7447
|
+
var _this = this;
|
|
7448
|
+
return exports.ConsultationsApiFp(this.configuration).apiV1ConsultationsConsultationIdPaidPost(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7449
|
+
};
|
|
7280
7450
|
/**
|
|
7281
7451
|
*
|
|
7282
7452
|
* @summary Reject consultation.
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -17299,6 +17299,44 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
17299
17299
|
|
|
17300
17300
|
|
|
17301
17301
|
|
|
17302
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17304
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17305
|
+
|
|
17306
|
+
return {
|
|
17307
|
+
url: toPathString(localVarUrlObj),
|
|
17308
|
+
options: localVarRequestOptions,
|
|
17309
|
+
};
|
|
17310
|
+
},
|
|
17311
|
+
/**
|
|
17312
|
+
*
|
|
17313
|
+
* @summary Mark as Paid booking.
|
|
17314
|
+
* @param {string} bookingId
|
|
17315
|
+
* @param {*} [options] Override http request option.
|
|
17316
|
+
* @throws {RequiredError}
|
|
17317
|
+
*/
|
|
17318
|
+
apiV1BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17319
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
17320
|
+
assertParamExists('apiV1BookingsBookingIdPaidPost', 'bookingId', bookingId)
|
|
17321
|
+
const localVarPath = `/api/v1/bookings/{bookingId}/paid`
|
|
17322
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
17323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17324
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17325
|
+
let baseOptions;
|
|
17326
|
+
if (configuration) {
|
|
17327
|
+
baseOptions = configuration.baseOptions;
|
|
17328
|
+
}
|
|
17329
|
+
|
|
17330
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
17331
|
+
const localVarHeaderParameter = {} as any;
|
|
17332
|
+
const localVarQueryParameter = {} as any;
|
|
17333
|
+
|
|
17334
|
+
// authentication oauth2 required
|
|
17335
|
+
// oauth required
|
|
17336
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
17337
|
+
|
|
17338
|
+
|
|
17339
|
+
|
|
17302
17340
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17303
17341
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17304
17342
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -17491,6 +17529,17 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
17491
17529
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1BookingsBookingIdGet(bookingId, options);
|
|
17492
17530
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17493
17531
|
},
|
|
17532
|
+
/**
|
|
17533
|
+
*
|
|
17534
|
+
* @summary Mark as Paid booking.
|
|
17535
|
+
* @param {string} bookingId
|
|
17536
|
+
* @param {*} [options] Override http request option.
|
|
17537
|
+
* @throws {RequiredError}
|
|
17538
|
+
*/
|
|
17539
|
+
async apiV1BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
17540
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1BookingsBookingIdPaidPost(bookingId, options);
|
|
17541
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17542
|
+
},
|
|
17494
17543
|
/**
|
|
17495
17544
|
*
|
|
17496
17545
|
* @summary Reject booking.
|
|
@@ -17574,6 +17623,16 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
17574
17623
|
apiV1BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
|
|
17575
17624
|
return localVarFp.apiV1BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
|
|
17576
17625
|
},
|
|
17626
|
+
/**
|
|
17627
|
+
*
|
|
17628
|
+
* @summary Mark as Paid booking.
|
|
17629
|
+
* @param {string} bookingId
|
|
17630
|
+
* @param {*} [options] Override http request option.
|
|
17631
|
+
* @throws {RequiredError}
|
|
17632
|
+
*/
|
|
17633
|
+
apiV1BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
17634
|
+
return localVarFp.apiV1BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
|
|
17635
|
+
},
|
|
17577
17636
|
/**
|
|
17578
17637
|
*
|
|
17579
17638
|
* @summary Reject booking.
|
|
@@ -17663,6 +17722,18 @@ export class BookingsApi extends BaseAPI {
|
|
|
17663
17722
|
return BookingsApiFp(this.configuration).apiV1BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
17664
17723
|
}
|
|
17665
17724
|
|
|
17725
|
+
/**
|
|
17726
|
+
*
|
|
17727
|
+
* @summary Mark as Paid booking.
|
|
17728
|
+
* @param {string} bookingId
|
|
17729
|
+
* @param {*} [options] Override http request option.
|
|
17730
|
+
* @throws {RequiredError}
|
|
17731
|
+
* @memberof BookingsApi
|
|
17732
|
+
*/
|
|
17733
|
+
public apiV1BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
17734
|
+
return BookingsApiFp(this.configuration).apiV1BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
17735
|
+
}
|
|
17736
|
+
|
|
17666
17737
|
/**
|
|
17667
17738
|
*
|
|
17668
17739
|
* @summary Reject booking.
|
|
@@ -19533,6 +19604,44 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
19533
19604
|
|
|
19534
19605
|
|
|
19535
19606
|
|
|
19607
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19608
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19609
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19610
|
+
|
|
19611
|
+
return {
|
|
19612
|
+
url: toPathString(localVarUrlObj),
|
|
19613
|
+
options: localVarRequestOptions,
|
|
19614
|
+
};
|
|
19615
|
+
},
|
|
19616
|
+
/**
|
|
19617
|
+
*
|
|
19618
|
+
* @summary Mark as Paid booking.
|
|
19619
|
+
* @param {string} consultationId
|
|
19620
|
+
* @param {*} [options] Override http request option.
|
|
19621
|
+
* @throws {RequiredError}
|
|
19622
|
+
*/
|
|
19623
|
+
apiV1ConsultationsConsultationIdPaidPost: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19624
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
19625
|
+
assertParamExists('apiV1ConsultationsConsultationIdPaidPost', 'consultationId', consultationId)
|
|
19626
|
+
const localVarPath = `/api/v1/consultations/{consultationId}/paid`
|
|
19627
|
+
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
19628
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19629
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19630
|
+
let baseOptions;
|
|
19631
|
+
if (configuration) {
|
|
19632
|
+
baseOptions = configuration.baseOptions;
|
|
19633
|
+
}
|
|
19634
|
+
|
|
19635
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
19636
|
+
const localVarHeaderParameter = {} as any;
|
|
19637
|
+
const localVarQueryParameter = {} as any;
|
|
19638
|
+
|
|
19639
|
+
// authentication oauth2 required
|
|
19640
|
+
// oauth required
|
|
19641
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
19642
|
+
|
|
19643
|
+
|
|
19644
|
+
|
|
19536
19645
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19537
19646
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19538
19647
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -19725,6 +19834,17 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
19725
19834
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ConsultationsConsultationIdGet(consultationId, options);
|
|
19726
19835
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19727
19836
|
},
|
|
19837
|
+
/**
|
|
19838
|
+
*
|
|
19839
|
+
* @summary Mark as Paid booking.
|
|
19840
|
+
* @param {string} consultationId
|
|
19841
|
+
* @param {*} [options] Override http request option.
|
|
19842
|
+
* @throws {RequiredError}
|
|
19843
|
+
*/
|
|
19844
|
+
async apiV1ConsultationsConsultationIdPaidPost(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
19845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ConsultationsConsultationIdPaidPost(consultationId, options);
|
|
19846
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
19847
|
+
},
|
|
19728
19848
|
/**
|
|
19729
19849
|
*
|
|
19730
19850
|
* @summary Reject consultation.
|
|
@@ -19808,6 +19928,16 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
19808
19928
|
apiV1ConsultationsConsultationIdGet(consultationId: string, options?: any): AxiosPromise<ConsultationModel> {
|
|
19809
19929
|
return localVarFp.apiV1ConsultationsConsultationIdGet(consultationId, options).then((request) => request(axios, basePath));
|
|
19810
19930
|
},
|
|
19931
|
+
/**
|
|
19932
|
+
*
|
|
19933
|
+
* @summary Mark as Paid booking.
|
|
19934
|
+
* @param {string} consultationId
|
|
19935
|
+
* @param {*} [options] Override http request option.
|
|
19936
|
+
* @throws {RequiredError}
|
|
19937
|
+
*/
|
|
19938
|
+
apiV1ConsultationsConsultationIdPaidPost(consultationId: string, options?: any): AxiosPromise<string> {
|
|
19939
|
+
return localVarFp.apiV1ConsultationsConsultationIdPaidPost(consultationId, options).then((request) => request(axios, basePath));
|
|
19940
|
+
},
|
|
19811
19941
|
/**
|
|
19812
19942
|
*
|
|
19813
19943
|
* @summary Reject consultation.
|
|
@@ -19897,6 +20027,18 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
19897
20027
|
return ConsultationsApiFp(this.configuration).apiV1ConsultationsConsultationIdGet(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
19898
20028
|
}
|
|
19899
20029
|
|
|
20030
|
+
/**
|
|
20031
|
+
*
|
|
20032
|
+
* @summary Mark as Paid booking.
|
|
20033
|
+
* @param {string} consultationId
|
|
20034
|
+
* @param {*} [options] Override http request option.
|
|
20035
|
+
* @throws {RequiredError}
|
|
20036
|
+
* @memberof ConsultationsApi
|
|
20037
|
+
*/
|
|
20038
|
+
public apiV1ConsultationsConsultationIdPaidPost(consultationId: string, options?: AxiosRequestConfig) {
|
|
20039
|
+
return ConsultationsApiFp(this.configuration).apiV1ConsultationsConsultationIdPaidPost(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
20040
|
+
}
|
|
20041
|
+
|
|
19900
20042
|
/**
|
|
19901
20043
|
*
|
|
19902
20044
|
* @summary Reject consultation.
|