ch-admin-api-client-typescript 5.14.3 → 5.14.7

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 (42) hide show
  1. package/lib/api/hospitals-api.d.ts +325 -0
  2. package/lib/api/hospitals-api.d.ts.map +1 -1
  3. package/lib/api/hospitals-api.js +485 -0
  4. package/lib/models/bank-transfer-payment-model.d.ts +43 -0
  5. package/lib/models/bank-transfer-payment-model.d.ts.map +1 -0
  6. package/lib/models/bank-transfer-payment-model.js +15 -0
  7. package/lib/models/create-hospital-payment-method-command.d.ts +58 -0
  8. package/lib/models/create-hospital-payment-method-command.d.ts.map +1 -0
  9. package/lib/models/create-hospital-payment-method-command.js +15 -0
  10. package/lib/models/hospital-payment-method-item-model.d.ts +56 -0
  11. package/lib/models/hospital-payment-method-item-model.d.ts.map +1 -0
  12. package/lib/models/hospital-payment-method-item-model.js +15 -0
  13. package/lib/models/hospital-payment-method-model.d.ts +70 -0
  14. package/lib/models/hospital-payment-method-model.d.ts.map +1 -0
  15. package/lib/models/hospital-payment-method-model.js +15 -0
  16. package/lib/models/hospital-payment-methods-model.d.ts +33 -0
  17. package/lib/models/hospital-payment-methods-model.d.ts.map +1 -0
  18. package/lib/models/hospital-payment-methods-model.js +15 -0
  19. package/lib/models/index.d.ts +7 -0
  20. package/lib/models/index.d.ts.map +1 -1
  21. package/lib/models/index.js +7 -0
  22. package/lib/models/payment-method.d.ts +1 -0
  23. package/lib/models/payment-method.d.ts.map +1 -1
  24. package/lib/models/payment-method.js +2 -1
  25. package/lib/models/update-hospital-payment-method-command.d.ts +58 -0
  26. package/lib/models/update-hospital-payment-method-command.d.ts.map +1 -0
  27. package/lib/models/update-hospital-payment-method-command.js +15 -0
  28. package/lib/models/upi-payment-model.d.ts +31 -0
  29. package/lib/models/upi-payment-model.d.ts.map +1 -0
  30. package/lib/models/upi-payment-model.js +15 -0
  31. package/package.json +1 -1
  32. package/src/.openapi-generator/FILES +7 -0
  33. package/src/api/hospitals-api.ts +572 -0
  34. package/src/models/bank-transfer-payment-model.ts +48 -0
  35. package/src/models/create-hospital-payment-method-command.ts +69 -0
  36. package/src/models/hospital-payment-method-item-model.ts +63 -0
  37. package/src/models/hospital-payment-method-model.ts +81 -0
  38. package/src/models/hospital-payment-methods-model.ts +42 -0
  39. package/src/models/index.ts +7 -0
  40. package/src/models/payment-method.ts +2 -1
  41. package/src/models/update-hospital-payment-method-command.ts +69 -0
  42. package/src/models/upi-payment-model.ts +36 -0
@@ -3778,6 +3778,261 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
3778
3778
  });
3779
3779
  });
3780
3780
  },
