# coding: utf-8

"""
    StockX API

    PRERELEASE API - Subject to change before release. Provides access to StockX's public services, allowing end users to query for product and order information.  # noqa: E501

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


import pprint
import re  # noqa: F401

import six


class CustomerObjectMerchant(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 = {
        'merchant_id': 'str',
        'paypal_email': 'str',
        'preferred_payout': 'str',
        'account_name': 'str'
    }

    attribute_map = {
        'merchant_id': 'merchantId',
        'paypal_email': 'paypalEmail',
        'preferred_payout': 'preferredPayout',
        'account_name': 'accountName'
    }

    def __init__(self, merchant_id=None, paypal_email=None, preferred_payout=None, account_name=None):  # noqa: E501
        """CustomerObjectMerchant - a model defined in Swagger"""  # noqa: E501

        self._merchant_id = None
        self._paypal_email = None
        self._preferred_payout = None
        self._account_name = None
        self.discriminator = None

        if merchant_id is not None:
            self.merchant_id = merchant_id
        if paypal_email is not None:
            self.paypal_email = paypal_email
        if preferred_payout is not None:
            self.preferred_payout = preferred_payout
        if account_name is not None:
            self.account_name = account_name

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


        :return: The merchant_id of this CustomerObjectMerchant.  # noqa: E501
        :rtype: str
        """
        return self._merchant_id

    @merchant_id.setter
    def merchant_id(self, merchant_id):
        """Sets the merchant_id of this CustomerObjectMerchant.


        :param merchant_id: The merchant_id of this CustomerObjectMerchant.  # noqa: E501
        :type: str
        """

        self._merchant_id = merchant_id

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


        :return: The paypal_email of this CustomerObjectMerchant.  # noqa: E501
        :rtype: str
        """
        return self._paypal_email

    @paypal_email.setter
    def paypal_email(self, paypal_email):
        """Sets the paypal_email of this CustomerObjectMerchant.


        :param paypal_email: The paypal_email of this CustomerObjectMerchant.  # noqa: E501
        :type: str
        """

        self._paypal_email = paypal_email

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


        :return: The preferred_payout of this CustomerObjectMerchant.  # noqa: E501
        :rtype: str
        """
        return self._preferred_payout

    @preferred_payout.setter
    def preferred_payout(self, preferred_payout):
        """Sets the preferred_payout of this CustomerObjectMerchant.


        :param preferred_payout: The preferred_payout of this CustomerObjectMerchant.  # noqa: E501
        :type: str
        """

        self._preferred_payout = preferred_payout

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


        :return: The account_name of this CustomerObjectMerchant.  # noqa: E501
        :rtype: str
        """
        return self._account_name

    @account_name.setter
    def account_name(self, account_name):
        """Sets the account_name of this CustomerObjectMerchant.


        :param account_name: The account_name of this CustomerObjectMerchant.  # noqa: E501
        :type: str
        """

        self._account_name = account_name

    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

        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, CustomerObjectMerchant):
            return False

        return self.__dict__ == other.__dict__

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