ch-api-client-typescript2 5.19.13 → 5.19.15

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.
Files changed (37) hide show
  1. package/lib/api/appointments-api.d.ts +167 -0
  2. package/lib/api/appointments-api.d.ts.map +1 -1
  3. package/lib/api/appointments-api.js +271 -0
  4. package/lib/api/hospitals-api.d.ts +24 -6
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +24 -12
  7. package/lib/models/appointment-model.d.ts +14 -0
  8. package/lib/models/appointment-model.d.ts.map +1 -1
  9. package/lib/models/appointment-refund-bank-transfer-model.d.ts +43 -0
  10. package/lib/models/appointment-refund-bank-transfer-model.d.ts.map +1 -0
  11. package/lib/models/appointment-refund-bank-transfer-model.js +15 -0
  12. package/lib/models/appointment-refund-upi-model.d.ts +31 -0
  13. package/lib/models/appointment-refund-upi-model.d.ts.map +1 -0
  14. package/lib/models/appointment-refund-upi-model.js +15 -0
  15. package/lib/models/appointment-status.d.ts +1 -0
  16. package/lib/models/appointment-status.d.ts.map +1 -1
  17. package/lib/models/appointment-status.js +1 -0
  18. package/lib/models/index.d.ts +4 -0
  19. package/lib/models/index.d.ts.map +1 -1
  20. package/lib/models/index.js +4 -0
  21. package/lib/models/refund-appointment-command.d.ts +39 -0
  22. package/lib/models/refund-appointment-command.d.ts.map +1 -0
  23. package/lib/models/refund-appointment-command.js +15 -0
  24. package/lib/models/reschedule-appointment-command.d.ts +37 -0
  25. package/lib/models/reschedule-appointment-command.d.ts.map +1 -0
  26. package/lib/models/reschedule-appointment-command.js +15 -0
  27. package/package.json +1 -1
  28. package/src/.openapi-generator/FILES +4 -0
  29. package/src/api/appointments-api.ts +301 -0
  30. package/src/api/hospitals-api.ts +40 -12
  31. package/src/models/appointment-model.ts +18 -0
  32. package/src/models/appointment-refund-bank-transfer-model.ts +48 -0
  33. package/src/models/appointment-refund-upi-model.ts +36 -0
  34. package/src/models/appointment-status.ts +1 -0
  35. package/src/models/index.ts +4 -0
  36. package/src/models/refund-appointment-command.ts +48 -0
  37. package/src/models/reschedule-appointment-command.ts +42 -0
@@ -33,6 +33,12 @@ import { CreateAppointmentCommand } from '../models';
33
33
  // @ts-ignore
34
34
  import { PayAppointmentCommand } from '../models';
35
35
  // @ts-ignore
36
+ import { ProblemDetails } from '../models';
37
+ // @ts-ignore
38
+ import { RefundAppointmentCommand } from '../models';
39
+ // @ts-ignore
40
+ import { RescheduleAppointmentCommand } from '../models';
41
+ // @ts-ignore
36
42
  import { UpdateAppointmentCommand } from '../models';
37
43
  /**
38
44
  * AppointmentsApi - axios parameter creator
@@ -40,6 +46,49 @@ import { UpdateAppointmentCommand } from '../models';
40
46
  */
