Skip to content

Commit 2c24a18

Browse files
authored
Auto-gen import list (#32)
1 parent dd51608 commit 2c24a18

10 files changed

+1934
-1
lines changed

patch_api/models/__init__.py

+18-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@
1616

1717
# import models into model package
1818
from patch_api.models.allocation import Allocation
19+
from patch_api.models.create_bitcoin_estimate_request import (
20+
CreateBitcoinEstimateRequest,
21+
)
22+
from patch_api.models.create_ethereum_estimate_request import (
23+
CreateEthereumEstimateRequest,
24+
)
25+
from patch_api.models.create_flight_estimate_request import CreateFlightEstimateRequest
26+
from patch_api.models.create_mass_estimate_request import CreateMassEstimateRequest
27+
from patch_api.models.create_order_request import CreateOrderRequest
28+
from patch_api.models.create_preference_request import CreatePreferenceRequest
29+
from patch_api.models.create_shipping_estimate_request import (
30+
CreateShippingEstimateRequest,
31+
)
32+
from patch_api.models.create_success_response import CreateSuccessResponse
33+
from patch_api.models.create_vehicle_estimate_request import (
34+
CreateVehicleEstimateRequest,
35+
)
1936
from patch_api.models.error_response import ErrorResponse
2037
from patch_api.models.estimate import Estimate
2138
from patch_api.models.estimate_list_response import EstimateListResponse
@@ -31,5 +48,5 @@
3148
from patch_api.models.project import Project
3249
from patch_api.models.project_list_response import ProjectListResponse
3350
from patch_api.models.project_response import ProjectResponse
34-
from patch_api.models.standard import Standard
3551
from patch_api.models.sdg import Sdg
52+
from patch_api.models.standard import Standard
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
# coding: utf-8
2+
3+
"""
4+
Patch API V1
5+
6+
The core API used to integrate with Patch's service # noqa: E501
7+
8+
The version of the OpenAPI document: v1
9+
Contact: developers@usepatch.com
10+
Generated by: https://openapi-generator.tech
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from patch_api.configuration import Configuration
20+
21+
22+
class CreateBitcoinEstimateRequest(object):
23+
"""NOTE: This class is auto generated by OpenAPI Generator.
24+
Ref: https://openapi-generator.tech
25+
26+
Do not edit the class manually.
27+
"""
28+
29+
"""
30+
Attributes:
31+
openapi_types (dict): The key is attribute name
32+
and the value is attribute type.
33+
attribute_map (dict): The key is attribute name
34+
and the value is json key in definition.
35+
"""
36+
openapi_types = {
37+
"timestamp": "str",
38+
"transaction_value_btc_sats": "int",
39+
"project_id": "str",
40+
"create_order": "bool",
41+
}
42+
43+
attribute_map = {
44+
"timestamp": "timestamp",
45+
"transaction_value_btc_sats": "transaction_value_btc_sats",
46+
"project_id": "project_id",
47+
"create_order": "create_order",
48+
}
49+
50+
def __init__(
51+
self,
52+
timestamp=None,
53+
transaction_value_btc_sats=None,
54+
project_id=None,
55+
create_order=None,
56+
local_vars_configuration=None,
57+
): # noqa: E501
58+
"""CreateBitcoinEstimateRequest - a model defined in OpenAPI""" # noqa: E501
59+
if local_vars_configuration is None:
60+
local_vars_configuration = Configuration()
61+
self.local_vars_configuration = local_vars_configuration
62+
63+
self._timestamp = None
64+
self._transaction_value_btc_sats = None
65+
self._project_id = None
66+
self._create_order = None
67+
self.discriminator = None
68+
69+
self.timestamp = timestamp
70+
self.transaction_value_btc_sats = transaction_value_btc_sats
71+
self.project_id = project_id
72+
self.create_order = create_order
73+
74+
@property
75+
def timestamp(self):
76+
"""Gets the timestamp of this CreateBitcoinEstimateRequest. # noqa: E501
77+
78+
79+
:return: The timestamp of this CreateBitcoinEstimateRequest. # noqa: E501
80+
:rtype: str
81+
"""
82+
return self._timestamp
83+
84+
@timestamp.setter
85+
def timestamp(self, timestamp):
86+
"""Sets the timestamp of this CreateBitcoinEstimateRequest.
87+
88+
89+
:param timestamp: The timestamp of this CreateBitcoinEstimateRequest. # noqa: E501
90+
:type: str
91+
"""
92+
93+
self._timestamp = timestamp
94+
95+
@property
96+
def transaction_value_btc_sats(self):
97+
"""Gets the transaction_value_btc_sats of this CreateBitcoinEstimateRequest. # noqa: E501
98+
99+
100+
:return: The transaction_value_btc_sats of this CreateBitcoinEstimateRequest. # noqa: E501
101+
:rtype: int
102+
"""
103+
return self._transaction_value_btc_sats
104+
105+
@transaction_value_btc_sats.setter
106+
def transaction_value_btc_sats(self, transaction_value_btc_sats):
107+
"""Sets the transaction_value_btc_sats of this CreateBitcoinEstimateRequest.
108+
109+
110+
:param transaction_value_btc_sats: The transaction_value_btc_sats of this CreateBitcoinEstimateRequest. # noqa: E501
111+
:type: int
112+
"""
113+
114+
self._transaction_value_btc_sats = transaction_value_btc_sats
115+
116+
@property
117+
def project_id(self):
118+
"""Gets the project_id of this CreateBitcoinEstimateRequest. # noqa: E501
119+
120+
121+
:return: The project_id of this CreateBitcoinEstimateRequest. # noqa: E501
122+
:rtype: str
123+
"""
124+
return self._project_id
125+
126+
@project_id.setter
127+
def project_id(self, project_id):
128+
"""Sets the project_id of this CreateBitcoinEstimateRequest.
129+
130+
131+
:param project_id: The project_id of this CreateBitcoinEstimateRequest. # noqa: E501
132+
:type: str
133+
"""
134+
135+
self._project_id = project_id
136+
137+
@property
138+
def create_order(self):
139+
"""Gets the create_order of this CreateBitcoinEstimateRequest. # noqa: E501
140+
141+
142+
:return: The create_order of this CreateBitcoinEstimateRequest. # noqa: E501
143+
:rtype: bool
144+
"""
145+
return self._create_order
146+
147+
@create_order.setter
148+
def create_order(self, create_order):
149+
"""Sets the create_order of this CreateBitcoinEstimateRequest.
150+
151+
152+
:param create_order: The create_order of this CreateBitcoinEstimateRequest. # noqa: E501
153+
:type: bool
154+
"""
155+
156+
self._create_order = create_order
157+
158+
def to_dict(self):
159+
"""Returns the model properties as a dict"""
160+
result = {}
161+
162+
for attr, _ in six.iteritems(self.openapi_types):
163+
value = getattr(self, attr)
164+
if isinstance(value, list):
165+
result[attr] = list(
166+
map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value)
167+
)
168+
elif hasattr(value, "to_dict"):
169+
result[attr] = value.to_dict()
170+
elif isinstance(value, dict):
171+
result[attr] = dict(
172+
map(
173+
lambda item: (item[0], item[1].to_dict())
174+
if hasattr(item[1], "to_dict")
175+
else item,
176+
value.items(),
177+
)
178+
)
179+
else:
180+
result[attr] = value
181+
182+
return result
183+
184+
def to_str(self):
185+
"""Returns the string representation of the model"""
186+
return pprint.pformat(self.to_dict())
187+
188+
def __repr__(self):
189+
"""For `print` and `pprint`"""
190+
return self.to_str()
191+
192+
def __eq__(self, other):
193+
"""Returns true if both objects are equal"""
194+
if not isinstance(other, CreateBitcoinEstimateRequest):
195+
return False
196+
197+
return self.to_dict() == other.to_dict()
198+
199+
def __ne__(self, other):
200+
"""Returns true if both objects are not equal"""
201+
if not isinstance(other, CreateBitcoinEstimateRequest):
202+
return True
203+
204+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)