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,282 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX 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 rxfoundry.clients.swifty_api.models.version import Version
21
-
22
- from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
23
- from rxfoundry.clients.swifty_api.api_response import ApiResponse
24
- from rxfoundry.clients.swifty_api.rest import RESTResponseType
25
-
26
-
27
- class VersionApi:
28
- """NOTE: This class is auto generated by OpenAPI Generator
29
- Ref: https://openapi-generator.tech
30
-
31
- Do not edit the class manually.
32
- """
33
-
34
- def __init__(self, api_client=None) -> None:
35
- if api_client is None:
36
- api_client = ApiClient.get_default()
37
- self.api_client = api_client
38
-
39
-
40
- @validate_call
41
- def get_api_version(
42
- self,
43
- _request_timeout: Union[
44
- None,
45
- Annotated[StrictFloat, Field(gt=0)],
46
- Tuple[
47
- Annotated[StrictFloat, Field(gt=0)],
48
- Annotated[StrictFloat, Field(gt=0)]
49
- ]
50
- ] = None,
51
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
52
- _content_type: Optional[StrictStr] = None,
53
- _headers: Optional[Dict[StrictStr, Any]] = None,
54
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
55
- ) -> Version:
56
- """Get the api version
57
-
58
-
59
- :param _request_timeout: timeout setting for this request. If one
60
- number provided, it will be total request
61
- timeout. It can also be a pair (tuple) of
62
- (connection, read) timeouts.
63
- :type _request_timeout: int, tuple(int, int), optional
64
- :param _request_auth: set to override the auth_settings for an a single
65
- request; this effectively ignores the
66
- authentication in the spec for a single request.
67
- :type _request_auth: dict, optional
68
- :param _content_type: force content-type for the request.
69
- :type _content_type: str, Optional
70
- :param _headers: set to override the headers for a single
71
- request; this effectively ignores the headers
72
- in the spec for a single request.
73
- :type _headers: dict, optional
74
- :param _host_index: set to override the host_index for a single
75
- request; this effectively ignores the host_index
76
- in the spec for a single request.
77
- :type _host_index: int, optional
78
- :return: Returns the result object.
79
- """ # noqa: E501
80
-
81
- _param = self._get_api_version_serialize(
82
- _request_auth=_request_auth,
83
- _content_type=_content_type,
84
- _headers=_headers,
85
- _host_index=_host_index
86
- )
87
-
88
- _response_types_map: Dict[str, Optional[str]] = {
89
- '200': "Version",
90
- '404': None,
91
- }
92
- response_data = self.api_client.call_api(
93
- *_param,
94
- _request_timeout=_request_timeout
95
- )
96
- response_data.read()
97
- return self.api_client.response_deserialize(
98
- response_data=response_data,
99
- response_types_map=_response_types_map,
100
- ).data
101
-
102
-
103
- @validate_call
104
- def get_api_version_with_http_info(
105
- self,
106
- _request_timeout: Union[
107
- None,
108
- Annotated[StrictFloat, Field(gt=0)],
109
- Tuple[
110
- Annotated[StrictFloat, Field(gt=0)],
111
- Annotated[StrictFloat, Field(gt=0)]
112
- ]
113
- ] = None,
114
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
115
- _content_type: Optional[StrictStr] = None,
116
- _headers: Optional[Dict[StrictStr, Any]] = None,
117
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
118
- ) -> ApiResponse[Version]:
119
- """Get the api version
120
-
121
-
122
- :param _request_timeout: timeout setting for this request. If one
123
- number provided, it will be total request
124
- timeout. It can also be a pair (tuple) of
125
- (connection, read) timeouts.
126
- :type _request_timeout: int, tuple(int, int), optional
127
- :param _request_auth: set to override the auth_settings for an a single
128
- request; this effectively ignores the
129
- authentication in the spec for a single request.
130
- :type _request_auth: dict, optional
131
- :param _content_type: force content-type for the request.
132
- :type _content_type: str, Optional
133
- :param _headers: set to override the headers for a single
134
- request; this effectively ignores the headers
135
- in the spec for a single request.
136
- :type _headers: dict, optional
137
- :param _host_index: set to override the host_index for a single
138
- request; this effectively ignores the host_index
139
- in the spec for a single request.
140
- :type _host_index: int, optional
141
- :return: Returns the result object.
142
- """ # noqa: E501
143
-
144
- _param = self._get_api_version_serialize(
145
- _request_auth=_request_auth,
146
- _content_type=_content_type,
147
- _headers=_headers,
148
- _host_index=_host_index
149
- )
150
-
151
- _response_types_map: Dict[str, Optional[str]] = {
152
- '200': "Version",
153
- '404': None,
154
- }
155
- response_data = self.api_client.call_api(
156
- *_param,
157
- _request_timeout=_request_timeout
158
- )
159
- response_data.read()
160
- return self.api_client.response_deserialize(
161
- response_data=response_data,
162
- response_types_map=_response_types_map,
163
- )
164
-
165
-
166
- @validate_call
167
- def get_api_version_without_preload_content(
168
- self,
169
- _request_timeout: Union[
170
- None,
171
- Annotated[StrictFloat, Field(gt=0)],
172
- Tuple[
173
- Annotated[StrictFloat, Field(gt=0)],
174
- Annotated[StrictFloat, Field(gt=0)]
175
- ]
176
- ] = None,
177
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
178
- _content_type: Optional[StrictStr] = None,
179
- _headers: Optional[Dict[StrictStr, Any]] = None,
180
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
181
- ) -> RESTResponseType:
182
- """Get the api version
183
-
184
-
185
- :param _request_timeout: timeout setting for this request. If one
186
- number provided, it will be total request
187
- timeout. It can also be a pair (tuple) of
188
- (connection, read) timeouts.
189
- :type _request_timeout: int, tuple(int, int), optional
190
- :param _request_auth: set to override the auth_settings for an a single
191
- request; this effectively ignores the
192
- authentication in the spec for a single request.
193
- :type _request_auth: dict, optional
194
- :param _content_type: force content-type for the request.
195
- :type _content_type: str, Optional
196
- :param _headers: set to override the headers for a single
197
- request; this effectively ignores the headers
198
- in the spec for a single request.
199
- :type _headers: dict, optional
200
- :param _host_index: set to override the host_index for a single
201
- request; this effectively ignores the host_index
202
- in the spec for a single request.
203
- :type _host_index: int, optional
204
- :return: Returns the result object.
205
- """ # noqa: E501
206
-
207
- _param = self._get_api_version_serialize(
208
- _request_auth=_request_auth,
209
- _content_type=_content_type,
210
- _headers=_headers,
211
- _host_index=_host_index
212
- )
213
-
214
- _response_types_map: Dict[str, Optional[str]] = {
215
- '200': "Version",
216
- '404': None,
217
- }
218
- response_data = self.api_client.call_api(
219
- *_param,
220
- _request_timeout=_request_timeout
221
- )
222
- return response_data.response
223
-
224
-
225
- def _get_api_version_serialize(
226
- self,
227
- _request_auth,
228
- _content_type,
229
- _headers,
230
- _host_index,
231
- ) -> RequestSerialized:
232
-
233
- _host = None
234
-
235
- _collection_formats: Dict[str, str] = {
236
- }
237
-
238
- _path_params: Dict[str, str] = {}
239
- _query_params: List[Tuple[str, str]] = []
240
- _header_params: Dict[str, Optional[str]] = _headers or {}
241
- _form_params: List[Tuple[str, str]] = []
242
- _files: Dict[
243
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
244
- ] = {}
245
- _body_params: Optional[bytes] = None
246
-
247
- # process the path parameters
248
- # process the query parameters
249
- # process the header parameters
250
- # process the form parameters
251
- # process the body parameter
252
-
253
-
254
- # set the HTTP header `Accept`
255
- if 'Accept' not in _header_params:
256
- _header_params['Accept'] = self.api_client.select_header_accept(
257
- [
258
- 'application/json'
259
- ]
260
- )
261
-
262
-
263
- # authentication setting
264
- _auth_settings: List[str] = [
265
- ]
266
-
267
- return self.api_client.param_serialize(
268
- method='GET',
269
- resource_path='/swifty/1/version',
270
- path_params=_path_params,
271
- query_params=_query_params,
272
- header_params=_header_params,
273
- body=_body_params,
274
- post_params=_form_params,
275
- files=_files,
276
- auth_settings=_auth_settings,
277
- collection_formats=_collection_formats,
278
- _host=_host,
279
- _request_auth=_request_auth
280
- )
281
-
282
-
@@ -1,284 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- SwiftyRX API
5
-
6
- API for the SwiftyRX 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 typing import List
21
- from rxfoundry.clients.swifty_api.models.virtual_pharmacy import VirtualPharmacy
22
-
23
- from rxfoundry.clients.swifty_api.api_client import ApiClient, RequestSerialized
24
- from rxfoundry.clients.swifty_api.api_response import ApiResponse
25
- from rxfoundry.clients.swifty_api.rest import RESTResponseType
26
-
27
-
28
- class VirtualPharmacyApi:
29
- """NOTE: This class is auto generated by OpenAPI Generator
30
- Ref: https://openapi-generator.tech
31
-
32
- Do not edit the class manually.
33
- """
34
-
35
- def __init__(self, api_client=None) -> None:
36
- if api_client is None:
37
- api_client = ApiClient.get_default()
38
- self.api_client = api_client
39
-
40
-
41
- @validate_call
42
- def get_virtual_pharmacies(
43
- self,
44
- _request_timeout: Union[
45
- None,
46
- Annotated[StrictFloat, Field(gt=0)],
47
- Tuple[
48
- Annotated[StrictFloat, Field(gt=0)],
49
- Annotated[StrictFloat, Field(gt=0)]
50
- ]
51
- ] = None,
52
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
53
- _content_type: Optional[StrictStr] = None,
54
- _headers: Optional[Dict[StrictStr, Any]] = None,
55
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
- ) -> List[VirtualPharmacy]:
57
- """Get all virtual pharmacies
58
-
59
-
60
- :param _request_timeout: timeout setting for this request. If one
61
- number provided, it will be total request
62
- timeout. It can also be a pair (tuple) of
63
- (connection, read) timeouts.
64
- :type _request_timeout: int, tuple(int, int), optional
65
- :param _request_auth: set to override the auth_settings for an a single
66
- request; this effectively ignores the
67
- authentication in the spec for a single request.
68
- :type _request_auth: dict, optional
69
- :param _content_type: force content-type for the request.
70
- :type _content_type: str, Optional
71
- :param _headers: set to override the headers for a single
72
- request; this effectively ignores the headers
73
- in the spec for a single request.
74
- :type _headers: dict, optional
75
- :param _host_index: set to override the host_index for a single
76
- request; this effectively ignores the host_index
77
- in the spec for a single request.
78
- :type _host_index: int, optional
79
- :return: Returns the result object.
80
- """ # noqa: E501
81
-
82
- _param = self._get_virtual_pharmacies_serialize(
83
- _request_auth=_request_auth,
84
- _content_type=_content_type,
85
- _headers=_headers,
86
- _host_index=_host_index
87
- )
88
-
89
- _response_types_map: Dict[str, Optional[str]] = {
90
- '200': "List[VirtualPharmacy]",
91
- '404': None,
92
- }
93
- response_data = self.api_client.call_api(
94
- *_param,
95
- _request_timeout=_request_timeout
96
- )
97
- response_data.read()
98
- return self.api_client.response_deserialize(
99
- response_data=response_data,
100
- response_types_map=_response_types_map,
101
- ).data
102
-
103
-
104
- @validate_call
105
- def get_virtual_pharmacies_with_http_info(
106
- self,
107
- _request_timeout: Union[
108
- None,
109
- Annotated[StrictFloat, Field(gt=0)],
110
- Tuple[
111
- Annotated[StrictFloat, Field(gt=0)],
112
- Annotated[StrictFloat, Field(gt=0)]
113
- ]
114
- ] = None,
115
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
116
- _content_type: Optional[StrictStr] = None,
117
- _headers: Optional[Dict[StrictStr, Any]] = None,
118
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
119
- ) -> ApiResponse[List[VirtualPharmacy]]:
120
- """Get all virtual pharmacies
121
-
122
-
123
- :param _request_timeout: timeout setting for this request. If one
124
- number provided, it will be total request
125
- timeout. It can also be a pair (tuple) of
126
- (connection, read) timeouts.
127
- :type _request_timeout: int, tuple(int, int), optional
128
- :param _request_auth: set to override the auth_settings for an a single
129
- request; this effectively ignores the
130
- authentication in the spec for a single request.
131
- :type _request_auth: dict, optional
132
- :param _content_type: force content-type for the request.
133
- :type _content_type: str, Optional
134
- :param _headers: set to override the headers for a single
135
- request; this effectively ignores the headers
136
- in the spec for a single request.
137
- :type _headers: dict, optional
138
- :param _host_index: set to override the host_index for a single
139
- request; this effectively ignores the host_index
140
- in the spec for a single request.
141
- :type _host_index: int, optional
142
- :return: Returns the result object.
143
- """ # noqa: E501
144
-
145
- _param = self._get_virtual_pharmacies_serialize(
146
- _request_auth=_request_auth,
147
- _content_type=_content_type,
148
- _headers=_headers,
149
- _host_index=_host_index
150
- )
151
-
152
- _response_types_map: Dict[str, Optional[str]] = {
153
- '200': "List[VirtualPharmacy]",
154
- '404': None,
155
- }
156
- response_data = self.api_client.call_api(
157
- *_param,
158
- _request_timeout=_request_timeout
159
- )
160
- response_data.read()
161
- return self.api_client.response_deserialize(
162
- response_data=response_data,
163
- response_types_map=_response_types_map,
164
- )
165
-
166
-
167
- @validate_call
168
- def get_virtual_pharmacies_without_preload_content(
169
- self,
170
- _request_timeout: Union[
171
- None,
172
- Annotated[StrictFloat, Field(gt=0)],
173
- Tuple[
174
- Annotated[StrictFloat, Field(gt=0)],
175
- Annotated[StrictFloat, Field(gt=0)]
176
- ]
177
- ] = None,
178
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
179
- _content_type: Optional[StrictStr] = None,
180
- _headers: Optional[Dict[StrictStr, Any]] = None,
181
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
182
- ) -> RESTResponseType:
183
- """Get all virtual pharmacies
184
-
185
-
186
- :param _request_timeout: timeout setting for this request. If one
187
- number provided, it will be total request
188
- timeout. It can also be a pair (tuple) of
189
- (connection, read) timeouts.
190
- :type _request_timeout: int, tuple(int, int), optional
191
- :param _request_auth: set to override the auth_settings for an a single
192
- request; this effectively ignores the
193
- authentication in the spec for a single request.
194
- :type _request_auth: dict, optional
195
- :param _content_type: force content-type for the request.
196
- :type _content_type: str, Optional
197
- :param _headers: set to override the headers for a single
198
- request; this effectively ignores the headers
199
- in the spec for a single request.
200
- :type _headers: dict, optional
201
- :param _host_index: set to override the host_index for a single
202
- request; this effectively ignores the host_index
203
- in the spec for a single request.
204
- :type _host_index: int, optional
205
- :return: Returns the result object.
206
- """ # noqa: E501
207
-
208
- _param = self._get_virtual_pharmacies_serialize(
209
- _request_auth=_request_auth,
210
- _content_type=_content_type,
211
- _headers=_headers,
212
- _host_index=_host_index
213
- )
214
-
215
- _response_types_map: Dict[str, Optional[str]] = {
216
- '200': "List[VirtualPharmacy]",
217
- '404': None,
218
- }
219
- response_data = self.api_client.call_api(
220
- *_param,
221
- _request_timeout=_request_timeout
222
- )
223
- return response_data.response
224
-
225
-
226
- def _get_virtual_pharmacies_serialize(
227
- self,
228
- _request_auth,
229
- _content_type,
230
- _headers,
231
- _host_index,
232
- ) -> RequestSerialized:
233
-
234
- _host = None
235
-
236
- _collection_formats: Dict[str, str] = {
237
- }
238
-
239
- _path_params: Dict[str, str] = {}
240
- _query_params: List[Tuple[str, str]] = []
241
- _header_params: Dict[str, Optional[str]] = _headers or {}
242
- _form_params: List[Tuple[str, str]] = []
243
- _files: Dict[
244
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
245
- ] = {}
246
- _body_params: Optional[bytes] = None
247
-
248
- # process the path parameters
249
- # process the query parameters
250
- # process the header parameters
251
- # process the form parameters
252
- # process the body parameter
253
-
254
-
255
- # set the HTTP header `Accept`
256
- if 'Accept' not in _header_params:
257
- _header_params['Accept'] = self.api_client.select_header_accept(
258
- [
259
- 'application/json'
260
- ]
261
- )
262
-
263
-
264
- # authentication setting
265
- _auth_settings: List[str] = [
266
- 'opaque_token'
267
- ]
268
-
269
- return self.api_client.param_serialize(
270
- method='GET',
271
- resource_path='/swifty/1/virtual_pharmacies',
272
- path_params=_path_params,
273
- query_params=_query_params,
274
- header_params=_header_params,
275
- body=_body_params,
276
- post_params=_form_params,
277
- files=_files,
278
- auth_settings=_auth_settings,
279
- collection_formats=_collection_formats,
280
- _host=_host,
281
- _request_auth=_request_auth
282
- )
283
-
284
-