ch-admin-api-client-typescript 5.36.83 → 5.37.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/lib/api/countries-api.d.ts +324 -0
  2. package/lib/api/countries-api.d.ts.map +1 -1
  3. package/lib/api/countries-api.js +485 -0
  4. package/lib/api/currencies-api.d.ts +422 -0
  5. package/lib/api/currencies-api.d.ts.map +1 -0
  6. package/lib/api/currencies-api.js +764 -0
  7. package/lib/api.d.ts +1 -0
  8. package/lib/api.d.ts.map +1 -1
  9. package/lib/api.js +1 -0
  10. package/lib/models/country-currencies-model.d.ts +33 -0
  11. package/lib/models/country-currencies-model.d.ts.map +1 -0
  12. package/lib/models/country-currencies-model.js +15 -0
  13. package/lib/models/country-currency-item-model.d.ts +55 -0
  14. package/lib/models/country-currency-item-model.d.ts.map +1 -0
  15. package/lib/models/country-currency-item-model.js +15 -0
  16. package/lib/models/country-currency-model.d.ts +55 -0
  17. package/lib/models/country-currency-model.d.ts.map +1 -0
  18. package/lib/models/country-currency-model.js +15 -0
  19. package/lib/models/create-currency-command.d.ts +37 -0
  20. package/lib/models/create-currency-command.d.ts.map +1 -0
  21. package/lib/models/create-currency-command.js +15 -0
  22. package/lib/models/currencies-model.d.ts +33 -0
  23. package/lib/models/currencies-model.d.ts.map +1 -0
  24. package/lib/models/currencies-model.js +15 -0
  25. package/lib/models/currency-item-model.d.ts +43 -0
  26. package/lib/models/currency-item-model.d.ts.map +1 -0
  27. package/lib/models/currency-item-model.js +15 -0
  28. package/lib/models/currency-model.d.ts +50 -0
  29. package/lib/models/currency-model.d.ts.map +1 -0
  30. package/lib/models/currency-model.js +15 -0
  31. package/lib/models/index.d.ts +11 -0
  32. package/lib/models/index.d.ts.map +1 -1
  33. package/lib/models/index.js +11 -0
  34. package/lib/models/save-country-currency-command.d.ts +25 -0
  35. package/lib/models/save-country-currency-command.d.ts.map +1 -0
  36. package/lib/models/save-country-currency-command.js +15 -0
  37. package/lib/models/sort-country-currencies-command.d.ts +26 -0
  38. package/lib/models/sort-country-currencies-command.d.ts.map +1 -0
  39. package/lib/models/sort-country-currencies-command.js +15 -0
  40. package/lib/models/sort-currencies-command.d.ts +26 -0
  41. package/lib/models/sort-currencies-command.d.ts.map +1 -0
  42. package/lib/models/sort-currencies-command.js +15 -0
  43. package/lib/models/update-currency-command.d.ts +37 -0
  44. package/lib/models/update-currency-command.d.ts.map +1 -0
  45. package/lib/models/update-currency-command.js +15 -0
  46. package/package.json +1 -1
  47. package/src/.openapi-generator/FILES +12 -0
  48. package/src/api/countries-api.ts +570 -0
  49. package/src/api/currencies-api.ts +751 -0
  50. package/src/api.ts +1 -0
  51. package/src/models/country-currencies-model.ts +42 -0
  52. package/src/models/country-currency-item-model.ts +60 -0
  53. package/src/models/country-currency-model.ts +60 -0
  54. package/src/models/create-currency-command.ts +42 -0
  55. package/src/models/currencies-model.ts +42 -0
  56. package/src/models/currency-item-model.ts +48 -0
  57. package/src/models/currency-model.ts +57 -0
  58. package/src/models/index.ts +11 -0
  59. package/src/models/save-country-currency-command.ts +30 -0
  60. package/src/models/sort-country-currencies-command.ts +33 -0
  61. package/src/models/sort-currencies-command.ts +33 -0
  62. package/src/models/update-currency-command.ts +42 -0
@@ -23,6 +23,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CountriesModel } from '../models';
25
25
  // @ts-ignore
