ch-api-client-typescript2 5.15.0 → 5.16.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/doctor-affiliations-api.d.ts +3 -12
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +6 -12
- package/lib/api.d.ts +0 -3
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +0 -3
- package/lib/models/index.d.ts +0 -20
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +0 -20
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +0 -23
- package/src/api/doctor-affiliations-api.ts +6 -20
- package/src/api.ts +0 -3
- package/src/models/index.ts +0 -20
- package/lib/api/bookings-api.d.ts +0 -439
- package/lib/api/bookings-api.d.ts.map +0 -1
- package/lib/api/bookings-api.js +0 -665
- package/lib/api/consultations-api.d.ts +0 -421
- package/lib/api/consultations-api.d.ts.map +0 -1
- package/lib/api/consultations-api.js +0 -653
- package/lib/api/hospitals-consultation-timetables-api.d.ts +0 -124
- package/lib/api/hospitals-consultation-timetables-api.d.ts.map +0 -1
- package/lib/api/hospitals-consultation-timetables-api.js +0 -240
- package/lib/models/booking-change-log-model.d.ts +0 -44
- package/lib/models/booking-change-log-model.d.ts.map +0 -1
- package/lib/models/booking-change-log-model.js +0 -15
- package/lib/models/booking-item-model.d.ts +0 -233
- package/lib/models/booking-item-model.d.ts.map +0 -1
- package/lib/models/booking-item-model.js +0 -15
- package/lib/models/booking-model.d.ts +0 -240
- package/lib/models/booking-model.d.ts.map +0 -1
- package/lib/models/booking-model.js +0 -15
- package/lib/models/booking-status.d.ts +0 -27
- package/lib/models/booking-status.d.ts.map +0 -1
- package/lib/models/booking-status.js +0 -30
- package/lib/models/bookings-model.d.ts +0 -33
- package/lib/models/bookings-model.d.ts.map +0 -1
- package/lib/models/bookings-model.js +0 -15
- package/lib/models/consultation-change-log-model.d.ts +0 -44
- package/lib/models/consultation-change-log-model.d.ts.map +0 -1
- package/lib/models/consultation-change-log-model.js +0 -15
- package/lib/models/consultation-item-model.d.ts +0 -275
- package/lib/models/consultation-item-model.d.ts.map +0 -1
- package/lib/models/consultation-item-model.js +0 -15
- package/lib/models/consultation-model.d.ts +0 -282
- package/lib/models/consultation-model.d.ts.map +0 -1
- package/lib/models/consultation-model.js +0 -15
- package/lib/models/consultation-status.d.ts +0 -27
- package/lib/models/consultation-status.d.ts.map +0 -1
- package/lib/models/consultation-status.js +0 -30
- package/lib/models/consultation-timetable-date-model.d.ts +0 -58
- package/lib/models/consultation-timetable-date-model.d.ts.map +0 -1
- package/lib/models/consultation-timetable-date-model.js +0 -15
- package/lib/models/consultation-timetable-model.d.ts +0 -44
- package/lib/models/consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/consultation-timetable-model.js +0 -15
- package/lib/models/consultation-timetable-status.d.ts +0 -22
- package/lib/models/consultation-timetable-status.d.ts.map +0 -1
- package/lib/models/consultation-timetable-status.js +0 -25
- package/lib/models/consultation-timetable-time-slot-model.d.ts +0 -56
- package/lib/models/consultation-timetable-time-slot-model.d.ts.map +0 -1
- package/lib/models/consultation-timetable-time-slot-model.js +0 -15
- package/lib/models/consultation-type.d.ts +0 -23
- package/lib/models/consultation-type.d.ts.map +0 -1
- package/lib/models/consultation-type.js +0 -26
- package/lib/models/consultations-model.d.ts +0 -33
- package/lib/models/consultations-model.d.ts.map +0 -1
- package/lib/models/consultations-model.js +0 -15
- package/lib/models/create-booking-command.d.ts +0 -104
- package/lib/models/create-booking-command.d.ts.map +0 -1
- package/lib/models/create-booking-command.js +0 -15
- package/lib/models/create-consultation-command.d.ts +0 -135
- package/lib/models/create-consultation-command.d.ts.map +0 -1
- package/lib/models/create-consultation-command.js +0 -15
- package/lib/models/sorting-order.d.ts +0 -22
- package/lib/models/sorting-order.d.ts.map +0 -1
- package/lib/models/sorting-order.js +0 -25
- package/lib/models/update-booking-command.d.ts +0 -86
- package/lib/models/update-booking-command.d.ts.map +0 -1
- package/lib/models/update-booking-command.js +0 -15
- package/lib/models/update-consultation-command.d.ts +0 -110
- package/lib/models/update-consultation-command.d.ts.map +0 -1
- package/lib/models/update-consultation-command.js +0 -15
- package/src/api/bookings-api.ts +0 -748
- package/src/api/consultations-api.ts +0 -720
- package/src/api/hospitals-consultation-timetables-api.ts +0 -201
- package/src/models/booking-change-log-model.ts +0 -51
- package/src/models/booking-item-model.ts +0 -246
- package/src/models/booking-model.ts +0 -255
- package/src/models/booking-status.ts +0 -36
- package/src/models/bookings-model.ts +0 -42
- package/src/models/consultation-change-log-model.ts +0 -51
- package/src/models/consultation-item-model.ts +0 -288
- package/src/models/consultation-model.ts +0 -297
- package/src/models/consultation-status.ts +0 -36
- package/src/models/consultation-timetable-date-model.ts +0 -69
- package/src/models/consultation-timetable-model.ts +0 -51
- package/src/models/consultation-timetable-status.ts +0 -31
- package/src/models/consultation-timetable-time-slot-model.ts +0 -63
- package/src/models/consultation-type.ts +0 -32
- package/src/models/consultations-model.ts +0 -42
- package/src/models/create-booking-command.ts +0 -111
- package/src/models/create-consultation-command.ts +0 -144
- package/src/models/sorting-order.ts +0 -31
- package/src/models/update-booking-command.ts +0 -93
- package/src/models/update-consultation-command.ts +0 -117
package/src/api/bookings-api.ts
DELETED
|
@@ -1,748 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger UI - Cloud Hospital Api-INT
|
|
5
|
-
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 2
|
|
8
|
-
* Contact: hyounoosung@icloudhospital.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { BookingModel } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { BookingStatus } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { BookingsModel } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { CreateBookingCommand } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { SortingOrder } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { UpdateBookingCommand } from '../models';
|
|
35
|
-
/**
|
|
36
|
-
* BookingsApi - axios parameter creator
|
|
37
|
-
* @export
|
|
38
|
-
*/
|
|
39
|
-
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
-
return {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @summary Get booking.
|
|
44
|
-
* @param {string} bookingId
|
|
45
|
-
* @param {string} [languageCode]
|
|
46
|
-
* @param {*} [options] Override http request option.
|
|
47
|
-
* @throws {RequiredError}
|
|
48
|
-
*/
|
|
49
|
-
apiV2BookingsBookingIdGet: async (bookingId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
51
|
-
assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
|
|
52
|
-
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
53
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
54
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
-
let baseOptions;
|
|
57
|
-
if (configuration) {
|
|
58
|
-
baseOptions = configuration.baseOptions;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
62
|
-
const localVarHeaderParameter = {} as any;
|
|
63
|
-
const localVarQueryParameter = {} as any;
|
|
64
|
-
|
|
65
|
-
// authentication oauth2 required
|
|
66
|
-
// oauth required
|
|
67
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
68
|
-
|
|
69
|
-
if (languageCode !== undefined) {
|
|
70
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
|
-
|
|
79
|
-
return {
|
|
80
|
-
url: toPathString(localVarUrlObj),
|
|
81
|
-
options: localVarRequestOptions,
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @summary Pay booking.
|
|
87
|
-
* @param {string} bookingId
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
*/
|
|
91
|
-
apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
93
|
-
assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
|
|
94
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/pay`
|
|
95
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
96
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
-
let baseOptions;
|
|
99
|
-
if (configuration) {
|
|
100
|
-
baseOptions = configuration.baseOptions;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
104
|
-
const localVarHeaderParameter = {} as any;
|
|
105
|
-
const localVarQueryParameter = {} as any;
|
|
106
|
-
|
|
107
|
-
// authentication oauth2 required
|
|
108
|
-
// oauth required
|
|
109
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
114
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
116
|
-
|
|
117
|
-
return {
|
|
118
|
-
url: toPathString(localVarUrlObj),
|
|
119
|
-
options: localVarRequestOptions,
|
|
120
|
-
};
|
|
121
|
-
},
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
* @summary Update booking.
|
|
125
|
-
* @param {string} bookingId
|
|
126
|
-
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
127
|
-
* @param {*} [options] Override http request option.
|
|
128
|
-
* @throws {RequiredError}
|
|
129
|
-
*/
|
|
130
|
-
apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
131
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
132
|
-
assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
|
|
133
|
-
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
134
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
135
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
136
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
137
|
-
let baseOptions;
|
|
138
|
-
if (configuration) {
|
|
139
|
-
baseOptions = configuration.baseOptions;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
143
|
-
const localVarHeaderParameter = {} as any;
|
|
144
|
-
const localVarQueryParameter = {} as any;
|
|
145
|
-
|
|
146
|
-
// authentication oauth2 required
|
|
147
|
-
// oauth required
|
|
148
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
-
|
|
154
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
155
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
157
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
|
|
158
|
-
|
|
159
|
-
return {
|
|
160
|
-
url: toPathString(localVarUrlObj),
|
|
161
|
-
options: localVarRequestOptions,
|
|
162
|
-
};
|
|
163
|
-
},
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @summary Get all bookings.
|
|
167
|
-
* @param {string} [hospitalId]
|
|
168
|
-
* @param {string} [hospitalName]
|
|
169
|
-
* @param {string} [dealId]
|
|
170
|
-
* @param {string} [dealName]
|
|
171
|
-
* @param {boolean} [isOpen]
|
|
172
|
-
* @param {boolean} [isCompleted]
|
|
173
|
-
* @param {BookingStatus} [status]
|
|
174
|
-
* @param {string} [dealPackageId]
|
|
175
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
176
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
177
|
-
* @param {boolean} [isExternal]
|
|
178
|
-
* @param {boolean} [paymentEnabled]
|
|
179
|
-
* @param {string} [languageCode]
|
|
180
|
-
* @param {number} [page]
|
|
181
|
-
* @param {number} [limit]
|
|
182
|
-
* @param {Date} [lastRetrieved]
|
|
183
|
-
* @param {*} [options] Override http request option.
|
|
184
|
-
* @throws {RequiredError}
|
|
185
|
-
*/
|
|
186
|
-
apiV2BookingsGet: async (hospitalId?: string, hospitalName?: string, dealId?: string, dealName?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, isExternal?: boolean, paymentEnabled?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
187
|
-
const localVarPath = `/api/v2/bookings`;
|
|
188
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
190
|
-
let baseOptions;
|
|
191
|
-
if (configuration) {
|
|
192
|
-
baseOptions = configuration.baseOptions;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
196
|
-
const localVarHeaderParameter = {} as any;
|
|
197
|
-
const localVarQueryParameter = {} as any;
|
|
198
|
-
|
|
199
|
-
// authentication oauth2 required
|
|
200
|
-
// oauth required
|
|
201
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
202
|
-
|
|
203
|
-
if (hospitalId !== undefined) {
|
|
204
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
if (hospitalName !== undefined) {
|
|
208
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (dealId !== undefined) {
|
|
212
|
-
localVarQueryParameter['DealId'] = dealId;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
if (dealName !== undefined) {
|
|
216
|
-
localVarQueryParameter['DealName'] = dealName;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
if (isOpen !== undefined) {
|
|
220
|
-
localVarQueryParameter['IsOpen'] = isOpen;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
if (isCompleted !== undefined) {
|
|
224
|
-
localVarQueryParameter['IsCompleted'] = isCompleted;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
if (status !== undefined) {
|
|
228
|
-
localVarQueryParameter['Status'] = status;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (dealPackageId !== undefined) {
|
|
232
|
-
localVarQueryParameter['DealPackageId'] = dealPackageId;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if (sortRequestDate !== undefined) {
|
|
236
|
-
localVarQueryParameter['SortRequestDate'] = sortRequestDate;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
if (sortConfirmedDateStart !== undefined) {
|
|
240
|
-
localVarQueryParameter['SortConfirmedDateStart'] = sortConfirmedDateStart;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (isExternal !== undefined) {
|
|
244
|
-
localVarQueryParameter['IsExternal'] = isExternal;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (paymentEnabled !== undefined) {
|
|
248
|
-
localVarQueryParameter['PaymentEnabled'] = paymentEnabled;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (languageCode !== undefined) {
|
|
252
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
if (page !== undefined) {
|
|
256
|
-
localVarQueryParameter['page'] = page;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (limit !== undefined) {
|
|
260
|
-
localVarQueryParameter['limit'] = limit;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
if (lastRetrieved !== undefined) {
|
|
264
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
265
|
-
(lastRetrieved as any).toISOString() :
|
|
266
|
-
lastRetrieved;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
272
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
273
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
274
|
-
|
|
275
|
-
return {
|
|
276
|
-
url: toPathString(localVarUrlObj),
|
|
277
|
-
options: localVarRequestOptions,
|
|
278
|
-
};
|
|
279
|
-
},
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
* @summary Create booking.
|
|
283
|
-
* @param {string} requestId
|
|
284
|
-
* @param {CreateBookingCommand} [createBookingCommand]
|
|
285
|
-
* @param {*} [options] Override http request option.
|
|
286
|
-
* @throws {RequiredError}
|
|
287
|
-
*/
|
|
288
|
-
apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
289
|
-
// verify required parameter 'requestId' is not null or undefined
|
|
290
|
-
assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
|
|
291
|
-
const localVarPath = `/api/v2/bookings/{requestId}`
|
|
292
|
-
.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
293
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
294
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
295
|
-
let baseOptions;
|
|
296
|
-
if (configuration) {
|
|
297
|
-
baseOptions = configuration.baseOptions;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
301
|
-
const localVarHeaderParameter = {} as any;
|
|
302
|
-
const localVarQueryParameter = {} as any;
|
|
303
|
-
|
|
304
|
-
// authentication oauth2 required
|
|
305
|
-
// oauth required
|
|
306
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
311
|
-
|
|
312
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
313
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
315
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration)
|
|
316
|
-
|
|
317
|
-
return {
|
|
318
|
-
url: toPathString(localVarUrlObj),
|
|
319
|
-
options: localVarRequestOptions,
|
|
320
|
-
};
|
|
321
|
-
},
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* BookingsApi - functional programming interface
|
|
327
|
-
* @export
|
|
328
|
-
*/
|
|
329
|
-
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
330
|
-
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
331
|
-
return {
|
|
332
|
-
/**
|
|
333
|
-
*
|
|
334
|
-
* @summary Get booking.
|
|
335
|
-
* @param {string} bookingId
|
|
336
|
-
* @param {string} [languageCode]
|
|
337
|
-
* @param {*} [options] Override http request option.
|
|
338
|
-
* @throws {RequiredError}
|
|
339
|
-
*/
|
|
340
|
-
async apiV2BookingsBookingIdGet(bookingId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
341
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, languageCode, options);
|
|
342
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
343
|
-
},
|
|
344
|
-
/**
|
|
345
|
-
*
|
|
346
|
-
* @summary Pay booking.
|
|
347
|
-
* @param {string} bookingId
|
|
348
|
-
* @param {*} [options] Override http request option.
|
|
349
|
-
* @throws {RequiredError}
|
|
350
|
-
*/
|
|
351
|
-
async apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options);
|
|
353
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
|
-
},
|
|
355
|
-
/**
|
|
356
|
-
*
|
|
357
|
-
* @summary Update booking.
|
|
358
|
-
* @param {string} bookingId
|
|
359
|
-
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
360
|
-
* @param {*} [options] Override http request option.
|
|
361
|
-
* @throws {RequiredError}
|
|
362
|
-
*/
|
|
363
|
-
async apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
364
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
|
|
365
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
|
-
},
|
|
367
|
-
/**
|
|
368
|
-
*
|
|
369
|
-
* @summary Get all bookings.
|
|
370
|
-
* @param {string} [hospitalId]
|
|
371
|
-
* @param {string} [hospitalName]
|
|
372
|
-
* @param {string} [dealId]
|
|
373
|
-
* @param {string} [dealName]
|
|
374
|
-
* @param {boolean} [isOpen]
|
|
375
|
-
* @param {boolean} [isCompleted]
|
|
376
|
-
* @param {BookingStatus} [status]
|
|
377
|
-
* @param {string} [dealPackageId]
|
|
378
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
379
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
380
|
-
* @param {boolean} [isExternal]
|
|
381
|
-
* @param {boolean} [paymentEnabled]
|
|
382
|
-
* @param {string} [languageCode]
|
|
383
|
-
* @param {number} [page]
|
|
384
|
-
* @param {number} [limit]
|
|
385
|
-
* @param {Date} [lastRetrieved]
|
|
386
|
-
* @param {*} [options] Override http request option.
|
|
387
|
-
* @throws {RequiredError}
|
|
388
|
-
*/
|
|
389
|
-
async apiV2BookingsGet(hospitalId?: string, hospitalName?: string, dealId?: string, dealName?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, isExternal?: boolean, paymentEnabled?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsModel>> {
|
|
390
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsGet(hospitalId, hospitalName, dealId, dealName, isOpen, isCompleted, status, dealPackageId, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, page, limit, lastRetrieved, options);
|
|
391
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
392
|
-
},
|
|
393
|
-
/**
|
|
394
|
-
*
|
|
395
|
-
* @summary Create booking.
|
|
396
|
-
* @param {string} requestId
|
|
397
|
-
* @param {CreateBookingCommand} [createBookingCommand]
|
|
398
|
-
* @param {*} [options] Override http request option.
|
|
399
|
-
* @throws {RequiredError}
|
|
400
|
-
*/
|
|
401
|
-
async apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
402
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options);
|
|
403
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
404
|
-
},
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* BookingsApi - factory interface
|
|
410
|
-
* @export
|
|
411
|
-
*/
|
|
412
|
-
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
413
|
-
const localVarFp = BookingsApiFp(configuration)
|
|
414
|
-
return {
|
|
415
|
-
/**
|
|
416
|
-
*
|
|
417
|
-
* @summary Get booking.
|
|
418
|
-
* @param {string} bookingId
|
|
419
|
-
* @param {string} [languageCode]
|
|
420
|
-
* @param {*} [options] Override http request option.
|
|
421
|
-
* @throws {RequiredError}
|
|
422
|
-
*/
|
|
423
|
-
apiV2BookingsBookingIdGet(bookingId: string, languageCode?: string, options?: any): AxiosPromise<BookingModel> {
|
|
424
|
-
return localVarFp.apiV2BookingsBookingIdGet(bookingId, languageCode, options).then((request) => request(axios, basePath));
|
|
425
|
-
},
|
|
426
|
-
/**
|
|
427
|
-
*
|
|
428
|
-
* @summary Pay booking.
|
|
429
|
-
* @param {string} bookingId
|
|
430
|
-
* @param {*} [options] Override http request option.
|
|
431
|
-
* @throws {RequiredError}
|
|
432
|
-
*/
|
|
433
|
-
apiV2BookingsBookingIdPayPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
434
|
-
return localVarFp.apiV2BookingsBookingIdPayPost(bookingId, options).then((request) => request(axios, basePath));
|
|
435
|
-
},
|
|
436
|
-
/**
|
|
437
|
-
*
|
|
438
|
-
* @summary Update booking.
|
|
439
|
-
* @param {string} bookingId
|
|
440
|
-
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
441
|
-
* @param {*} [options] Override http request option.
|
|
442
|
-
* @throws {RequiredError}
|
|
443
|
-
*/
|
|
444
|
-
apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
445
|
-
return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
|
|
446
|
-
},
|
|
447
|
-
/**
|
|
448
|
-
*
|
|
449
|
-
* @summary Get all bookings.
|
|
450
|
-
* @param {string} [hospitalId]
|
|
451
|
-
* @param {string} [hospitalName]
|
|
452
|
-
* @param {string} [dealId]
|
|
453
|
-
* @param {string} [dealName]
|
|
454
|
-
* @param {boolean} [isOpen]
|
|
455
|
-
* @param {boolean} [isCompleted]
|
|
456
|
-
* @param {BookingStatus} [status]
|
|
457
|
-
* @param {string} [dealPackageId]
|
|
458
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
459
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
460
|
-
* @param {boolean} [isExternal]
|
|
461
|
-
* @param {boolean} [paymentEnabled]
|
|
462
|
-
* @param {string} [languageCode]
|
|
463
|
-
* @param {number} [page]
|
|
464
|
-
* @param {number} [limit]
|
|
465
|
-
* @param {Date} [lastRetrieved]
|
|
466
|
-
* @param {*} [options] Override http request option.
|
|
467
|
-
* @throws {RequiredError}
|
|
468
|
-
*/
|
|
469
|
-
apiV2BookingsGet(hospitalId?: string, hospitalName?: string, dealId?: string, dealName?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, isExternal?: boolean, paymentEnabled?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<BookingsModel> {
|
|
470
|
-
return localVarFp.apiV2BookingsGet(hospitalId, hospitalName, dealId, dealName, isOpen, isCompleted, status, dealPackageId, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
471
|
-
},
|
|
472
|
-
/**
|
|
473
|
-
*
|
|
474
|
-
* @summary Create booking.
|
|
475
|
-
* @param {string} requestId
|
|
476
|
-
* @param {CreateBookingCommand} [createBookingCommand]
|
|
477
|
-
* @param {*} [options] Override http request option.
|
|
478
|
-
* @throws {RequiredError}
|
|
479
|
-
*/
|
|
480
|
-
apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
481
|
-
return localVarFp.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then((request) => request(axios, basePath));
|
|
482
|
-
},
|
|
483
|
-
};
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Request parameters for apiV2BookingsBookingIdGet operation in BookingsApi.
|
|
488
|
-
* @export
|
|
489
|
-
* @interface BookingsApiApiV2BookingsBookingIdGetRequest
|
|
490
|
-
*/
|
|
491
|
-
export interface BookingsApiApiV2BookingsBookingIdGetRequest {
|
|
492
|
-
/**
|
|
493
|
-
*
|
|
494
|
-
* @type {string}
|
|
495
|
-
* @memberof BookingsApiApiV2BookingsBookingIdGet
|
|
496
|
-
*/
|
|
497
|
-
readonly bookingId: string
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @type {string}
|
|
502
|
-
* @memberof BookingsApiApiV2BookingsBookingIdGet
|
|
503
|
-
*/
|
|
504
|
-
readonly languageCode?: string
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Request parameters for apiV2BookingsBookingIdPayPost operation in BookingsApi.
|
|
509
|
-
* @export
|
|
510
|
-
* @interface BookingsApiApiV2BookingsBookingIdPayPostRequest
|
|
511
|
-
*/
|
|
512
|
-
export interface BookingsApiApiV2BookingsBookingIdPayPostRequest {
|
|
513
|
-
/**
|
|
514
|
-
*
|
|
515
|
-
* @type {string}
|
|
516
|
-
* @memberof BookingsApiApiV2BookingsBookingIdPayPost
|
|
517
|
-
*/
|
|
518
|
-
readonly bookingId: string
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Request parameters for apiV2BookingsBookingIdPut operation in BookingsApi.
|
|
523
|
-
* @export
|
|
524
|
-
* @interface BookingsApiApiV2BookingsBookingIdPutRequest
|
|
525
|
-
*/
|
|
526
|
-
export interface BookingsApiApiV2BookingsBookingIdPutRequest {
|
|
527
|
-
/**
|
|
528
|
-
*
|
|
529
|
-
* @type {string}
|
|
530
|
-
* @memberof BookingsApiApiV2BookingsBookingIdPut
|
|
531
|
-
*/
|
|
532
|
-
readonly bookingId: string
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
*
|
|
536
|
-
* @type {UpdateBookingCommand}
|
|
537
|
-
* @memberof BookingsApiApiV2BookingsBookingIdPut
|
|
538
|
-
*/
|
|
539
|
-
readonly updateBookingCommand?: UpdateBookingCommand
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* Request parameters for apiV2BookingsGet operation in BookingsApi.
|
|
544
|
-
* @export
|
|
545
|
-
* @interface BookingsApiApiV2BookingsGetRequest
|
|
546
|
-
*/
|
|
547
|
-
export interface BookingsApiApiV2BookingsGetRequest {
|
|
548
|
-
/**
|
|
549
|
-
*
|
|
550
|
-
* @type {string}
|
|
551
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
552
|
-
*/
|
|
553
|
-
readonly hospitalId?: string
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
*
|
|
557
|
-
* @type {string}
|
|
558
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
559
|
-
*/
|
|
560
|
-
readonly hospitalName?: string
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
*
|
|
564
|
-
* @type {string}
|
|
565
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
566
|
-
*/
|
|
567
|
-
readonly dealId?: string
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
*
|
|
571
|
-
* @type {string}
|
|
572
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
573
|
-
*/
|
|
574
|
-
readonly dealName?: string
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
*
|
|
578
|
-
* @type {boolean}
|
|
579
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
580
|
-
*/
|
|
581
|
-
readonly isOpen?: boolean
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
*
|
|
585
|
-
* @type {boolean}
|
|
586
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
587
|
-
*/
|
|
588
|
-
readonly isCompleted?: boolean
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
*
|
|
592
|
-
* @type {BookingStatus}
|
|
593
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
594
|
-
*/
|
|
595
|
-
readonly status?: BookingStatus
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
*
|
|
599
|
-
* @type {string}
|
|
600
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
601
|
-
*/
|
|
602
|
-
readonly dealPackageId?: string
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
*
|
|
606
|
-
* @type {SortingOrder}
|
|
607
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
608
|
-
*/
|
|
609
|
-
readonly sortRequestDate?: SortingOrder
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
*
|
|
613
|
-
* @type {SortingOrder}
|
|
614
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
615
|
-
*/
|
|
616
|
-
readonly sortConfirmedDateStart?: SortingOrder
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
*
|
|
620
|
-
* @type {boolean}
|
|
621
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
622
|
-
*/
|
|
623
|
-
readonly isExternal?: boolean
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
*
|
|
627
|
-
* @type {boolean}
|
|
628
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
629
|
-
*/
|
|
630
|
-
readonly paymentEnabled?: boolean
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
*
|
|
634
|
-
* @type {string}
|
|
635
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
636
|
-
*/
|
|
637
|
-
readonly languageCode?: string
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
*
|
|
641
|
-
* @type {number}
|
|
642
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
643
|
-
*/
|
|
644
|
-
readonly page?: number
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
*
|
|
648
|
-
* @type {number}
|
|
649
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
650
|
-
*/
|
|
651
|
-
readonly limit?: number
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
*
|
|
655
|
-
* @type {Date}
|
|
656
|
-
* @memberof BookingsApiApiV2BookingsGet
|
|
657
|
-
*/
|
|
658
|
-
readonly lastRetrieved?: Date
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Request parameters for apiV2BookingsRequestIdPost operation in BookingsApi.
|
|
663
|
-
* @export
|
|
664
|
-
* @interface BookingsApiApiV2BookingsRequestIdPostRequest
|
|
665
|
-
*/
|
|
666
|
-
export interface BookingsApiApiV2BookingsRequestIdPostRequest {
|
|
667
|
-
/**
|
|
668
|
-
*
|
|
669
|
-
* @type {string}
|
|
670
|
-
* @memberof BookingsApiApiV2BookingsRequestIdPost
|
|
671
|
-
*/
|
|
672
|
-
readonly requestId: string
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
*
|
|
676
|
-
* @type {CreateBookingCommand}
|
|
677
|
-
* @memberof BookingsApiApiV2BookingsRequestIdPost
|
|
678
|
-
*/
|
|
679
|
-
readonly createBookingCommand?: CreateBookingCommand
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* BookingsApi - object-oriented interface
|
|
684
|
-
* @export
|
|
685
|
-
* @class BookingsApi
|
|
686
|
-
* @extends {BaseAPI}
|
|
687
|
-
*/
|
|
688
|
-
export class BookingsApi extends BaseAPI {
|
|
689
|
-
/**
|
|
690
|
-
*
|
|
691
|
-
* @summary Get booking.
|
|
692
|
-
* @param {BookingsApiApiV2BookingsBookingIdGetRequest} requestParameters Request parameters.
|
|
693
|
-
* @param {*} [options] Override http request option.
|
|
694
|
-
* @throws {RequiredError}
|
|
695
|
-
* @memberof BookingsApi
|
|
696
|
-
*/
|
|
697
|
-
public apiV2BookingsBookingIdGet(requestParameters: BookingsApiApiV2BookingsBookingIdGetRequest, options?: AxiosRequestConfig) {
|
|
698
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(requestParameters.bookingId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
*
|
|
703
|
-
* @summary Pay booking.
|
|
704
|
-
* @param {BookingsApiApiV2BookingsBookingIdPayPostRequest} requestParameters Request parameters.
|
|
705
|
-
* @param {*} [options] Override http request option.
|
|
706
|
-
* @throws {RequiredError}
|
|
707
|
-
* @memberof BookingsApi
|
|
708
|
-
*/
|
|
709
|
-
public apiV2BookingsBookingIdPayPost(requestParameters: BookingsApiApiV2BookingsBookingIdPayPostRequest, options?: AxiosRequestConfig) {
|
|
710
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPayPost(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
*
|
|
715
|
-
* @summary Update booking.
|
|
716
|
-
* @param {BookingsApiApiV2BookingsBookingIdPutRequest} requestParameters Request parameters.
|
|
717
|
-
* @param {*} [options] Override http request option.
|
|
718
|
-
* @throws {RequiredError}
|
|
719
|
-
* @memberof BookingsApi
|
|
720
|
-
*/
|
|
721
|
-
public apiV2BookingsBookingIdPut(requestParameters: BookingsApiApiV2BookingsBookingIdPutRequest, options?: AxiosRequestConfig) {
|
|
722
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(requestParameters.bookingId, requestParameters.updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
*
|
|
727
|
-
* @summary Get all bookings.
|
|
728
|
-
* @param {BookingsApiApiV2BookingsGetRequest} requestParameters Request parameters.
|
|
729
|
-
* @param {*} [options] Override http request option.
|
|
730
|
-
* @throws {RequiredError}
|
|
731
|
-
* @memberof BookingsApi
|
|
732
|
-
*/
|
|
733
|
-
public apiV2BookingsGet(requestParameters: BookingsApiApiV2BookingsGetRequest = {}, options?: AxiosRequestConfig) {
|
|
734
|
-
return BookingsApiFp(this.configuration).apiV2BookingsGet(requestParameters.hospitalId, requestParameters.hospitalName, requestParameters.dealId, requestParameters.dealName, requestParameters.isOpen, requestParameters.isCompleted, requestParameters.status, requestParameters.dealPackageId, requestParameters.sortRequestDate, requestParameters.sortConfirmedDateStart, requestParameters.isExternal, requestParameters.paymentEnabled, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
*
|
|
739
|
-
* @summary Create booking.
|
|
740
|
-
* @param {BookingsApiApiV2BookingsRequestIdPostRequest} requestParameters Request parameters.
|
|
741
|
-
* @param {*} [options] Override http request option.
|
|
742
|
-
* @throws {RequiredError}
|
|
743
|
-
* @memberof BookingsApi
|
|
744
|
-
*/
|
|
745
|
-
public apiV2BookingsRequestIdPost(requestParameters: BookingsApiApiV2BookingsRequestIdPostRequest, options?: AxiosRequestConfig) {
|
|
746
|
-
return BookingsApiFp(this.configuration).apiV2BookingsRequestIdPost(requestParameters.requestId, requestParameters.createBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
747
|
-
}
|
|
748
|
-
}
|