# coding: utf-8

"""
    Metadata API

    The Metadata API has operations that retrieve configuration details pertaining to the different eBay marketplaces. In addition to marketplace information, the API also has operations that get information that helps sellers list items on eBay.  # noqa: E501

    OpenAPI spec version: v1.12.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class ShippingLocation(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'description': 'str',
        'shipping_location': 'str'
    }

    attribute_map = {
        'description': 'description',
        'shipping_location': 'shippingLocation'
    }

    def __init__(self, description=None, shipping_location=None):  # noqa: E501
        """ShippingLocation - a model defined in Swagger"""  # noqa: E501
        self._description = None
        self._shipping_location = None
        self.discriminator = None
        if description is not None:
            self.description = description
        if shipping_location is not None:
            self.shipping_location = shipping_location

    @property
    def description(self):
        """Gets the description of this ShippingLocation.  # noqa: E501

        The localized location name.  # noqa: E501

        :return: The description of this ShippingLocation.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this ShippingLocation.

        The localized location name.  # noqa: E501

        :param description: The description of this ShippingLocation.  # noqa: E501
        :type: str
        """

        self._description = description

    @property
    def shipping_location(self):
        """Gets the shipping_location of this ShippingLocation.  # noqa: E501

        The name or abbreviation of the shipping location or region. Countries are returned through <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 codes</a>. This field may also include continents and other larger geographical regions (for example, the Middle East, Southeast Asia), as well as domestic/special locations (like APO/FPO, PO Box, Alaska/Hawaii). The values returned in this field are used in fulfillment business policies (such as in <a href=\"/api-docs/sell/account/resources/fulfillment_policy/methods/createFulfillmentPolicy#request.shippingOptions.shippingServices.shipToLocations.regionExcluded.regionName\" target=\"_blank\">regionName</a>) or through the <a href=\"/Devzone/XML/docs/Reference/eBay/AddItem.html#Request.Item.ShippingDetails.ExcludeShipToLocation\" target=\"_blank\">ExcludeShipToLocation</a> field in an <b>AddItem</b> call.  # noqa: E501

        :return: The shipping_location of this ShippingLocation.  # noqa: E501
        :rtype: str
        """
        return self._shipping_location

    @shipping_location.setter
    def shipping_location(self, shipping_location):
        """Sets the shipping_location of this ShippingLocation.

        The name or abbreviation of the shipping location or region. Countries are returned through <a href=\"https://www.iso.org/iso-3166-country-codes.html\" target=\"_blank\">ISO 3166 codes</a>. This field may also include continents and other larger geographical regions (for example, the Middle East, Southeast Asia), as well as domestic/special locations (like APO/FPO, PO Box, Alaska/Hawaii). The values returned in this field are used in fulfillment business policies (such as in <a href=\"/api-docs/sell/account/resources/fulfillment_policy/methods/createFulfillmentPolicy#request.shippingOptions.shippingServices.shipToLocations.regionExcluded.regionName\" target=\"_blank\">regionName</a>) or through the <a href=\"/Devzone/XML/docs/Reference/eBay/AddItem.html#Request.Item.ShippingDetails.ExcludeShipToLocation\" target=\"_blank\">ExcludeShipToLocation</a> field in an <b>AddItem</b> call.  # noqa: E501

        :param shipping_location: The shipping_location of this ShippingLocation.  # noqa: E501
        :type: str
        """

        self._shipping_location = shipping_location

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_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
        if issubclass(ShippingLocation, dict):
            for key, value in self.items():
                result[key] = 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, ShippingLocation):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
