diff --git a/patch_api/models/__init__.py b/patch_api/models/__init__.py index 1b55057..6003644 100644 --- a/patch_api/models/__init__.py +++ b/patch_api/models/__init__.py @@ -16,6 +16,23 @@ # import models into model package from patch_api.models.allocation import Allocation +from patch_api.models.create_bitcoin_estimate_request import ( + CreateBitcoinEstimateRequest, +) +from patch_api.models.create_ethereum_estimate_request import ( + CreateEthereumEstimateRequest, +) +from patch_api.models.create_flight_estimate_request import CreateFlightEstimateRequest +from patch_api.models.create_mass_estimate_request import CreateMassEstimateRequest +from patch_api.models.create_order_request import CreateOrderRequest +from patch_api.models.create_preference_request import CreatePreferenceRequest +from patch_api.models.create_shipping_estimate_request import ( + CreateShippingEstimateRequest, +) +from patch_api.models.create_success_response import CreateSuccessResponse +from patch_api.models.create_vehicle_estimate_request import ( + CreateVehicleEstimateRequest, +) from patch_api.models.error_response import ErrorResponse from patch_api.models.estimate import Estimate from patch_api.models.estimate_list_response import EstimateListResponse @@ -31,5 +48,5 @@ from patch_api.models.project import Project from patch_api.models.project_list_response import ProjectListResponse from patch_api.models.project_response import ProjectResponse -from patch_api.models.standard import Standard from patch_api.models.sdg import Sdg +from patch_api.models.standard import Standard diff --git a/patch_api/models/create_bitcoin_estimate_request.py b/patch_api/models/create_bitcoin_estimate_request.py new file mode 100644 index 0000000..0ce2401 --- /dev/null +++ b/patch_api/models/create_bitcoin_estimate_request.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateBitcoinEstimateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "timestamp": "str", + "transaction_value_btc_sats": "int", + "project_id": "str", + "create_order": "bool", + } + + attribute_map = { + "timestamp": "timestamp", + "transaction_value_btc_sats": "transaction_value_btc_sats", + "project_id": "project_id", + "create_order": "create_order", + } + + def __init__( + self, + timestamp=None, + transaction_value_btc_sats=None, + project_id=None, + create_order=None, + local_vars_configuration=None, + ): # noqa: E501 + """CreateBitcoinEstimateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._timestamp = None + self._transaction_value_btc_sats = None + self._project_id = None + self._create_order = None + self.discriminator = None + + self.timestamp = timestamp + self.transaction_value_btc_sats = transaction_value_btc_sats + self.project_id = project_id + self.create_order = create_order + + @property + def timestamp(self): + """Gets the timestamp of this CreateBitcoinEstimateRequest. # noqa: E501 + + + :return: The timestamp of this CreateBitcoinEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateBitcoinEstimateRequest. + + + :param timestamp: The timestamp of this CreateBitcoinEstimateRequest. # noqa: E501 + :type: str + """ + + self._timestamp = timestamp + + @property + def transaction_value_btc_sats(self): + """Gets the transaction_value_btc_sats of this CreateBitcoinEstimateRequest. # noqa: E501 + + + :return: The transaction_value_btc_sats of this CreateBitcoinEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._transaction_value_btc_sats + + @transaction_value_btc_sats.setter + def transaction_value_btc_sats(self, transaction_value_btc_sats): + """Sets the transaction_value_btc_sats of this CreateBitcoinEstimateRequest. + + + :param transaction_value_btc_sats: The transaction_value_btc_sats of this CreateBitcoinEstimateRequest. # noqa: E501 + :type: int + """ + + self._transaction_value_btc_sats = transaction_value_btc_sats + + @property + def project_id(self): + """Gets the project_id of this CreateBitcoinEstimateRequest. # noqa: E501 + + + :return: The project_id of this CreateBitcoinEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateBitcoinEstimateRequest. + + + :param project_id: The project_id of this CreateBitcoinEstimateRequest. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + @property + def create_order(self): + """Gets the create_order of this CreateBitcoinEstimateRequest. # noqa: E501 + + + :return: The create_order of this CreateBitcoinEstimateRequest. # noqa: E501 + :rtype: bool + """ + return self._create_order + + @create_order.setter + def create_order(self, create_order): + """Sets the create_order of this CreateBitcoinEstimateRequest. + + + :param create_order: The create_order of this CreateBitcoinEstimateRequest. # noqa: E501 + :type: bool + """ + + self._create_order = create_order + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateBitcoinEstimateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateBitcoinEstimateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_ethereum_estimate_request.py b/patch_api/models/create_ethereum_estimate_request.py new file mode 100644 index 0000000..0e9ee1f --- /dev/null +++ b/patch_api/models/create_ethereum_estimate_request.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateEthereumEstimateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "timestamp": "str", + "gas_used": "int", + "transaction_value_eth_gwei": "int", + "project_id": "str", + "create_order": "bool", + } + + attribute_map = { + "timestamp": "timestamp", + "gas_used": "gas_used", + "transaction_value_eth_gwei": "transaction_value_eth_gwei", + "project_id": "project_id", + "create_order": "create_order", + } + + def __init__( + self, + timestamp=None, + gas_used=None, + transaction_value_eth_gwei=None, + project_id=None, + create_order=None, + local_vars_configuration=None, + ): # noqa: E501 + """CreateEthereumEstimateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._timestamp = None + self._gas_used = None + self._transaction_value_eth_gwei = None + self._project_id = None + self._create_order = None + self.discriminator = None + + self.timestamp = timestamp + self.gas_used = gas_used + self.transaction_value_eth_gwei = transaction_value_eth_gwei + self.project_id = project_id + self.create_order = create_order + + @property + def timestamp(self): + """Gets the timestamp of this CreateEthereumEstimateRequest. # noqa: E501 + + + :return: The timestamp of this CreateEthereumEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this CreateEthereumEstimateRequest. + + + :param timestamp: The timestamp of this CreateEthereumEstimateRequest. # noqa: E501 + :type: str + """ + + self._timestamp = timestamp + + @property + def gas_used(self): + """Gets the gas_used of this CreateEthereumEstimateRequest. # noqa: E501 + + + :return: The gas_used of this CreateEthereumEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._gas_used + + @gas_used.setter + def gas_used(self, gas_used): + """Sets the gas_used of this CreateEthereumEstimateRequest. + + + :param gas_used: The gas_used of this CreateEthereumEstimateRequest. # noqa: E501 + :type: int + """ + + self._gas_used = gas_used + + @property + def transaction_value_eth_gwei(self): + """Gets the transaction_value_eth_gwei of this CreateEthereumEstimateRequest. # noqa: E501 + + + :return: The transaction_value_eth_gwei of this CreateEthereumEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._transaction_value_eth_gwei + + @transaction_value_eth_gwei.setter + def transaction_value_eth_gwei(self, transaction_value_eth_gwei): + """Sets the transaction_value_eth_gwei of this CreateEthereumEstimateRequest. + + + :param transaction_value_eth_gwei: The transaction_value_eth_gwei of this CreateEthereumEstimateRequest. # noqa: E501 + :type: int + """ + + self._transaction_value_eth_gwei = transaction_value_eth_gwei + + @property + def project_id(self): + """Gets the project_id of this CreateEthereumEstimateRequest. # noqa: E501 + + + :return: The project_id of this CreateEthereumEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateEthereumEstimateRequest. + + + :param project_id: The project_id of this CreateEthereumEstimateRequest. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + @property + def create_order(self): + """Gets the create_order of this CreateEthereumEstimateRequest. # noqa: E501 + + + :return: The create_order of this CreateEthereumEstimateRequest. # noqa: E501 + :rtype: bool + """ + return self._create_order + + @create_order.setter + def create_order(self, create_order): + """Sets the create_order of this CreateEthereumEstimateRequest. + + + :param create_order: The create_order of this CreateEthereumEstimateRequest. # noqa: E501 + :type: bool + """ + + self._create_order = create_order + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateEthereumEstimateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateEthereumEstimateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_flight_estimate_request.py b/patch_api/models/create_flight_estimate_request.py new file mode 100644 index 0000000..3066e43 --- /dev/null +++ b/patch_api/models/create_flight_estimate_request.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateFlightEstimateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = {"distance_m": "int", "project_id": "str", "create_order": "bool"} + + attribute_map = { + "distance_m": "distance_m", + "project_id": "project_id", + "create_order": "create_order", + } + + def __init__( + self, + distance_m=None, + project_id=None, + create_order=None, + local_vars_configuration=None, + ): # noqa: E501 + """CreateFlightEstimateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._distance_m = None + self._project_id = None + self._create_order = None + self.discriminator = None + + self.distance_m = distance_m + self.project_id = project_id + self.create_order = create_order + + @property + def distance_m(self): + """Gets the distance_m of this CreateFlightEstimateRequest. # noqa: E501 + + + :return: The distance_m of this CreateFlightEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._distance_m + + @distance_m.setter + def distance_m(self, distance_m): + """Sets the distance_m of this CreateFlightEstimateRequest. + + + :param distance_m: The distance_m of this CreateFlightEstimateRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation and distance_m is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must not be `None`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and distance_m is not None + and distance_m > 400000000 + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must be a value less than or equal to `400000000`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and distance_m is not None + and distance_m < 0 + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must be a value greater than or equal to `0`" + ) # noqa: E501 + + self._distance_m = distance_m + + @property + def project_id(self): + """Gets the project_id of this CreateFlightEstimateRequest. # noqa: E501 + + + :return: The project_id of this CreateFlightEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateFlightEstimateRequest. + + + :param project_id: The project_id of this CreateFlightEstimateRequest. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + @property + def create_order(self): + """Gets the create_order of this CreateFlightEstimateRequest. # noqa: E501 + + + :return: The create_order of this CreateFlightEstimateRequest. # noqa: E501 + :rtype: bool + """ + return self._create_order + + @create_order.setter + def create_order(self, create_order): + """Sets the create_order of this CreateFlightEstimateRequest. + + + :param create_order: The create_order of this CreateFlightEstimateRequest. # noqa: E501 + :type: bool + """ + + self._create_order = create_order + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFlightEstimateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateFlightEstimateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_mass_estimate_request.py b/patch_api/models/create_mass_estimate_request.py new file mode 100644 index 0000000..9a8eb44 --- /dev/null +++ b/patch_api/models/create_mass_estimate_request.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateMassEstimateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = {"mass_g": "int", "create_order": "bool", "project_id": "str"} + + attribute_map = { + "mass_g": "mass_g", + "create_order": "create_order", + "project_id": "project_id", + } + + def __init__( + self, + mass_g=None, + create_order=None, + project_id=None, + local_vars_configuration=None, + ): # noqa: E501 + """CreateMassEstimateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._mass_g = None + self._create_order = None + self._project_id = None + self.discriminator = None + + self.mass_g = mass_g + self.create_order = create_order + if project_id is not None: + self.project_id = project_id + + @property + def mass_g(self): + """Gets the mass_g of this CreateMassEstimateRequest. # noqa: E501 + + + :return: The mass_g of this CreateMassEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._mass_g + + @mass_g.setter + def mass_g(self, mass_g): + """Sets the mass_g of this CreateMassEstimateRequest. + + + :param mass_g: The mass_g of this CreateMassEstimateRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation and mass_g is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `mass_g`, must not be `None`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and mass_g is not None + and mass_g > 2000000000 + ): # noqa: E501 + raise ValueError( + "Invalid value for `mass_g`, must be a value less than or equal to `2000000000`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and mass_g is not None + and mass_g < 0 + ): # noqa: E501 + raise ValueError( + "Invalid value for `mass_g`, must be a value greater than or equal to `0`" + ) # noqa: E501 + + self._mass_g = mass_g + + @property + def create_order(self): + """Gets the create_order of this CreateMassEstimateRequest. # noqa: E501 + + + :return: The create_order of this CreateMassEstimateRequest. # noqa: E501 + :rtype: bool + """ + return self._create_order + + @create_order.setter + def create_order(self, create_order): + """Sets the create_order of this CreateMassEstimateRequest. + + + :param create_order: The create_order of this CreateMassEstimateRequest. # noqa: E501 + :type: bool + """ + + self._create_order = create_order + + @property + def project_id(self): + """Gets the project_id of this CreateMassEstimateRequest. # noqa: E501 + + + :return: The project_id of this CreateMassEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateMassEstimateRequest. + + + :param project_id: The project_id of this CreateMassEstimateRequest. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateMassEstimateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateMassEstimateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_order_request.py b/patch_api/models/create_order_request.py new file mode 100644 index 0000000..098d6e7 --- /dev/null +++ b/patch_api/models/create_order_request.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateOrderRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "mass_g": "int", + "total_price_cents_usd": "int", + "project_id": "str", + "metadata": "object", + } + + attribute_map = { + "mass_g": "mass_g", + "total_price_cents_usd": "total_price_cents_usd", + "project_id": "project_id", + "metadata": "metadata", + } + + def __init__( + self, + mass_g=None, + total_price_cents_usd=None, + project_id=None, + metadata=None, + local_vars_configuration=None, + ): # noqa: E501 + """CreateOrderRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._mass_g = None + self._total_price_cents_usd = None + self._project_id = None + self._metadata = None + self.discriminator = None + + if mass_g is not None: + self.mass_g = mass_g + if total_price_cents_usd is not None: + self.total_price_cents_usd = total_price_cents_usd + if project_id is not None: + self.project_id = project_id + if metadata is not None: + self.metadata = metadata + + @property + def mass_g(self): + """Gets the mass_g of this CreateOrderRequest. # noqa: E501 + + + :return: The mass_g of this CreateOrderRequest. # noqa: E501 + :rtype: int + """ + return self._mass_g + + @mass_g.setter + def mass_g(self, mass_g): + """Sets the mass_g of this CreateOrderRequest. + + + :param mass_g: The mass_g of this CreateOrderRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation + and mass_g is not None + and mass_g > 2000000000 + ): # noqa: E501 + raise ValueError( + "Invalid value for `mass_g`, must be a value less than or equal to `2000000000`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and mass_g is not None + and mass_g < 0 + ): # noqa: E501 + raise ValueError( + "Invalid value for `mass_g`, must be a value greater than or equal to `0`" + ) # noqa: E501 + + self._mass_g = mass_g + + @property + def total_price_cents_usd(self): + """Gets the total_price_cents_usd of this CreateOrderRequest. # noqa: E501 + + + :return: The total_price_cents_usd of this CreateOrderRequest. # noqa: E501 + :rtype: int + """ + return self._total_price_cents_usd + + @total_price_cents_usd.setter + def total_price_cents_usd(self, total_price_cents_usd): + """Sets the total_price_cents_usd of this CreateOrderRequest. + + + :param total_price_cents_usd: The total_price_cents_usd of this CreateOrderRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation + and total_price_cents_usd is not None + and total_price_cents_usd < 1 + ): # noqa: E501 + raise ValueError( + "Invalid value for `total_price_cents_usd`, must be a value greater than or equal to `1`" + ) # noqa: E501 + + self._total_price_cents_usd = total_price_cents_usd + + @property + def project_id(self): + """Gets the project_id of this CreateOrderRequest. # noqa: E501 + + + :return: The project_id of this CreateOrderRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateOrderRequest. + + + :param project_id: The project_id of this CreateOrderRequest. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + @property + def metadata(self): + """Gets the metadata of this CreateOrderRequest. # noqa: E501 + + + :return: The metadata of this CreateOrderRequest. # noqa: E501 + :rtype: object + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CreateOrderRequest. + + + :param metadata: The metadata of this CreateOrderRequest. # noqa: E501 + :type: object + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateOrderRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateOrderRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_preference_request.py b/patch_api/models/create_preference_request.py new file mode 100644 index 0000000..d5e14a4 --- /dev/null +++ b/patch_api/models/create_preference_request.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreatePreferenceRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = {"project_id": "str"} + + attribute_map = {"project_id": "project_id"} + + def __init__(self, project_id=None, local_vars_configuration=None): # noqa: E501 + """CreatePreferenceRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._project_id = None + self.discriminator = None + + self.project_id = project_id + + @property + def project_id(self): + """Gets the project_id of this CreatePreferenceRequest. # noqa: E501 + + + :return: The project_id of this CreatePreferenceRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreatePreferenceRequest. + + + :param project_id: The project_id of this CreatePreferenceRequest. # noqa: E501 + :type: str + """ + if ( + self.local_vars_configuration.client_side_validation and project_id is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `project_id`, must not be `None`" + ) # noqa: E501 + + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatePreferenceRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreatePreferenceRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_shipping_estimate_request.py b/patch_api/models/create_shipping_estimate_request.py new file mode 100644 index 0000000..72821ce --- /dev/null +++ b/patch_api/models/create_shipping_estimate_request.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateShippingEstimateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "distance_m": "int", + "package_mass_g": "int", + "transportation_method": "str", + "project_id": "str", + "create_order": "bool", + } + + attribute_map = { + "distance_m": "distance_m", + "package_mass_g": "package_mass_g", + "transportation_method": "transportation_method", + "project_id": "project_id", + "create_order": "create_order", + } + + def __init__( + self, + distance_m=None, + package_mass_g=None, + transportation_method=None, + project_id=None, + create_order=None, + local_vars_configuration=None, + ): # noqa: E501 + """CreateShippingEstimateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._distance_m = None + self._package_mass_g = None + self._transportation_method = None + self._project_id = None + self._create_order = None + self.discriminator = None + + self.distance_m = distance_m + self.package_mass_g = package_mass_g + self.transportation_method = transportation_method + self.project_id = project_id + self.create_order = create_order + + @property + def distance_m(self): + """Gets the distance_m of this CreateShippingEstimateRequest. # noqa: E501 + + + :return: The distance_m of this CreateShippingEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._distance_m + + @distance_m.setter + def distance_m(self, distance_m): + """Sets the distance_m of this CreateShippingEstimateRequest. + + + :param distance_m: The distance_m of this CreateShippingEstimateRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation and distance_m is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must not be `None`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and distance_m is not None + and distance_m > 400000000 + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must be a value less than or equal to `400000000`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and distance_m is not None + and distance_m < 0 + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must be a value greater than or equal to `0`" + ) # noqa: E501 + + self._distance_m = distance_m + + @property + def package_mass_g(self): + """Gets the package_mass_g of this CreateShippingEstimateRequest. # noqa: E501 + + + :return: The package_mass_g of this CreateShippingEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._package_mass_g + + @package_mass_g.setter + def package_mass_g(self, package_mass_g): + """Sets the package_mass_g of this CreateShippingEstimateRequest. + + + :param package_mass_g: The package_mass_g of this CreateShippingEstimateRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation + and package_mass_g is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `package_mass_g`, must not be `None`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and package_mass_g is not None + and package_mass_g > 2000000000 + ): # noqa: E501 + raise ValueError( + "Invalid value for `package_mass_g`, must be a value less than or equal to `2000000000`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and package_mass_g is not None + and package_mass_g < 0 + ): # noqa: E501 + raise ValueError( + "Invalid value for `package_mass_g`, must be a value greater than or equal to `0`" + ) # noqa: E501 + + self._package_mass_g = package_mass_g + + @property + def transportation_method(self): + """Gets the transportation_method of this CreateShippingEstimateRequest. # noqa: E501 + + + :return: The transportation_method of this CreateShippingEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._transportation_method + + @transportation_method.setter + def transportation_method(self, transportation_method): + """Sets the transportation_method of this CreateShippingEstimateRequest. + + + :param transportation_method: The transportation_method of this CreateShippingEstimateRequest. # noqa: E501 + :type: str + """ + if ( + self.local_vars_configuration.client_side_validation + and transportation_method is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `transportation_method`, must not be `None`" + ) # noqa: E501 + allowed_values = ["air", "rail", "road", "sea"] # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and transportation_method not in allowed_values + ): # noqa: E501 + raise ValueError( + "Invalid value for `transportation_method` ({0}), must be one of {1}".format( # noqa: E501 + transportation_method, allowed_values + ) + ) + + self._transportation_method = transportation_method + + @property + def project_id(self): + """Gets the project_id of this CreateShippingEstimateRequest. # noqa: E501 + + + :return: The project_id of this CreateShippingEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateShippingEstimateRequest. + + + :param project_id: The project_id of this CreateShippingEstimateRequest. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + @property + def create_order(self): + """Gets the create_order of this CreateShippingEstimateRequest. # noqa: E501 + + + :return: The create_order of this CreateShippingEstimateRequest. # noqa: E501 + :rtype: bool + """ + return self._create_order + + @create_order.setter + def create_order(self, create_order): + """Sets the create_order of this CreateShippingEstimateRequest. + + + :param create_order: The create_order of this CreateShippingEstimateRequest. # noqa: E501 + :type: bool + """ + + self._create_order = create_order + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateShippingEstimateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateShippingEstimateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_success_response.py b/patch_api/models/create_success_response.py new file mode 100644 index 0000000..5ba1d0f --- /dev/null +++ b/patch_api/models/create_success_response.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateSuccessResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = {"success": "bool", "error": "object"} + + attribute_map = {"success": "success", "error": "error"} + + def __init__( + self, success=None, error=None, local_vars_configuration=None + ): # noqa: E501 + """CreateSuccessResponse - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._success = None + self._error = None + self.discriminator = None + + self.success = success + self.error = error + + @property + def success(self): + """Gets the success of this CreateSuccessResponse. # noqa: E501 + + + :return: The success of this CreateSuccessResponse. # noqa: E501 + :rtype: bool + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this CreateSuccessResponse. + + + :param success: The success of this CreateSuccessResponse. # noqa: E501 + :type: bool + """ + if ( + self.local_vars_configuration.client_side_validation and success is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `success`, must not be `None`" + ) # noqa: E501 + + self._success = success + + @property + def error(self): + """Gets the error of this CreateSuccessResponse. # noqa: E501 + + + :return: The error of this CreateSuccessResponse. # noqa: E501 + :rtype: object + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this CreateSuccessResponse. + + + :param error: The error of this CreateSuccessResponse. # noqa: E501 + :type: object + """ + if ( + self.local_vars_configuration.client_side_validation and error is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `error`, must not be `None`" + ) # noqa: E501 + + self._error = error + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSuccessResponse): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateSuccessResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/patch_api/models/create_vehicle_estimate_request.py b/patch_api/models/create_vehicle_estimate_request.py new file mode 100644 index 0000000..9ef8162 --- /dev/null +++ b/patch_api/models/create_vehicle_estimate_request.py @@ -0,0 +1,286 @@ +# coding: utf-8 + +""" + Patch API V1 + + The core API used to integrate with Patch's service # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: developers@usepatch.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from patch_api.configuration import Configuration + + +class CreateVehicleEstimateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "distance_m": "int", + "make": "str", + "model": "str", + "year": "int", + "project_id": "str", + "create_order": "bool", + } + + attribute_map = { + "distance_m": "distance_m", + "make": "make", + "model": "model", + "year": "year", + "project_id": "project_id", + "create_order": "create_order", + } + + def __init__( + self, + distance_m=None, + make=None, + model=None, + year=None, + project_id=None, + create_order=None, + local_vars_configuration=None, + ): # noqa: E501 + """CreateVehicleEstimateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._distance_m = None + self._make = None + self._model = None + self._year = None + self._project_id = None + self._create_order = None + self.discriminator = None + + self.distance_m = distance_m + self.make = make + self.model = model + self.year = year + self.project_id = project_id + self.create_order = create_order + + @property + def distance_m(self): + """Gets the distance_m of this CreateVehicleEstimateRequest. # noqa: E501 + + + :return: The distance_m of this CreateVehicleEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._distance_m + + @distance_m.setter + def distance_m(self, distance_m): + """Sets the distance_m of this CreateVehicleEstimateRequest. + + + :param distance_m: The distance_m of this CreateVehicleEstimateRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation and distance_m is None + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must not be `None`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and distance_m is not None + and distance_m > 400000000 + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must be a value less than or equal to `400000000`" + ) # noqa: E501 + if ( + self.local_vars_configuration.client_side_validation + and distance_m is not None + and distance_m < 0 + ): # noqa: E501 + raise ValueError( + "Invalid value for `distance_m`, must be a value greater than or equal to `0`" + ) # noqa: E501 + + self._distance_m = distance_m + + @property + def make(self): + """Gets the make of this CreateVehicleEstimateRequest. # noqa: E501 + + + :return: The make of this CreateVehicleEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._make + + @make.setter + def make(self, make): + """Sets the make of this CreateVehicleEstimateRequest. + + + :param make: The make of this CreateVehicleEstimateRequest. # noqa: E501 + :type: str + """ + + self._make = make + + @property + def model(self): + """Gets the model of this CreateVehicleEstimateRequest. # noqa: E501 + + + :return: The model of this CreateVehicleEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """Sets the model of this CreateVehicleEstimateRequest. + + + :param model: The model of this CreateVehicleEstimateRequest. # noqa: E501 + :type: str + """ + + self._model = model + + @property + def year(self): + """Gets the year of this CreateVehicleEstimateRequest. # noqa: E501 + + + :return: The year of this CreateVehicleEstimateRequest. # noqa: E501 + :rtype: int + """ + return self._year + + @year.setter + def year(self, year): + """Sets the year of this CreateVehicleEstimateRequest. + + + :param year: The year of this CreateVehicleEstimateRequest. # noqa: E501 + :type: int + """ + if ( + self.local_vars_configuration.client_side_validation + and year is not None + and year < 1900 + ): # noqa: E501 + raise ValueError( + "Invalid value for `year`, must be a value greater than or equal to `1900`" + ) # noqa: E501 + + self._year = year + + @property + def project_id(self): + """Gets the project_id of this CreateVehicleEstimateRequest. # noqa: E501 + + + :return: The project_id of this CreateVehicleEstimateRequest. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateVehicleEstimateRequest. + + + :param project_id: The project_id of this CreateVehicleEstimateRequest. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + @property + def create_order(self): + """Gets the create_order of this CreateVehicleEstimateRequest. # noqa: E501 + + + :return: The create_order of this CreateVehicleEstimateRequest. # noqa: E501 + :rtype: bool + """ + return self._create_order + + @create_order.setter + def create_order(self, create_order): + """Sets the create_order of this CreateVehicleEstimateRequest. + + + :param create_order: The create_order of this CreateVehicleEstimateRequest. # noqa: E501 + :type: bool + """ + + self._create_order = create_order + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list( + map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) + ) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict( + map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") + else item, + value.items(), + ) + ) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateVehicleEstimateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CreateVehicleEstimateRequest): + return True + + return self.to_dict() != other.to_dict()