|
| 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