26
+ import { CountryCurrenciesModel } from '../models';
27
+ // @ts-ignore
28
+ import { CountryCurrencyModel } from '../models';
29
+ // @ts-ignore
26
30
  import { CountryLanguageModel } from '../models';
27
31
  // @ts-ignore
28
32
  import { CountryLanguagesModel } from '../models';
@@ -43,8 +47,12 @@ import { MediasModel } from '../models';
43
47
  // @ts-ignore
44
48
  import { ProblemDetails } from '../models';
45
49
  // @ts-ignore
50
+ import { SaveCountryCurrencyCommand } from '../models';
51
+ // @ts-ignore
46
52
  import { SaveCountryLanguageCommand } from '../models';
47
53
  // @ts-ignore
54
+ import { SortCountryCurrenciesCommand } from '../models';
55
+ // @ts-ignore
48
56
  import { SortCountryLanguagesCommand } from '../models';
49
57
  // @ts-ignore
50
58
  import { SortingResultModel } from '../models';
@@ -60,6 +68,243 @@ import { UpdateMediaCommand } from '../models';
60
68
  */
61
69
  export const CountriesApiAxiosParamCreator = function (configuration?: Configuration) {
62
70
  return {
71
+ /**
72
+ *
73
+ * @summary Remove currency from country language list
74
+ * @param {string} countryId
75
+ * @param {string} currencyId
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ apiV1CountriesCountryIdCurrenciesCurrencyIdDelete: async (countryId: string, currencyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
80
+ // verify required parameter 'countryId' is not null or undefined
81
+ assertParamExists('apiV1CountriesCountryIdCurrenciesCurrencyIdDelete', 'countryId', countryId)
82
+ // verify required parameter 'currencyId' is not null or undefined
83
+ assertParamExists('apiV1CountriesCountryIdCurrenciesCurrencyIdDelete', 'currencyId', currencyId)
84
+ const localVarPath = `/api/v1/countries/{countryId}/currencies/{currencyId}`
85
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)))
86
+ .replace(`{${"currencyId"}}`, encodeURIComponent(String(currencyId)));
87
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
89
+ let baseOptions;
90
+ if (configuration) {
91
+ baseOptions = configuration.baseOptions;
92
+ }
93
+
94
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
95
+ const localVarHeaderParameter = {} as any;
96
+ const localVarQueryParameter = {} as any;
97
+
98
+ // authentication oauth2 required
99
+ // oauth required
100
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
101
+
102
+
103
+
104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
106
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
107
+
108
+ return {
109
+ url: toPathString(localVarUrlObj),
110
+ options: localVarRequestOptions,
111
+ };
112
+ },
113
+ /**
114
+ *
115
+ * @summary Get currncy of country
116
+ * @param {string} countryId
117
+ * @param {string} currencyId
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ apiV1CountriesCountryIdCurrenciesCurrencyIdGet: async (countryId: string, currencyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
122
+ // verify required parameter 'countryId' is not null or undefined
123
+ assertParamExists('apiV1CountriesCountryIdCurrenciesCurrencyIdGet', 'countryId', countryId)
124
+ // verify required parameter 'currencyId' is not null or undefined
125
+ assertParamExists('apiV1CountriesCountryIdCurrenciesCurrencyIdGet', 'currencyId', currencyId)
126
+ const localVarPath = `/api/v1/countries/{countryId}/currencies/{currencyId}`
127
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)))
128
+ .replace(`{${"currencyId"}}`, encodeURIComponent(String(currencyId)));
129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
131
+ let baseOptions;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ }
135
+
136
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
137
+ const localVarHeaderParameter = {} as any;
138
+ const localVarQueryParameter = {} as any;
139
+
140
+ // authentication oauth2 required
141
+ // oauth required
142
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
143
+
144
+
145
+
146
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
147
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
148
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
149
+
150
+ return {
151
+ url: toPathString(localVarUrlObj),
152
+ options: localVarRequestOptions,
153
+ };
154
+ },
155
+ /**
156
+ *
157
+ * @summary Add currency into country language list
158
+ * @param {string} countryId
159
+ * @param {string} currencyId
160
+ * @param {SaveCountryCurrencyCommand} [saveCountryCurrencyCommand]
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ apiV1CountriesCountryIdCurrenciesCurrencyIdPost: async (countryId: string, currencyId: string, saveCountryCurrencyCommand?: SaveCountryCurrencyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
+ // verify required parameter 'countryId' is not null or undefined
166
+ assertParamExists('apiV1CountriesCountryIdCurrenciesCurrencyIdPost', 'countryId', countryId)
167
+ // verify required parameter 'currencyId' is not null or undefined
168
+ assertParamExists('apiV1CountriesCountryIdCurrenciesCurrencyIdPost', 'currencyId', currencyId)
169
+ const localVarPath = `/api/v1/countries/{countryId}/currencies/{currencyId}`
170
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)))
171
+ .replace(`{${"currencyId"}}`, encodeURIComponent(String(currencyId)));
172
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
173
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
174
+ let baseOptions;
175
+ if (configuration) {
176
+ baseOptions = configuration.baseOptions;
177
+ }
178
+
179
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
180
+ const localVarHeaderParameter = {} as any;
181
+ const localVarQueryParameter = {} as any;
182
+
183
+ // authentication oauth2 required
184
+ // oauth required
185
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
186
+
187
+
188
+
189
+ localVarHeaderParameter['Content-Type'] = 'application/json';
190
+
191
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
194
+ localVarRequestOptions.data = serializeDataIfNeeded(saveCountryCurrencyCommand, localVarRequestOptions, configuration)
195
+
196
+ return {
197
+ url: toPathString(localVarUrlObj),
198
+ options: localVarRequestOptions,
199
+ };
200
+ },
201
+ /**
202
+ *
203
+ * @summary Get currencies list of country
204
+ * @param {string} countryId
205
+ * @param {string} [currencyId]
206
+ * @param {string} [currencyCode]
207
+ * @param {number} [page]
208
+ * @param {number} [limit]
209
+ * @param {Date} [lastRetrieved]
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ apiV1CountriesCountryIdCurrenciesGet: async (countryId: string, currencyId?: string, currencyCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
214
+ // verify required parameter 'countryId' is not null or undefined
215
+ assertParamExists('apiV1CountriesCountryIdCurrenciesGet', 'countryId', countryId)
216
+ const localVarPath = `/api/v1/countries/{countryId}/currencies`
217
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)));
218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
220
+ let baseOptions;
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ }
224
+
225
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
226
+ const localVarHeaderParameter = {} as any;
227
+ const localVarQueryParameter = {} as any;
228
+
229
+ // authentication oauth2 required
230
+ // oauth required
231
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
232
+
233
+ if (currencyId !== undefined) {
234
+ localVarQueryParameter['CurrencyId'] = currencyId;
235
+ }
236
+
237
+ if (currencyCode !== undefined) {
238
+ localVarQueryParameter['CurrencyCode'] = currencyCode;
239
+ }
240
+
241
+ if (page !== undefined) {
242
+ localVarQueryParameter['page'] = page;
243
+ }
244
+
245
+ if (limit !== undefined) {
246
+ localVarQueryParameter['limit'] = limit;
247
+ }
248
+
249
+ if (lastRetrieved !== undefined) {
250
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
251
+ (lastRetrieved as any).toISOString() :
252
+ lastRetrieved;
253
+ }
254
+
255
+
256
+
257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
260
+
261
+ return {
262
+ url: toPathString(localVarUrlObj),
263
+ options: localVarRequestOptions,
264
+ };
265
+ },
266
+ /**
267
+ *
268
+ * @summary Batch for country\'s currencies sorting
269
+ * @param {string} countryId
270
+ * @param {SortCountryCurrenciesCommand} [sortCountryCurrenciesCommand]
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ apiV1CountriesCountryIdCurrenciesSortPut: async (countryId: string, sortCountryCurrenciesCommand?: SortCountryCurrenciesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'countryId' is not null or undefined
276
+ assertParamExists('apiV1CountriesCountryIdCurrenciesSortPut', 'countryId', countryId)
277
+ const localVarPath = `/api/v1/countries/{countryId}/currencies/sort`
278
+ .replace(`{${"countryId"}}`, encodeURIComponent(String(countryId)));
279
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
280
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
281
+ let baseOptions;
282
+ if (configuration) {
283
+ baseOptions = configuration.baseOptions;
284
+ }
285
+
286
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
287
+ const localVarHeaderParameter = {} as any;
288
+ const localVarQueryParameter = {} as any;
289
+
290
+ // authentication oauth2 required
291
+ // oauth required
292
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
293
+
294
+
295
+
296
+ localVarHeaderParameter['Content-Type'] = 'application/json';
297
+
298
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
301
+ localVarRequestOptions.data = serializeDataIfNeeded(sortCountryCurrenciesCommand, localVarRequestOptions, configuration)
302
+
303
+ return {
304
+ url: toPathString(localVarUrlObj),
305
+ options: localVarRequestOptions,
306
+ };
307
+ },
63
308
  /**
64
309
  *
65
310
  * @summary Delete country.
@@ -997,6 +1242,71 @@ export const CountriesApiAxiosParamCreator = function (configuration?: Configura
997
1242
  export const CountriesApiFp = function(configuration?: Configuration) {
998
1243
  const localVarAxiosParamCreator = CountriesApiAxiosParamCreator(configuration)
999
1244
  return {
1245
+ /**
1246
+ *
1247
+ * @summary Remove currency from country language list
1248
+ * @param {string} countryId
1249
+ * @param {string} currencyId
1250
+ * @param {*} [options] Override http request option.
1251
+ * @throws {RequiredError}
1252
+ */
1253
+ async apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(countryId: string, currencyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
1254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(countryId, currencyId, options);
1255
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1256
+ },
1257
+ /**
1258
+ *
1259
+ * @summary Get currncy of country
1260
+ * @param {string} countryId
1261
+ * @param {string} currencyId
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ */
1265
+ async apiV1CountriesCountryIdCurrenciesCurrencyIdGet(countryId: string, currencyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryCurrencyModel>> {
1266
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesCurrencyIdGet(countryId, currencyId, options);
1267
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1268
+ },
1269
+ /**
1270
+ *
1271
+ * @summary Add currency into country language list
1272
+ * @param {string} countryId
1273
+ * @param {string} currencyId
1274
+ * @param {SaveCountryCurrencyCommand} [saveCountryCurrencyCommand]
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ */
1278
+ async apiV1CountriesCountryIdCurrenciesCurrencyIdPost(countryId: string, currencyId: string, saveCountryCurrencyCommand?: SaveCountryCurrencyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryCurrencyModel>> {
1279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesCurrencyIdPost(countryId, currencyId, saveCountryCurrencyCommand, options);
1280
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1281
+ },
1282
+ /**
1283
+ *
1284
+ * @summary Get currencies list of country
1285
+ * @param {string} countryId
1286
+ * @param {string} [currencyId]
1287
+ * @param {string} [currencyCode]
1288
+ * @param {number} [page]
1289
+ * @param {number} [limit]
1290
+ * @param {Date} [lastRetrieved]
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ */
1294
+ async apiV1CountriesCountryIdCurrenciesGet(countryId: string, currencyId?: string, currencyCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CountryCurrenciesModel>> {
1295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesGet(countryId, currencyId, currencyCode, page, limit, lastRetrieved, options);
1296
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1297
+ },
1298
+ /**
1299
+ *
1300
+ * @summary Batch for country\'s currencies sorting
1301
+ * @param {string} countryId
1302
+ * @param {SortCountryCurrenciesCommand} [sortCountryCurrenciesCommand]
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
1306
+ async apiV1CountriesCountryIdCurrenciesSortPut(countryId: string, sortCountryCurrenciesCommand?: SortCountryCurrenciesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SortingResultModel>> {
1307
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesSortPut(countryId, sortCountryCurrenciesCommand, options);
1308
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1309
+ },
1000
1310
  /**
1001
1311
  *
1002
1312
  * @summary Delete country.
@@ -1261,6 +1571,66 @@ export const CountriesApiFp = function(configuration?: Configuration) {
1261
1571
  export const CountriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1262
1572
  const localVarFp = CountriesApiFp(configuration)
1263
1573
  return {
1574
+ /**
1575
+ *
1576
+ * @summary Remove currency from country language list
1577
+ * @param {string} countryId
1578
+ * @param {string} currencyId
1579
+ * @param {*} [options] Override http request option.
1580
+ * @throws {RequiredError}
1581
+ */
1582
+ apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(countryId: string, currencyId: string, options?: any): AxiosPromise<boolean> {
1583
+ return localVarFp.apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(countryId, currencyId, options).then((request) => request(axios, basePath));
1584
+ },
1585
+ /**
1586
+ *
1587
+ * @summary Get currncy of country
1588
+ * @param {string} countryId
1589
+ * @param {string} currencyId
1590
+ * @param {*} [options] Override http request option.
1591
+ * @throws {RequiredError}
1592
+ */
1593
+ apiV1CountriesCountryIdCurrenciesCurrencyIdGet(countryId: string, currencyId: string, options?: any): AxiosPromise<CountryCurrencyModel> {
1594
+ return localVarFp.apiV1CountriesCountryIdCurrenciesCurrencyIdGet(countryId, currencyId, options).then((request) => request(axios, basePath));
1595
+ },
1596
+ /**
1597
+ *
1598
+ * @summary Add currency into country language list
1599
+ * @param {string} countryId
1600
+ * @param {string} currencyId
1601
+ * @param {SaveCountryCurrencyCommand} [saveCountryCurrencyCommand]
1602
+ * @param {*} [options] Override http request option.
1603
+ * @throws {RequiredError}
1604
+ */
1605
+ apiV1CountriesCountryIdCurrenciesCurrencyIdPost(countryId: string, currencyId: string, saveCountryCurrencyCommand?: SaveCountryCurrencyCommand, options?: any): AxiosPromise<CountryCurrencyModel> {
1606
+ return localVarFp.apiV1CountriesCountryIdCurrenciesCurrencyIdPost(countryId, currencyId, saveCountryCurrencyCommand, options).then((request) => request(axios, basePath));
1607
+ },
1608
+ /**
1609
+ *
1610
+ * @summary Get currencies list of country
1611
+ * @param {string} countryId
1612
+ * @param {string} [currencyId]
1613
+ * @param {string} [currencyCode]
1614
+ * @param {number} [page]
1615
+ * @param {number} [limit]
1616
+ * @param {Date} [lastRetrieved]
1617
+ * @param {*} [options] Override http request option.
1618
+ * @throws {RequiredError}
1619
+ */
1620
+ apiV1CountriesCountryIdCurrenciesGet(countryId: string, currencyId?: string, currencyCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<CountryCurrenciesModel> {
1621
+ return localVarFp.apiV1CountriesCountryIdCurrenciesGet(countryId, currencyId, currencyCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
1622
+ },
1623
+ /**
1624
+ *
1625
+ * @summary Batch for country\'s currencies sorting
1626
+ * @param {string} countryId
1627
+ * @param {SortCountryCurrenciesCommand} [sortCountryCurrenciesCommand]
1628
+ * @param {*} [options] Override http request option.
1629
+ * @throws {RequiredError}
1630
+ */
1631
+ apiV1CountriesCountryIdCurrenciesSortPut(countryId: string, sortCountryCurrenciesCommand?: SortCountryCurrenciesCommand, options?: any): AxiosPromise<SortingResultModel> {
1632
+ return localVarFp.apiV1CountriesCountryIdCurrenciesSortPut(countryId, sortCountryCurrenciesCommand, options).then((request) => request(axios, basePath));
1633
+ },
1264
1634
  /**
1265
1635
  *
1266
1636
  * @summary Delete country.
@@ -1498,6 +1868,146 @@ export const CountriesApiFactory = function (configuration?: Configuration, base
1498
1868
  };
1499
1869
  };
1500
1870
 
1871
+ /**
1872
+ * Request parameters for apiV1CountriesCountryIdCurrenciesCurrencyIdDelete operation in CountriesApi.
1873
+ * @export
1874
+ * @interface CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdDeleteRequest
1875
+ */
1876
+ export interface CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdDeleteRequest {
1877
+ /**
1878
+ *
1879
+ * @type {string}
1880
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdDelete
1881
+ */
1882
+ readonly countryId: string
1883
+
1884
+ /**
1885
+ *
1886
+ * @type {string}
1887
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdDelete
1888
+ */
1889
+ readonly currencyId: string
1890
+ }
1891
+
1892
+ /**
1893
+ * Request parameters for apiV1CountriesCountryIdCurrenciesCurrencyIdGet operation in CountriesApi.
1894
+ * @export
1895
+ * @interface CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdGetRequest
1896
+ */
1897
+ export interface CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdGetRequest {
1898
+ /**
1899
+ *
1900
+ * @type {string}
1901
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdGet
1902
+ */
1903
+ readonly countryId: string
1904
+
1905
+ /**
1906
+ *
1907
+ * @type {string}
1908
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdGet
1909
+ */
1910
+ readonly currencyId: string
1911
+ }
1912
+
1913
+ /**
1914
+ * Request parameters for apiV1CountriesCountryIdCurrenciesCurrencyIdPost operation in CountriesApi.
1915
+ * @export
1916
+ * @interface CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPostRequest
1917
+ */
1918
+ export interface CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPostRequest {
1919
+ /**
1920
+ *
1921
+ * @type {string}
1922
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPost
1923
+ */
1924
+ readonly countryId: string
1925
+
1926
+ /**
1927
+ *
1928
+ * @type {string}
1929
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPost
1930
+ */
1931
+ readonly currencyId: string
1932
+
1933
+ /**
1934
+ *
1935
+ * @type {SaveCountryCurrencyCommand}
1936
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPost
1937
+ */
1938
+ readonly saveCountryCurrencyCommand?: SaveCountryCurrencyCommand
1939
+ }
1940
+
1941
+ /**
1942
+ * Request parameters for apiV1CountriesCountryIdCurrenciesGet operation in CountriesApi.
1943
+ * @export
1944
+ * @interface CountriesApiApiV1CountriesCountryIdCurrenciesGetRequest
1945
+ */
1946
+ export interface CountriesApiApiV1CountriesCountryIdCurrenciesGetRequest {
1947
+ /**
1948
+ *
1949
+ * @type {string}
1950
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesGet
1951
+ */
1952
+ readonly countryId: string
1953
+
1954
+ /**
1955
+ *
1956
+ * @type {string}
1957
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesGet
1958
+ */
1959
+ readonly currencyId?: string
1960
+
1961
+ /**
1962
+ *
1963
+ * @type {string}
1964
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesGet
1965
+ */
1966
+ readonly currencyCode?: string
1967
+
1968
+ /**
1969
+ *
1970
+ * @type {number}
1971
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesGet
1972
+ */
1973
+ readonly page?: number
1974
+
1975
+ /**
1976
+ *
1977
+ * @type {number}
1978
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesGet
1979
+ */
1980
+ readonly limit?: number
1981
+
1982
+ /**
1983
+ *
1984
+ * @type {Date}
1985
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesGet
1986
+ */
1987
+ readonly lastRetrieved?: Date
1988
+ }
1989
+
1990
+ /**
1991
+ * Request parameters for apiV1CountriesCountryIdCurrenciesSortPut operation in CountriesApi.
1992
+ * @export
1993
+ * @interface CountriesApiApiV1CountriesCountryIdCurrenciesSortPutRequest
1994
+ */
1995
+ export interface CountriesApiApiV1CountriesCountryIdCurrenciesSortPutRequest {
1996
+ /**
1997
+ *
1998
+ * @type {string}
1999
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesSortPut
2000
+ */
2001
+ readonly countryId: string
2002
+
2003
+ /**
2004
+ *
2005
+ * @type {SortCountryCurrenciesCommand}
2006
+ * @memberof CountriesApiApiV1CountriesCountryIdCurrenciesSortPut
2007
+ */
2008
+ readonly sortCountryCurrenciesCommand?: SortCountryCurrenciesCommand
2009
+ }
2010
+
1501
2011
  /**
1502
2012
  * Request parameters for apiV1CountriesCountryIdDelete operation in CountriesApi.
1503
2013
  * @export
@@ -2023,6 +2533,66 @@ export interface CountriesApiApiV1CountriesSortPutRequest {
2023
2533
  * @extends {BaseAPI}
2024
2534
  */
2025
2535
  export class CountriesApi extends BaseAPI {
2536
+ /**
2537
+ *
2538
+ * @summary Remove currency from country language list
2539
+ * @param {CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdDeleteRequest} requestParameters Request parameters.
2540
+ * @param {*} [options] Override http request option.
2541
+ * @throws {RequiredError}
2542
+ * @memberof CountriesApi
2543
+ */
2544
+ public apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(requestParameters: CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdDeleteRequest, options?: AxiosRequestConfig) {
2545
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(requestParameters.countryId, requestParameters.currencyId, options).then((request) => request(this.axios, this.basePath));
2546
+ }
2547
+
2548
+ /**
2549
+ *
2550
+ * @summary Get currncy of country
2551
+ * @param {CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdGetRequest} requestParameters Request parameters.
2552
+ * @param {*} [options] Override http request option.
2553
+ * @throws {RequiredError}
2554
+ * @memberof CountriesApi
2555
+ */
2556
+ public apiV1CountriesCountryIdCurrenciesCurrencyIdGet(requestParameters: CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdGetRequest, options?: AxiosRequestConfig) {
2557
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdCurrenciesCurrencyIdGet(requestParameters.countryId, requestParameters.currencyId, options).then((request) => request(this.axios, this.basePath));
2558
+ }
2559
+
2560
+ /**
2561
+ *
2562
+ * @summary Add currency into country language list
2563
+ * @param {CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPostRequest} requestParameters Request parameters.
2564
+ * @param {*} [options] Override http request option.
2565
+ * @throws {RequiredError}
2566
+ * @memberof CountriesApi
2567
+ */
2568
+ public apiV1CountriesCountryIdCurrenciesCurrencyIdPost(requestParameters: CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPostRequest, options?: AxiosRequestConfig) {
2569
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdCurrenciesCurrencyIdPost(requestParameters.countryId, requestParameters.currencyId, requestParameters.saveCountryCurrencyCommand, options).then((request) => request(this.axios, this.basePath));
2570
+ }
2571
+
2572
+ /**
2573
+ *
2574
+ * @summary Get currencies list of country
2575
+ * @param {CountriesApiApiV1CountriesCountryIdCurrenciesGetRequest} requestParameters Request parameters.
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ * @memberof CountriesApi
2579
+ */
2580
+ public apiV1CountriesCountryIdCurrenciesGet(requestParameters: CountriesApiApiV1CountriesCountryIdCurrenciesGetRequest, options?: AxiosRequestConfig) {
2581
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdCurrenciesGet(requestParameters.countryId, requestParameters.currencyId, requestParameters.currencyCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
2582
+ }
2583
+
2584
+ /**
2585
+ *
2586
+ * @summary Batch for country\'s currencies sorting
2587
+ * @param {CountriesApiApiV1CountriesCountryIdCurrenciesSortPutRequest} requestParameters Request parameters.
2588
+ * @param {*} [options] Override http request option.
2589
+ * @throws {RequiredError}
2590
+ * @memberof CountriesApi
2591
+ */
2592
+ public apiV1CountriesCountryIdCurrenciesSortPut(requestParameters: CountriesApiApiV1CountriesCountryIdCurrenciesSortPutRequest, options?: AxiosRequestConfig) {
2593
+ return CountriesApiFp(this.configuration).apiV1CountriesCountryIdCurrenciesSortPut(requestParameters.countryId, requestParameters.sortCountryCurrenciesCommand, options).then((request) => request(this.axios, this.basePath));
2594
+ }
2595
+
2026
2596
  /**
2027
2597
  *
2028
2598
  * @summary Delete country.