statuspro-openapi-client 0.1.0__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 (74) hide show
  1. statuspro_openapi_client-0.1.0.dist-info/METADATA +337 -0
  2. statuspro_openapi_client-0.1.0.dist-info/RECORD +74 -0
  3. statuspro_openapi_client-0.1.0.dist-info/WHEEL +4 -0
  4. statuspro_openapi_client-0.1.0.dist-info/entry_points.txt +3 -0
  5. statuspro_openapi_client-0.1.0.dist-info/licenses/LICENSE +21 -0
  6. statuspro_public_api_client/__init__.py +36 -0
  7. statuspro_public_api_client/_logging.py +33 -0
  8. statuspro_public_api_client/api/__init__.py +1 -0
  9. statuspro_public_api_client/api/orders/__init__.py +1 -0
  10. statuspro_public_api_client/api/orders/add_order_comment.py +215 -0
  11. statuspro_public_api_client/api/orders/bulk_update_order_status.py +194 -0
  12. statuspro_public_api_client/api/orders/get_order.py +188 -0
  13. statuspro_public_api_client/api/orders/get_viable_statuses.py +193 -0
  14. statuspro_public_api_client/api/orders/list_orders.py +366 -0
  15. statuspro_public_api_client/api/orders/lookup_order.py +208 -0
  16. statuspro_public_api_client/api/orders/set_order_due_date.py +215 -0
  17. statuspro_public_api_client/api/orders/update_order_status.py +215 -0
  18. statuspro_public_api_client/api/statuses/__init__.py +1 -0
  19. statuspro_public_api_client/api/statuses/get_statuses.py +161 -0
  20. statuspro_public_api_client/api_wrapper/__init__.py +15 -0
  21. statuspro_public_api_client/api_wrapper/_namespace.py +40 -0
  22. statuspro_public_api_client/api_wrapper/_registry.py +43 -0
  23. statuspro_public_api_client/api_wrapper/_resource.py +116 -0
  24. statuspro_public_api_client/client.py +267 -0
  25. statuspro_public_api_client/client_types.py +54 -0
  26. statuspro_public_api_client/domain/__init__.py +33 -0
  27. statuspro_public_api_client/domain/base.py +117 -0
  28. statuspro_public_api_client/domain/converters.py +71 -0
  29. statuspro_public_api_client/domain/order.py +87 -0
  30. statuspro_public_api_client/domain/status.py +30 -0
  31. statuspro_public_api_client/errors.py +16 -0
  32. statuspro_public_api_client/helpers/__init__.py +21 -0
  33. statuspro_public_api_client/helpers/base.py +26 -0
  34. statuspro_public_api_client/helpers/orders.py +78 -0
  35. statuspro_public_api_client/helpers/statuses.py +37 -0
  36. statuspro_public_api_client/log_setup.py +99 -0
  37. statuspro_public_api_client/models/__init__.py +53 -0
  38. statuspro_public_api_client/models/add_order_comment_request.py +68 -0
  39. statuspro_public_api_client/models/bulk_status_update_request.py +124 -0
  40. statuspro_public_api_client/models/bulk_status_update_response.py +72 -0
  41. statuspro_public_api_client/models/customer.py +74 -0
  42. statuspro_public_api_client/models/error_response.py +58 -0
  43. statuspro_public_api_client/models/history_item.py +171 -0
  44. statuspro_public_api_client/models/list_orders_financial_status_item.py +15 -0
  45. statuspro_public_api_client/models/list_orders_fulfillment_status_item.py +11 -0
  46. statuspro_public_api_client/models/locale_translation.py +66 -0
  47. statuspro_public_api_client/models/mail_log.py +82 -0
  48. statuspro_public_api_client/models/message_response.py +58 -0
  49. statuspro_public_api_client/models/order_list_item.py +180 -0
  50. statuspro_public_api_client/models/order_list_meta.py +120 -0
  51. statuspro_public_api_client/models/order_list_response.py +81 -0
  52. statuspro_public_api_client/models/order_response.py +220 -0
  53. statuspro_public_api_client/models/progress_timeline_item.py +93 -0
  54. statuspro_public_api_client/models/set_due_date_request.py +95 -0
  55. statuspro_public_api_client/models/status.py +190 -0
  56. statuspro_public_api_client/models/status_definition.py +82 -0
  57. statuspro_public_api_client/models/status_translations.py +62 -0
  58. statuspro_public_api_client/models/update_order_status_request.py +92 -0
  59. statuspro_public_api_client/models/validation_error_response.py +81 -0
  60. statuspro_public_api_client/models/validation_error_response_errors.py +54 -0
  61. statuspro_public_api_client/models/viable_status.py +82 -0
  62. statuspro_public_api_client/models_pydantic/__init__.py +122 -0
  63. statuspro_public_api_client/models_pydantic/_auto_registry.py +115 -0
  64. statuspro_public_api_client/models_pydantic/_base.py +349 -0
  65. statuspro_public_api_client/models_pydantic/_generated/__init__.py +53 -0
  66. statuspro_public_api_client/models_pydantic/_generated/errors.py +24 -0
  67. statuspro_public_api_client/models_pydantic/_generated/orders.py +136 -0
  68. statuspro_public_api_client/models_pydantic/_generated/statuses.py +25 -0
  69. statuspro_public_api_client/models_pydantic/_registry.py +171 -0
  70. statuspro_public_api_client/models_pydantic/converters.py +184 -0
  71. statuspro_public_api_client/py.typed +1 -0
  72. statuspro_public_api_client/statuspro-openapi.yaml +859 -0
  73. statuspro_public_api_client/statuspro_client.py +1156 -0
  74. statuspro_public_api_client/utils.py +290 -0
