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.
- {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/METADATA +1 -1
- rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info/RECORD +19 -0
- rxfoundry/clients/p2rx_api/__init__.py +0 -79
- rxfoundry/clients/p2rx_api/api/__init__.py +0 -17
- rxfoundry/clients/p2rx_api/api/async_api.py +0 -862
- rxfoundry/clients/p2rx_api/api/code_api.py +0 -337
- rxfoundry/clients/p2rx_api/api/fax_api.py +0 -632
- rxfoundry/clients/p2rx_api/api/medication_api.py +0 -666
- rxfoundry/clients/p2rx_api/api/patient_api.py +0 -981
- rxfoundry/clients/p2rx_api/api/pharmacist_api.py +0 -615
- rxfoundry/clients/p2rx_api/api/pharmacy_api.py +0 -684
- rxfoundry/clients/p2rx_api/api/prescriber_api.py +0 -615
- rxfoundry/clients/p2rx_api/api/prescription_api.py +0 -1864
- rxfoundry/clients/p2rx_api/api/token_api.py +0 -314
- rxfoundry/clients/p2rx_api/api/user_api.py +0 -306
- rxfoundry/clients/p2rx_api/api/version_api.py +0 -282
- rxfoundry/clients/p2rx_api/api/virtual_pharmacy_api.py +0 -284
- rxfoundry/clients/p2rx_api/api_client.py +0 -798
- rxfoundry/clients/p2rx_api/api_response.py +0 -21
- rxfoundry/clients/p2rx_api/configuration.py +0 -583
- rxfoundry/clients/p2rx_api/exceptions.py +0 -217
- rxfoundry/clients/p2rx_api/models/__init__.py +0 -50
- rxfoundry/clients/p2rx_api/models/address.py +0 -106
- rxfoundry/clients/p2rx_api/models/asynchronous_response.py +0 -90
- rxfoundry/clients/p2rx_api/models/code.py +0 -92
- rxfoundry/clients/p2rx_api/models/code_qualifier_code.py +0 -96
- rxfoundry/clients/p2rx_api/models/error_message.py +0 -90
- rxfoundry/clients/p2rx_api/models/fax.py +0 -141
- rxfoundry/clients/p2rx_api/models/medication.py +0 -137
- rxfoundry/clients/p2rx_api/models/medication_program_pricing.py +0 -99
- rxfoundry/clients/p2rx_api/models/medication_variant.py +0 -96
- rxfoundry/clients/p2rx_api/models/patient.py +0 -128
- rxfoundry/clients/p2rx_api/models/patient_activity_notification.py +0 -114
- rxfoundry/clients/p2rx_api/models/patient_external_identifier.py +0 -94
- rxfoundry/clients/p2rx_api/models/pharmacist.py +0 -104
- rxfoundry/clients/p2rx_api/models/pharmacy.py +0 -156
- rxfoundry/clients/p2rx_api/models/pharmacy_chain.py +0 -100
- rxfoundry/clients/p2rx_api/models/pharmacy_other_identifier.py +0 -98
- rxfoundry/clients/p2rx_api/models/pharmacy_program_pricing.py +0 -103
- rxfoundry/clients/p2rx_api/models/prescriber.py +0 -106
- rxfoundry/clients/p2rx_api/models/prescription.py +0 -278
- rxfoundry/clients/p2rx_api/models/prescription_change_request.py +0 -123
- rxfoundry/clients/p2rx_api/models/prescription_issue.py +0 -120
- rxfoundry/clients/p2rx_api/models/prescription_patch.py +0 -113
- rxfoundry/clients/p2rx_api/models/prescription_task.py +0 -130
- rxfoundry/clients/p2rx_api/models/prescription_task_status.py +0 -95
- rxfoundry/clients/p2rx_api/models/prescription_transfer_request.py +0 -93
- rxfoundry/clients/p2rx_api/models/prescription_verification.py +0 -107
- rxfoundry/clients/p2rx_api/models/pricing_program.py +0 -90
- rxfoundry/clients/p2rx_api/models/surescripts_message.py +0 -111
- rxfoundry/clients/p2rx_api/models/token.py +0 -92
- rxfoundry/clients/p2rx_api/models/user.py +0 -98
- rxfoundry/clients/p2rx_api/models/version.py +0 -88
- rxfoundry/clients/p2rx_api/models/virtual_pharmacy.py +0 -96
- rxfoundry/clients/p2rx_api/models/workflow_request.py +0 -90
- rxfoundry/clients/p2rx_api/py.typed +0 -0
- rxfoundry/clients/p2rx_api/rest.py +0 -259
- rxfoundry/clients/swifty_api/__init__.py +0 -79
- rxfoundry/clients/swifty_api/api/__init__.py +0 -17
- rxfoundry/clients/swifty_api/api/async_api.py +0 -862
- rxfoundry/clients/swifty_api/api/code_api.py +0 -337
- rxfoundry/clients/swifty_api/api/fax_api.py +0 -632
- rxfoundry/clients/swifty_api/api/medication_api.py +0 -666
- rxfoundry/clients/swifty_api/api/patient_api.py +0 -981
- rxfoundry/clients/swifty_api/api/pharmacist_api.py +0 -615
- rxfoundry/clients/swifty_api/api/pharmacy_api.py +0 -684
- rxfoundry/clients/swifty_api/api/prescriber_api.py +0 -615
- rxfoundry/clients/swifty_api/api/prescription_api.py +0 -1864
- rxfoundry/clients/swifty_api/api/token_api.py +0 -314
- rxfoundry/clients/swifty_api/api/user_api.py +0 -306
- rxfoundry/clients/swifty_api/api/version_api.py +0 -282
- rxfoundry/clients/swifty_api/api/virtual_pharmacy_api.py +0 -284
- rxfoundry/clients/swifty_api/api_client.py +0 -798
- rxfoundry/clients/swifty_api/api_response.py +0 -21
- rxfoundry/clients/swifty_api/configuration.py +0 -583
- rxfoundry/clients/swifty_api/exceptions.py +0 -217
- rxfoundry/clients/swifty_api/models/__init__.py +0 -50
- rxfoundry/clients/swifty_api/models/address.py +0 -106
- rxfoundry/clients/swifty_api/models/asynchronous_response.py +0 -90
- rxfoundry/clients/swifty_api/models/code.py +0 -92
- rxfoundry/clients/swifty_api/models/code_qualifier_code.py +0 -96
- rxfoundry/clients/swifty_api/models/error_message.py +0 -90
- rxfoundry/clients/swifty_api/models/fax.py +0 -141
- rxfoundry/clients/swifty_api/models/medication.py +0 -137
- rxfoundry/clients/swifty_api/models/medication_program_pricing.py +0 -99
- rxfoundry/clients/swifty_api/models/medication_variant.py +0 -96
- rxfoundry/clients/swifty_api/models/patient.py +0 -128
- rxfoundry/clients/swifty_api/models/patient_activity_notification.py +0 -114
- rxfoundry/clients/swifty_api/models/patient_external_identifier.py +0 -94
- rxfoundry/clients/swifty_api/models/pharmacist.py +0 -104
- rxfoundry/clients/swifty_api/models/pharmacy.py +0 -156
- rxfoundry/clients/swifty_api/models/pharmacy_chain.py +0 -100
- rxfoundry/clients/swifty_api/models/pharmacy_other_identifier.py +0 -98
- rxfoundry/clients/swifty_api/models/pharmacy_program_pricing.py +0 -103
- rxfoundry/clients/swifty_api/models/prescriber.py +0 -106
- rxfoundry/clients/swifty_api/models/prescription.py +0 -278
- rxfoundry/clients/swifty_api/models/prescription_change_request.py +0 -123
- rxfoundry/clients/swifty_api/models/prescription_issue.py +0 -120
- rxfoundry/clients/swifty_api/models/prescription_patch.py +0 -113
- rxfoundry/clients/swifty_api/models/prescription_task.py +0 -130
- rxfoundry/clients/swifty_api/models/prescription_task_status.py +0 -95
- rxfoundry/clients/swifty_api/models/prescription_transfer_request.py +0 -93
- rxfoundry/clients/swifty_api/models/prescription_verification.py +0 -107
- rxfoundry/clients/swifty_api/models/pricing_program.py +0 -90
- rxfoundry/clients/swifty_api/models/surescripts_message.py +0 -111
- rxfoundry/clients/swifty_api/models/token.py +0 -92
- rxfoundry/clients/swifty_api/models/user.py +0 -98
- rxfoundry/clients/swifty_api/models/version.py +0 -88
- rxfoundry/clients/swifty_api/models/virtual_pharmacy.py +0 -98
- rxfoundry/clients/swifty_api/models/workflow_request.py +0 -90
- rxfoundry/clients/swifty_api/py.typed +0 -0
- rxfoundry/clients/swifty_api/rest.py +0 -259
- rxfoundry/clients/swifty_oauth_api/models/token_post_request.py +0 -94
- rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info/RECORD +0 -130
- {rxfoundry_clients_swifty_oauth_api-0.0.620.dist-info → rxfoundry_clients_swifty_oauth_api-1.0.0.dist-info}/WHEEL +0 -0
- {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,90 +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
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class PricingProgram(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
PricingProgram
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
program_name: Optional[StrictStr] = None
|
|
31
|
-
program_description: Optional[StrictStr] = None
|
|
32
|
-
__properties: ClassVar[List[str]] = ["program_name", "program_description"]
|
|
33
|
-
|
|
34
|
-
model_config = ConfigDict(
|
|
35
|
-
populate_by_name=True,
|
|
36
|
-
validate_assignment=True,
|
|
37
|
-
protected_namespaces=(),
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
def to_str(self) -> str:
|
|
42
|
-
"""Returns the string representation of the model using alias"""
|
|
43
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
-
|
|
45
|
-
def to_json(self) -> str:
|
|
46
|
-
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
-
|
|
50
|
-
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of PricingProgram from a JSON string"""
|
|
53
|
-
return cls.from_dict(json.loads(json_str))
|
|
54
|
-
|
|
55
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
-
"""Return the dictionary representation of the model using alias.
|
|
57
|
-
|
|
58
|
-
This has the following differences from calling pydantic's
|
|
59
|
-
`self.model_dump(by_alias=True)`:
|
|
60
|
-
|
|
61
|
-
* `None` is only added to the output dict for nullable fields that
|
|
62
|
-
were set at model initialization. Other fields with value `None`
|
|
63
|
-
are ignored.
|
|
64
|
-
"""
|
|
65
|
-
excluded_fields: Set[str] = set([
|
|
66
|
-
])
|
|
67
|
-
|
|
68
|
-
_dict = self.model_dump(
|
|
69
|
-
by_alias=True,
|
|
70
|
-
exclude=excluded_fields,
|
|
71
|
-
exclude_none=True,
|
|
72
|
-
)
|
|
73
|
-
return _dict
|
|
74
|
-
|
|
75
|
-
@classmethod
|
|
76
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
-
"""Create an instance of PricingProgram from a dict"""
|
|
78
|
-
if obj is None:
|
|
79
|
-
return None
|
|
80
|
-
|
|
81
|
-
if not isinstance(obj, dict):
|
|
82
|
-
return cls.model_validate(obj)
|
|
83
|
-
|
|
84
|
-
_obj = cls.model_validate({
|
|
85
|
-
"program_name": obj.get("program_name"),
|
|
86
|
-
"program_description": obj.get("program_description")
|
|
87
|
-
})
|
|
88
|
-
return _obj
|
|
89
|
-
|
|
90
|
-
|
|
@@ -1,111 +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
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from datetime import datetime
|
|
22
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
23
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
|
-
from rxfoundry.clients.swifty_api.models.virtual_pharmacy import VirtualPharmacy
|
|
25
|
-
from typing import Optional, Set
|
|
26
|
-
from typing_extensions import Self
|
|
27
|
-
|
|
28
|
-
class SurescriptsMessage(BaseModel):
|
|
29
|
-
"""
|
|
30
|
-
SurescriptsMessage
|
|
31
|
-
""" # noqa: E501
|
|
32
|
-
uuid: Optional[StrictStr] = None
|
|
33
|
-
virtual_pharmacy: Optional[VirtualPharmacy] = None
|
|
34
|
-
message_id: Optional[StrictStr] = None
|
|
35
|
-
message_type: Optional[StrictStr] = None
|
|
36
|
-
sent_date_time: Optional[datetime] = None
|
|
37
|
-
received_date_time: Optional[datetime] = None
|
|
38
|
-
processed_date_time: Optional[datetime] = None
|
|
39
|
-
message_json: Optional[Dict[str, Any]] = None
|
|
40
|
-
image_pdf: Optional[StrictStr] = None
|
|
41
|
-
image_png: Optional[StrictStr] = None
|
|
42
|
-
__properties: ClassVar[List[str]] = ["uuid", "virtual_pharmacy", "message_id", "message_type", "sent_date_time", "received_date_time", "processed_date_time", "message_json", "image_pdf", "image_png"]
|
|
43
|
-
|
|
44
|
-
model_config = ConfigDict(
|
|
45
|
-
populate_by_name=True,
|
|
46
|
-
validate_assignment=True,
|
|
47
|
-
protected_namespaces=(),
|
|
48
|
-
)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def to_str(self) -> str:
|
|
52
|
-
"""Returns the string representation of the model using alias"""
|
|
53
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
54
|
-
|
|
55
|
-
def to_json(self) -> str:
|
|
56
|
-
"""Returns the JSON representation of the model using alias"""
|
|
57
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
58
|
-
return json.dumps(self.to_dict())
|
|
59
|
-
|
|
60
|
-
@classmethod
|
|
61
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
62
|
-
"""Create an instance of SurescriptsMessage from a JSON string"""
|
|
63
|
-
return cls.from_dict(json.loads(json_str))
|
|
64
|
-
|
|
65
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
66
|
-
"""Return the dictionary representation of the model using alias.
|
|
67
|
-
|
|
68
|
-
This has the following differences from calling pydantic's
|
|
69
|
-
`self.model_dump(by_alias=True)`:
|
|
70
|
-
|
|
71
|
-
* `None` is only added to the output dict for nullable fields that
|
|
72
|
-
were set at model initialization. Other fields with value `None`
|
|
73
|
-
are ignored.
|
|
74
|
-
"""
|
|
75
|
-
excluded_fields: Set[str] = set([
|
|
76
|
-
])
|
|
77
|
-
|
|
78
|
-
_dict = self.model_dump(
|
|
79
|
-
by_alias=True,
|
|
80
|
-
exclude=excluded_fields,
|
|
81
|
-
exclude_none=True,
|
|
82
|
-
)
|
|
83
|
-
# override the default output from pydantic by calling `to_dict()` of virtual_pharmacy
|
|
84
|
-
if self.virtual_pharmacy:
|
|
85
|
-
_dict['virtual_pharmacy'] = self.virtual_pharmacy.to_dict()
|
|
86
|
-
return _dict
|
|
87
|
-
|
|
88
|
-
@classmethod
|
|
89
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
90
|
-
"""Create an instance of SurescriptsMessage from a dict"""
|
|
91
|
-
if obj is None:
|
|
92
|
-
return None
|
|
93
|
-
|
|
94
|
-
if not isinstance(obj, dict):
|
|
95
|
-
return cls.model_validate(obj)
|
|
96
|
-
|
|
97
|
-
_obj = cls.model_validate({
|
|
98
|
-
"uuid": obj.get("uuid"),
|
|
99
|
-
"virtual_pharmacy": VirtualPharmacy.from_dict(obj["virtual_pharmacy"]) if obj.get("virtual_pharmacy") is not None else None,
|
|
100
|
-
"message_id": obj.get("message_id"),
|
|
101
|
-
"message_type": obj.get("message_type"),
|
|
102
|
-
"sent_date_time": obj.get("sent_date_time"),
|
|
103
|
-
"received_date_time": obj.get("received_date_time"),
|
|
104
|
-
"processed_date_time": obj.get("processed_date_time"),
|
|
105
|
-
"message_json": obj.get("message_json"),
|
|
106
|
-
"image_pdf": obj.get("image_pdf"),
|
|
107
|
-
"image_png": obj.get("image_png")
|
|
108
|
-
})
|
|
109
|
-
return _obj
|
|
110
|
-
|
|
111
|
-
|
|
@@ -1,92 +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
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class Token(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
Token
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
access_token: Optional[StrictStr] = None
|
|
31
|
-
expires_in: Optional[StrictInt] = None
|
|
32
|
-
token_type: Optional[StrictStr] = None
|
|
33
|
-
__properties: ClassVar[List[str]] = ["access_token", "expires_in", "token_type"]
|
|
34
|
-
|
|
35
|
-
model_config = ConfigDict(
|
|
36
|
-
populate_by_name=True,
|
|
37
|
-
validate_assignment=True,
|
|
38
|
-
protected_namespaces=(),
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def to_str(self) -> str:
|
|
43
|
-
"""Returns the string representation of the model using alias"""
|
|
44
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
-
|
|
46
|
-
def to_json(self) -> str:
|
|
47
|
-
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
-
|
|
51
|
-
@classmethod
|
|
52
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of Token from a JSON string"""
|
|
54
|
-
return cls.from_dict(json.loads(json_str))
|
|
55
|
-
|
|
56
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
-
"""Return the dictionary representation of the model using alias.
|
|
58
|
-
|
|
59
|
-
This has the following differences from calling pydantic's
|
|
60
|
-
`self.model_dump(by_alias=True)`:
|
|
61
|
-
|
|
62
|
-
* `None` is only added to the output dict for nullable fields that
|
|
63
|
-
were set at model initialization. Other fields with value `None`
|
|
64
|
-
are ignored.
|
|
65
|
-
"""
|
|
66
|
-
excluded_fields: Set[str] = set([
|
|
67
|
-
])
|
|
68
|
-
|
|
69
|
-
_dict = self.model_dump(
|
|
70
|
-
by_alias=True,
|
|
71
|
-
exclude=excluded_fields,
|
|
72
|
-
exclude_none=True,
|
|
73
|
-
)
|
|
74
|
-
return _dict
|
|
75
|
-
|
|
76
|
-
@classmethod
|
|
77
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
-
"""Create an instance of Token from a dict"""
|
|
79
|
-
if obj is None:
|
|
80
|
-
return None
|
|
81
|
-
|
|
82
|
-
if not isinstance(obj, dict):
|
|
83
|
-
return cls.model_validate(obj)
|
|
84
|
-
|
|
85
|
-
_obj = cls.model_validate({
|
|
86
|
-
"access_token": obj.get("access_token"),
|
|
87
|
-
"expires_in": obj.get("expires_in"),
|
|
88
|
-
"token_type": obj.get("token_type")
|
|
89
|
-
})
|
|
90
|
-
return _obj
|
|
91
|
-
|
|
92
|
-
|
|
@@ -1,98 +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
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class User(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
User
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
username: Optional[StrictStr] = None
|
|
31
|
-
first_name: Optional[StrictStr] = None
|
|
32
|
-
last_name: Optional[StrictStr] = None
|
|
33
|
-
email: Optional[StrictStr] = None
|
|
34
|
-
is_staff: Optional[StrictBool] = None
|
|
35
|
-
is_superuser: Optional[StrictBool] = None
|
|
36
|
-
__properties: ClassVar[List[str]] = ["username", "first_name", "last_name", "email", "is_staff", "is_superuser"]
|
|
37
|
-
|
|
38
|
-
model_config = ConfigDict(
|
|
39
|
-
populate_by_name=True,
|
|
40
|
-
validate_assignment=True,
|
|
41
|
-
protected_namespaces=(),
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def to_str(self) -> str:
|
|
46
|
-
"""Returns the string representation of the model using alias"""
|
|
47
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
-
|
|
49
|
-
def to_json(self) -> str:
|
|
50
|
-
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
53
|
-
|
|
54
|
-
@classmethod
|
|
55
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
-
"""Create an instance of User from a JSON string"""
|
|
57
|
-
return cls.from_dict(json.loads(json_str))
|
|
58
|
-
|
|
59
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
-
"""Return the dictionary representation of the model using alias.
|
|
61
|
-
|
|
62
|
-
This has the following differences from calling pydantic's
|
|
63
|
-
`self.model_dump(by_alias=True)`:
|
|
64
|
-
|
|
65
|
-
* `None` is only added to the output dict for nullable fields that
|
|
66
|
-
were set at model initialization. Other fields with value `None`
|
|
67
|
-
are ignored.
|
|
68
|
-
"""
|
|
69
|
-
excluded_fields: Set[str] = set([
|
|
70
|
-
])
|
|
71
|
-
|
|
72
|
-
_dict = self.model_dump(
|
|
73
|
-
by_alias=True,
|
|
74
|
-
exclude=excluded_fields,
|
|
75
|
-
exclude_none=True,
|
|
76
|
-
)
|
|
77
|
-
return _dict
|
|
78
|
-
|
|
79
|
-
@classmethod
|
|
80
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
-
"""Create an instance of User from a dict"""
|
|
82
|
-
if obj is None:
|
|
83
|
-
return None
|
|
84
|
-
|
|
85
|
-
if not isinstance(obj, dict):
|
|
86
|
-
return cls.model_validate(obj)
|
|
87
|
-
|
|
88
|
-
_obj = cls.model_validate({
|
|
89
|
-
"username": obj.get("username"),
|
|
90
|
-
"first_name": obj.get("first_name"),
|
|
91
|
-
"last_name": obj.get("last_name"),
|
|
92
|
-
"email": obj.get("email"),
|
|
93
|
-
"is_staff": obj.get("is_staff"),
|
|
94
|
-
"is_superuser": obj.get("is_superuser")
|
|
95
|
-
})
|
|
96
|
-
return _obj
|
|
97
|
-
|
|
98
|
-
|
|
@@ -1,88 +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
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class Version(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
Version
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
version: Optional[StrictStr] = None
|
|
31
|
-
__properties: ClassVar[List[str]] = ["version"]
|
|
32
|
-
|
|
33
|
-
model_config = ConfigDict(
|
|
34
|
-
populate_by_name=True,
|
|
35
|
-
validate_assignment=True,
|
|
36
|
-
protected_namespaces=(),
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def to_str(self) -> str:
|
|
41
|
-
"""Returns the string representation of the model using alias"""
|
|
42
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
-
|
|
44
|
-
def to_json(self) -> str:
|
|
45
|
-
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
-
|
|
49
|
-
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of Version from a JSON string"""
|
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
|
53
|
-
|
|
54
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
-
"""Return the dictionary representation of the model using alias.
|
|
56
|
-
|
|
57
|
-
This has the following differences from calling pydantic's
|
|
58
|
-
`self.model_dump(by_alias=True)`:
|
|
59
|
-
|
|
60
|
-
* `None` is only added to the output dict for nullable fields that
|
|
61
|
-
were set at model initialization. Other fields with value `None`
|
|
62
|
-
are ignored.
|
|
63
|
-
"""
|
|
64
|
-
excluded_fields: Set[str] = set([
|
|
65
|
-
])
|
|
66
|
-
|
|
67
|
-
_dict = self.model_dump(
|
|
68
|
-
by_alias=True,
|
|
69
|
-
exclude=excluded_fields,
|
|
70
|
-
exclude_none=True,
|
|
71
|
-
)
|
|
72
|
-
return _dict
|
|
73
|
-
|
|
74
|
-
@classmethod
|
|
75
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
-
"""Create an instance of Version from a dict"""
|
|
77
|
-
if obj is None:
|
|
78
|
-
return None
|
|
79
|
-
|
|
80
|
-
if not isinstance(obj, dict):
|
|
81
|
-
return cls.model_validate(obj)
|
|
82
|
-
|
|
83
|
-
_obj = cls.model_validate({
|
|
84
|
-
"version": obj.get("version")
|
|
85
|
-
})
|
|
86
|
-
return _obj
|
|
87
|
-
|
|
88
|
-
|
|
@@ -1,96 +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
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from rxfoundry.clients.swifty_api.models.pharmacy import Pharmacy
|
|
24
|
-
from typing import Optional, Set
|
|
25
|
-
from typing_extensions import Self
|
|
26
|
-
|
|
27
|
-
class VirtualPharmacy(BaseModel):
|
|
28
|
-
"""
|
|
29
|
-
VirtualPharmacy
|
|
30
|
-
""" # noqa: E501
|
|
31
|
-
uuid: Optional[StrictStr] = None
|
|
32
|
-
name: Optional[StrictStr] = None
|
|
33
|
-
pharmacy: Optional[Pharmacy] = None
|
|
34
|
-
__properties: ClassVar[List[str]] = ["uuid", "name", "pharmacy"]
|
|
35
|
-
|
|
36
|
-
model_config = ConfigDict(
|
|
37
|
-
populate_by_name=True,
|
|
38
|
-
validate_assignment=True,
|
|
39
|
-
protected_namespaces=(),
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
def to_str(self) -> str:
|
|
44
|
-
"""Returns the string representation of the model using alias"""
|
|
45
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
-
|
|
47
|
-
def to_json(self) -> str:
|
|
48
|
-
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
-
|
|
52
|
-
@classmethod
|
|
53
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
-
"""Create an instance of VirtualPharmacy from a JSON string"""
|
|
55
|
-
return cls.from_dict(json.loads(json_str))
|
|
56
|
-
|
|
57
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
-
"""Return the dictionary representation of the model using alias.
|
|
59
|
-
|
|
60
|
-
This has the following differences from calling pydantic's
|
|
61
|
-
`self.model_dump(by_alias=True)`:
|
|
62
|
-
|
|
63
|
-
* `None` is only added to the output dict for nullable fields that
|
|
64
|
-
were set at model initialization. Other fields with value `None`
|
|
65
|
-
are ignored.
|
|
66
|
-
"""
|
|
67
|
-
excluded_fields: Set[str] = set([
|
|
68
|
-
])
|
|
69
|
-
|
|
70
|
-
_dict = self.model_dump(
|
|
71
|
-
by_alias=True,
|
|
72
|
-
exclude=excluded_fields,
|
|
73
|
-
exclude_none=True,
|
|
74
|
-
)
|
|
75
|
-
# override the default output from pydantic by calling `to_dict()` of pharmacy
|
|
76
|
-
if self.pharmacy:
|
|
77
|
-
_dict['pharmacy'] = self.pharmacy.to_dict()
|
|
78
|
-
return _dict
|
|
79
|
-
|
|
80
|
-
@classmethod
|
|
81
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
82
|
-
"""Create an instance of VirtualPharmacy from a dict"""
|
|
83
|
-
if obj is None:
|
|
84
|
-
return None
|
|
85
|
-
|
|
86
|
-
if not isinstance(obj, dict):
|
|
87
|
-
return cls.model_validate(obj)
|
|
88
|
-
|
|
89
|
-
_obj = cls.model_validate({
|
|
90
|
-
"uuid": obj.get("uuid"),
|
|
91
|
-
"name": obj.get("name"),
|
|
92
|
-
"pharmacy": Pharmacy.from_dict(obj["pharmacy"]) if obj.get("pharmacy") is not None else None
|
|
93
|
-
})
|
|
94
|
-
return _obj
|
|
95
|
-
|
|
96
|
-
|
|
@@ -1,90 +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
|
-
|
|
16
|
-
from __future__ import annotations
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
import json
|
|
20
|
-
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class WorkflowRequest(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
WorkflowRequest
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
workflow_name: Optional[StrictStr] = None
|
|
31
|
-
object_uuid: Optional[StrictStr] = None
|
|
32
|
-
__properties: ClassVar[List[str]] = ["workflow_name", "object_uuid"]
|
|
33
|
-
|
|
34
|
-
model_config = ConfigDict(
|
|
35
|
-
populate_by_name=True,
|
|
36
|
-
validate_assignment=True,
|
|
37
|
-
protected_namespaces=(),
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
def to_str(self) -> str:
|
|
42
|
-
"""Returns the string representation of the model using alias"""
|
|
43
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
-
|
|
45
|
-
def to_json(self) -> str:
|
|
46
|
-
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
-
|
|
50
|
-
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of WorkflowRequest from a JSON string"""
|
|
53
|
-
return cls.from_dict(json.loads(json_str))
|
|
54
|
-
|
|
55
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
-
"""Return the dictionary representation of the model using alias.
|
|
57
|
-
|
|
58
|
-
This has the following differences from calling pydantic's
|
|
59
|
-
`self.model_dump(by_alias=True)`:
|
|
60
|
-
|
|
61
|
-
* `None` is only added to the output dict for nullable fields that
|
|
62
|
-
were set at model initialization. Other fields with value `None`
|
|
63
|
-
are ignored.
|
|
64
|
-
"""
|
|
65
|
-
excluded_fields: Set[str] = set([
|
|
66
|
-
])
|
|
67
|
-
|
|
68
|
-
_dict = self.model_dump(
|
|
69
|
-
by_alias=True,
|
|
70
|
-
exclude=excluded_fields,
|
|
71
|
-
exclude_none=True,
|
|
72
|
-
)
|
|
73
|
-
return _dict
|
|
74
|
-
|
|
75
|
-
@classmethod
|
|
76
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
-
"""Create an instance of WorkflowRequest from a dict"""
|
|
78
|
-
if obj is None:
|
|
79
|
-
return None
|
|
80
|
-
|
|
81
|
-
if not isinstance(obj, dict):
|
|
82
|
-
return cls.model_validate(obj)
|
|
83
|
-
|
|
84
|
-
_obj = cls.model_validate({
|
|
85
|
-
"workflow_name": obj.get("workflow_name"),
|
|
86
|
-
"object_uuid": obj.get("object_uuid")
|
|
87
|
-
})
|
|
88
|
-
return _obj
|
|
89
|
-
|
|
90
|
-
|
|
File without changes
|