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,215 @@
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.add_order_comment_request import AddOrderCommentRequest
11
+ from ...models.error_response import ErrorResponse
12
+ from ...models.message_response import MessageResponse
13
+ from ...models.validation_error_response import ValidationErrorResponse
14
+
15
+
16
+ def _get_kwargs(
17
+ order: int,
18
+ *,
19
+ body: AddOrderCommentRequest,
20
+ ) -> dict[str, Any]:
21
+ headers: dict[str, Any] = {}
22
+
23
+ _kwargs: dict[str, Any] = {
24
+ "method": "post",
25
+ "url": "/orders/{order}/comment".format(
26
+ order=quote(str(order), safe=""),
27
+ ),
28
+ }
29
+
30
+ _kwargs["json"] = body.to_dict()
31
+
32
+ headers["Content-Type"] = "application/json"
33
+
34
+ _kwargs["headers"] = headers
35
+ return _kwargs
36
+
37
+
38
+ def _parse_response(
39
+ *, client: AuthenticatedClient | Client, response: httpx.Response
40
+ ) -> ErrorResponse | MessageResponse | ValidationErrorResponse | None:
41
+ if response.status_code == 200:
42
+ response_200 = MessageResponse.from_dict(response.json())
43
+
44
+ return response_200
45
+
46
+ if response.status_code == 400:
47
+ response_400 = ErrorResponse.from_dict(response.json())
48
+
49
+ return response_400
50
+
51
+ if response.status_code == 404:
52
+ response_404 = ErrorResponse.from_dict(response.json())
53
+
54
+ return response_404
55
+
56
+ if response.status_code == 422:
57
+ response_422 = ValidationErrorResponse.from_dict(response.json())
58
+
59
+ return response_422
60
+
61
+ if response.status_code == 429:
62
+ response_429 = ErrorResponse.from_dict(response.json())
63
+
64
+ return response_429
65
+
66
+ if response.status_code == 500:
67
+ response_500 = ErrorResponse.from_dict(response.json())
68
+
69
+ return response_500
70
+
71
+ if client.raise_on_unexpected_status:
72
+ raise errors.UnexpectedStatus(response.status_code, response.content)
73
+ else:
74
+ return None
75
+
76
+
77
+ def _build_response(
78
+ *, client: AuthenticatedClient | Client, response: httpx.Response
79
+ ) -> Response[ErrorResponse | MessageResponse | ValidationErrorResponse]:
80
+ return Response(
81
+ status_code=HTTPStatus(response.status_code),
82
+ content=response.content,
83
+ headers=response.headers,
84
+ parsed=_parse_response(client=client, response=response),
85
+ )
86
+
87
+
88
+ def sync_detailed(
89
+ order: int,
90
+ *,
91
+ client: AuthenticatedClient | Client,
92
+ body: AddOrderCommentRequest,
93
+ ) -> Response[ErrorResponse | MessageResponse | ValidationErrorResponse]:
94
+ """Add a comment to the order
95
+
96
+ Limited to 60 requests per minute.
97
+
98
+ Args:
99
+ order (int):
100
+ body (AddOrderCommentRequest):
101
+
102
+ Raises:
103
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
104
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
105
+
106
+
107
+ Returns:
108
+ Response[ErrorResponse | MessageResponse | ValidationErrorResponse]
109
+ """
110
+
111
+ kwargs = _get_kwargs(
112
+ order=order,
113
+ body=body,
114
+ )
115
+
116
+ response = client.get_httpx_client().request(
117
+ **kwargs,
118
+ )
119
+
120
+ return _build_response(client=client, response=response)
121
+
122
+
123
+ def sync(
124
+ order: int,
125
+ *,
126
+ client: AuthenticatedClient | Client,
127
+ body: AddOrderCommentRequest,
128
+ ) -> ErrorResponse | MessageResponse | ValidationErrorResponse | None:
129
+ """Add a comment to the order
130
+
131
+ Limited to 60 requests per minute.
132
+
133
+ Args:
134
+ order (int):
135
+ body (AddOrderCommentRequest):
136
+
137
+ Raises:
138
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
139
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
140
+
141
+
142
+ Returns:
143
+ ErrorResponse | MessageResponse | ValidationErrorResponse
144
+ """
145
+
146
+ return sync_detailed(
147
+ order=order,
148
+ client=client,
149
+ body=body,
150
+ ).parsed
151
+
152
+
153
+ async def asyncio_detailed(
154
+ order: int,
155
+ *,
156
+ client: AuthenticatedClient | Client,
157
+ body: AddOrderCommentRequest,
158
+ ) -> Response[ErrorResponse | MessageResponse | ValidationErrorResponse]:
159
+ """Add a comment to the order
160
+
161
+ Limited to 60 requests per minute.
162
+
163
+ Args:
164
+ order (int):
165
+ body (AddOrderCommentRequest):
166
+
167
+ Raises:
168
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
169
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
170
+
171
+
172
+ Returns:
173
+ Response[ErrorResponse | MessageResponse | ValidationErrorResponse]
174
+ """
175
+
176
+ kwargs = _get_kwargs(
177
+ order=order,
178
+ body=body,
179
+ )
180
+
181
+ response = await client.get_async_httpx_client().request(**kwargs)
182
+
183
+ return _build_response(client=client, response=response)
184
+
185
+
186
+ async def asyncio(
187
+ order: int,
188
+ *,
189
+ client: AuthenticatedClient | Client,
190
+ body: AddOrderCommentRequest,
191
+ ) -> ErrorResponse | MessageResponse | ValidationErrorResponse | None:
192
+ """Add a comment to the order
193
+
194
+ Limited to 60 requests per minute.
195
+
196
+ Args:
197
+ order (int):
198
+ body (AddOrderCommentRequest):
199
+
200
+ Raises:
201
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
202
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
203
+
204
+
205
+ Returns:
206
+ ErrorResponse | MessageResponse | ValidationErrorResponse
207
+ """
208
+
209
+ return (
210
+ await asyncio_detailed(
211
+ order=order,
212
+ client=client,
213
+ body=body,
214
+ )
215
+ ).parsed
@@ -0,0 +1,194 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...client_types import Response
9
+ from ...models.bulk_status_update_request import BulkStatusUpdateRequest
10
+ from ...models.bulk_status_update_response import BulkStatusUpdateResponse
11
+ from ...models.error_response import ErrorResponse
12
+ from ...models.validation_error_response import ValidationErrorResponse
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: BulkStatusUpdateRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/orders/bulk-status",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: AuthenticatedClient | Client, response: httpx.Response
36
+ ) -> BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse | None:
37
+ if response.status_code == 202:
38
+ response_202 = BulkStatusUpdateResponse.from_dict(response.json())
39
+
40
+ return response_202
41
+
42
+ if response.status_code == 400:
43
+ response_400 = ErrorResponse.from_dict(response.json())
44
+
45
+ return response_400
46
+
47
+ if response.status_code == 422:
48
+ response_422 = ValidationErrorResponse.from_dict(response.json())
49
+
50
+ return response_422
51
+
52
+ if response.status_code == 429:
53
+ response_429 = ErrorResponse.from_dict(response.json())
54
+
55
+ return response_429
56
+
57
+ if response.status_code == 500:
58
+ response_500 = ErrorResponse.from_dict(response.json())
59
+
60
+ return response_500
61
+
62
+ if client.raise_on_unexpected_status:
63
+ raise errors.UnexpectedStatus(response.status_code, response.content)
64
+ else:
65
+ return None
66
+
67
+
68
+ def _build_response(
69
+ *, client: AuthenticatedClient | Client, response: httpx.Response
70
+ ) -> Response[BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse]:
71
+ return Response(
72
+ status_code=HTTPStatus(response.status_code),
73
+ content=response.content,
74
+ headers=response.headers,
75
+ parsed=_parse_response(client=client, response=response),
76
+ )
77
+
78
+
79
+ def sync_detailed(
80
+ *,
81
+ client: AuthenticatedClient | Client,
82
+ body: BulkStatusUpdateRequest,
83
+ ) -> Response[BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse]:
84
+ """Queue a bulk status update for up to 50 orders
85
+
86
+ Limited to 5 requests per minute.
87
+
88
+ Args:
89
+ body (BulkStatusUpdateRequest):
90
+
91
+ Raises:
92
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
93
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
94
+
95
+
96
+ Returns:
97
+ Response[BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse]
98
+ """
99
+
100
+ kwargs = _get_kwargs(
101
+ body=body,
102
+ )
103
+
104
+ response = client.get_httpx_client().request(
105
+ **kwargs,
106
+ )
107
+
108
+ return _build_response(client=client, response=response)
109
+
110
+
111
+ def sync(
112
+ *,
113
+ client: AuthenticatedClient | Client,
114
+ body: BulkStatusUpdateRequest,
115
+ ) -> BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse | None:
116
+ """Queue a bulk status update for up to 50 orders
117
+
118
+ Limited to 5 requests per minute.
119
+
120
+ Args:
121
+ body (BulkStatusUpdateRequest):
122
+
123
+ Raises:
124
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
125
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
126
+
127
+
128
+ Returns:
129
+ BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse
130
+ """
131
+
132
+ return sync_detailed(
133
+ client=client,
134
+ body=body,
135
+ ).parsed
136
+
137
+
138
+ async def asyncio_detailed(
139
+ *,
140
+ client: AuthenticatedClient | Client,
141
+ body: BulkStatusUpdateRequest,
142
+ ) -> Response[BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse]:
143
+ """Queue a bulk status update for up to 50 orders
144
+
145
+ Limited to 5 requests per minute.
146
+
147
+ Args:
148
+ body (BulkStatusUpdateRequest):
149
+
150
+ Raises:
151
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
152
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
153
+
154
+
155
+ Returns:
156
+ Response[BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse]
157
+ """
158
+
159
+ kwargs = _get_kwargs(
160
+ body=body,
161
+ )
162
+
163
+ response = await client.get_async_httpx_client().request(**kwargs)
164
+
165
+ return _build_response(client=client, response=response)
166
+
167
+
168
+ async def asyncio(
169
+ *,
170
+ client: AuthenticatedClient | Client,
171
+ body: BulkStatusUpdateRequest,
172
+ ) -> BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse | None:
173
+ """Queue a bulk status update for up to 50 orders
174
+
175
+ Limited to 5 requests per minute.
176
+
177
+ Args:
178
+ body (BulkStatusUpdateRequest):
179
+
180
+ Raises:
181
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
182
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
183
+
184
+
185
+ Returns:
186
+ BulkStatusUpdateResponse | ErrorResponse | ValidationErrorResponse
187
+ """
188
+
189
+ return (
190
+ await asyncio_detailed(
191
+ client=client,
192
+ body=body,
193
+ )
194
+ ).parsed
@@ -0,0 +1,188 @@
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.order_response import OrderResponse
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}".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 | OrderResponse | None:
31
+ if response.status_code == 200:
32
+ response_200 = OrderResponse.from_dict(response.json())
33
+
34
+ return response_200
35
+
36
+ if response.status_code == 400:
37
+ response_400 = ErrorResponse.from_dict(response.json())
38
+
39
+ return response_400
40
+
41
+ if response.status_code == 404:
42
+ response_404 = ErrorResponse.from_dict(response.json())
43
+
44
+ return response_404
45
+
46
+ if response.status_code == 429:
47
+ response_429 = ErrorResponse.from_dict(response.json())
48
+
49
+ return response_429
50
+
51
+ if response.status_code == 500:
52
+ response_500 = ErrorResponse.from_dict(response.json())
53
+
54
+ return response_500
55
+
56
+ if client.raise_on_unexpected_status:
57
+ raise errors.UnexpectedStatus(response.status_code, response.content)
58
+ else:
59
+ return None
60
+
61
+
62
+ def _build_response(
63
+ *, client: AuthenticatedClient | Client, response: httpx.Response
64
+ ) -> Response[ErrorResponse | OrderResponse]:
65
+ return Response(
66
+ status_code=HTTPStatus(response.status_code),
67
+ content=response.content,
68
+ headers=response.headers,
69
+ parsed=_parse_response(client=client, response=response),
70
+ )
71
+
72
+
73
+ def sync_detailed(
74
+ order: int,
75
+ *,
76
+ client: AuthenticatedClient | Client,
77
+ ) -> Response[ErrorResponse | OrderResponse]:
78
+ """Retrieve details of a specific order
79
+
80
+ Limited to 60 requests per minute.
81
+
82
+ Args:
83
+ order (int):
84
+
85
+ Raises:
86
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
87
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
88
+
89
+
90
+ Returns:
91
+ Response[ErrorResponse | OrderResponse]
92
+ """
93
+
94
+ kwargs = _get_kwargs(
95
+ order=order,
96
+ )
97
+
98
+ response = client.get_httpx_client().request(
99
+ **kwargs,
100
+ )
101
+
102
+ return _build_response(client=client, response=response)
103
+
104
+
105
+ def sync(
106
+ order: int,
107
+ *,
108
+ client: AuthenticatedClient | Client,
109
+ ) -> ErrorResponse | OrderResponse | None:
110
+ """Retrieve details of a specific order
111
+
112
+ Limited to 60 requests per minute.
113
+
114
+ Args:
115
+ order (int):
116
+
117
+ Raises:
118
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
119
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
120
+
121
+
122
+ Returns:
123
+ ErrorResponse | OrderResponse
124
+ """
125
+
126
+ return sync_detailed(
127
+ order=order,
128
+ client=client,
129
+ ).parsed
130
+
131
+
132
+ async def asyncio_detailed(
133
+ order: int,
134
+ *,
135
+ client: AuthenticatedClient | Client,
136
+ ) -> Response[ErrorResponse | OrderResponse]:
137
+ """Retrieve details of a specific order
138
+
139
+ Limited to 60 requests per minute.
140
+
141
+ Args:
142
+ order (int):
143
+
144
+ Raises:
145
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
146
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
147
+
148
+
149
+ Returns:
150
+ Response[ErrorResponse | OrderResponse]
151
+ """
152
+
153
+ kwargs = _get_kwargs(
154
+ order=order,
155
+ )
156
+
157
+ response = await client.get_async_httpx_client().request(**kwargs)
158
+
159
+ return _build_response(client=client, response=response)
160
+
161
+
162
+ async def asyncio(
163
+ order: int,
164
+ *,
165
+ client: AuthenticatedClient | Client,
166
+ ) -> ErrorResponse | OrderResponse | None:
167
+ """Retrieve details of a specific order
168
+
169
+ Limited to 60 requests per minute.
170
+
171
+ Args:
172
+ order (int):
173
+
174
+ Raises:
175
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
176
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
177
+
178
+
179
+ Returns:
180
+ ErrorResponse | OrderResponse
181
+ """
182
+
183
+ return (
184
+ await asyncio_detailed(
185
+ order=order,
186
+ client=client,
187
+ )
188
+ ).parsed