3781
+ /**
3782
+ *
3783
+ * @summary Get hospitalPaymentMethods list
3784
+ * @param {string} hospitalId
3785
+ * @param {PaymentMethod} [paymentMethod]
3786
+ * @param {string} [id]
3787
+ * @param {number} [page]
3788
+ * @param {number} [limit]
3789
+ * @param {Date} [lastRetrieved]
3790
+ * @param {*} [options] Override http request option.
3791
+ * @throws {RequiredError}
3792
+ */
3793
+ apiV1HospitalsHospitalIdPaymentmethodsGet: function (hospitalId, paymentMethod, id, page, limit, lastRetrieved, options) {
3794
+ if (options === void 0) { options = {}; }
3795
+ return __awaiter(_this, void 0, void 0, function () {
3796
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3797
+ return __generator(this, function (_a) {
3798
+ switch (_a.label) {
3799
+ case 0:
3800
+ // verify required parameter 'hospitalId' is not null or undefined
3801
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsGet', 'hospitalId', hospitalId);
3802
+ localVarPath = "/api/v1/hospitals/{hospitalId}/paymentmethods"
3803
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
3804
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3805
+ if (configuration) {
3806
+ baseOptions = configuration.baseOptions;
3807
+ }
3808
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3809
+ localVarHeaderParameter = {};
3810
+ localVarQueryParameter = {};
3811
+ // authentication oauth2 required
3812
+ // oauth required
3813
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3814
+ case 1:
3815
+ // authentication oauth2 required
3816
+ // oauth required
3817
+ _a.sent();
3818
+ if (paymentMethod !== undefined) {
3819
+ localVarQueryParameter['PaymentMethod'] = paymentMethod;
3820
+ }
3821
+ if (id !== undefined) {
3822
+ localVarQueryParameter['Id'] = id;
3823
+ }
3824
+ if (page !== undefined) {
3825
+ localVarQueryParameter['page'] = page;
3826
+ }
3827
+ if (limit !== undefined) {
3828
+ localVarQueryParameter['limit'] = limit;
3829
+ }
3830
+ if (lastRetrieved !== undefined) {
3831
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
3832
+ lastRetrieved.toISOString() :
3833
+ lastRetrieved;
3834
+ }
3835
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3836
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3837
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3838
+ return [2 /*return*/, {
3839
+ url: (0, common_1.toPathString)(localVarUrlObj),
3840
+ options: localVarRequestOptions,
3841
+ }];
3842
+ }
3843
+ });
3844
+ });
3845
+ },
3846
+ /**
3847
+ *
3848
+ * @summary Delete hospitalPaymentMethod
3849
+ * @param {string} hospitalId
3850
+ * @param {string} id
3851
+ * @param {*} [options] Override http request option.
3852
+ * @throws {RequiredError}
3853
+ */
3854
+ apiV1HospitalsHospitalIdPaymentmethodsIdDelete: function (hospitalId, id, options) {
3855
+ if (options === void 0) { options = {}; }
3856
+ return __awaiter(_this, void 0, void 0, function () {
3857
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3858
+ return __generator(this, function (_a) {
3859
+ switch (_a.label) {
3860
+ case 0:
3861
+ // verify required parameter 'hospitalId' is not null or undefined
3862
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsIdDelete', 'hospitalId', hospitalId);
3863
+ // verify required parameter 'id' is not null or undefined
3864
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsIdDelete', 'id', id);
3865
+ localVarPath = "/api/v1/hospitals/{hospitalId}/paymentmethods/{id}"
3866
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
3867
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
3868
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3869
+ if (configuration) {
3870
+ baseOptions = configuration.baseOptions;
3871
+ }
3872
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3873
+ localVarHeaderParameter = {};
3874
+ localVarQueryParameter = {};
3875
+ // authentication oauth2 required
3876
+ // oauth required
3877
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3878
+ case 1:
3879
+ // authentication oauth2 required
3880
+ // oauth required
3881
+ _a.sent();
3882
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3883
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3884
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3885
+ return [2 /*return*/, {
3886
+ url: (0, common_1.toPathString)(localVarUrlObj),
3887
+ options: localVarRequestOptions,
3888
+ }];
3889
+ }
3890
+ });
3891
+ });
3892
+ },
3893
+ /**
3894
+ *
3895
+ * @summary Get hospitalPaymentMethod
3896
+ * @param {string} hospitalId
3897
+ * @param {string} id
3898
+ * @param {*} [options] Override http request option.
3899
+ * @throws {RequiredError}
3900
+ */
3901
+ apiV1HospitalsHospitalIdPaymentmethodsIdGet: function (hospitalId, id, options) {
3902
+ if (options === void 0) { options = {}; }
3903
+ return __awaiter(_this, void 0, void 0, function () {
3904
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3905
+ return __generator(this, function (_a) {
3906
+ switch (_a.label) {
3907
+ case 0:
3908
+ // verify required parameter 'hospitalId' is not null or undefined
3909
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsIdGet', 'hospitalId', hospitalId);
3910
+ // verify required parameter 'id' is not null or undefined
3911
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsIdGet', 'id', id);
3912
+ localVarPath = "/api/v1/hospitals/{hospitalId}/paymentmethods/{id}"
3913
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
3914
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
3915
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3916
+ if (configuration) {
3917
+ baseOptions = configuration.baseOptions;
3918
+ }
3919
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3920
+ localVarHeaderParameter = {};
3921
+ localVarQueryParameter = {};
3922
+ // authentication oauth2 required
3923
+ // oauth required
3924
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3925
+ case 1:
3926
+ // authentication oauth2 required
3927
+ // oauth required
3928
+ _a.sent();
3929
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3930
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3931
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3932
+ return [2 /*return*/, {
3933
+ url: (0, common_1.toPathString)(localVarUrlObj),
3934
+ options: localVarRequestOptions,
3935
+ }];
3936
+ }
3937
+ });
3938
+ });
3939
+ },
3940
+ /**
3941
+ *
3942
+ * @summary Update hospitalPaymentMethod
3943
+ * @param {string} hospitalId
3944
+ * @param {string} id
3945
+ * @param {UpdateHospitalPaymentMethodCommand} [updateHospitalPaymentMethodCommand]
3946
+ * @param {*} [options] Override http request option.
3947
+ * @throws {RequiredError}
3948
+ */
3949
+ apiV1HospitalsHospitalIdPaymentmethodsIdPut: function (hospitalId, id, updateHospitalPaymentMethodCommand, options) {
3950
+ if (options === void 0) { options = {}; }
3951
+ return __awaiter(_this, void 0, void 0, function () {
3952
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3953
+ return __generator(this, function (_a) {
3954
+ switch (_a.label) {
3955
+ case 0:
3956
+ // verify required parameter 'hospitalId' is not null or undefined
3957
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsIdPut', 'hospitalId', hospitalId);
3958
+ // verify required parameter 'id' is not null or undefined
3959
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsIdPut', 'id', id);
3960
+ localVarPath = "/api/v1/hospitals/{hospitalId}/paymentmethods/{id}"
3961
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
3962
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
3963
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3964
+ if (configuration) {
3965
+ baseOptions = configuration.baseOptions;
3966
+ }
3967
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
3968
+ localVarHeaderParameter = {};
3969
+ localVarQueryParameter = {};
3970
+ // authentication oauth2 required
3971
+ // oauth required
3972
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3973
+ case 1:
3974
+ // authentication oauth2 required
3975
+ // oauth required
3976
+ _a.sent();
3977
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3978
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3979
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3980
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3981
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateHospitalPaymentMethodCommand, localVarRequestOptions, configuration);
3982
+ return [2 /*return*/, {
3983
+ url: (0, common_1.toPathString)(localVarUrlObj),
3984
+ options: localVarRequestOptions,
3985
+ }];
3986
+ }
3987
+ });
3988
+ });
3989
+ },
3990
+ /**
3991
+ *
3992
+ * @summary Create hospitalPaymentMethod
3993
+ * @param {string} hospitalId
3994
+ * @param {CreateHospitalPaymentMethodCommand} [createHospitalPaymentMethodCommand]
3995
+ * @param {*} [options] Override http request option.
3996
+ * @throws {RequiredError}
3997
+ */
3998
+ apiV1HospitalsHospitalIdPaymentmethodsPost: function (hospitalId, createHospitalPaymentMethodCommand, options) {
3999
+ if (options === void 0) { options = {}; }
4000
+ return __awaiter(_this, void 0, void 0, function () {
4001
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4002
+ return __generator(this, function (_a) {
4003
+ switch (_a.label) {
4004
+ case 0:
4005
+ // verify required parameter 'hospitalId' is not null or undefined
4006
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPaymentmethodsPost', 'hospitalId', hospitalId);
4007
+ localVarPath = "/api/v1/hospitals/{hospitalId}/paymentmethods"
4008
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
4009
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4010
+ if (configuration) {
4011
+ baseOptions = configuration.baseOptions;
4012
+ }
4013
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
4014
+ localVarHeaderParameter = {};
4015
+ localVarQueryParameter = {};
4016
+ // authentication oauth2 required
4017
+ // oauth required
4018
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4019
+ case 1:
4020
+ // authentication oauth2 required
4021
+ // oauth required
4022
+ _a.sent();
4023
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4024
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4025
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4026
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4027
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createHospitalPaymentMethodCommand, localVarRequestOptions, configuration);
4028
+ return [2 /*return*/, {
4029
+ url: (0, common_1.toPathString)(localVarUrlObj),
4030
+ options: localVarRequestOptions,
4031
+ }];
4032
+ }
4033
+ });
4034
+ });
4035
+ },
3781
4036
  /**
3782
4037
  *
3783
4038
  * @summary Get all policies
@@ -9290,6 +9545,116 @@ var HospitalsApiFp = function (configuration) {
9290
9545
  });
9291
9546
  });
9292
9547
  },
9548
+ /**
9549
+ *
9550
+ * @summary Get hospitalPaymentMethods list
9551
+ * @param {string} hospitalId
9552
+ * @param {PaymentMethod} [paymentMethod]
9553
+ * @param {string} [id]
9554
+ * @param {number} [page]
9555
+ * @param {number} [limit]
9556
+ * @param {Date} [lastRetrieved]
9557
+ * @param {*} [options] Override http request option.
9558
+ * @throws {RequiredError}
9559
+ */
9560
+ apiV1HospitalsHospitalIdPaymentmethodsGet: function (hospitalId, paymentMethod, id, page, limit, lastRetrieved, options) {
9561
+ return __awaiter(this, void 0, void 0, function () {
9562
+ var localVarAxiosArgs;
9563
+ return __generator(this, function (_a) {
9564
+ switch (_a.label) {
9565
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPaymentmethodsGet(hospitalId, paymentMethod, id, page, limit, lastRetrieved, options)];
9566
+ case 1:
9567
+ localVarAxiosArgs = _a.sent();
9568
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9569
+ }
9570
+ });
9571
+ });
9572
+ },
9573
+ /**
9574
+ *
9575
+ * @summary Delete hospitalPaymentMethod
9576
+ * @param {string} hospitalId
9577
+ * @param {string} id
9578
+ * @param {*} [options] Override http request option.
9579
+ * @throws {RequiredError}
9580
+ */
9581
+ apiV1HospitalsHospitalIdPaymentmethodsIdDelete: function (hospitalId, id, options) {
9582
+ return __awaiter(this, void 0, void 0, function () {
9583
+ var localVarAxiosArgs;
9584
+ return __generator(this, function (_a) {
9585
+ switch (_a.label) {
9586
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPaymentmethodsIdDelete(hospitalId, id, options)];
9587
+ case 1:
9588
+ localVarAxiosArgs = _a.sent();
9589
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9590
+ }
9591
+ });
9592
+ });
9593
+ },
9594
+ /**
9595
+ *
9596
+ * @summary Get hospitalPaymentMethod
9597
+ * @param {string} hospitalId
9598
+ * @param {string} id
9599
+ * @param {*} [options] Override http request option.
9600
+ * @throws {RequiredError}
9601
+ */
9602
+ apiV1HospitalsHospitalIdPaymentmethodsIdGet: function (hospitalId, id, options) {
9603
+ return __awaiter(this, void 0, void 0, function () {
9604
+ var localVarAxiosArgs;
9605
+ return __generator(this, function (_a) {
9606
+ switch (_a.label) {
9607
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPaymentmethodsIdGet(hospitalId, id, options)];
9608
+ case 1:
9609
+ localVarAxiosArgs = _a.sent();
9610
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9611
+ }
9612
+ });
9613
+ });
9614
+ },
9615
+ /**
9616
+ *
9617
+ * @summary Update hospitalPaymentMethod
9618
+ * @param {string} hospitalId
9619
+ * @param {string} id
9620
+ * @param {UpdateHospitalPaymentMethodCommand} [updateHospitalPaymentMethodCommand]
9621
+ * @param {*} [options] Override http request option.
9622
+ * @throws {RequiredError}
9623
+ */
9624
+ apiV1HospitalsHospitalIdPaymentmethodsIdPut: function (hospitalId, id, updateHospitalPaymentMethodCommand, options) {
9625
+ return __awaiter(this, void 0, void 0, function () {
9626
+ var localVarAxiosArgs;
9627
+ return __generator(this, function (_a) {
9628
+ switch (_a.label) {
9629
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPaymentmethodsIdPut(hospitalId, id, updateHospitalPaymentMethodCommand, options)];
9630
+ case 1:
9631
+ localVarAxiosArgs = _a.sent();
9632
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9633
+ }
9634
+ });
9635
+ });
9636
+ },
9637
+ /**
9638
+ *
9639
+ * @summary Create hospitalPaymentMethod
9640
+ * @param {string} hospitalId
9641
+ * @param {CreateHospitalPaymentMethodCommand} [createHospitalPaymentMethodCommand]
9642
+ * @param {*} [options] Override http request option.
9643
+ * @throws {RequiredError}
9644
+ */
9645
+ apiV1HospitalsHospitalIdPaymentmethodsPost: function (hospitalId, createHospitalPaymentMethodCommand, options) {
9646
+ return __awaiter(this, void 0, void 0, function () {
9647
+ var localVarAxiosArgs;
9648
+ return __generator(this, function (_a) {
9649
+ switch (_a.label) {
9650
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPaymentmethodsPost(hospitalId, createHospitalPaymentMethodCommand, options)];
9651
+ case 1:
9652
+ localVarAxiosArgs = _a.sent();
9653
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9654
+ }
9655
+ });
9656
+ });
9657
+ },
9293
9658
  /**
9294
9659
  *
9295
9660
  * @summary Get all policies
@@ -11795,6 +12160,66 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
11795
12160
  apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
11796
12161
  return localVarFp.apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
11797
12162
  },
12163
+ /**
12164
+ *
12165
+ * @summary Get hospitalPaymentMethods list
12166
+ * @param {string} hospitalId
12167
+ * @param {PaymentMethod} [paymentMethod]
12168
+ * @param {string} [id]
12169
+ * @param {number} [page]
12170
+ * @param {number} [limit]
12171
+ * @param {Date} [lastRetrieved]
12172
+ * @param {*} [options] Override http request option.
12173
+ * @throws {RequiredError}
12174
+ */
12175
+ apiV1HospitalsHospitalIdPaymentmethodsGet: function (hospitalId, paymentMethod, id, page, limit, lastRetrieved, options) {
12176
+ return localVarFp.apiV1HospitalsHospitalIdPaymentmethodsGet(hospitalId, paymentMethod, id, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
12177
+ },
12178
+ /**
12179
+ *
12180
+ * @summary Delete hospitalPaymentMethod
12181
+ * @param {string} hospitalId
12182
+ * @param {string} id
12183
+ * @param {*} [options] Override http request option.
12184
+ * @throws {RequiredError}
12185
+ */
12186
+ apiV1HospitalsHospitalIdPaymentmethodsIdDelete: function (hospitalId, id, options) {
12187
+ return localVarFp.apiV1HospitalsHospitalIdPaymentmethodsIdDelete(hospitalId, id, options).then(function (request) { return request(axios, basePath); });
12188
+ },
12189
+ /**
12190
+ *
12191
+ * @summary Get hospitalPaymentMethod
12192
+ * @param {string} hospitalId
12193
+ * @param {string} id
12194
+ * @param {*} [options] Override http request option.
12195
+ * @throws {RequiredError}
12196
+ */
12197
+ apiV1HospitalsHospitalIdPaymentmethodsIdGet: function (hospitalId, id, options) {
12198
+ return localVarFp.apiV1HospitalsHospitalIdPaymentmethodsIdGet(hospitalId, id, options).then(function (request) { return request(axios, basePath); });
12199
+ },
12200
+ /**
12201
+ *
12202
+ * @summary Update hospitalPaymentMethod
12203
+ * @param {string} hospitalId
12204
+ * @param {string} id
12205
+ * @param {UpdateHospitalPaymentMethodCommand} [updateHospitalPaymentMethodCommand]
12206
+ * @param {*} [options] Override http request option.
12207
+ * @throws {RequiredError}
12208
+ */
12209
+ apiV1HospitalsHospitalIdPaymentmethodsIdPut: function (hospitalId, id, updateHospitalPaymentMethodCommand, options) {
12210
+ return localVarFp.apiV1HospitalsHospitalIdPaymentmethodsIdPut(hospitalId, id, updateHospitalPaymentMethodCommand, options).then(function (request) { return request(axios, basePath); });
12211
+ },
12212
+ /**
12213
+ *
12214
+ * @summary Create hospitalPaymentMethod
12215
+ * @param {string} hospitalId
12216
+ * @param {CreateHospitalPaymentMethodCommand} [createHospitalPaymentMethodCommand]
12217
+ * @param {*} [options] Override http request option.
12218
+ * @throws {RequiredError}
12219
+ */
12220
+ apiV1HospitalsHospitalIdPaymentmethodsPost: function (hospitalId, createHospitalPaymentMethodCommand, options) {
12221
+ return localVarFp.apiV1HospitalsHospitalIdPaymentmethodsPost(hospitalId, createHospitalPaymentMethodCommand, options).then(function (request) { return request(axios, basePath); });
12222
+ },
11798
12223
  /**
11799
12224
  *
11800
12225
  * @summary Get all policies
@@ -13567,6 +13992,66 @@ var HospitalsApi = /** @class */ (function (_super) {
13567
13992
  var _this = this;
13568
13993
  return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdMediasPost(requestParameters.hospitalId, requestParameters.createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
13569
13994
  };
13995
+ /**
13996
+ *
13997
+ * @summary Get hospitalPaymentMethods list
13998
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPaymentmethodsGetRequest} requestParameters Request parameters.
13999
+ * @param {*} [options] Override http request option.
14000
+ * @throws {RequiredError}
14001
+ * @memberof HospitalsApi
14002
+ */
14003
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPaymentmethodsGet = function (requestParameters, options) {
14004
+ var _this = this;
14005
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPaymentmethodsGet(requestParameters.hospitalId, requestParameters.paymentMethod, requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14006
+ };
14007
+ /**
14008
+ *
14009
+ * @summary Delete hospitalPaymentMethod
14010
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPaymentmethodsIdDeleteRequest} requestParameters Request parameters.
14011
+ * @param {*} [options] Override http request option.
14012
+ * @throws {RequiredError}
14013
+ * @memberof HospitalsApi
14014
+ */
14015
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPaymentmethodsIdDelete = function (requestParameters, options) {
14016
+ var _this = this;
14017
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPaymentmethodsIdDelete(requestParameters.hospitalId, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
14018
+ };
14019
+ /**
14020
+ *
14021
+ * @summary Get hospitalPaymentMethod
14022
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPaymentmethodsIdGetRequest} requestParameters Request parameters.
14023
+ * @param {*} [options] Override http request option.
14024
+ * @throws {RequiredError}
14025
+ * @memberof HospitalsApi
14026
+ */
14027
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPaymentmethodsIdGet = function (requestParameters, options) {
14028
+ var _this = this;
14029
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPaymentmethodsIdGet(requestParameters.hospitalId, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
14030
+ };
14031
+ /**
14032
+ *
14033
+ * @summary Update hospitalPaymentMethod
14034
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPaymentmethodsIdPutRequest} requestParameters Request parameters.
14035
+ * @param {*} [options] Override http request option.
14036
+ * @throws {RequiredError}
14037
+ * @memberof HospitalsApi
14038
+ */
14039
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPaymentmethodsIdPut = function (requestParameters, options) {
14040
+ var _this = this;
14041
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPaymentmethodsIdPut(requestParameters.hospitalId, requestParameters.id, requestParameters.updateHospitalPaymentMethodCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
14042
+ };
14043
+ /**
14044
+ *
14045
+ * @summary Create hospitalPaymentMethod
14046
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPaymentmethodsPostRequest} requestParameters Request parameters.
14047
+ * @param {*} [options] Override http request option.
14048
+ * @throws {RequiredError}
14049
+ * @memberof HospitalsApi
14050
+ */
14051
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPaymentmethodsPost = function (requestParameters, options) {
14052
+ var _this = this;
14053
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPaymentmethodsPost(requestParameters.hospitalId, requestParameters.createHospitalPaymentMethodCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
14054
+ };
13570
14055
  /**
13571
14056
  *
13572
14057
  * @summary Get all policies
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Swagger UI - Cloud Hospital Admin Api-INT
3
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 1
6
+ * Contact: hyounoosung@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface BankTransferPaymentModel
16
+ */
17
+ export interface BankTransferPaymentModel {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BankTransferPaymentModel
22
+ */
23
+ 'bank'?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BankTransferPaymentModel
28
+ */
29
+ 'accountNumber'?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BankTransferPaymentModel
34
+ */
35
+ 'depositor'?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BankTransferPaymentModel
40
+ */
41
+ 'swiftCode'?: string | null;
42
+ }
43
+ //# sourceMappingURL=bank-transfer-payment-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank-transfer-payment-model.d.ts","sourceRoot":"","sources":["../../src/models/bank-transfer-payment-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Admin Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Swagger UI - Cloud Hospital Admin Api-INT
3
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 1
6
+ * Contact: hyounoosung@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { BankTransferPaymentModel } from './bank-transfer-payment-model';
13
+ import { PaymentMethod } from './payment-method';
14
+ import { UpiPaymentModel } from './upi-payment-model';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CreateHospitalPaymentMethodCommand
19
+ */
20
+ export interface CreateHospitalPaymentMethodCommand {
21
+ /**
22
+ *
23
+ * @type {PaymentMethod}
24
+ * @memberof CreateHospitalPaymentMethodCommand
25
+ */
26
+ 'paymentMethod'?: PaymentMethod;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof CreateHospitalPaymentMethodCommand
31
+ */
32
+ 'additionalNote'?: string | null;
33
+ /**
34
+ *
35
+ * @type {boolean}
36
+ * @memberof CreateHospitalPaymentMethodCommand
37
+ */
38
+ 'isEnabled'?: boolean;
39
+ /**
40
+ *
41
+ * @type {number}
42
+ * @memberof CreateHospitalPaymentMethodCommand
43
+ */
44
+ 'order'?: number;
45
+ /**
46
+ *
47
+ * @type {BankTransferPaymentModel}
48
+ * @memberof CreateHospitalPaymentMethodCommand
49
+ */
50
+ 'bankTransfer'?: BankTransferPaymentModel;
51
+ /**
52
+ *
53
+ * @type {UpiPaymentModel}
54
+ * @memberof CreateHospitalPaymentMethodCommand
55
+ */
56
+ 'upi'?: UpiPaymentModel;
57
+ }
58
+ //# sourceMappingURL=create-hospital-payment-method-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-hospital-payment-method-command.d.ts","sourceRoot":"","sources":["../../src/models/create-hospital-payment-method-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAC1C;;;;OAIG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;CAC3B"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Admin Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });