text: # coding: utf-8
  
  """
      UltraCart Rest API V2
  
      UltraCart REST API Version 2  # noqa: E501
  
      OpenAPI spec version: 2.0.0
      Contact: support@ultracart.com
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  import pprint
  import re  # noqa: F401
  
  import six
  
  
  class PaymentsConfigurationMoneyOrder(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 = {
          'accept_money_orders': 'bool',
          'accounting_code': 'str',
          'deposit_to_account': 'str',
          'restrictions': 'PaymentsConfigurationRestrictions'
      }
  
      attribute_map = {
          'accept_money_orders': 'accept_money_orders',
          'accounting_code': 'accounting_code',
          'deposit_to_account': 'deposit_to_account',
          'restrictions': 'restrictions'
      }
  
      def __init__(self, accept_money_orders=None, accounting_code=None, deposit_to_account=None, restrictions=None):  # noqa: E501
          """PaymentsConfigurationMoneyOrder - a model defined in Swagger"""  # noqa: E501
  
          self._accept_money_orders = None
          self._accounting_code = None
          self._deposit_to_account = None
          self._restrictions = None
          self.discriminator = None
  
          if accept_money_orders is not None:
              self.accept_money_orders = accept_money_orders
          if accounting_code is not None:
              self.accounting_code = accounting_code
          if deposit_to_account is not None:
              self.deposit_to_account = deposit_to_account
          if restrictions is not None:
              self.restrictions = restrictions
  
      @property
      def accept_money_orders(self):
          """Gets the accept_money_orders of this PaymentsConfigurationMoneyOrder.  # noqa: E501
  
          Master flag for this merchant accepting money orders  # noqa: E501
  
          :return: The accept_money_orders of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :rtype: bool
          """
          return self._accept_money_orders
  
      @accept_money_orders.setter
      def accept_money_orders(self, accept_money_orders):
          """Sets the accept_money_orders of this PaymentsConfigurationMoneyOrder.
  
          Master flag for this merchant accepting money orders  # noqa: E501
  
          :param accept_money_orders: The accept_money_orders of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :type: bool
          """
  
          self._accept_money_orders = accept_money_orders
  
      @property
      def accounting_code(self):
          """Gets the accounting_code of this PaymentsConfigurationMoneyOrder.  # noqa: E501
  
          Optional Quickbooks accounting code  # noqa: E501
  
          :return: The accounting_code of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :rtype: str
          """
          return self._accounting_code
  
      @accounting_code.setter
      def accounting_code(self, accounting_code):
          """Sets the accounting_code of this PaymentsConfigurationMoneyOrder.
  
          Optional Quickbooks accounting code  # noqa: E501
  
          :param accounting_code: The accounting_code of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :type: str
          """
  
          self._accounting_code = accounting_code
  
      @property
      def deposit_to_account(self):
          """Gets the deposit_to_account of this PaymentsConfigurationMoneyOrder.  # noqa: E501
  
          Optional Quickbooks deposit to account  # noqa: E501
  
          :return: The deposit_to_account of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :rtype: str
          """
          return self._deposit_to_account
  
      @deposit_to_account.setter
      def deposit_to_account(self, deposit_to_account):
          """Sets the deposit_to_account of this PaymentsConfigurationMoneyOrder.
  
          Optional Quickbooks deposit to account  # noqa: E501
  
          :param deposit_to_account: The deposit_to_account of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :type: str
          """
  
          self._deposit_to_account = deposit_to_account
  
      @property
      def restrictions(self):
          """Gets the restrictions of this PaymentsConfigurationMoneyOrder.  # noqa: E501
  
  
          :return: The restrictions of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :rtype: PaymentsConfigurationRestrictions
          """
          return self._restrictions
  
      @restrictions.setter
      def restrictions(self, restrictions):
          """Sets the restrictions of this PaymentsConfigurationMoneyOrder.
  
  
          :param restrictions: The restrictions of this PaymentsConfigurationMoneyOrder.  # noqa: E501
          :type: PaymentsConfigurationRestrictions
          """
  
          self._restrictions = restrictions
  
      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(PaymentsConfigurationMoneyOrder, 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, PaymentsConfigurationMoneyOrder):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  