wildberries-sdk 0.1.17__py3-none-any.whl → 0.1.19__py3-none-any.whl

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 (96) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/finances/models/detail_report_item.py +6 -2
  17. wildberries_sdk/general/__init__.py +3 -7
  18. wildberries_sdk/general/api/__init__.py +1 -3
  19. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  20. wildberries_sdk/general/api_client.py +1 -1
  21. wildberries_sdk/general/configuration.py +1 -1
  22. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  23. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  24. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  25. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  26. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  27. wildberries_sdk/orders_dbs/__init__.py +3 -5
  28. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  29. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  30. wildberries_sdk/orders_dbs/api_client.py +1 -1
  31. wildberries_sdk/orders_dbs/configuration.py +1 -1
  32. wildberries_sdk/orders_dbw/__init__.py +3 -5
  33. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  34. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  35. wildberries_sdk/orders_dbw/api_client.py +1 -1
  36. wildberries_sdk/orders_dbw/configuration.py +1 -1
  37. wildberries_sdk/orders_fbs/__init__.py +3 -5
  38. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  39. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  40. wildberries_sdk/orders_fbs/api_client.py +1 -1
  41. wildberries_sdk/orders_fbs/configuration.py +1 -1
  42. wildberries_sdk/orders_fbw/__init__.py +3 -5
  43. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  44. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  45. wildberries_sdk/orders_fbw/api_client.py +1 -1
  46. wildberries_sdk/orders_fbw/configuration.py +1 -1
  47. wildberries_sdk/products/__init__.py +1 -7
  48. wildberries_sdk/products/api/__init__.py +0 -3
  49. wildberries_sdk/products/api/default_api.py +12348 -2
  50. wildberries_sdk/products/api_client.py +1 -1
  51. wildberries_sdk/products/configuration.py +1 -1
  52. wildberries_sdk/products/models/content_v2_cards_update_post_request_inner_dimensions.py +1 -1
  53. wildberries_sdk/products/models/content_v2_cards_upload_add_post_request_cards_to_add_inner_dimensions.py +1 -1
  54. wildberries_sdk/products/models/content_v2_cards_upload_post_request_inner_variants_inner_dimensions.py +1 -1
  55. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  56. wildberries_sdk/promotion/__init__.py +1 -3
  57. wildberries_sdk/promotion/api/__init__.py +0 -1
  58. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  59. wildberries_sdk/promotion/api_client.py +1 -1
  60. wildberries_sdk/promotion/configuration.py +1 -1
  61. wildberries_sdk/reports/__init__.py +3 -13
  62. wildberries_sdk/reports/api/__init__.py +1 -6
  63. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  64. wildberries_sdk/reports/api_client.py +1 -1
  65. wildberries_sdk/reports/configuration.py +1 -1
  66. wildberries_sdk/tariffs/__init__.py +1 -3
  67. wildberries_sdk/tariffs/api/__init__.py +0 -1
  68. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  69. wildberries_sdk/tariffs/api_client.py +1 -1
  70. wildberries_sdk/tariffs/configuration.py +1 -1
  71. wildberries_sdk/wbd/__init__.py +1 -3
  72. wildberries_sdk/wbd/api/__init__.py +0 -1
  73. wildberries_sdk/wbd/api/default_api.py +1662 -89
  74. wildberries_sdk/wbd/api_client.py +1 -1
  75. wildberries_sdk/wbd/configuration.py +1 -1
  76. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  77. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  78. wildberries_sdk-0.1.19.dist-info/METADATA +390 -0
  79. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/RECORD +82 -92
  80. wildberries_sdk/analytics/api/api.py +0 -1490
  81. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  82. wildberries_sdk/communications/api/api.py +0 -1166
  83. wildberries_sdk/finances/api/api.py +0 -404
  84. wildberries_sdk/general/api/api_api.py +0 -341
  85. wildberries_sdk/general/api/wbapi_api.py +0 -291
  86. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  87. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  88. wildberries_sdk/products/api/api.py +0 -3891
  89. wildberries_sdk/reports/api/api.py +0 -350
  90. wildberries_sdk/reports/api/c_api.py +0 -361
  91. wildberries_sdk/tariffs/api/api.py +0 -1151
  92. wildberries_sdk/wbd/api/api.py +0 -1611
  93. wildberries_sdk-0.1.17.dist-info/METADATA +0 -191
  94. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/LICENSE +0 -0
  95. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/WHEEL +0 -0
  96. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/top_level.txt +0 -0