41
47
  export const AppointmentsApiAxiosParamCreator = function (configuration?: Configuration) {
42
48
  return {
49
+ /**
50
+ *
51
+ * @summary Cancel appointment
52
+ * @param {string} appointmentId
53
+ * @param {string} [languageCode]
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ apiV2AppointmentsAppointmentIdCancelPut: async (appointmentId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'appointmentId' is not null or undefined
59
+ assertParamExists('apiV2AppointmentsAppointmentIdCancelPut', 'appointmentId', appointmentId)
60
+ const localVarPath = `/api/v2/appointments/{appointmentId}/cancel`
61
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
62
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
+ let baseOptions;
65
+ if (configuration) {
66
+ baseOptions = configuration.baseOptions;
67
+ }
68
+
69
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
70
+ const localVarHeaderParameter = {} as any;
71
+ const localVarQueryParameter = {} as any;
72
+
73
+ // authentication oauth2 required
74
+ // oauth required
75
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
76
+
77
+ if (languageCode !== undefined) {
78
+ localVarQueryParameter['languageCode'] = languageCode;
79
+ }
80
+
81
+
82
+
83
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
84
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
43
92
  /**
44
93
  *
45
94
  * @summary Get appointment by id
@@ -167,6 +216,90 @@ export const AppointmentsApiAxiosParamCreator = function (configuration?: Config
167
216
  options: localVarRequestOptions,
168
217
  };
169
218
  },
219
+ /**
220
+ *
221
+ * @summary Update refund information
222
+ * @param {string} appointmentId
223
+ * @param {RefundAppointmentCommand} [refundAppointmentCommand]
224
+ * @param {*} [options] Override http request option.
225
+ * @throws {RequiredError}
226
+ */
227
+ apiV2AppointmentsAppointmentIdRefundPut: async (appointmentId: string, refundAppointmentCommand?: RefundAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
228
+ // verify required parameter 'appointmentId' is not null or undefined
229
+ assertParamExists('apiV2AppointmentsAppointmentIdRefundPut', 'appointmentId', appointmentId)
230
+ const localVarPath = `/api/v2/appointments/{appointmentId}/refund`
231
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
234
+ let baseOptions;
235
+ if (configuration) {
236
+ baseOptions = configuration.baseOptions;
237
+ }
238
+
239
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
240
+ const localVarHeaderParameter = {} as any;
241
+ const localVarQueryParameter = {} as any;
242
+
243
+ // authentication oauth2 required
244
+ // oauth required
245
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
246
+
247
+
248
+
249
+ localVarHeaderParameter['Content-Type'] = 'application/json';
250
+
251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
254
+ localVarRequestOptions.data = serializeDataIfNeeded(refundAppointmentCommand, localVarRequestOptions, configuration)
255
+
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ },
261
+ /**
262
+ *
263
+ * @summary Reschedue appointment
264
+ * @param {string} appointmentId
265
+ * @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ apiV2AppointmentsAppointmentIdReschedulePut: async (appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
270
+ // verify required parameter 'appointmentId' is not null or undefined
271
+ assertParamExists('apiV2AppointmentsAppointmentIdReschedulePut', 'appointmentId', appointmentId)
272
+ const localVarPath = `/api/v2/appointments/{appointmentId}/reschedule`
273
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
275
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
276
+ let baseOptions;
277
+ if (configuration) {
278
+ baseOptions = configuration.baseOptions;
279
+ }
280
+
281
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
282
+ const localVarHeaderParameter = {} as any;
283
+ const localVarQueryParameter = {} as any;
284
+
285
+ // authentication oauth2 required
286
+ // oauth required
287
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
288
+
289
+
290
+
291
+ localVarHeaderParameter['Content-Type'] = 'application/json';
292
+
293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
296
+ localVarRequestOptions.data = serializeDataIfNeeded(rescheduleAppointmentCommand, localVarRequestOptions, configuration)
297
+
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ },
170
303
  /**
171
304
  *
172
305
  * @summary Get appointments
@@ -350,6 +483,18 @@ export const AppointmentsApiAxiosParamCreator = function (configuration?: Config
350
483
  export const AppointmentsApiFp = function(configuration?: Configuration) {
351
484
  const localVarAxiosParamCreator = AppointmentsApiAxiosParamCreator(configuration)
352
485
  return {
486
+ /**
487
+ *
488
+ * @summary Cancel appointment
489
+ * @param {string} appointmentId
490
+ * @param {string} [languageCode]
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ async apiV2AppointmentsAppointmentIdCancelPut(appointmentId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>> {
495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdCancelPut(appointmentId, languageCode, options);
496
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
497
+ },
353
498
  /**
354
499
  *
355
500
  * @summary Get appointment by id
@@ -386,6 +531,30 @@ export const AppointmentsApiFp = function(configuration?: Configuration) {
386
531
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdPut(appointmentId, updateAppointmentCommand, options);
387
532
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
388
533
  },
534
+ /**
535
+ *
536
+ * @summary Update refund information
537
+ * @param {string} appointmentId
538
+ * @param {RefundAppointmentCommand} [refundAppointmentCommand]
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ */
542
+ async apiV2AppointmentsAppointmentIdRefundPut(appointmentId: string, refundAppointmentCommand?: RefundAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>> {
543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdRefundPut(appointmentId, refundAppointmentCommand, options);
544
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
545
+ },
546
+ /**
547
+ *
548
+ * @summary Reschedue appointment
549
+ * @param {string} appointmentId
550
+ * @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ */
554
+ async apiV2AppointmentsAppointmentIdReschedulePut(appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>> {
555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdReschedulePut(appointmentId, rescheduleAppointmentCommand, options);
556
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
557
+ },
389
558
  /**
390
559
  *
391
560
  * @summary Get appointments
@@ -437,6 +606,17 @@ export const AppointmentsApiFp = function(configuration?: Configuration) {
437
606
  export const AppointmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
438
607
  const localVarFp = AppointmentsApiFp(configuration)
439
608
  return {
609
+ /**
610
+ *
611
+ * @summary Cancel appointment
612
+ * @param {string} appointmentId
613
+ * @param {string} [languageCode]
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ apiV2AppointmentsAppointmentIdCancelPut(appointmentId: string, languageCode?: string, options?: any): AxiosPromise<AppointmentModel> {
618
+ return localVarFp.apiV2AppointmentsAppointmentIdCancelPut(appointmentId, languageCode, options).then((request) => request(axios, basePath));
619
+ },
440
620
  /**
441
621
  *
442
622
  * @summary Get appointment by id
@@ -470,6 +650,28 @@ export const AppointmentsApiFactory = function (configuration?: Configuration, b
470
650
  apiV2AppointmentsAppointmentIdPut(appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options?: any): AxiosPromise<string> {
471
651
  return localVarFp.apiV2AppointmentsAppointmentIdPut(appointmentId, updateAppointmentCommand, options).then((request) => request(axios, basePath));
472
652
  },
653
+ /**
654
+ *
655
+ * @summary Update refund information
656
+ * @param {string} appointmentId
657
+ * @param {RefundAppointmentCommand} [refundAppointmentCommand]
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ */
661
+ apiV2AppointmentsAppointmentIdRefundPut(appointmentId: string, refundAppointmentCommand?: RefundAppointmentCommand, options?: any): AxiosPromise<AppointmentModel> {
662
+ return localVarFp.apiV2AppointmentsAppointmentIdRefundPut(appointmentId, refundAppointmentCommand, options).then((request) => request(axios, basePath));
663
+ },
664
+ /**
665
+ *
666
+ * @summary Reschedue appointment
667
+ * @param {string} appointmentId
668
+ * @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ apiV2AppointmentsAppointmentIdReschedulePut(appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options?: any): AxiosPromise<AppointmentModel> {
673
+ return localVarFp.apiV2AppointmentsAppointmentIdReschedulePut(appointmentId, rescheduleAppointmentCommand, options).then((request) => request(axios, basePath));
674
+ },
473
675
  /**
474
676
  *
475
677
  * @summary Get appointments
@@ -512,6 +714,27 @@ export const AppointmentsApiFactory = function (configuration?: Configuration, b
512
714
  };
513
715
  };
514
716
 
717
+ /**
718
+ * Request parameters for apiV2AppointmentsAppointmentIdCancelPut operation in AppointmentsApi.
719
+ * @export
720
+ * @interface AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest
721
+ */
722
+ export interface AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest {
723
+ /**
724
+ *
725
+ * @type {string}
726
+ * @memberof AppointmentsApiApiV2AppointmentsAppointmentIdCancelPut
727
+ */
728
+ readonly appointmentId: string
729
+
730
+ /**
731
+ *
732
+ * @type {string}
733
+ * @memberof AppointmentsApiApiV2AppointmentsAppointmentIdCancelPut
734
+ */
735
+ readonly languageCode?: string
736
+ }
737
+
515
738
  /**
516
739
  * Request parameters for apiV2AppointmentsAppointmentIdGet operation in AppointmentsApi.
517
740
  * @export
@@ -575,6 +798,48 @@ export interface AppointmentsApiApiV2AppointmentsAppointmentIdPutRequest {
575
798
  readonly updateAppointmentCommand?: UpdateAppointmentCommand
576
799
  }
577
800
 
801
+ /**
802
+ * Request parameters for apiV2AppointmentsAppointmentIdRefundPut operation in AppointmentsApi.
803
+ * @export
804
+ * @interface AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest
805
+ */
806
+ export interface AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest {
807
+ /**
808
+ *
809
+ * @type {string}
810
+ * @memberof AppointmentsApiApiV2AppointmentsAppointmentIdRefundPut
811
+ */
812
+ readonly appointmentId: string
813
+
814
+ /**
815
+ *
816
+ * @type {RefundAppointmentCommand}
817
+ * @memberof AppointmentsApiApiV2AppointmentsAppointmentIdRefundPut
818
+ */
819
+ readonly refundAppointmentCommand?: RefundAppointmentCommand
820
+ }
821
+
822
+ /**
823
+ * Request parameters for apiV2AppointmentsAppointmentIdReschedulePut operation in AppointmentsApi.
824
+ * @export
825
+ * @interface AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest
826
+ */
827
+ export interface AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest {
828
+ /**
829
+ *
830
+ * @type {string}
831
+ * @memberof AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePut
832
+ */
833
+ readonly appointmentId: string
834
+
835
+ /**
836
+ *
837
+ * @type {RescheduleAppointmentCommand}
838
+ * @memberof AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePut
839
+ */
840
+ readonly rescheduleAppointmentCommand?: RescheduleAppointmentCommand
841
+ }
842
+
578
843
  /**
579
844
  * Request parameters for apiV2AppointmentsGet operation in AppointmentsApi.
580
845
  * @export
@@ -743,6 +1008,18 @@ export interface AppointmentsApiApiV2AppointmentsRequestIdPostRequest {
743
1008
  * @extends {BaseAPI}
744
1009
  */
745
1010
  export class AppointmentsApi extends BaseAPI {
1011
+ /**
1012
+ *
1013
+ * @summary Cancel appointment
1014
+ * @param {AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest} requestParameters Request parameters.
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ * @memberof AppointmentsApi
1018
+ */
1019
+ public apiV2AppointmentsAppointmentIdCancelPut(requestParameters: AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest, options?: AxiosRequestConfig) {
1020
+ return AppointmentsApiFp(this.configuration).apiV2AppointmentsAppointmentIdCancelPut(requestParameters.appointmentId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
1021
+ }
1022
+
746
1023
  /**
747
1024
  *
748
1025
  * @summary Get appointment by id
@@ -779,6 +1056,30 @@ export class AppointmentsApi extends BaseAPI {
779
1056
  return AppointmentsApiFp(this.configuration).apiV2AppointmentsAppointmentIdPut(requestParameters.appointmentId, requestParameters.updateAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
780
1057
  }
781
1058
 
1059
+ /**
1060
+ *
1061
+ * @summary Update refund information
1062
+ * @param {AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest} requestParameters Request parameters.
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ * @memberof AppointmentsApi
1066
+ */
1067
+ public apiV2AppointmentsAppointmentIdRefundPut(requestParameters: AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest, options?: AxiosRequestConfig) {
1068
+ return AppointmentsApiFp(this.configuration).apiV2AppointmentsAppointmentIdRefundPut(requestParameters.appointmentId, requestParameters.refundAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
1069
+ }
1070
+
1071
+ /**
1072
+ *
1073
+ * @summary Reschedue appointment
1074
+ * @param {AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest} requestParameters Request parameters.
1075
+ * @param {*} [options] Override http request option.
1076
+ * @throws {RequiredError}
1077
+ * @memberof AppointmentsApi
1078
+ */
1079
+ public apiV2AppointmentsAppointmentIdReschedulePut(requestParameters: AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest, options?: AxiosRequestConfig) {
1080
+ return AppointmentsApiFp(this.configuration).apiV2AppointmentsAppointmentIdReschedulePut(requestParameters.appointmentId, requestParameters.rescheduleAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
1081
+ }
1082
+
782
1083
  /**
783
1084
  *
784
1085
  * @summary Get appointments
@@ -2057,6 +2057,7 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2057
2057
  * @param {string} [specialtyName]
2058
2058
  * @param {string} [specialtyTypeId]
2059
2059
  * @param {string} [specialtyTypeName]
2060
+ * @param {string} [specialtyTypeSlug]
2060
2061
  * @param {string} [hospitalSpecialtyId]
2061
2062
  * @param {string} [name]
2062
2063
  * @param {string} [slug]
@@ -2070,7 +2071,7 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2070
2071
  * @param {*} [options] Override http request option.
2071
2072
  * @throws {RequiredError}
2072
2073
  */
2073
- apiV2HospitalsHospitalIdSpecialtiesGet: async (hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2074
+ apiV2HospitalsHospitalIdSpecialtiesGet: async (hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, specialtyTypeSlug?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2074
2075
  // verify required parameter 'hospitalId' is not null or undefined
2075
2076
  assertParamExists('apiV2HospitalsHospitalIdSpecialtiesGet', 'hospitalId', hospitalId)
2076
2077
  const localVarPath = `/api/v2/hospitals/{hospitalId}/specialties`
@@ -2102,6 +2103,10 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2102
2103
  localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
2103
2104
  }
2104
2105
 
2106
+ if (specialtyTypeSlug !== undefined) {
2107
+ localVarQueryParameter['SpecialtyTypeSlug'] = specialtyTypeSlug;
2108
+ }
2109
+
2105
2110
  if (hospitalSpecialtyId !== undefined) {
2106
2111
  localVarQueryParameter['HospitalSpecialtyId'] = hospitalSpecialtyId;
2107
2112
  }
@@ -2342,6 +2347,7 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2342
2347
  * @param {string} [specialtyName]
2343
2348
  * @param {string} [specialtyTypeId]
2344
2349
  * @param {string} [specialtyTypeName]
2350
+ * @param {string} [specialtyTypeSlug]
2345
2351
  * @param {string} [hospitalSpecialtyId]
2346
2352
  * @param {string} [name]
2347
2353
  * @param {string} [slug]
@@ -2355,7 +2361,7 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2355
2361
  * @param {*} [options] Override http request option.
2356
2362
  * @throws {RequiredError}
2357
2363
  */
2358
- apiV2HospitalsHospitalIdSpecialtiesSimpleGet: async (hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2364
+ apiV2HospitalsHospitalIdSpecialtiesSimpleGet: async (hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, specialtyTypeSlug?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2359
2365
  // verify required parameter 'hospitalId' is not null or undefined
2360
2366
  assertParamExists('apiV2HospitalsHospitalIdSpecialtiesSimpleGet', 'hospitalId', hospitalId)
2361
2367
  const localVarPath = `/api/v2/hospitals/{hospitalId}/specialties/simple`
@@ -2387,6 +2393,10 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2387
2393
  localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
2388
2394
  }
2389
2395
 
2396
+ if (specialtyTypeSlug !== undefined) {
2397
+ localVarQueryParameter['SpecialtyTypeSlug'] = specialtyTypeSlug;
2398
+ }
2399
+
2390
2400
  if (hospitalSpecialtyId !== undefined) {
2391
2401
  localVarQueryParameter['HospitalSpecialtyId'] = hospitalSpecialtyId;
2392
2402
  }
@@ -3810,6 +3820,7 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3810
3820
  * @param {string} [specialtyName]
3811
3821
  * @param {string} [specialtyTypeId]
3812
3822
  * @param {string} [specialtyTypeName]
3823
+ * @param {string} [specialtyTypeSlug]
3813
3824
  * @param {string} [hospitalSpecialtyId]
3814
3825
  * @param {string} [name]
3815
3826
  * @param {string} [slug]
@@ -3823,8 +3834,8 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3823
3834
  * @param {*} [options] Override http request option.
3824
3835
  * @throws {RequiredError}
3825
3836
  */
3826
- async apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtiesModel>> {
3827
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options);
3837
+ async apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, specialtyTypeSlug?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtiesModel>> {
3838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, specialtyTypeSlug, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options);
3828
3839
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3829
3840
  },
3830
3841
  /**
@@ -3883,6 +3894,7 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3883
3894
  * @param {string} [specialtyName]
3884
3895
  * @param {string} [specialtyTypeId]
3885
3896
  * @param {string} [specialtyTypeName]
3897
+ * @param {string} [specialtyTypeSlug]
3886
3898
  * @param {string} [hospitalSpecialtyId]
3887
3899
  * @param {string} [name]
3888
3900
  * @param {string} [slug]
@@ -3896,8 +3908,8 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3896
3908
  * @param {*} [options] Override http request option.
3897
3909
  * @throws {RequiredError}
3898
3910
  */
3899
- async apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtiesSimpleModel>> {
3900
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options);
3911
+ async apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, specialtyTypeSlug?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtiesSimpleModel>> {
3912
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, specialtyTypeSlug, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options);
3901
3913
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3902
3914
  },
3903
3915
  /**
@@ -4627,6 +4639,7 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
4627
4639
  * @param {string} [specialtyName]
4628
4640
  * @param {string} [specialtyTypeId]
4629
4641
  * @param {string} [specialtyTypeName]
4642
+ * @param {string} [specialtyTypeSlug]
4630
4643
  * @param {string} [hospitalSpecialtyId]
4631
4644
  * @param {string} [name]
4632
4645
  * @param {string} [slug]
@@ -4640,8 +4653,8 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
4640
4653
  * @param {*} [options] Override http request option.
4641
4654
  * @throws {RequiredError}
4642
4655
  */
4643
- apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
4644
- return localVarFp.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
4656
+ apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, specialtyTypeSlug?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
4657
+ return localVarFp.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, specialtyTypeSlug, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
4645
4658
  },
4646
4659
  /**
4647
4660
  *
@@ -4696,6 +4709,7 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
4696
4709
  * @param {string} [specialtyName]
4697
4710
  * @param {string} [specialtyTypeId]
4698
4711
  * @param {string} [specialtyTypeName]
4712
+ * @param {string} [specialtyTypeSlug]
4699
4713
  * @param {string} [hospitalSpecialtyId]
4700
4714
  * @param {string} [name]
4701
4715
  * @param {string} [slug]
@@ -4709,8 +4723,8 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
4709
4723
  * @param {*} [options] Override http request option.
4710
4724
  * @throws {RequiredError}
4711
4725
  */
4712
- apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesSimpleModel> {
4713
- return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
4726
+ apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, specialtyTypeName?: string, specialtyTypeSlug?: string, hospitalSpecialtyId?: string, name?: string, slug?: string, marketingType?: MarketingType, appointmentEnabled?: boolean, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesSimpleModel> {
4727
+ return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSimpleGet(hospitalId, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, specialtyTypeSlug, hospitalSpecialtyId, name, slug, marketingType, appointmentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
4714
4728
  },
4715
4729
  /**
4716
4730
  *
@@ -6445,6 +6459,13 @@ export interface HospitalsApiApiV2HospitalsHospitalIdSpecialtiesGetRequest {
6445
6459
  */
6446
6460
  readonly specialtyTypeName?: string
6447
6461
 
6462
+ /**
6463
+ *
6464
+ * @type {string}
6465
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdSpecialtiesGet
6466
+ */
6467
+ readonly specialtyTypeSlug?: string
6468
+
6448
6469
  /**
6449
6470
  *
6450
6471
  * @type {string}
@@ -6704,6 +6725,13 @@ export interface HospitalsApiApiV2HospitalsHospitalIdSpecialtiesSimpleGetRequest
6704
6725
  */
6705
6726
  readonly specialtyTypeName?: string
6706
6727
 
6728
+ /**
6729
+ *
6730
+ * @type {string}
6731
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdSpecialtiesSimpleGet
6732
+ */
6733
+ readonly specialtyTypeSlug?: string
6734
+
6707
6735
  /**
6708
6736
  *
6709
6737
  * @type {string}
@@ -7917,7 +7945,7 @@ export class HospitalsApi extends BaseAPI {
7917
7945
  * @memberof HospitalsApi
7918
7946
  */
7919
7947
  public apiV2HospitalsHospitalIdSpecialtiesGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdSpecialtiesGetRequest, options?: AxiosRequestConfig) {
7920
- return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesGet(requestParameters.hospitalId, requestParameters.specialtyId, requestParameters.specialtyName, requestParameters.specialtyTypeId, requestParameters.specialtyTypeName, requestParameters.hospitalSpecialtyId, requestParameters.name, requestParameters.slug, requestParameters.marketingType, requestParameters.appointmentEnabled, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
7948
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesGet(requestParameters.hospitalId, requestParameters.specialtyId, requestParameters.specialtyName, requestParameters.specialtyTypeId, requestParameters.specialtyTypeName, requestParameters.specialtyTypeSlug, requestParameters.hospitalSpecialtyId, requestParameters.name, requestParameters.slug, requestParameters.marketingType, requestParameters.appointmentEnabled, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
7921
7949
  }
7922
7950
 
7923
7951
  /**
@@ -7965,7 +7993,7 @@ export class HospitalsApi extends BaseAPI {
7965
7993
  * @memberof HospitalsApi
7966
7994
  */
7967
7995
  public apiV2HospitalsHospitalIdSpecialtiesSimpleGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdSpecialtiesSimpleGetRequest, options?: AxiosRequestConfig) {
7968
- return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSimpleGet(requestParameters.hospitalId, requestParameters.specialtyId, requestParameters.specialtyName, requestParameters.specialtyTypeId, requestParameters.specialtyTypeName, requestParameters.hospitalSpecialtyId, requestParameters.name, requestParameters.slug, requestParameters.marketingType, requestParameters.appointmentEnabled, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
7996
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSimpleGet(requestParameters.hospitalId, requestParameters.specialtyId, requestParameters.specialtyName, requestParameters.specialtyTypeId, requestParameters.specialtyTypeName, requestParameters.specialtyTypeSlug, requestParameters.hospitalSpecialtyId, requestParameters.name, requestParameters.slug, requestParameters.marketingType, requestParameters.appointmentEnabled, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
7969
7997
  }
7970
7998
 
7971
7999
  /**
@@ -18,6 +18,12 @@
18
18
  import { AppointmentChangeLogModel } from './appointment-change-log-model';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
+ import { AppointmentRefundBankTransferModel } from './appointment-refund-bank-transfer-model';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import { AppointmentRefundUpiModel } from './appointment-refund-upi-model';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
21
27
  import { AppointmentStatus } from './appointment-status';
22
28
  // May contain unused imports in some cases
23
29
  // @ts-ignore
@@ -338,5 +344,17 @@ export interface AppointmentModel {
338
344
  * @memberof AppointmentModel
339
345
  */
340
346
  'medias'?: Array<MediaModel> | null;
347
+ /**
348
+ *
349
+ * @type {AppointmentRefundBankTransferModel}
350
+ * @memberof AppointmentModel
351
+ */
352
+ 'refundBankTransfer'?: AppointmentRefundBankTransferModel;
353
+ /**
354
+ *
355
+ * @type {AppointmentRefundUpiModel}
356
+ * @memberof AppointmentModel
357
+ */
358
+ 'refundUpi'?: AppointmentRefundUpiModel;
341
359
  }
342
360
 
@@ -0,0 +1,48 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface AppointmentRefundBankTransferModel
21
+ */
22
+ export interface AppointmentRefundBankTransferModel {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof AppointmentRefundBankTransferModel
27
+ */
28
+ 'bank'?: string | null;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof AppointmentRefundBankTransferModel
33
+ */
34
+ 'accountNumber'?: string | null;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof AppointmentRefundBankTransferModel
39
+ */
40
+ 'depositor'?: string | null;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof AppointmentRefundBankTransferModel
45
+ */
46
+ 'swiftCode'?: string | null;
47
+ }
48
+