@@ -0,0 +1,193 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...client_types import Response
10
+ from ...models.error_response import ErrorResponse
11
+ from ...models.viable_status import ViableStatus
12
+
13
+
14
+ def _get_kwargs(
15
+ order: int,
16
+ ) -> dict[str, Any]:
17
+
18
+ _kwargs: dict[str, Any] = {
19
+ "method": "get",
20
+ "url": "/orders/{order}/viable-statuses".format(
21
+ order=quote(str(order), safe=""),
22
+ ),
23
+ }
24
+
25
+ return _kwargs
26
+
27
+
28
+ def _parse_response(
29
+ *, client: AuthenticatedClient | Client, response: httpx.Response
30
+ ) -> ErrorResponse | list[ViableStatus] | None:
31
+ if response.status_code == 200:
32
+ response_200 = []
33
+ _response_200 = response.json()
34
+ for response_200_item_data in _response_200:
35
+ response_200_item = ViableStatus.from_dict(response_200_item_data)
36
+
37
+ response_200.append(response_200_item)
38
+
39
+ return response_200
40
+
41
+ if response.status_code == 400:
42
+ response_400 = ErrorResponse.from_dict(response.json())
43
+
44
+ return response_400
45
+
46
+ if response.status_code == 404:
47
+ response_404 = ErrorResponse.from_dict(response.json())
48
+
49
+ return response_404
50
+
51
+ if response.status_code == 429:
52
+ response_429 = ErrorResponse.from_dict(response.json())
53
+
54
+ return response_429
55
+
56
+ if response.status_code == 500:
57
+ response_500 = ErrorResponse.from_dict(response.json())
58
+
59
+ return response_500
60
+
61
+ if client.raise_on_unexpected_status:
62
+ raise errors.UnexpectedStatus(response.status_code, response.content)
63
+ else:
64
+ return None
65
+
66
+
67
+ def _build_response(
68
+ *, client: AuthenticatedClient | Client, response: httpx.Response
69
+ ) -> Response[ErrorResponse | list[ViableStatus]]:
70
+ return Response(
71
+ status_code=HTTPStatus(response.status_code),
72
+ content=response.content,
73
+ headers=response.headers,
74
+ parsed=_parse_response(client=client, response=response),
75
+ )
76
+
77
+
78
+ def sync_detailed(
79
+ order: int,
80
+ *,
81
+ client: AuthenticatedClient | Client,
82
+ ) -> Response[ErrorResponse | list[ViableStatus]]:
83
+ """Get viable statuses for an order
84
+
85
+ Limited to 60 requests per minute.
86
+
87
+ Args:
88
+ order (int):
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+
95
+ Returns:
96
+ Response[ErrorResponse | list[ViableStatus]]
97
+ """
98
+
99
+ kwargs = _get_kwargs(
100
+ order=order,
101
+ )
102
+
103
+ response = client.get_httpx_client().request(
104
+ **kwargs,
105
+ )
106
+
107
+ return _build_response(client=client, response=response)
108
+
109
+
110
+ def sync(
111
+ order: int,
112
+ *,
113
+ client: AuthenticatedClient | Client,
114
+ ) -> ErrorResponse | list[ViableStatus] | None:
115
+ """Get viable statuses for an order
116
+
117
+ Limited to 60 requests per minute.
118
+
119
+ Args:
120
+ order (int):
121
+
122
+ Raises:
123
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
124
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
125
+
126
+
127
+ Returns:
128
+ ErrorResponse | list[ViableStatus]
129
+ """
130
+
131
+ return sync_detailed(
132
+ order=order,
133
+ client=client,
134
+ ).parsed
135
+
136
+
137
+ async def asyncio_detailed(
138
+ order: int,
139
+ *,
140
+ client: AuthenticatedClient | Client,
141
+ ) -> Response[ErrorResponse | list[ViableStatus]]:
142
+ """Get viable statuses for an order
143
+
144
+ Limited to 60 requests per minute.
145
+
146
+ Args:
147
+ order (int):
148
+
149
+ Raises:
150
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
151
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
152
+
153
+
154
+ Returns:
155
+ Response[ErrorResponse | list[ViableStatus]]
156
+ """
157
+
158
+ kwargs = _get_kwargs(
159
+ order=order,
160
+ )
161
+
162
+ response = await client.get_async_httpx_client().request(**kwargs)
163
+
164
+ return _build_response(client=client, response=response)
165
+
166
+
167
+ async def asyncio(
168
+ order: int,
169
+ *,
170
+ client: AuthenticatedClient | Client,
171
+ ) -> ErrorResponse | list[ViableStatus] | None:
172
+ """Get viable statuses for an order
173
+
174
+ Limited to 60 requests per minute.
175
+
176
+ Args:
177
+ order (int):
178
+
179
+ Raises:
180
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
181
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
182
+
183
+
184
+ Returns:
185
+ ErrorResponse | list[ViableStatus]
186
+ """
187
+
188
+ return (
189
+ await asyncio_detailed(
190
+ order=order,
191
+ client=client,
192
+ )
193
+ ).parsed
@@ -0,0 +1,366 @@
1
+ import datetime
2
+ from http import HTTPStatus
3
+ from typing import Any
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...client_types import UNSET, Response, Unset
10
+ from ...models.error_response import ErrorResponse
11
+ from ...models.list_orders_financial_status_item import ListOrdersFinancialStatusItem
12
+ from ...models.list_orders_fulfillment_status_item import (
13
+ ListOrdersFulfillmentStatusItem,
14
+ )
15
+ from ...models.order_list_response import OrderListResponse
16
+ from ...models.validation_error_response import ValidationErrorResponse
17
+
18
+
19
+ def _get_kwargs(
20
+ *,
21
+ search: str | Unset = UNSET,
22
+ status_code: str | Unset = UNSET,
23
+ tags: list[str] | Unset = UNSET,
24
+ tags_any: list[str] | Unset = UNSET,
25
+ financial_status: list[ListOrdersFinancialStatusItem] | Unset = UNSET,
26
+ fulfillment_status: list[ListOrdersFulfillmentStatusItem] | Unset = UNSET,
27
+ exclude_cancelled: bool | Unset = UNSET,
28
+ due_date_from: datetime.date | Unset = UNSET,
29
+ due_date_to: datetime.date | Unset = UNSET,
30
+ per_page: int | Unset = 15,
31
+ ) -> dict[str, Any]:
32
+
33
+ params: dict[str, Any] = {}
34
+
35
+ params["search"] = search
36
+
37
+ params["status_code"] = status_code
38
+
39
+ json_tags: list[str] | Unset = UNSET
40
+ if not isinstance(tags, Unset):
41
+ json_tags = tags
42
+
43
+ params["tags[]"] = json_tags
44
+
45
+ json_tags_any: list[str] | Unset = UNSET
46
+ if not isinstance(tags_any, Unset):
47
+ json_tags_any = tags_any
48
+
49
+ params["tags_any[]"] = json_tags_any
50
+
51
+ json_financial_status: list[str] | Unset = UNSET
52
+ if not isinstance(financial_status, Unset):
53
+ json_financial_status = []
54
+ for financial_status_item_data in financial_status:
55
+ financial_status_item = financial_status_item_data.value
56
+ json_financial_status.append(financial_status_item)
57
+
58
+ params["financial_status[]"] = json_financial_status
59
+
60
+ json_fulfillment_status: list[str] | Unset = UNSET
61
+ if not isinstance(fulfillment_status, Unset):
62
+ json_fulfillment_status = []
63
+ for fulfillment_status_item_data in fulfillment_status:
64
+ fulfillment_status_item = fulfillment_status_item_data.value
65
+ json_fulfillment_status.append(fulfillment_status_item)
66
+
67
+ params["fulfillment_status[]"] = json_fulfillment_status
68
+
69
+ params["exclude_cancelled"] = exclude_cancelled
70
+
71
+ json_due_date_from: str | Unset = UNSET
72
+ if not isinstance(due_date_from, Unset):
73
+ json_due_date_from = due_date_from.isoformat()
74
+ params["due_date_from"] = json_due_date_from
75
+
76
+ json_due_date_to: str | Unset = UNSET
77
+ if not isinstance(due_date_to, Unset):
78
+ json_due_date_to = due_date_to.isoformat()
79
+ params["due_date_to"] = json_due_date_to
80
+
81
+ params["per_page"] = per_page
82
+
83
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
84
+
85
+ _kwargs: dict[str, Any] = {
86
+ "method": "get",
87
+ "url": "/orders",
88
+ "params": params,
89
+ }
90
+
91
+ return _kwargs
92
+
93
+
94
+ def _parse_response(
95
+ *, client: AuthenticatedClient | Client, response: httpx.Response
96
+ ) -> ErrorResponse | OrderListResponse | ValidationErrorResponse | None:
97
+ if response.status_code == 200:
98
+ response_200 = OrderListResponse.from_dict(response.json())
99
+
100
+ return response_200
101
+
102
+ if response.status_code == 400:
103
+ response_400 = ErrorResponse.from_dict(response.json())
104
+
105
+ return response_400
106
+
107
+ if response.status_code == 422:
108
+ response_422 = ValidationErrorResponse.from_dict(response.json())
109
+
110
+ return response_422
111
+
112
+ if response.status_code == 429:
113
+ response_429 = ErrorResponse.from_dict(response.json())
114
+
115
+ return response_429
116
+
117
+ if response.status_code == 500:
118
+ response_500 = ErrorResponse.from_dict(response.json())
119
+
120
+ return response_500
121
+
122
+ if client.raise_on_unexpected_status:
123
+ raise errors.UnexpectedStatus(response.status_code, response.content)
124
+ else:
125
+ return None
126
+
127
+
128
+ def _build_response(
129
+ *, client: AuthenticatedClient | Client, response: httpx.Response
130
+ ) -> Response[ErrorResponse | OrderListResponse | ValidationErrorResponse]:
131
+ return Response(
132
+ status_code=HTTPStatus(response.status_code),
133
+ content=response.content,
134
+ headers=response.headers,
135
+ parsed=_parse_response(client=client, response=response),
136
+ )
137
+
138
+
139
+ def sync_detailed(
140
+ *,
141
+ client: AuthenticatedClient | Client,
142
+ search: str | Unset = UNSET,
143
+ status_code: str | Unset = UNSET,
144
+ tags: list[str] | Unset = UNSET,
145
+ tags_any: list[str] | Unset = UNSET,
146
+ financial_status: list[ListOrdersFinancialStatusItem] | Unset = UNSET,
147
+ fulfillment_status: list[ListOrdersFulfillmentStatusItem] | Unset = UNSET,
148
+ exclude_cancelled: bool | Unset = UNSET,
149
+ due_date_from: datetime.date | Unset = UNSET,
150
+ due_date_to: datetime.date | Unset = UNSET,
151
+ per_page: int | Unset = 15,
152
+ ) -> Response[ErrorResponse | OrderListResponse | ValidationErrorResponse]:
153
+ """Retrieve a paginated list of orders
154
+
155
+ Limited to 60 requests per minute.
156
+
157
+ Args:
158
+ search (str | Unset):
159
+ status_code (str | Unset):
160
+ tags (list[str] | Unset):
161
+ tags_any (list[str] | Unset):
162
+ financial_status (list[ListOrdersFinancialStatusItem] | Unset):
163
+ fulfillment_status (list[ListOrdersFulfillmentStatusItem] | Unset):
164
+ exclude_cancelled (bool | Unset):
165
+ due_date_from (datetime.date | Unset):
166
+ due_date_to (datetime.date | Unset):
167
+ per_page (int | Unset): Default: 15.
168
+
169
+
170
+ Raises:
171
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
172
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
173
+
174
+
175
+ Returns:
176
+ Response[ErrorResponse | OrderListResponse | ValidationErrorResponse]
177
+ """
178
+
179
+ kwargs = _get_kwargs(
180
+ search=search,
181
+ status_code=status_code,
182
+ tags=tags,
183
+ tags_any=tags_any,
184
+ financial_status=financial_status,
185
+ fulfillment_status=fulfillment_status,
186
+ exclude_cancelled=exclude_cancelled,
187
+ due_date_from=due_date_from,
188
+ due_date_to=due_date_to,
189
+ per_page=per_page,
190
+ )
191
+
192
+ response = client.get_httpx_client().request(
193
+ **kwargs,
194
+ )
195
+
196
+ return _build_response(client=client, response=response)
197
+
198
+
199
+ def sync(
200
+ *,
201
+ client: AuthenticatedClient | Client,
202
+ search: str | Unset = UNSET,
203
+ status_code: str | Unset = UNSET,
204
+ tags: list[str] | Unset = UNSET,
205
+ tags_any: list[str] | Unset = UNSET,
206
+ financial_status: list[ListOrdersFinancialStatusItem] | Unset = UNSET,
207
+ fulfillment_status: list[ListOrdersFulfillmentStatusItem] | Unset = UNSET,
208
+ exclude_cancelled: bool | Unset = UNSET,
209
+ due_date_from: datetime.date | Unset = UNSET,
210
+ due_date_to: datetime.date | Unset = UNSET,
211
+ per_page: int | Unset = 15,
212
+ ) -> ErrorResponse | OrderListResponse | ValidationErrorResponse | None:
213
+ """Retrieve a paginated list of orders
214
+
215
+ Limited to 60 requests per minute.
216
+
217
+ Args:
218
+ search (str | Unset):
219
+ status_code (str | Unset):
220
+ tags (list[str] | Unset):
221
+ tags_any (list[str] | Unset):
222
+ financial_status (list[ListOrdersFinancialStatusItem] | Unset):
223
+ fulfillment_status (list[ListOrdersFulfillmentStatusItem] | Unset):
224
+ exclude_cancelled (bool | Unset):
225
+ due_date_from (datetime.date | Unset):
226
+ due_date_to (datetime.date | Unset):
227
+ per_page (int | Unset): Default: 15.
228
+
229
+
230
+ Raises:
231
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
232
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
233
+
234
+
235
+ Returns:
236
+ ErrorResponse | OrderListResponse | ValidationErrorResponse
237
+ """
238
+
239
+ return sync_detailed(
240
+ client=client,
241
+ search=search,
242
+ status_code=status_code,
243
+ tags=tags,
244
+ tags_any=tags_any,
245
+ financial_status=financial_status,
246
+ fulfillment_status=fulfillment_status,
247
+ exclude_cancelled=exclude_cancelled,
248
+ due_date_from=due_date_from,
249
+ due_date_to=due_date_to,
250
+ per_page=per_page,
251
+ ).parsed
252
+
253
+
254
+ async def asyncio_detailed(
255
+ *,
256
+ client: AuthenticatedClient | Client,
257
+ search: str | Unset = UNSET,
258
+ status_code: str | Unset = UNSET,
259
+ tags: list[str] | Unset = UNSET,
260
+ tags_any: list[str] | Unset = UNSET,
261
+ financial_status: list[ListOrdersFinancialStatusItem] | Unset = UNSET,
262
+ fulfillment_status: list[ListOrdersFulfillmentStatusItem] | Unset = UNSET,
263
+ exclude_cancelled: bool | Unset = UNSET,
264
+ due_date_from: datetime.date | Unset = UNSET,
265
+ due_date_to: datetime.date | Unset = UNSET,
266
+ per_page: int | Unset = 15,
267
+ ) -> Response[ErrorResponse | OrderListResponse | ValidationErrorResponse]:
268
+ """Retrieve a paginated list of orders
269
+
270
+ Limited to 60 requests per minute.
271
+
272
+ Args:
273
+ search (str | Unset):
274
+ status_code (str | Unset):
275
+ tags (list[str] | Unset):
276
+ tags_any (list[str] | Unset):
277
+ financial_status (list[ListOrdersFinancialStatusItem] | Unset):
278
+ fulfillment_status (list[ListOrdersFulfillmentStatusItem] | Unset):
279
+ exclude_cancelled (bool | Unset):
280
+ due_date_from (datetime.date | Unset):
281
+ due_date_to (datetime.date | Unset):
282
+ per_page (int | Unset): Default: 15.
283
+
284
+
285
+ Raises:
286
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
287
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
288
+
289
+
290
+ Returns:
291
+ Response[ErrorResponse | OrderListResponse | ValidationErrorResponse]
292
+ """
293
+
294
+ kwargs = _get_kwargs(
295
+ search=search,
296
+ status_code=status_code,
297
+ tags=tags,
298
+ tags_any=tags_any,
299
+ financial_status=financial_status,
300
+ fulfillment_status=fulfillment_status,
301
+ exclude_cancelled=exclude_cancelled,
302
+ due_date_from=due_date_from,
303
+ due_date_to=due_date_to,
304
+ per_page=per_page,
305
+ )
306
+
307
+ response = await client.get_async_httpx_client().request(**kwargs)
308
+
309
+ return _build_response(client=client, response=response)
310
+
311
+
312
+ async def asyncio(
313
+ *,
314
+ client: AuthenticatedClient | Client,
315
+ search: str | Unset = UNSET,
316
+ status_code: str | Unset = UNSET,
317
+ tags: list[str] | Unset = UNSET,
318
+ tags_any: list[str] | Unset = UNSET,
319
+ financial_status: list[ListOrdersFinancialStatusItem] | Unset = UNSET,
320
+ fulfillment_status: list[ListOrdersFulfillmentStatusItem] | Unset = UNSET,
321
+ exclude_cancelled: bool | Unset = UNSET,
322
+ due_date_from: datetime.date | Unset = UNSET,
323
+ due_date_to: datetime.date | Unset = UNSET,
324
+ per_page: int | Unset = 15,
325
+ ) -> ErrorResponse | OrderListResponse | ValidationErrorResponse | None:
326
+ """Retrieve a paginated list of orders
327
+
328
+ Limited to 60 requests per minute.
329
+
330
+ Args:
331
+ search (str | Unset):
332
+ status_code (str | Unset):
333
+ tags (list[str] | Unset):
334
+ tags_any (list[str] | Unset):
335
+ financial_status (list[ListOrdersFinancialStatusItem] | Unset):
336
+ fulfillment_status (list[ListOrdersFulfillmentStatusItem] | Unset):
337
+ exclude_cancelled (bool | Unset):
338
+ due_date_from (datetime.date | Unset):
339
+ due_date_to (datetime.date | Unset):
340
+ per_page (int | Unset): Default: 15.
341
+
342
+
343
+ Raises:
344
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
345
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
346
+
347
+
348
+ Returns:
349
+ ErrorResponse | OrderListResponse | ValidationErrorResponse
350
+ """
351
+
352
+ return (
353
+ await asyncio_detailed(
354
+ client=client,
355
+ search=search,
356
+ status_code=status_code,
357
+ tags=tags,
358
+ tags_any=tags_any,
359
+ financial_status=financial_status,
360
+ fulfillment_status=fulfillment_status,
361
+ exclude_cancelled=exclude_cancelled,
362
+ due_date_from=due_date_from,
363
+ due_date_to=due_date_to,
364
+ per_page=per_page,
365
+ )
366
+ ).parsed