rxfoundry.clients.swifty-oauth-api 0.0.620__py3-none-any.whl → 1.0.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 (116) hide show
  1. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/METADATA +1 -1
  2. rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info/RECORD +19 -0
  3. rxfoundry/clients/p2rx_api/__init__.py +0 -79
  4. rxfoundry/clients/p2rx_api/api/__init__.py +0 -17
  5. rxfoundry/clients/p2rx_api/api/async_api.py +0 -862
  6. rxfoundry/clients/p2rx_api/api/code_api.py +0 -337
  7. rxfoundry/clients/p2rx_api/api/fax_api.py +0 -632
  8. rxfoundry/clients/p2rx_api/api/medication_api.py +0 -666
  9. rxfoundry/clients/p2rx_api/api/patient_api.py +0 -981
  10. rxfoundry/clients/p2rx_api/api/pharmacist_api.py +0 -615
  11. rxfoundry/clients/p2rx_api/api/pharmacy_api.py +0 -684
  12. rxfoundry/clients/p2rx_api/api/prescriber_api.py +0 -615
  13. rxfoundry/clients/p2rx_api/api/prescription_api.py +0 -1864
  14. rxfoundry/clients/p2rx_api/api/token_api.py +0 -314
  15. rxfoundry/clients/p2rx_api/api/user_api.py +0 -306
  16. rxfoundry/clients/p2rx_api/api/version_api.py +0 -282
  17. rxfoundry/clients/p2rx_api/api/virtual_pharmacy_api.py +0 -284
  18. rxfoundry/clients/p2rx_api/api_client.py +0 -798
  19. rxfoundry/clients/p2rx_api/api_response.py +0 -21
  20. rxfoundry/clients/p2rx_api/configuration.py +0 -583
  21. rxfoundry/clients/p2rx_api/exceptions.py +0 -217
  22. rxfoundry/clients/p2rx_api/models/__init__.py +0 -50
  23. rxfoundry/clients/p2rx_api/models/address.py +0 -106
  24. rxfoundry/clients/p2rx_api/models/asynchronous_response.py +0 -90
  25. rxfoundry/clients/p2rx_api/models/code.py +0 -92
  26. rxfoundry/clients/p2rx_api/models/code_qualifier_code.py +0 -96
  27. rxfoundry/clients/p2rx_api/models/error_message.py +0 -90
  28. rxfoundry/clients/p2rx_api/models/fax.py +0 -141
  29. rxfoundry/clients/p2rx_api/models/medication.py +0 -137
  30. rxfoundry/clients/p2rx_api/models/medication_program_pricing.py +0 -99
  31. rxfoundry/clients/p2rx_api/models/medication_variant.py +0 -96
  32. rxfoundry/clients/p2rx_api/models/patient.py +0 -128
  33. rxfoundry/clients/p2rx_api/models/patient_activity_notification.py +0 -114
  34. rxfoundry/clients/p2rx_api/models/patient_external_identifier.py +0 -94
  35. rxfoundry/clients/p2rx_api/models/pharmacist.py +0 -104
  36. rxfoundry/clients/p2rx_api/models/pharmacy.py +0 -156
  37. rxfoundry/clients/p2rx_api/models/pharmacy_chain.py +0 -100
  38. rxfoundry/clients/p2rx_api/models/pharmacy_other_identifier.py +0 -98
  39. rxfoundry/clients/p2rx_api/models/pharmacy_program_pricing.py +0 -103
  40. rxfoundry/clients/p2rx_api/models/prescriber.py +0 -106
  41. rxfoundry/clients/p2rx_api/models/prescription.py +0 -278
  42. rxfoundry/clients/p2rx_api/models/prescription_change_request.py +0 -123
  43. rxfoundry/clients/p2rx_api/models/prescription_issue.py +0 -120
  44. rxfoundry/clients/p2rx_api/models/prescription_patch.py +0 -113
  45. rxfoundry/clients/p2rx_api/models/prescription_task.py +0 -130
  46. rxfoundry/clients/p2rx_api/models/prescription_task_status.py +0 -95
  47. rxfoundry/clients/p2rx_api/models/prescription_transfer_request.py +0 -93
  48. rxfoundry/clients/p2rx_api/models/prescription_verification.py +0 -107
  49. rxfoundry/clients/p2rx_api/models/pricing_program.py +0 -90
  50. rxfoundry/clients/p2rx_api/models/surescripts_message.py +0 -111
  51. rxfoundry/clients/p2rx_api/models/token.py +0 -92
  52. rxfoundry/clients/p2rx_api/models/user.py +0 -98
  53. rxfoundry/clients/p2rx_api/models/version.py +0 -88
  54. rxfoundry/clients/p2rx_api/models/virtual_pharmacy.py +0 -96
  55. rxfoundry/clients/p2rx_api/models/workflow_request.py +0 -90
  56. rxfoundry/clients/p2rx_api/py.typed +0 -0
  57. rxfoundry/clients/p2rx_api/rest.py +0 -259
  58. rxfoundry/clients/swifty_api/__init__.py +0 -79
  59. rxfoundry/clients/swifty_api/api/__init__.py +0 -17
  60. rxfoundry/clients/swifty_api/api/async_api.py +0 -862
  61. rxfoundry/clients/swifty_api/api/code_api.py +0 -337
  62. rxfoundry/clients/swifty_api/api/fax_api.py +0 -632
  63. rxfoundry/clients/swifty_api/api/medication_api.py +0 -666
  64. rxfoundry/clients/swifty_api/api/patient_api.py +0 -981
  65. rxfoundry/clients/swifty_api/api/pharmacist_api.py +0 -615
  66. rxfoundry/clients/swifty_api/api/pharmacy_api.py +0 -684
  67. rxfoundry/clients/swifty_api/api/prescriber_api.py +0 -615
  68. rxfoundry/clients/swifty_api/api/prescription_api.py +0 -1864
  69. rxfoundry/clients/swifty_api/api/token_api.py +0 -314
  70. rxfoundry/clients/swifty_api/api/user_api.py +0 -306
  71. rxfoundry/clients/swifty_api/api/version_api.py +0 -282
  72. rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +0 -284
  73. rxfoundry/clients/swifty_api/api_client.py +0 -798
  74. rxfoundry/clients/swifty_api/api_response.py +0 -21
  75. rxfoundry/clients/swifty_api/configuration.py +0 -583
  76. rxfoundry/clients/swifty_api/exceptions.py +0 -217
  77. rxfoundry/clients/swifty_api/models/__init__.py +0 -50
  78. rxfoundry/clients/swifty_api/models/address.py +0 -106
  79. rxfoundry/clients/swifty_api/models/asynchronous_response.py +0 -90
  80. rxfoundry/clients/swifty_api/models/code.py +0 -92
  81. rxfoundry/clients/swifty_api/models/code_qualifier_code.py +0 -96
  82. rxfoundry/clients/swifty_api/models/error_message.py +0 -90
  83. rxfoundry/clients/swifty_api/models/fax.py +0 -141
  84. rxfoundry/clients/swifty_api/models/medication.py +0 -137
  85. rxfoundry/clients/swifty_api/models/medication_program_pricing.py +0 -99
  86. rxfoundry/clients/swifty_api/models/medication_variant.py +0 -96
  87. rxfoundry/clients/swifty_api/models/patient.py +0 -128
  88. rxfoundry/clients/swifty_api/models/patient_activity_notification.py +0 -114
  89. rxfoundry/clients/swifty_api/models/patient_external_identifier.py +0 -94
  90. rxfoundry/clients/swifty_api/models/pharmacist.py +0 -104
  91. rxfoundry/clients/swifty_api/models/pharmacy.py +0 -156
  92. rxfoundry/clients/swifty_api/models/pharmacy_chain.py +0 -100
  93. rxfoundry/clients/swifty_api/models/pharmacy_other_identifier.py +0 -98
  94. rxfoundry/clients/swifty_api/models/pharmacy_program_pricing.py +0 -103
  95. rxfoundry/clients/swifty_api/models/prescriber.py +0 -106
  96. rxfoundry/clients/swifty_api/models/prescription.py +0 -278
  97. rxfoundry/clients/swifty_api/models/prescription_change_request.py +0 -123
  98. rxfoundry/clients/swifty_api/models/prescription_issue.py +0 -120
  99. rxfoundry/clients/swifty_api/models/prescription_patch.py +0 -113
  100. rxfoundry/clients/swifty_api/models/prescription_task.py +0 -130
  101. rxfoundry/clients/swifty_api/models/prescription_task_status.py +0 -95
  102. rxfoundry/clients/swifty_api/models/prescription_transfer_request.py +0 -93
  103. rxfoundry/clients/swifty_api/models/prescription_verification.py +0 -107
  104. rxfoundry/clients/swifty_api/models/pricing_program.py +0 -90
  105. rxfoundry/clients/swifty_api/models/surescripts_message.py +0 -111
  106. rxfoundry/clients/swifty_api/models/token.py +0 -92
  107. rxfoundry/clients/swifty_api/models/user.py +0 -98
  108. rxfoundry/clients/swifty_api/models/version.py +0 -88
  109. rxfoundry/clients/swifty_api/models/virtual_pharmacy.py +0 -98
  110. rxfoundry/clients/swifty_api/models/workflow_request.py +0 -90
  111. rxfoundry/clients/swifty_api/py.typed +0 -0
  112. rxfoundry/clients/swifty_api/rest.py +0 -259
  113. rxfoundry/clients/swifty_oauth_api/models/token_post_request.py +0 -94
  114. rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info/RECORD +0 -130
  115. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/WHEEL +0 -0
  116. {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,632 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- P2RX API
5
-
6
- API for the P2RX Backend
7
-
8
- The version of the OpenAPI document: 0.1.DEV-0
9
- Contact: paul.tindall@rxfoundry.com
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
11
-
12
- Do not edit the class manually.
13
- """ # noqa: E501
14
-
15
- import warnings
16
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
- from typing import Any, Dict, List, Optional, Tuple, Union
18
- from typing_extensions import Annotated
19
-
20
- from pydantic import Field, StrictBool, StrictInt, StrictStr
21
- from typing import List, Optional
22
- from typing_extensions import Annotated
23
- from rxfoundry.clients.swifty_api.models.fax import Fax
24
-
25
- from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
26
- from rxfoundry.clients.swifty_api.api_response import ApiResponse
27
- from rxfoundry.clients.swifty_api.rest import RESTResponseType
28
-
29
-
30
- class FaxApi:
31
- """NOTE: This class is auto generated by OpenAPI Generator
32
- Ref: https://openapi-generator.tech
33
-
34
- Do not edit the class manually.
35
- """
36
-
37
- def __init__(self, api_client=None) -> None:
38
- if api_client is None:
39
- api_client = ApiClient.get_default()
40
- self.api_client = api_client
41
-
42
-
43
- @validate_call
44
- def get_fax(
45
- self,
46
- fax_uuid: StrictStr,
47
- deep: Optional[StrictBool] = None,
48
- _request_timeout: Union[
49
- None,
50
- Annotated[StrictFloat, Field(gt=0)],
51
- Tuple[
52
- Annotated[StrictFloat, Field(gt=0)],
53
- Annotated[StrictFloat, Field(gt=0)]
54
- ]
55
- ] = None,
56
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
- _content_type: Optional[StrictStr] = None,
58
- _headers: Optional[Dict[StrictStr, Any]] = None,
59
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
- ) -> Fax:
61
- """Get a fax by ID
62
-
63
-
64
- :param fax_uuid: (required)
65
- :type fax_uuid: str
66
- :param deep:
67
- :type deep: bool
68
- :param _request_timeout: timeout setting for this request. If one
69
- number provided, it will be total request
70
- timeout. It can also be a pair (tuple) of
71
- (connection, read) timeouts.
72
- :type _request_timeout: int, tuple(int, int), optional
73
- :param _request_auth: set to override the auth_settings for an a single
74
- request; this effectively ignores the
75
- authentication in the spec for a single request.
76
- :type _request_auth: dict, optional
77
- :param _content_type: force content-type for the request.
78
- :type _content_type: str, Optional
79
- :param _headers: set to override the headers for a single
80
- request; this effectively ignores the headers
81
- in the spec for a single request.
82
- :type _headers: dict, optional
83
- :param _host_index: set to override the host_index for a single
84
- request; this effectively ignores the host_index
85
- in the spec for a single request.
86
- :type _host_index: int, optional
87
- :return: Returns the result object.
88
- """ # noqa: E501
89
-
90
- _param = self._get_fax_serialize(
91
- fax_uuid=fax_uuid,
92
- deep=deep,
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': "Fax",
101
- '404': None,
102
- }
103
- response_data = self.api_client.call_api(
104
- *_param,
105
- _request_timeout=_request_timeout
106
- )
107
- response_data.read()
108
- return self.api_client.response_deserialize(
109
- response_data=response_data,
110
- response_types_map=_response_types_map,
111
- ).data
112
-
113
-
114
- @validate_call
115
- def get_fax_with_http_info(
116
- self,
117
- fax_uuid: StrictStr,
118
- deep: Optional[StrictBool] = None,
119
- _request_timeout: Union[
120
- None,
121
- Annotated[StrictFloat, Field(gt=0)],
122
- Tuple[
123
- Annotated[StrictFloat, Field(gt=0)],
124
- Annotated[StrictFloat, Field(gt=0)]
125
- ]
126
- ] = None,
127
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
128
- _content_type: Optional[StrictStr] = None,
129
- _headers: Optional[Dict[StrictStr, Any]] = None,
130
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
131
- ) -> ApiResponse[Fax]:
132
- """Get a fax by ID
133
-
134
-
135
- :param fax_uuid: (required)
136
- :type fax_uuid: str
137
- :param deep:
138
- :type deep: bool
139
- :param _request_timeout: timeout setting for this request. If one
140
- number provided, it will be total request
141
- timeout. It can also be a pair (tuple) of
142
- (connection, read) timeouts.
143
- :type _request_timeout: int, tuple(int, int), optional
144
- :param _request_auth: set to override the auth_settings for an a single
145
- request; this effectively ignores the
146
- authentication in the spec for a single request.
147
- :type _request_auth: dict, optional
148
- :param _content_type: force content-type for the request.
149
- :type _content_type: str, Optional
150
- :param _headers: set to override the headers for a single
151
- request; this effectively ignores the headers
152
- in the spec for a single request.
153
- :type _headers: dict, optional
154
- :param _host_index: set to override the host_index for a single
155
- request; this effectively ignores the host_index
156
- in the spec for a single request.
157
- :type _host_index: int, optional
158
- :return: Returns the result object.
159
- """ # noqa: E501
160
-
161
- _param = self._get_fax_serialize(
162
- fax_uuid=fax_uuid,
163
- deep=deep,
164
- _request_auth=_request_auth,
165
- _content_type=_content_type,
166
- _headers=_headers,
167
- _host_index=_host_index
168
- )
169
-
170
- _response_types_map: Dict[str, Optional[str]] = {
171
- '200': "Fax",
172
- '404': None,
173
- }
174
- response_data = self.api_client.call_api(
175
- *_param,
176
- _request_timeout=_request_timeout
177
- )
178
- response_data.read()
179
- return self.api_client.response_deserialize(
180
- response_data=response_data,
181
- response_types_map=_response_types_map,
182
- )
183
-
184
-
185
- @validate_call
186
- def get_fax_without_preload_content(
187
- self,
188
- fax_uuid: StrictStr,
189
- deep: Optional[StrictBool] = None,
190
- _request_timeout: Union[
191
- None,
192
- Annotated[StrictFloat, Field(gt=0)],
193
- Tuple[
194
- Annotated[StrictFloat, Field(gt=0)],
195
- Annotated[StrictFloat, Field(gt=0)]
196
- ]
197
- ] = None,
198
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
199
- _content_type: Optional[StrictStr] = None,
200
- _headers: Optional[Dict[StrictStr, Any]] = None,
201
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
202
- ) -> RESTResponseType:
203
- """Get a fax by ID
204
-
205
-
206
- :param fax_uuid: (required)
207
- :type fax_uuid: str
208
- :param deep:
209
- :type deep: bool
210
- :param _request_timeout: timeout setting for this request. If one
211
- number provided, it will be total request
212
- timeout. It can also be a pair (tuple) of
213
- (connection, read) timeouts.
214
- :type _request_timeout: int, tuple(int, int), optional
215
- :param _request_auth: set to override the auth_settings for an a single
216
- request; this effectively ignores the
217
- authentication in the spec for a single request.
218
- :type _request_auth: dict, optional
219
- :param _content_type: force content-type for the request.
220
- :type _content_type: str, Optional
221
- :param _headers: set to override the headers for a single
222
- request; this effectively ignores the headers
223
- in the spec for a single request.
224
- :type _headers: dict, optional
225
- :param _host_index: set to override the host_index for a single
226
- request; this effectively ignores the host_index
227
- in the spec for a single request.
228
- :type _host_index: int, optional
229
- :return: Returns the result object.
230
- """ # noqa: E501
231
-
232
- _param = self._get_fax_serialize(
233
- fax_uuid=fax_uuid,
234
- deep=deep,
235
- _request_auth=_request_auth,
236
- _content_type=_content_type,
237
- _headers=_headers,
238
- _host_index=_host_index
239
- )
240
-
241
- _response_types_map: Dict[str, Optional[str]] = {
242
- '200': "Fax",
243
- '404': None,
244
- }
245
- response_data = self.api_client.call_api(
246
- *_param,
247
- _request_timeout=_request_timeout
248
- )
249
- return response_data.response
250
-
251
-
252
- def _get_fax_serialize(
253
- self,
254
- fax_uuid,
255
- deep,
256
- _request_auth,
257
- _content_type,
258
- _headers,
259
- _host_index,
260
- ) -> RequestSerialized:
261
-
262
- _host = None
263
-
264
- _collection_formats: Dict[str, str] = {
265
- }
266
-
267
- _path_params: Dict[str, str] = {}
268
- _query_params: List[Tuple[str, str]] = []
269
- _header_params: Dict[str, Optional[str]] = _headers or {}
270
- _form_params: List[Tuple[str, str]] = []
271
- _files: Dict[
272
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
273
- ] = {}
274
- _body_params: Optional[bytes] = None
275
-
276
- # process the path parameters
277
- if fax_uuid is not None:
278
- _path_params['fax_uuid'] = fax_uuid
279
- # process the query parameters
280
- if deep is not None:
281
-
282
- _query_params.append(('deep', deep))
283
-
284
- # process the header parameters
285
- # process the form parameters
286
- # process the body parameter
287
-
288
-
289
- # set the HTTP header `Accept`
290
- if 'Accept' not in _header_params:
291
- _header_params['Accept'] = self.api_client.select_header_accept(
292
- [
293
- 'application/json'
294
- ]
295
- )
296
-
297
-
298
- # authentication setting
299
- _auth_settings: List[str] = [
300
- 'opaque_token'
301
- ]
302
-
303
- return self.api_client.param_serialize(
304
- method='GET',
305
- resource_path='/p2rx/1/faxes/{fax_uuid}',
306
- path_params=_path_params,
307
- query_params=_query_params,
308
- header_params=_header_params,
309
- body=_body_params,
310
- post_params=_form_params,
311
- files=_files,
312
- auth_settings=_auth_settings,
313
- collection_formats=_collection_formats,
314
- _host=_host,
315
- _request_auth=_request_auth
316
- )
317
-
318
-
319
-
320
-
321
- @validate_call
322
- def get_faxes(
323
- self,
324
- virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter faxes by virtual pharmacy")] = None,
325
- is_completed: Annotated[Optional[StrictBool], Field(description="Filter faxes by completion status")] = None,
326
- page: Optional[StrictInt] = None,
327
- results_per_page: Optional[StrictInt] = None,
328
- _request_timeout: Union[
329
- None,
330
- Annotated[StrictFloat, Field(gt=0)],
331
- Tuple[
332
- Annotated[StrictFloat, Field(gt=0)],
333
- Annotated[StrictFloat, Field(gt=0)]
334
- ]
335
- ] = None,
336
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
337
- _content_type: Optional[StrictStr] = None,
338
- _headers: Optional[Dict[StrictStr, Any]] = None,
339
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
340
- ) -> List[Fax]:
341
- """Get all faxes
342
-
343
-
344
- :param virtual_pharmacy_uuid: Filter faxes by virtual pharmacy
345
- :type virtual_pharmacy_uuid: str
346
- :param is_completed: Filter faxes by completion status
347
- :type is_completed: bool
348
- :param page:
349
- :type page: int
350
- :param results_per_page:
351
- :type results_per_page: int
352
- :param _request_timeout: timeout setting for this request. If one
353
- number provided, it will be total request
354
- timeout. It can also be a pair (tuple) of
355
- (connection, read) timeouts.
356
- :type _request_timeout: int, tuple(int, int), optional
357
- :param _request_auth: set to override the auth_settings for an a single
358
- request; this effectively ignores the
359
- authentication in the spec for a single request.
360
- :type _request_auth: dict, optional
361
- :param _content_type: force content-type for the request.
362
- :type _content_type: str, Optional
363
- :param _headers: set to override the headers for a single
364
- request; this effectively ignores the headers
365
- in the spec for a single request.
366
- :type _headers: dict, optional
367
- :param _host_index: set to override the host_index for a single
368
- request; this effectively ignores the host_index
369
- in the spec for a single request.
370
- :type _host_index: int, optional
371
- :return: Returns the result object.
372
- """ # noqa: E501
373
-
374
- _param = self._get_faxes_serialize(
375
- virtual_pharmacy_uuid=virtual_pharmacy_uuid,
376
- is_completed=is_completed,
377
- page=page,
378
- results_per_page=results_per_page,
379
- _request_auth=_request_auth,
380
- _content_type=_content_type,
381
- _headers=_headers,
382
- _host_index=_host_index
383
- )
384
-
385
- _response_types_map: Dict[str, Optional[str]] = {
386
- '200': "List[Fax]",
387
- '404': None,
388
- }
389
- response_data = self.api_client.call_api(
390
- *_param,
391
- _request_timeout=_request_timeout
392
- )
393
- response_data.read()
394
- return self.api_client.response_deserialize(
395
- response_data=response_data,
396
- response_types_map=_response_types_map,
397
- ).data
398
-
399
-
400
- @validate_call
401
- def get_faxes_with_http_info(
402
- self,
403
- virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter faxes by virtual pharmacy")] = None,
404
- is_completed: Annotated[Optional[StrictBool], Field(description="Filter faxes by completion status")] = None,
405
- page: Optional[StrictInt] = None,
406
- results_per_page: Optional[StrictInt] = None,
407
- _request_timeout: Union[
408
- None,
409
- Annotated[StrictFloat, Field(gt=0)],
410
- Tuple[
411
- Annotated[StrictFloat, Field(gt=0)],
412
- Annotated[StrictFloat, Field(gt=0)]
413
- ]
414
- ] = None,
415
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
416
- _content_type: Optional[StrictStr] = None,
417
- _headers: Optional[Dict[StrictStr, Any]] = None,
418
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
419
- ) -> ApiResponse[List[Fax]]:
420
- """Get all faxes
421
-
422
-
423
- :param virtual_pharmacy_uuid: Filter faxes by virtual pharmacy
424
- :type virtual_pharmacy_uuid: str
425
- :param is_completed: Filter faxes by completion status
426
- :type is_completed: bool
427
- :param page:
428
- :type page: int
429
- :param results_per_page:
430
- :type results_per_page: int
431
- :param _request_timeout: timeout setting for this request. If one
432
- number provided, it will be total request
433
- timeout. It can also be a pair (tuple) of
434
- (connection, read) timeouts.
435
- :type _request_timeout: int, tuple(int, int), optional
436
- :param _request_auth: set to override the auth_settings for an a single
437
- request; this effectively ignores the
438
- authentication in the spec for a single request.
439
- :type _request_auth: dict, optional
440
- :param _content_type: force content-type for the request.
441
- :type _content_type: str, Optional
442
- :param _headers: set to override the headers for a single
443
- request; this effectively ignores the headers
444
- in the spec for a single request.
445
- :type _headers: dict, optional
446
- :param _host_index: set to override the host_index for a single
447
- request; this effectively ignores the host_index
448
- in the spec for a single request.
449
- :type _host_index: int, optional
450
- :return: Returns the result object.
451
- """ # noqa: E501
452
-
453
- _param = self._get_faxes_serialize(
454
- virtual_pharmacy_uuid=virtual_pharmacy_uuid,
455
- is_completed=is_completed,
456
- page=page,
457
- results_per_page=results_per_page,
458
- _request_auth=_request_auth,
459
- _content_type=_content_type,
460
- _headers=_headers,
461
- _host_index=_host_index
462
- )
463
-
464
- _response_types_map: Dict[str, Optional[str]] = {
465
- '200': "List[Fax]",
466
- '404': None,
467
- }
468
- response_data = self.api_client.call_api(
469
- *_param,
470
- _request_timeout=_request_timeout
471
- )
472
- response_data.read()
473
- return self.api_client.response_deserialize(
474
- response_data=response_data,
475
- response_types_map=_response_types_map,
476
- )
477
-
478
-
479
- @validate_call
480
- def get_faxes_without_preload_content(
481
- self,
482
- virtual_pharmacy_uuid: Annotated[Optional[StrictStr], Field(description="Filter faxes by virtual pharmacy")] = None,
483
- is_completed: Annotated[Optional[StrictBool], Field(description="Filter faxes by completion status")] = None,
484
- page: Optional[StrictInt] = None,
485
- results_per_page: Optional[StrictInt] = None,
486
- _request_timeout: Union[
487
- None,
488
- Annotated[StrictFloat, Field(gt=0)],
489
- Tuple[
490
- Annotated[StrictFloat, Field(gt=0)],
491
- Annotated[StrictFloat, Field(gt=0)]
492
- ]
493
- ] = None,
494
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
495
- _content_type: Optional[StrictStr] = None,
496
- _headers: Optional[Dict[StrictStr, Any]] = None,
497
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
498
- ) -> RESTResponseType:
499
- """Get all faxes
500
-
501
-
502
- :param virtual_pharmacy_uuid: Filter faxes by virtual pharmacy
503
- :type virtual_pharmacy_uuid: str
504
- :param is_completed: Filter faxes by completion status
505
- :type is_completed: bool
506
- :param page:
507
- :type page: int
508
- :param results_per_page:
509
- :type results_per_page: int
510
- :param _request_timeout: timeout setting for this request. If one
511
- number provided, it will be total request
512
- timeout. It can also be a pair (tuple) of
513
- (connection, read) timeouts.
514
- :type _request_timeout: int, tuple(int, int), optional
515
- :param _request_auth: set to override the auth_settings for an a single
516
- request; this effectively ignores the
517
- authentication in the spec for a single request.
518
- :type _request_auth: dict, optional
519
- :param _content_type: force content-type for the request.
520
- :type _content_type: str, Optional
521
- :param _headers: set to override the headers for a single
522
- request; this effectively ignores the headers
523
- in the spec for a single request.
524
- :type _headers: dict, optional
525
- :param _host_index: set to override the host_index for a single
526
- request; this effectively ignores the host_index
527
- in the spec for a single request.
528
- :type _host_index: int, optional
529
- :return: Returns the result object.
530
- """ # noqa: E501
531
-
532
- _param = self._get_faxes_serialize(
533
- virtual_pharmacy_uuid=virtual_pharmacy_uuid,
534
- is_completed=is_completed,
535
- page=page,
536
- results_per_page=results_per_page,
537
- _request_auth=_request_auth,
538
- _content_type=_content_type,
539
- _headers=_headers,
540
- _host_index=_host_index
541
- )
542
-
543
- _response_types_map: Dict[str, Optional[str]] = {
544
- '200': "List[Fax]",
545
- '404': None,
546
- }
547
- response_data = self.api_client.call_api(
548
- *_param,
549
- _request_timeout=_request_timeout
550
- )
551
- return response_data.response
552
-
553
-
554
- def _get_faxes_serialize(
555
- self,
556
- virtual_pharmacy_uuid,
557
- is_completed,
558
- page,
559
- results_per_page,
560
- _request_auth,
561
- _content_type,
562
- _headers,
563
- _host_index,
564
- ) -> RequestSerialized:
565
-
566
- _host = None
567
-
568
- _collection_formats: Dict[str, str] = {
569
- }
570
-
571
- _path_params: Dict[str, str] = {}
572
- _query_params: List[Tuple[str, str]] = []
573
- _header_params: Dict[str, Optional[str]] = _headers or {}
574
- _form_params: List[Tuple[str, str]] = []
575
- _files: Dict[
576
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
577
- ] = {}
578
- _body_params: Optional[bytes] = None
579
-
580
- # process the path parameters
581
- # process the query parameters
582
- if virtual_pharmacy_uuid is not None:
583
-
584
- _query_params.append(('virtual_pharmacy_uuid', virtual_pharmacy_uuid))
585
-
586
- if is_completed is not None:
587
-
588
- _query_params.append(('is_completed', is_completed))
589
-
590
- if page is not None:
591
-
592
- _query_params.append(('page', page))
593
-
594
- if results_per_page is not None:
595
-
596
- _query_params.append(('results_per_page', results_per_page))
597
-
598
- # process the header parameters
599
- # process the form parameters
600
- # process the body parameter
601
-
602
-
603
- # set the HTTP header `Accept`
604
- if 'Accept' not in _header_params:
605
- _header_params['Accept'] = self.api_client.select_header_accept(
606
- [
607
- 'application/json'
608
- ]
609
- )
610
-
611
-
612
- # authentication setting
613
- _auth_settings: List[str] = [
614
- 'opaque_token'
615
- ]
616
-
617
- return self.api_client.param_serialize(
618
- method='GET',
619
- resource_path='/p2rx/1/faxes',
620
- path_params=_path_params,
621
- query_params=_query_params,
622
- header_params=_header_params,
623
- body=_body_params,
624
- post_params=_form_params,
625
- files=_files,
626
- auth_settings=_auth_settings,
627
- collection_formats=_collection_formats,
628
- _host=_host,
629
- _request_auth=_request_auth
630
- )
631
-
632
-