@@ -1,1611 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Wildberries Цифровой
5
-
6
- По вопросам работы с WBD API обращайтесь в <a href=\"https://digital.wildberries.ru/support\" target=\"_blank\">техническую поддержку</a>
7
-
8
- The version of the OpenAPI document: wbd
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
- import warnings
15
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
- from typing import Any, Dict, List, Optional, Tuple, Union
17
- from typing_extensions import Annotated
18
-
19
- from pydantic import Field, StrictBool, StrictInt, StrictStr
20
- from typing import List, Optional
21
- from typing_extensions import Annotated
22
- from wildberries_sdk.wbd.models.keys_count_response import KeysCountResponse
23
- from wildberries_sdk.wbd.models.keys_delete_response import KeysDeleteResponse
24
- from wildberries_sdk.wbd.models.keys_load_request import KeysLoadRequest
25
- from wildberries_sdk.wbd.models.keys_redeemed_response_list import KeysRedeemedResponseList
26
- from wildberries_sdk.wbd.models.keys_response_list import KeysResponseList
27
-
28
- from wildberries_sdk.wbd.api_client import ApiClient, RequestSerialized
29
- from wildberries_sdk.wbd.api_response import ApiResponse
30
- from wildberries_sdk.wbd.rest import RESTResponseType
31
-
32
-
33
- class Api:
34
- """NOTE: This class is auto generated by OpenAPI Generator
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
- """
39
-
40
- def __init__(self, api_client=None) -> None:
41
- if api_client is None:
42
- api_client = ApiClient.get_default()
43
- self.api_client = api_client
44
-
45
-
46
- @validate_call
47
- def delete_keys_by_ids(
48
- self,
49
- ids: Annotated[List[StrictInt], Field(description="Список ID ключей")],
50
- _request_timeout: Union[
51
- None,
52
- Annotated[StrictFloat, Field(gt=0)],
53
- Tuple[
54
- Annotated[StrictFloat, Field(gt=0)],
55
- Annotated[StrictFloat, Field(gt=0)]
56
- ]
57
- ] = None,
58
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
- _content_type: Optional[StrictStr] = None,
60
- _headers: Optional[Dict[StrictStr, Any]] = None,
61
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
62
- ) -> KeysDeleteResponse:
63
- """Удалить ключи активации
64
-
65
- Метод позволяет удалить ключи активации по их ID. <div class=\"description_important\"> Доступ к методу предоставляется через заявку в <a href=\"https://digital.wildberries.ru/support\" target=\"_black\">техническую поддержку</a>. </div> <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
66
-
67
- :param ids: Список ID ключей (required)
68
- :type ids: List[int]
69
- :param _request_timeout: timeout setting for this request. If one
70
- number provided, it will be total request
71
- timeout. It can also be a pair (tuple) of
72
- (connection, read) timeouts.
73
- :type _request_timeout: int, tuple(int, int), optional
74
- :param _request_auth: set to override the auth_settings for an a single
75
- request; this effectively ignores the
76
- authentication in the spec for a single request.
77
- :type _request_auth: dict, optional
78
- :param _content_type: force content-type for the request.
79
- :type _content_type: str, Optional
80
- :param _headers: set to override the headers for a single
81
- request; this effectively ignores the headers
82
- in the spec for a single request.
83
- :type _headers: dict, optional
84
- :param _host_index: set to override the host_index for a single
85
- request; this effectively ignores the host_index
86
- in the spec for a single request.
87
- :type _host_index: int, optional
88
- :return: Returns the result object.
89
- """ # noqa: E501
90
-
91
- _param = self._delete_keys_by_ids_serialize(
92
- ids=ids,
93
- _request_auth=_request_auth,
94
- _content_type=_content_type,
95
- _headers=_headers,
96
- _host_index=_host_index
97
- )
98
-
99
- _response_types_map: Dict[str, Optional[str]] = {
100
- '200': "KeysDeleteResponse",
101
- '207': "KeysDeleteResponse",
102
- '400': "ProblemDetails400",
103
- '401': "ProblemDetails401",
104
- '403': "ProblemDetails403",
105
- '404': "ProblemDetails404",
106
- '500': "ProblemDetails500",
107
- }
108
- response_data = self.api_client.call_api(
109
- *_param,
110
- _request_timeout=_request_timeout
111
- )
112
- response_data.read()
113
- return self.api_client.response_deserialize(
114
- response_data=response_data,
115
- response_types_map=_response_types_map,
116
- ).data
117
-
118
-
119
- @validate_call
120
- def delete_keys_by_ids_with_http_info(
121
- self,
122
- ids: Annotated[List[StrictInt], Field(description="Список ID ключей")],
123
- _request_timeout: Union[
124
- None,
125
- Annotated[StrictFloat, Field(gt=0)],
126
- Tuple[
127
- Annotated[StrictFloat, Field(gt=0)],
128
- Annotated[StrictFloat, Field(gt=0)]
129
- ]
130
- ] = None,
131
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
132
- _content_type: Optional[StrictStr] = None,
133
- _headers: Optional[Dict[StrictStr, Any]] = None,
134
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
135
- ) -> ApiResponse[KeysDeleteResponse]:
136
- """Удалить ключи активации
137
-
138
- Метод позволяет удалить ключи активации по их ID. <div class=\"description_important\"> Доступ к методу предоставляется через заявку в <a href=\"https://digital.wildberries.ru/support\" target=\"_black\">техническую поддержку</a>. </div> <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
139
-
140
- :param ids: Список ID ключей (required)
141
- :type ids: List[int]
142
- :param _request_timeout: timeout setting for this request. If one
143
- number provided, it will be total request
144
- timeout. It can also be a pair (tuple) of
145
- (connection, read) timeouts.
146
- :type _request_timeout: int, tuple(int, int), optional
147
- :param _request_auth: set to override the auth_settings for an a single
148
- request; this effectively ignores the
149
- authentication in the spec for a single request.
150
- :type _request_auth: dict, optional
151
- :param _content_type: force content-type for the request.
152
- :type _content_type: str, Optional
153
- :param _headers: set to override the headers for a single
154
- request; this effectively ignores the headers
155
- in the spec for a single request.
156
- :type _headers: dict, optional
157
- :param _host_index: set to override the host_index for a single
158
- request; this effectively ignores the host_index
159
- in the spec for a single request.
160
- :type _host_index: int, optional
161
- :return: Returns the result object.
162
- """ # noqa: E501
163
-
164
- _param = self._delete_keys_by_ids_serialize(
165
- ids=ids,
166
- _request_auth=_request_auth,
167
- _content_type=_content_type,
168
- _headers=_headers,
169
- _host_index=_host_index
170
- )
171
-
172
- _response_types_map: Dict[str, Optional[str]] = {
173
- '200': "KeysDeleteResponse",
174
- '207': "KeysDeleteResponse",
175
- '400': "ProblemDetails400",
176
- '401': "ProblemDetails401",
177
- '403': "ProblemDetails403",
178
- '404': "ProblemDetails404",
179
- '500': "ProblemDetails500",
180
- }
181
- response_data = self.api_client.call_api(
182
- *_param,
183
- _request_timeout=_request_timeout
184
- )
185
- response_data.read()
186
- return self.api_client.response_deserialize(
187
- response_data=response_data,
188
- response_types_map=_response_types_map,
189
- )
190
-
191
-
192
- @validate_call
193
- def delete_keys_by_ids_without_preload_content(
194
- self,
195
- ids: Annotated[List[StrictInt], Field(description="Список ID ключей")],
196
- _request_timeout: Union[
197
- None,
198
- Annotated[StrictFloat, Field(gt=0)],
199
- Tuple[
200
- Annotated[StrictFloat, Field(gt=0)],
201
- Annotated[StrictFloat, Field(gt=0)]
202
- ]
203
- ] = None,
204
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
205
- _content_type: Optional[StrictStr] = None,
206
- _headers: Optional[Dict[StrictStr, Any]] = None,
207
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
208
- ) -> RESTResponseType:
209
- """Удалить ключи активации
210
-
211
- Метод позволяет удалить ключи активации по их ID. <div class=\"description_important\"> Доступ к методу предоставляется через заявку в <a href=\"https://digital.wildberries.ru/support\" target=\"_black\">техническую поддержку</a>. </div> <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
212
-
213
- :param ids: Список ID ключей (required)
214
- :type ids: List[int]
215
- :param _request_timeout: timeout setting for this request. If one
216
- number provided, it will be total request
217
- timeout. It can also be a pair (tuple) of
218
- (connection, read) timeouts.
219
- :type _request_timeout: int, tuple(int, int), optional
220
- :param _request_auth: set to override the auth_settings for an a single
221
- request; this effectively ignores the
222
- authentication in the spec for a single request.
223
- :type _request_auth: dict, optional
224
- :param _content_type: force content-type for the request.
225
- :type _content_type: str, Optional
226
- :param _headers: set to override the headers for a single
227
- request; this effectively ignores the headers
228
- in the spec for a single request.
229
- :type _headers: dict, optional
230
- :param _host_index: set to override the host_index for a single
231
- request; this effectively ignores the host_index
232
- in the spec for a single request.
233
- :type _host_index: int, optional
234
- :return: Returns the result object.
235
- """ # noqa: E501
236
-
237
- _param = self._delete_keys_by_ids_serialize(
238
- ids=ids,
239
- _request_auth=_request_auth,
240
- _content_type=_content_type,
241
- _headers=_headers,
242
- _host_index=_host_index
243
- )
244
-
245
- _response_types_map: Dict[str, Optional[str]] = {
246
- '200': "KeysDeleteResponse",
247
- '207': "KeysDeleteResponse",
248
- '400': "ProblemDetails400",
249
- '401': "ProblemDetails401",
250
- '403': "ProblemDetails403",
251
- '404': "ProblemDetails404",
252
- '500': "ProblemDetails500",
253
- }
254
- response_data = self.api_client.call_api(
255
- *_param,
256
- _request_timeout=_request_timeout
257
- )
258
- return response_data.response
259
-
260
-
261
- def _delete_keys_by_ids_serialize(
262
- self,
263
- ids,
264
- _request_auth,
265
- _content_type,
266
- _headers,
267
- _host_index,
268
- ) -> RequestSerialized:
269
-
270
- _hosts = [
271
- 'https://devapi-digital.wildberries.ru'
272
- ]
273
- _host = _hosts[_host_index]
274
-
275
- _collection_formats: Dict[str, str] = {
276
- 'ids': 'multi',
277
- }
278
-
279
- _path_params: Dict[str, str] = {}
280
- _query_params: List[Tuple[str, str]] = []
281
- _header_params: Dict[str, Optional[str]] = _headers or {}
282
- _form_params: List[Tuple[str, str]] = []
283
- _files: Dict[
284
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
285
- ] = {}
286
- _body_params: Optional[bytes] = None
287
-
288
- # process the path parameters
289
- # process the query parameters
290
- if ids is not None:
291
-
292
- _query_params.append(('ids', ids))
293
-
294
- # process the header parameters
295
- # process the form parameters
296
- # process the body parameter
297
-
298
-
299
- # set the HTTP header `Accept`
300
- if 'Accept' not in _header_params:
301
- _header_params['Accept'] = self.api_client.select_header_accept(
302
- [
303
- 'application/json'
304
- ]
305
- )
306
-
307
-
308
- # authentication setting
309
- _auth_settings: List[str] = [
310
- 'ApiKeyAuth'
311
- ]
312
-
313
- return self.api_client.param_serialize(
314
- method='DELETE',
315
- resource_path='/api/v1/keys-api/keys',
316
- path_params=_path_params,
317
- query_params=_query_params,
318
- header_params=_header_params,
319
- body=_body_params,
320
- post_params=_form_params,
321
- files=_files,
322
- auth_settings=_auth_settings,
323
- collection_formats=_collection_formats,
324
- _host=_host,
325
- _request_auth=_request_auth
326
- )
327
-
328
-
329
-
330
-
331
- @validate_call
332
- def get_redeemed_keys(
333
- self,
334
- offer_id: Annotated[Optional[StrictInt], Field(description="Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением")] = None,
335
- skip: Annotated[Optional[StrictInt], Field(description="Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации")] = None,
336
- take: Annotated[Optional[StrictInt], Field(description="Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе")] = None,
337
- date_from: Annotated[Optional[StrictStr], Field(description="Фильтрация по дате покупки начиная с указанной даты (включительно).<br><br> Формат даты: **RFC3339** (`2023-06-17T19:20:30Z`) ")] = None,
338
- date_to: Annotated[Optional[StrictStr], Field(description="Фильтрация по дате покупки до указанной даты (не включительно). Формат даты: **RFC3339** (`2024-10-18T19:20:30Z`) ")] = None,
339
- _request_timeout: Union[
340
- None,
341
- Annotated[StrictFloat, Field(gt=0)],
342
- Tuple[
343
- Annotated[StrictFloat, Field(gt=0)],
344
- Annotated[StrictFloat, Field(gt=0)]
345
- ]
346
- ] = None,
347
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
348
- _content_type: Optional[StrictStr] = None,
349
- _headers: Optional[Dict[StrictStr, Any]] = None,
350
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
351
- ) -> KeysRedeemedResponseList:
352
- """Получить купленные ключи
353
-
354
- Метод позволяет получить список купленных ключей с использованием фильтрации.<br><br> **Описание параметров фильтрации** - `offer_id` — Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением. - `skip` — Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе.<br> **Например**, если `skip` равно 20, то выборка начнется с 21 записи. - `take` — Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе.<br> **Например**, если `take` равно 10, то в ответе будет не более 10 записей. - `date_from` — Фильтрация по дате покупки начиная с указанной даты (включительно).<br> Формат даты: **RFC3339**. - `date_to` — Фильтрация по дате покупки до указанной даты (не включительно).<br> Формат даты: **RFC3339**. <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
355
-
356
- :param offer_id: Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением
357
- :type offer_id: int
358
- :param skip: Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации
359
- :type skip: int
360
- :param take: Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе
361
- :type take: int
362
- :param date_from: Фильтрация по дате покупки начиная с указанной даты (включительно).<br><br> Формат даты: **RFC3339** (`2023-06-17T19:20:30Z`)
363
- :type date_from: str
364
- :param date_to: Фильтрация по дате покупки до указанной даты (не включительно). Формат даты: **RFC3339** (`2024-10-18T19:20:30Z`)
365
- :type date_to: str
366
- :param _request_timeout: timeout setting for this request. If one
367
- number provided, it will be total request
368
- timeout. It can also be a pair (tuple) of
369
- (connection, read) timeouts.
370
- :type _request_timeout: int, tuple(int, int), optional
371
- :param _request_auth: set to override the auth_settings for an a single
372
- request; this effectively ignores the
373
- authentication in the spec for a single request.
374
- :type _request_auth: dict, optional
375
- :param _content_type: force content-type for the request.
376
- :type _content_type: str, Optional
377
- :param _headers: set to override the headers for a single
378
- request; this effectively ignores the headers
379
- in the spec for a single request.
380
- :type _headers: dict, optional
381
- :param _host_index: set to override the host_index for a single
382
- request; this effectively ignores the host_index
383
- in the spec for a single request.
384
- :type _host_index: int, optional
385
- :return: Returns the result object.
386
- """ # noqa: E501
387
-
388
- _param = self._get_redeemed_keys_serialize(
389
- offer_id=offer_id,
390
- skip=skip,
391
- take=take,
392
- date_from=date_from,
393
- date_to=date_to,
394
- _request_auth=_request_auth,
395
- _content_type=_content_type,
396
- _headers=_headers,
397
- _host_index=_host_index
398
- )
399
-
400
- _response_types_map: Dict[str, Optional[str]] = {
401
- '200': "KeysRedeemedResponseList",
402
- '401': "ProblemDetails401",
403
- '500': "ProblemDetails500",
404
- }
405
- response_data = self.api_client.call_api(
406
- *_param,
407
- _request_timeout=_request_timeout
408
- )
409
- response_data.read()
410
- return self.api_client.response_deserialize(
411
- response_data=response_data,
412
- response_types_map=_response_types_map,
413
- ).data
414
-
415
-
416
- @validate_call
417
- def get_redeemed_keys_with_http_info(
418
- self,
419
- offer_id: Annotated[Optional[StrictInt], Field(description="Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением")] = None,
420
- skip: Annotated[Optional[StrictInt], Field(description="Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации")] = None,
421
- take: Annotated[Optional[StrictInt], Field(description="Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе")] = None,
422
- date_from: Annotated[Optional[StrictStr], Field(description="Фильтрация по дате покупки начиная с указанной даты (включительно).<br><br> Формат даты: **RFC3339** (`2023-06-17T19:20:30Z`) ")] = None,
423
- date_to: Annotated[Optional[StrictStr], Field(description="Фильтрация по дате покупки до указанной даты (не включительно). Формат даты: **RFC3339** (`2024-10-18T19:20:30Z`) ")] = None,
424
- _request_timeout: Union[
425
- None,
426
- Annotated[StrictFloat, Field(gt=0)],
427
- Tuple[
428
- Annotated[StrictFloat, Field(gt=0)],
429
- Annotated[StrictFloat, Field(gt=0)]
430
- ]
431
- ] = None,
432
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
433
- _content_type: Optional[StrictStr] = None,
434
- _headers: Optional[Dict[StrictStr, Any]] = None,
435
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
436
- ) -> ApiResponse[KeysRedeemedResponseList]:
437
- """Получить купленные ключи
438
-
439
- Метод позволяет получить список купленных ключей с использованием фильтрации.<br><br> **Описание параметров фильтрации** - `offer_id` — Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением. - `skip` — Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе.<br> **Например**, если `skip` равно 20, то выборка начнется с 21 записи. - `take` — Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе.<br> **Например**, если `take` равно 10, то в ответе будет не более 10 записей. - `date_from` — Фильтрация по дате покупки начиная с указанной даты (включительно).<br> Формат даты: **RFC3339**. - `date_to` — Фильтрация по дате покупки до указанной даты (не включительно).<br> Формат даты: **RFC3339**. <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
440
-
441
- :param offer_id: Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением
442
- :type offer_id: int
443
- :param skip: Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации
444
- :type skip: int
445
- :param take: Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе
446
- :type take: int
447
- :param date_from: Фильтрация по дате покупки начиная с указанной даты (включительно).<br><br> Формат даты: **RFC3339** (`2023-06-17T19:20:30Z`)
448
- :type date_from: str
449
- :param date_to: Фильтрация по дате покупки до указанной даты (не включительно). Формат даты: **RFC3339** (`2024-10-18T19:20:30Z`)
450
- :type date_to: str
451
- :param _request_timeout: timeout setting for this request. If one
452
- number provided, it will be total request
453
- timeout. It can also be a pair (tuple) of
454
- (connection, read) timeouts.
455
- :type _request_timeout: int, tuple(int, int), optional
456
- :param _request_auth: set to override the auth_settings for an a single
457
- request; this effectively ignores the
458
- authentication in the spec for a single request.
459
- :type _request_auth: dict, optional
460
- :param _content_type: force content-type for the request.
461
- :type _content_type: str, Optional
462
- :param _headers: set to override the headers for a single
463
- request; this effectively ignores the headers
464
- in the spec for a single request.
465
- :type _headers: dict, optional
466
- :param _host_index: set to override the host_index for a single
467
- request; this effectively ignores the host_index
468
- in the spec for a single request.
469
- :type _host_index: int, optional
470
- :return: Returns the result object.
471
- """ # noqa: E501
472
-
473
- _param = self._get_redeemed_keys_serialize(
474
- offer_id=offer_id,
475
- skip=skip,
476
- take=take,
477
- date_from=date_from,
478
- date_to=date_to,
479
- _request_auth=_request_auth,
480
- _content_type=_content_type,
481
- _headers=_headers,
482
- _host_index=_host_index
483
- )
484
-
485
- _response_types_map: Dict[str, Optional[str]] = {
486
- '200': "KeysRedeemedResponseList",
487
- '401': "ProblemDetails401",
488
- '500': "ProblemDetails500",
489
- }
490
- response_data = self.api_client.call_api(
491
- *_param,
492
- _request_timeout=_request_timeout
493
- )
494
- response_data.read()
495
- return self.api_client.response_deserialize(
496
- response_data=response_data,
497
- response_types_map=_response_types_map,
498
- )
499
-
500
-
501
- @validate_call
502
- def get_redeemed_keys_without_preload_content(
503
- self,
504
- offer_id: Annotated[Optional[StrictInt], Field(description="Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением")] = None,
505
- skip: Annotated[Optional[StrictInt], Field(description="Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации")] = None,
506
- take: Annotated[Optional[StrictInt], Field(description="Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе")] = None,
507
- date_from: Annotated[Optional[StrictStr], Field(description="Фильтрация по дате покупки начиная с указанной даты (включительно).<br><br> Формат даты: **RFC3339** (`2023-06-17T19:20:30Z`) ")] = None,
508
- date_to: Annotated[Optional[StrictStr], Field(description="Фильтрация по дате покупки до указанной даты (не включительно). Формат даты: **RFC3339** (`2024-10-18T19:20:30Z`) ")] = None,
509
- _request_timeout: Union[
510
- None,
511
- Annotated[StrictFloat, Field(gt=0)],
512
- Tuple[
513
- Annotated[StrictFloat, Field(gt=0)],
514
- Annotated[StrictFloat, Field(gt=0)]
515
- ]
516
- ] = None,
517
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
518
- _content_type: Optional[StrictStr] = None,
519
- _headers: Optional[Dict[StrictStr, Any]] = None,
520
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
521
- ) -> RESTResponseType:
522
- """Получить купленные ключи
523
-
524
- Метод позволяет получить список купленных ключей с использованием фильтрации.<br><br> **Описание параметров фильтрации** - `offer_id` — Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением. - `skip` — Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе.<br> **Например**, если `skip` равно 20, то выборка начнется с 21 записи. - `take` — Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе.<br> **Например**, если `take` равно 10, то в ответе будет не более 10 записей. - `date_from` — Фильтрация по дате покупки начиная с указанной даты (включительно).<br> Формат даты: **RFC3339**. - `date_to` — Фильтрация по дате покупки до указанной даты (не включительно).<br> Формат даты: **RFC3339**. <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
525
-
526
- :param offer_id: Фильтрация по ID предложения. Позволяет выбрать ключи, связанные с определенным предложением
527
- :type offer_id: int
528
- :param skip: Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации
529
- :type skip: int
530
- :param take: Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе
531
- :type take: int
532
- :param date_from: Фильтрация по дате покупки начиная с указанной даты (включительно).<br><br> Формат даты: **RFC3339** (`2023-06-17T19:20:30Z`)
533
- :type date_from: str
534
- :param date_to: Фильтрация по дате покупки до указанной даты (не включительно). Формат даты: **RFC3339** (`2024-10-18T19:20:30Z`)
535
- :type date_to: str
536
- :param _request_timeout: timeout setting for this request. If one
537
- number provided, it will be total request
538
- timeout. It can also be a pair (tuple) of
539
- (connection, read) timeouts.
540
- :type _request_timeout: int, tuple(int, int), optional
541
- :param _request_auth: set to override the auth_settings for an a single
542
- request; this effectively ignores the
543
- authentication in the spec for a single request.
544
- :type _request_auth: dict, optional
545
- :param _content_type: force content-type for the request.
546
- :type _content_type: str, Optional
547
- :param _headers: set to override the headers for a single
548
- request; this effectively ignores the headers
549
- in the spec for a single request.
550
- :type _headers: dict, optional
551
- :param _host_index: set to override the host_index for a single
552
- request; this effectively ignores the host_index
553
- in the spec for a single request.
554
- :type _host_index: int, optional
555
- :return: Returns the result object.
556
- """ # noqa: E501
557
-
558
- _param = self._get_redeemed_keys_serialize(
559
- offer_id=offer_id,
560
- skip=skip,
561
- take=take,
562
- date_from=date_from,
563
- date_to=date_to,
564
- _request_auth=_request_auth,
565
- _content_type=_content_type,
566
- _headers=_headers,
567
- _host_index=_host_index
568
- )
569
-
570
- _response_types_map: Dict[str, Optional[str]] = {
571
- '200': "KeysRedeemedResponseList",
572
- '401': "ProblemDetails401",
573
- '500': "ProblemDetails500",
574
- }
575
- response_data = self.api_client.call_api(
576
- *_param,
577
- _request_timeout=_request_timeout
578
- )
579
- return response_data.response
580
-
581
-
582
- def _get_redeemed_keys_serialize(
583
- self,
584
- offer_id,
585
- skip,
586
- take,
587
- date_from,
588
- date_to,
589
- _request_auth,
590
- _content_type,
591
- _headers,
592
- _host_index,
593
- ) -> RequestSerialized:
594
-
595
- _hosts = [
596
- 'https://devapi-digital.wildberries.ru'
597
- ]
598
- _host = _hosts[_host_index]
599
-
600
- _collection_formats: Dict[str, str] = {
601
- }
602
-
603
- _path_params: Dict[str, str] = {}
604
- _query_params: List[Tuple[str, str]] = []
605
- _header_params: Dict[str, Optional[str]] = _headers or {}
606
- _form_params: List[Tuple[str, str]] = []
607
- _files: Dict[
608
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
609
- ] = {}
610
- _body_params: Optional[bytes] = None
611
-
612
- # process the path parameters
613
- # process the query parameters
614
- if offer_id is not None:
615
-
616
- _query_params.append(('offer_id', offer_id))
617
-
618
- if skip is not None:
619
-
620
- _query_params.append(('skip', skip))
621
-
622
- if take is not None:
623
-
624
- _query_params.append(('take', take))
625
-
626
- if date_from is not None:
627
-
628
- _query_params.append(('date_from', date_from))
629
-
630
- if date_to is not None:
631
-
632
- _query_params.append(('date_to', date_to))
633
-
634
- # process the header parameters
635
- # process the form parameters
636
- # process the body parameter
637
-
638
-
639
- # set the HTTP header `Accept`
640
- if 'Accept' not in _header_params:
641
- _header_params['Accept'] = self.api_client.select_header_accept(
642
- [
643
- 'application/json'
644
- ]
645
- )
646
-
647
-
648
- # authentication setting
649
- _auth_settings: List[str] = [
650
- 'ApiKeyAuth'
651
- ]
652
-
653
- return self.api_client.param_serialize(
654
- method='GET',
655
- resource_path='/api/v1/keys-api/keys/redeemed',
656
- path_params=_path_params,
657
- query_params=_query_params,
658
- header_params=_header_params,
659
- body=_body_params,
660
- post_params=_form_params,
661
- files=_files,
662
- auth_settings=_auth_settings,
663
- collection_formats=_collection_formats,
664
- _host=_host,
665
- _request_auth=_request_auth
666
- )
667
-
668
-
669
-
670
-
671
- @validate_call
672
- def load_keys(
673
- self,
674
- keys_load_request: KeysLoadRequest,
675
- _request_timeout: Union[
676
- None,
677
- Annotated[StrictFloat, Field(gt=0)],
678
- Tuple[
679
- Annotated[StrictFloat, Field(gt=0)],
680
- Annotated[StrictFloat, Field(gt=0)]
681
- ]
682
- ] = None,
683
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
684
- _content_type: Optional[StrictStr] = None,
685
- _headers: Optional[Dict[StrictStr, Any]] = None,
686
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
687
- ) -> None:
688
- """Добавить ключи активации
689
-
690
- Метод позволяет добавить ключи для предложения по ID. <div class=\"description_important\"> Предложение должно быть из категории (<code>section</code>): <ul> <li>Ключи активации — <code>3</code></li> <li>Купоны и развлечения — <code>12</code></li> <li>Подарочные сертификаты — <code>13</code></li> </ul> </div> <div class=\"description_limit\"> Максимум 50 запросов в секунду </div>
691
-
692
- :param keys_load_request: (required)
693
- :type keys_load_request: KeysLoadRequest
694
- :param _request_timeout: timeout setting for this request. If one
695
- number provided, it will be total request
696
- timeout. It can also be a pair (tuple) of
697
- (connection, read) timeouts.
698
- :type _request_timeout: int, tuple(int, int), optional
699
- :param _request_auth: set to override the auth_settings for an a single
700
- request; this effectively ignores the
701
- authentication in the spec for a single request.
702
- :type _request_auth: dict, optional
703
- :param _content_type: force content-type for the request.
704
- :type _content_type: str, Optional
705
- :param _headers: set to override the headers for a single
706
- request; this effectively ignores the headers
707
- in the spec for a single request.
708
- :type _headers: dict, optional
709
- :param _host_index: set to override the host_index for a single
710
- request; this effectively ignores the host_index
711
- in the spec for a single request.
712
- :type _host_index: int, optional
713
- :return: Returns the result object.
714
- """ # noqa: E501
715
-
716
- _param = self._load_keys_serialize(
717
- keys_load_request=keys_load_request,
718
- _request_auth=_request_auth,
719
- _content_type=_content_type,
720
- _headers=_headers,
721
- _host_index=_host_index
722
- )
723
-
724
- _response_types_map: Dict[str, Optional[str]] = {
725
- '200': None,
726
- '401': "ProblemDetails401",
727
- '403': "ProblemDetails403",
728
- '404': "ProblemDetails404",
729
- '500': "ProblemDetails500",
730
- }
731
- response_data = self.api_client.call_api(
732
- *_param,
733
- _request_timeout=_request_timeout
734
- )
735
- response_data.read()
736
- return self.api_client.response_deserialize(
737
- response_data=response_data,
738
- response_types_map=_response_types_map,
739
- ).data
740
-
741
-
742
- @validate_call
743
- def load_keys_with_http_info(
744
- self,
745
- keys_load_request: KeysLoadRequest,
746
- _request_timeout: Union[
747
- None,
748
- Annotated[StrictFloat, Field(gt=0)],
749
- Tuple[
750
- Annotated[StrictFloat, Field(gt=0)],
751
- Annotated[StrictFloat, Field(gt=0)]
752
- ]
753
- ] = None,
754
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
755
- _content_type: Optional[StrictStr] = None,
756
- _headers: Optional[Dict[StrictStr, Any]] = None,
757
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
758
- ) -> ApiResponse[None]:
759
- """Добавить ключи активации
760
-
761
- Метод позволяет добавить ключи для предложения по ID. <div class=\"description_important\"> Предложение должно быть из категории (<code>section</code>): <ul> <li>Ключи активации — <code>3</code></li> <li>Купоны и развлечения — <code>12</code></li> <li>Подарочные сертификаты — <code>13</code></li> </ul> </div> <div class=\"description_limit\"> Максимум 50 запросов в секунду </div>
762
-
763
- :param keys_load_request: (required)
764
- :type keys_load_request: KeysLoadRequest
765
- :param _request_timeout: timeout setting for this request. If one
766
- number provided, it will be total request
767
- timeout. It can also be a pair (tuple) of
768
- (connection, read) timeouts.
769
- :type _request_timeout: int, tuple(int, int), optional
770
- :param _request_auth: set to override the auth_settings for an a single
771
- request; this effectively ignores the
772
- authentication in the spec for a single request.
773
- :type _request_auth: dict, optional
774
- :param _content_type: force content-type for the request.
775
- :type _content_type: str, Optional
776
- :param _headers: set to override the headers for a single
777
- request; this effectively ignores the headers
778
- in the spec for a single request.
779
- :type _headers: dict, optional
780
- :param _host_index: set to override the host_index for a single
781
- request; this effectively ignores the host_index
782
- in the spec for a single request.
783
- :type _host_index: int, optional
784
- :return: Returns the result object.
785
- """ # noqa: E501
786
-
787
- _param = self._load_keys_serialize(
788
- keys_load_request=keys_load_request,
789
- _request_auth=_request_auth,
790
- _content_type=_content_type,
791
- _headers=_headers,
792
- _host_index=_host_index
793
- )
794
-
795
- _response_types_map: Dict[str, Optional[str]] = {
796
- '200': None,
797
- '401': "ProblemDetails401",
798
- '403': "ProblemDetails403",
799
- '404': "ProblemDetails404",
800
- '500': "ProblemDetails500",
801
- }
802
- response_data = self.api_client.call_api(
803
- *_param,
804
- _request_timeout=_request_timeout
805
- )
806
- response_data.read()
807
- return self.api_client.response_deserialize(
808
- response_data=response_data,
809
- response_types_map=_response_types_map,
810
- )
811
-
812
-
813
- @validate_call
814
- def load_keys_without_preload_content(
815
- self,
816
- keys_load_request: KeysLoadRequest,
817
- _request_timeout: Union[
818
- None,
819
- Annotated[StrictFloat, Field(gt=0)],
820
- Tuple[
821
- Annotated[StrictFloat, Field(gt=0)],
822
- Annotated[StrictFloat, Field(gt=0)]
823
- ]
824
- ] = None,
825
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
826
- _content_type: Optional[StrictStr] = None,
827
- _headers: Optional[Dict[StrictStr, Any]] = None,
828
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
829
- ) -> RESTResponseType:
830
- """Добавить ключи активации
831
-
832
- Метод позволяет добавить ключи для предложения по ID. <div class=\"description_important\"> Предложение должно быть из категории (<code>section</code>): <ul> <li>Ключи активации — <code>3</code></li> <li>Купоны и развлечения — <code>12</code></li> <li>Подарочные сертификаты — <code>13</code></li> </ul> </div> <div class=\"description_limit\"> Максимум 50 запросов в секунду </div>
833
-
834
- :param keys_load_request: (required)
835
- :type keys_load_request: KeysLoadRequest
836
- :param _request_timeout: timeout setting for this request. If one
837
- number provided, it will be total request
838
- timeout. It can also be a pair (tuple) of
839
- (connection, read) timeouts.
840
- :type _request_timeout: int, tuple(int, int), optional
841
- :param _request_auth: set to override the auth_settings for an a single
842
- request; this effectively ignores the
843
- authentication in the spec for a single request.
844
- :type _request_auth: dict, optional
845
- :param _content_type: force content-type for the request.
846
- :type _content_type: str, Optional
847
- :param _headers: set to override the headers for a single
848
- request; this effectively ignores the headers
849
- in the spec for a single request.
850
- :type _headers: dict, optional
851
- :param _host_index: set to override the host_index for a single
852
- request; this effectively ignores the host_index
853
- in the spec for a single request.
854
- :type _host_index: int, optional
855
- :return: Returns the result object.
856
- """ # noqa: E501
857
-
858
- _param = self._load_keys_serialize(
859
- keys_load_request=keys_load_request,
860
- _request_auth=_request_auth,
861
- _content_type=_content_type,
862
- _headers=_headers,
863
- _host_index=_host_index
864
- )
865
-
866
- _response_types_map: Dict[str, Optional[str]] = {
867
- '200': None,
868
- '401': "ProblemDetails401",
869
- '403': "ProblemDetails403",
870
- '404': "ProblemDetails404",
871
- '500': "ProblemDetails500",
872
- }
873
- response_data = self.api_client.call_api(
874
- *_param,
875
- _request_timeout=_request_timeout
876
- )
877
- return response_data.response
878
-
879
-
880
- def _load_keys_serialize(
881
- self,
882
- keys_load_request,
883
- _request_auth,
884
- _content_type,
885
- _headers,
886
- _host_index,
887
- ) -> RequestSerialized:
888
-
889
- _hosts = [
890
- 'https://devapi-digital.wildberries.ru'
891
- ]
892
- _host = _hosts[_host_index]
893
-
894
- _collection_formats: Dict[str, str] = {
895
- }
896
-
897
- _path_params: Dict[str, str] = {}
898
- _query_params: List[Tuple[str, str]] = []
899
- _header_params: Dict[str, Optional[str]] = _headers or {}
900
- _form_params: List[Tuple[str, str]] = []
901
- _files: Dict[
902
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
903
- ] = {}
904
- _body_params: Optional[bytes] = None
905
-
906
- # process the path parameters
907
- # process the query parameters
908
- # process the header parameters
909
- # process the form parameters
910
- # process the body parameter
911
- if keys_load_request is not None:
912
- _body_params = keys_load_request
913
-
914
-
915
- # set the HTTP header `Accept`
916
- if 'Accept' not in _header_params:
917
- _header_params['Accept'] = self.api_client.select_header_accept(
918
- [
919
- 'application/json'
920
- ]
921
- )
922
-
923
- # set the HTTP header `Content-Type`
924
- if _content_type:
925
- _header_params['Content-Type'] = _content_type
926
- else:
927
- _default_content_type = (
928
- self.api_client.select_header_content_type(
929
- [
930
- 'application/json'
931
- ]
932
- )
933
- )
934
- if _default_content_type is not None:
935
- _header_params['Content-Type'] = _default_content_type
936
-
937
- # authentication setting
938
- _auth_settings: List[str] = [
939
- 'ApiKeyAuth'
940
- ]
941
-
942
- return self.api_client.param_serialize(
943
- method='POST',
944
- resource_path='/api/v1/keys-api/keys',
945
- path_params=_path_params,
946
- query_params=_query_params,
947
- header_params=_header_params,
948
- body=_body_params,
949
- post_params=_form_params,
950
- files=_files,
951
- auth_settings=_auth_settings,
952
- collection_formats=_collection_formats,
953
- _host=_host,
954
- _request_auth=_request_auth
955
- )
956
-
957
-
958
-
959
-
960
- @validate_call
961
- def offer_keys_count_get(
962
- self,
963
- offer_id: Annotated[StrictInt, Field(description="ID предложения")],
964
- _request_timeout: Union[
965
- None,
966
- Annotated[StrictFloat, Field(gt=0)],
967
- Tuple[
968
- Annotated[StrictFloat, Field(gt=0)],
969
- Annotated[StrictFloat, Field(gt=0)]
970
- ]
971
- ] = None,
972
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
973
- _content_type: Optional[StrictStr] = None,
974
- _headers: Optional[Dict[StrictStr, Any]] = None,
975
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
976
- ) -> KeysCountResponse:
977
- """Получить количество ключей для предложения
978
-
979
- Метод позволяет получить информацию о количестве ключей у конкретного предложения. <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
980
-
981
- :param offer_id: ID предложения (required)
982
- :type offer_id: int
983
- :param _request_timeout: timeout setting for this request. If one
984
- number provided, it will be total request
985
- timeout. It can also be a pair (tuple) of
986
- (connection, read) timeouts.
987
- :type _request_timeout: int, tuple(int, int), optional
988
- :param _request_auth: set to override the auth_settings for an a single
989
- request; this effectively ignores the
990
- authentication in the spec for a single request.
991
- :type _request_auth: dict, optional
992
- :param _content_type: force content-type for the request.
993
- :type _content_type: str, Optional
994
- :param _headers: set to override the headers for a single
995
- request; this effectively ignores the headers
996
- in the spec for a single request.
997
- :type _headers: dict, optional
998
- :param _host_index: set to override the host_index for a single
999
- request; this effectively ignores the host_index
1000
- in the spec for a single request.
1001
- :type _host_index: int, optional
1002
- :return: Returns the result object.
1003
- """ # noqa: E501
1004
-
1005
- _param = self._offer_keys_count_get_serialize(
1006
- offer_id=offer_id,
1007
- _request_auth=_request_auth,
1008
- _content_type=_content_type,
1009
- _headers=_headers,
1010
- _host_index=_host_index
1011
- )
1012
-
1013
- _response_types_map: Dict[str, Optional[str]] = {
1014
- '200': "KeysCountResponse",
1015
- '401': "ProblemDetails401",
1016
- '404': "ProblemDetails404",
1017
- '500': "ProblemDetails500",
1018
- }
1019
- response_data = self.api_client.call_api(
1020
- *_param,
1021
- _request_timeout=_request_timeout
1022
- )
1023
- response_data.read()
1024
- return self.api_client.response_deserialize(
1025
- response_data=response_data,
1026
- response_types_map=_response_types_map,
1027
- ).data
1028
-
1029
-
1030
- @validate_call
1031
- def offer_keys_count_get_with_http_info(
1032
- self,
1033
- offer_id: Annotated[StrictInt, Field(description="ID предложения")],
1034
- _request_timeout: Union[
1035
- None,
1036
- Annotated[StrictFloat, Field(gt=0)],
1037
- Tuple[
1038
- Annotated[StrictFloat, Field(gt=0)],
1039
- Annotated[StrictFloat, Field(gt=0)]
1040
- ]
1041
- ] = None,
1042
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1043
- _content_type: Optional[StrictStr] = None,
1044
- _headers: Optional[Dict[StrictStr, Any]] = None,
1045
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1046
- ) -> ApiResponse[KeysCountResponse]:
1047
- """Получить количество ключей для предложения
1048
-
1049
- Метод позволяет получить информацию о количестве ключей у конкретного предложения. <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
1050
-
1051
- :param offer_id: ID предложения (required)
1052
- :type offer_id: int
1053
- :param _request_timeout: timeout setting for this request. If one
1054
- number provided, it will be total request
1055
- timeout. It can also be a pair (tuple) of
1056
- (connection, read) timeouts.
1057
- :type _request_timeout: int, tuple(int, int), optional
1058
- :param _request_auth: set to override the auth_settings for an a single
1059
- request; this effectively ignores the
1060
- authentication in the spec for a single request.
1061
- :type _request_auth: dict, optional
1062
- :param _content_type: force content-type for the request.
1063
- :type _content_type: str, Optional
1064
- :param _headers: set to override the headers for a single
1065
- request; this effectively ignores the headers
1066
- in the spec for a single request.
1067
- :type _headers: dict, optional
1068
- :param _host_index: set to override the host_index for a single
1069
- request; this effectively ignores the host_index
1070
- in the spec for a single request.
1071
- :type _host_index: int, optional
1072
- :return: Returns the result object.
1073
- """ # noqa: E501
1074
-
1075
- _param = self._offer_keys_count_get_serialize(
1076
- offer_id=offer_id,
1077
- _request_auth=_request_auth,
1078
- _content_type=_content_type,
1079
- _headers=_headers,
1080
- _host_index=_host_index
1081
- )
1082
-
1083
- _response_types_map: Dict[str, Optional[str]] = {
1084
- '200': "KeysCountResponse",
1085
- '401': "ProblemDetails401",
1086
- '404': "ProblemDetails404",
1087
- '500': "ProblemDetails500",
1088
- }
1089
- response_data = self.api_client.call_api(
1090
- *_param,
1091
- _request_timeout=_request_timeout
1092
- )
1093
- response_data.read()
1094
- return self.api_client.response_deserialize(
1095
- response_data=response_data,
1096
- response_types_map=_response_types_map,
1097
- )
1098
-
1099
-
1100
- @validate_call
1101
- def offer_keys_count_get_without_preload_content(
1102
- self,
1103
- offer_id: Annotated[StrictInt, Field(description="ID предложения")],
1104
- _request_timeout: Union[
1105
- None,
1106
- Annotated[StrictFloat, Field(gt=0)],
1107
- Tuple[
1108
- Annotated[StrictFloat, Field(gt=0)],
1109
- Annotated[StrictFloat, Field(gt=0)]
1110
- ]
1111
- ] = None,
1112
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1113
- _content_type: Optional[StrictStr] = None,
1114
- _headers: Optional[Dict[StrictStr, Any]] = None,
1115
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1116
- ) -> RESTResponseType:
1117
- """Получить количество ключей для предложения
1118
-
1119
- Метод позволяет получить информацию о количестве ключей у конкретного предложения. <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
1120
-
1121
- :param offer_id: ID предложения (required)
1122
- :type offer_id: int
1123
- :param _request_timeout: timeout setting for this request. If one
1124
- number provided, it will be total request
1125
- timeout. It can also be a pair (tuple) of
1126
- (connection, read) timeouts.
1127
- :type _request_timeout: int, tuple(int, int), optional
1128
- :param _request_auth: set to override the auth_settings for an a single
1129
- request; this effectively ignores the
1130
- authentication in the spec for a single request.
1131
- :type _request_auth: dict, optional
1132
- :param _content_type: force content-type for the request.
1133
- :type _content_type: str, Optional
1134
- :param _headers: set to override the headers for a single
1135
- request; this effectively ignores the headers
1136
- in the spec for a single request.
1137
- :type _headers: dict, optional
1138
- :param _host_index: set to override the host_index for a single
1139
- request; this effectively ignores the host_index
1140
- in the spec for a single request.
1141
- :type _host_index: int, optional
1142
- :return: Returns the result object.
1143
- """ # noqa: E501
1144
-
1145
- _param = self._offer_keys_count_get_serialize(
1146
- offer_id=offer_id,
1147
- _request_auth=_request_auth,
1148
- _content_type=_content_type,
1149
- _headers=_headers,
1150
- _host_index=_host_index
1151
- )
1152
-
1153
- _response_types_map: Dict[str, Optional[str]] = {
1154
- '200': "KeysCountResponse",
1155
- '401': "ProblemDetails401",
1156
- '404': "ProblemDetails404",
1157
- '500': "ProblemDetails500",
1158
- }
1159
- response_data = self.api_client.call_api(
1160
- *_param,
1161
- _request_timeout=_request_timeout
1162
- )
1163
- return response_data.response
1164
-
1165
-
1166
- def _offer_keys_count_get_serialize(
1167
- self,
1168
- offer_id,
1169
- _request_auth,
1170
- _content_type,
1171
- _headers,
1172
- _host_index,
1173
- ) -> RequestSerialized:
1174
-
1175
- _hosts = [
1176
- 'https://devapi-digital.wildberries.ru'
1177
- ]
1178
- _host = _hosts[_host_index]
1179
-
1180
- _collection_formats: Dict[str, str] = {
1181
- }
1182
-
1183
- _path_params: Dict[str, str] = {}
1184
- _query_params: List[Tuple[str, str]] = []
1185
- _header_params: Dict[str, Optional[str]] = _headers or {}
1186
- _form_params: List[Tuple[str, str]] = []
1187
- _files: Dict[
1188
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1189
- ] = {}
1190
- _body_params: Optional[bytes] = None
1191
-
1192
- # process the path parameters
1193
- if offer_id is not None:
1194
- _path_params['offer_id'] = offer_id
1195
- # process the query parameters
1196
- # process the header parameters
1197
- # process the form parameters
1198
- # process the body parameter
1199
-
1200
-
1201
- # set the HTTP header `Accept`
1202
- if 'Accept' not in _header_params:
1203
- _header_params['Accept'] = self.api_client.select_header_accept(
1204
- [
1205
- 'application/json'
1206
- ]
1207
- )
1208
-
1209
-
1210
- # authentication setting
1211
- _auth_settings: List[str] = [
1212
- 'ApiKeyAuth'
1213
- ]
1214
-
1215
- return self.api_client.param_serialize(
1216
- method='GET',
1217
- resource_path='/api/v1/offer/keys/{offer_id}',
1218
- path_params=_path_params,
1219
- query_params=_query_params,
1220
- header_params=_header_params,
1221
- body=_body_params,
1222
- post_params=_form_params,
1223
- files=_files,
1224
- auth_settings=_auth_settings,
1225
- collection_formats=_collection_formats,
1226
- _host=_host,
1227
- _request_auth=_request_auth
1228
- )
1229
-
1230
-
1231
-
1232
-
1233
- @validate_call
1234
- def offer_keys_get(
1235
- self,
1236
- offer_id: Annotated[StrictInt, Field(description="ID предложения")],
1237
- take: Annotated[Optional[StrictInt], Field(description="Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе")] = None,
1238
- skip: Annotated[Optional[StrictInt], Field(description="Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации")] = None,
1239
- deleted: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать удалённые ключи")] = None,
1240
- sold: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать проданные ключи")] = None,
1241
- reserved: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать зарезервированные ключи")] = None,
1242
- expired: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать ключи с истекшим сроком действия")] = None,
1243
- _request_timeout: Union[
1244
- None,
1245
- Annotated[StrictFloat, Field(gt=0)],
1246
- Tuple[
1247
- Annotated[StrictFloat, Field(gt=0)],
1248
- Annotated[StrictFloat, Field(gt=0)]
1249
- ]
1250
- ] = None,
1251
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1252
- _content_type: Optional[StrictStr] = None,
1253
- _headers: Optional[Dict[StrictStr, Any]] = None,
1254
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1255
- ) -> KeysResponseList:
1256
- """Получить список ключей
1257
-
1258
- Метод позволяет получить список загруженных вами ключей для конкретного предложения. <div class=\"description_important\"> Доступ к методу предоставляется через заявку в <a href=\"https://digital.wildberries.ru/support\" target=\"_black\">техническую поддержку</a>. </div> <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
1259
-
1260
- :param offer_id: ID предложения (required)
1261
- :type offer_id: int
1262
- :param take: Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе
1263
- :type take: int
1264
- :param skip: Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации
1265
- :type skip: int
1266
- :param deleted: Указывает, будут ли в ответе присутствовать удалённые ключи
1267
- :type deleted: bool
1268
- :param sold: Указывает, будут ли в ответе присутствовать проданные ключи
1269
- :type sold: bool
1270
- :param reserved: Указывает, будут ли в ответе присутствовать зарезервированные ключи
1271
- :type reserved: bool
1272
- :param expired: Указывает, будут ли в ответе присутствовать ключи с истекшим сроком действия
1273
- :type expired: bool
1274
- :param _request_timeout: timeout setting for this request. If one
1275
- number provided, it will be total request
1276
- timeout. It can also be a pair (tuple) of
1277
- (connection, read) timeouts.
1278
- :type _request_timeout: int, tuple(int, int), optional
1279
- :param _request_auth: set to override the auth_settings for an a single
1280
- request; this effectively ignores the
1281
- authentication in the spec for a single request.
1282
- :type _request_auth: dict, optional
1283
- :param _content_type: force content-type for the request.
1284
- :type _content_type: str, Optional
1285
- :param _headers: set to override the headers for a single
1286
- request; this effectively ignores the headers
1287
- in the spec for a single request.
1288
- :type _headers: dict, optional
1289
- :param _host_index: set to override the host_index for a single
1290
- request; this effectively ignores the host_index
1291
- in the spec for a single request.
1292
- :type _host_index: int, optional
1293
- :return: Returns the result object.
1294
- """ # noqa: E501
1295
-
1296
- _param = self._offer_keys_get_serialize(
1297
- offer_id=offer_id,
1298
- take=take,
1299
- skip=skip,
1300
- deleted=deleted,
1301
- sold=sold,
1302
- reserved=reserved,
1303
- expired=expired,
1304
- _request_auth=_request_auth,
1305
- _content_type=_content_type,
1306
- _headers=_headers,
1307
- _host_index=_host_index
1308
- )
1309
-
1310
- _response_types_map: Dict[str, Optional[str]] = {
1311
- '200': "KeysResponseList",
1312
- '400': "ProblemDetails400",
1313
- '401': "ProblemDetails401",
1314
- '403': "ProblemDetails403",
1315
- '404': "ProblemDetails404",
1316
- '500': "ProblemDetails500",
1317
- }
1318
- response_data = self.api_client.call_api(
1319
- *_param,
1320
- _request_timeout=_request_timeout
1321
- )
1322
- response_data.read()
1323
- return self.api_client.response_deserialize(
1324
- response_data=response_data,
1325
- response_types_map=_response_types_map,
1326
- ).data
1327
-
1328
-
1329
- @validate_call
1330
- def offer_keys_get_with_http_info(
1331
- self,
1332
- offer_id: Annotated[StrictInt, Field(description="ID предложения")],
1333
- take: Annotated[Optional[StrictInt], Field(description="Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе")] = None,
1334
- skip: Annotated[Optional[StrictInt], Field(description="Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации")] = None,
1335
- deleted: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать удалённые ключи")] = None,
1336
- sold: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать проданные ключи")] = None,
1337
- reserved: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать зарезервированные ключи")] = None,
1338
- expired: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать ключи с истекшим сроком действия")] = None,
1339
- _request_timeout: Union[
1340
- None,
1341
- Annotated[StrictFloat, Field(gt=0)],
1342
- Tuple[
1343
- Annotated[StrictFloat, Field(gt=0)],
1344
- Annotated[StrictFloat, Field(gt=0)]
1345
- ]
1346
- ] = None,
1347
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1348
- _content_type: Optional[StrictStr] = None,
1349
- _headers: Optional[Dict[StrictStr, Any]] = None,
1350
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1351
- ) -> ApiResponse[KeysResponseList]:
1352
- """Получить список ключей
1353
-
1354
- Метод позволяет получить список загруженных вами ключей для конкретного предложения. <div class=\"description_important\"> Доступ к методу предоставляется через заявку в <a href=\"https://digital.wildberries.ru/support\" target=\"_black\">техническую поддержку</a>. </div> <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
1355
-
1356
- :param offer_id: ID предложения (required)
1357
- :type offer_id: int
1358
- :param take: Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе
1359
- :type take: int
1360
- :param skip: Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации
1361
- :type skip: int
1362
- :param deleted: Указывает, будут ли в ответе присутствовать удалённые ключи
1363
- :type deleted: bool
1364
- :param sold: Указывает, будут ли в ответе присутствовать проданные ключи
1365
- :type sold: bool
1366
- :param reserved: Указывает, будут ли в ответе присутствовать зарезервированные ключи
1367
- :type reserved: bool
1368
- :param expired: Указывает, будут ли в ответе присутствовать ключи с истекшим сроком действия
1369
- :type expired: bool
1370
- :param _request_timeout: timeout setting for this request. If one
1371
- number provided, it will be total request
1372
- timeout. It can also be a pair (tuple) of
1373
- (connection, read) timeouts.
1374
- :type _request_timeout: int, tuple(int, int), optional
1375
- :param _request_auth: set to override the auth_settings for an a single
1376
- request; this effectively ignores the
1377
- authentication in the spec for a single request.
1378
- :type _request_auth: dict, optional
1379
- :param _content_type: force content-type for the request.
1380
- :type _content_type: str, Optional
1381
- :param _headers: set to override the headers for a single
1382
- request; this effectively ignores the headers
1383
- in the spec for a single request.
1384
- :type _headers: dict, optional
1385
- :param _host_index: set to override the host_index for a single
1386
- request; this effectively ignores the host_index
1387
- in the spec for a single request.
1388
- :type _host_index: int, optional
1389
- :return: Returns the result object.
1390
- """ # noqa: E501
1391
-
1392
- _param = self._offer_keys_get_serialize(
1393
- offer_id=offer_id,
1394
- take=take,
1395
- skip=skip,
1396
- deleted=deleted,
1397
- sold=sold,
1398
- reserved=reserved,
1399
- expired=expired,
1400
- _request_auth=_request_auth,
1401
- _content_type=_content_type,
1402
- _headers=_headers,
1403
- _host_index=_host_index
1404
- )
1405
-
1406
- _response_types_map: Dict[str, Optional[str]] = {
1407
- '200': "KeysResponseList",
1408
- '400': "ProblemDetails400",
1409
- '401': "ProblemDetails401",
1410
- '403': "ProblemDetails403",
1411
- '404': "ProblemDetails404",
1412
- '500': "ProblemDetails500",
1413
- }
1414
- response_data = self.api_client.call_api(
1415
- *_param,
1416
- _request_timeout=_request_timeout
1417
- )
1418
- response_data.read()
1419
- return self.api_client.response_deserialize(
1420
- response_data=response_data,
1421
- response_types_map=_response_types_map,
1422
- )
1423
-
1424
-
1425
- @validate_call
1426
- def offer_keys_get_without_preload_content(
1427
- self,
1428
- offer_id: Annotated[StrictInt, Field(description="ID предложения")],
1429
- take: Annotated[Optional[StrictInt], Field(description="Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе")] = None,
1430
- skip: Annotated[Optional[StrictInt], Field(description="Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации")] = None,
1431
- deleted: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать удалённые ключи")] = None,
1432
- sold: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать проданные ключи")] = None,
1433
- reserved: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать зарезервированные ключи")] = None,
1434
- expired: Annotated[Optional[StrictBool], Field(description="Указывает, будут ли в ответе присутствовать ключи с истекшим сроком действия")] = None,
1435
- _request_timeout: Union[
1436
- None,
1437
- Annotated[StrictFloat, Field(gt=0)],
1438
- Tuple[
1439
- Annotated[StrictFloat, Field(gt=0)],
1440
- Annotated[StrictFloat, Field(gt=0)]
1441
- ]
1442
- ] = None,
1443
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1444
- _content_type: Optional[StrictStr] = None,
1445
- _headers: Optional[Dict[StrictStr, Any]] = None,
1446
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1447
- ) -> RESTResponseType:
1448
- """Получить список ключей
1449
-
1450
- Метод позволяет получить список загруженных вами ключей для конкретного предложения. <div class=\"description_important\"> Доступ к методу предоставляется через заявку в <a href=\"https://digital.wildberries.ru/support\" target=\"_black\">техническую поддержку</a>. </div> <div class=\"description_limit\"> Максимум 100 запросов в секунду </div>
1451
-
1452
- :param offer_id: ID предложения (required)
1453
- :type offer_id: int
1454
- :param take: Количество записей для получения. Указывает, сколько ключей должно быть возвращено в ответе
1455
- :type take: int
1456
- :param skip: Смещение. Указывает, сколько записей нужно пропустить в результирующем наборе. Используется для пагинации
1457
- :type skip: int
1458
- :param deleted: Указывает, будут ли в ответе присутствовать удалённые ключи
1459
- :type deleted: bool
1460
- :param sold: Указывает, будут ли в ответе присутствовать проданные ключи
1461
- :type sold: bool
1462
- :param reserved: Указывает, будут ли в ответе присутствовать зарезервированные ключи
1463
- :type reserved: bool
1464
- :param expired: Указывает, будут ли в ответе присутствовать ключи с истекшим сроком действия
1465
- :type expired: bool
1466
- :param _request_timeout: timeout setting for this request. If one
1467
- number provided, it will be total request
1468
- timeout. It can also be a pair (tuple) of
1469
- (connection, read) timeouts.
1470
- :type _request_timeout: int, tuple(int, int), optional
1471
- :param _request_auth: set to override the auth_settings for an a single
1472
- request; this effectively ignores the
1473
- authentication in the spec for a single request.
1474
- :type _request_auth: dict, optional
1475
- :param _content_type: force content-type for the request.
1476
- :type _content_type: str, Optional
1477
- :param _headers: set to override the headers for a single
1478
- request; this effectively ignores the headers
1479
- in the spec for a single request.
1480
- :type _headers: dict, optional
1481
- :param _host_index: set to override the host_index for a single
1482
- request; this effectively ignores the host_index
1483
- in the spec for a single request.
1484
- :type _host_index: int, optional
1485
- :return: Returns the result object.
1486
- """ # noqa: E501
1487
-
1488
- _param = self._offer_keys_get_serialize(
1489
- offer_id=offer_id,
1490
- take=take,
1491
- skip=skip,
1492
- deleted=deleted,
1493
- sold=sold,
1494
- reserved=reserved,
1495
- expired=expired,
1496
- _request_auth=_request_auth,
1497
- _content_type=_content_type,
1498
- _headers=_headers,
1499
- _host_index=_host_index
1500
- )
1501
-
1502
- _response_types_map: Dict[str, Optional[str]] = {
1503
- '200': "KeysResponseList",
1504
- '400': "ProblemDetails400",
1505
- '401': "ProblemDetails401",
1506
- '403': "ProblemDetails403",
1507
- '404': "ProblemDetails404",
1508
- '500': "ProblemDetails500",
1509
- }
1510
- response_data = self.api_client.call_api(
1511
- *_param,
1512
- _request_timeout=_request_timeout
1513
- )
1514
- return response_data.response
1515
-
1516
-
1517
- def _offer_keys_get_serialize(
1518
- self,
1519
- offer_id,
1520
- take,
1521
- skip,
1522
- deleted,
1523
- sold,
1524
- reserved,
1525
- expired,
1526
- _request_auth,
1527
- _content_type,
1528
- _headers,
1529
- _host_index,
1530
- ) -> RequestSerialized:
1531
-
1532
- _hosts = [
1533
- 'https://devapi-digital.wildberries.ru'
1534
- ]
1535
- _host = _hosts[_host_index]
1536
-
1537
- _collection_formats: Dict[str, str] = {
1538
- }
1539
-
1540
- _path_params: Dict[str, str] = {}
1541
- _query_params: List[Tuple[str, str]] = []
1542
- _header_params: Dict[str, Optional[str]] = _headers or {}
1543
- _form_params: List[Tuple[str, str]] = []
1544
- _files: Dict[
1545
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1546
- ] = {}
1547
- _body_params: Optional[bytes] = None
1548
-
1549
- # process the path parameters
1550
- if offer_id is not None:
1551
- _path_params['offer_id'] = offer_id
1552
- # process the query parameters
1553
- if take is not None:
1554
-
1555
- _query_params.append(('take', take))
1556
-
1557
- if skip is not None:
1558
-
1559
- _query_params.append(('skip', skip))
1560
-
1561
- if deleted is not None:
1562
-
1563
- _query_params.append(('deleted', deleted))
1564
-
1565
- if sold is not None:
1566
-
1567
- _query_params.append(('sold', sold))
1568
-
1569
- if reserved is not None:
1570
-
1571
- _query_params.append(('reserved', reserved))
1572
-
1573
- if expired is not None:
1574
-
1575
- _query_params.append(('expired', expired))
1576
-
1577
- # process the header parameters
1578
- # process the form parameters
1579
- # process the body parameter
1580
-
1581
-
1582
- # set the HTTP header `Accept`
1583
- if 'Accept' not in _header_params:
1584
- _header_params['Accept'] = self.api_client.select_header_accept(
1585
- [
1586
- 'application/json'
1587
- ]
1588
- )
1589
-
1590
-
1591
- # authentication setting
1592
- _auth_settings: List[str] = [
1593
- 'ApiKeyAuth'
1594
- ]
1595
-
1596
- return self.api_client.param_serialize(
1597
- method='GET',
1598
- resource_path='/api/v1/offer/keys/{offer_id}/list',
1599
- path_params=_path_params,
1600
- query_params=_query_params,
1601
- header_params=_header_params,
1602
- body=_body_params,
1603
- post_params=_form_params,
1604
- files=_files,
1605
- auth_settings=_auth_settings,
1606
- collection_formats=_collection_formats,
1607
- _host=_host,
1608
- _request_auth=_request_auth
1609
- )
1610
-
1611
-