text: # coding: utf-8
  
  """
      DocuSign REST API
  
      The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
  
      OpenAPI spec version: v2.1
      Contact: devcenter@docusign.com
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  from pprint import pformat
  from six import iteritems
  import re
  
  
  class DowngradePlanUpdateResponse(object):
      """
      NOTE: This class is auto generated by the swagger code generator program.
      Do not edit the class manually.
      """
      def __init__(self, account_payment_method=None, downgrade_effective_date=None, downgrade_payment_cycle=None, downgrade_plan_id=None, downgrade_plan_name=None, downgrade_request_status=None, message=None):
          """
          DowngradePlanUpdateResponse - a model defined in Swagger
  
          :param dict swaggerTypes: The key is attribute name
                                    and the value is attribute type.
          :param dict attributeMap: The key is attribute name
                                    and the value is json key in definition.
          """
          self.swagger_types = {
              'account_payment_method': 'str',
              'downgrade_effective_date': 'str',
              'downgrade_payment_cycle': 'str',
              'downgrade_plan_id': 'str',
              'downgrade_plan_name': 'str',
              'downgrade_request_status': 'str',
              'message': 'str'
          }
  
          self.attribute_map = {
              'account_payment_method': 'accountPaymentMethod',
              'downgrade_effective_date': 'downgradeEffectiveDate',
              'downgrade_payment_cycle': 'downgradePaymentCycle',
              'downgrade_plan_id': 'downgradePlanId',
              'downgrade_plan_name': 'downgradePlanName',
              'downgrade_request_status': 'downgradeRequestStatus',
              'message': 'message'
          }
  
          self._account_payment_method = account_payment_method
          self._downgrade_effective_date = downgrade_effective_date
          self._downgrade_payment_cycle = downgrade_payment_cycle
          self._downgrade_plan_id = downgrade_plan_id
          self._downgrade_plan_name = downgrade_plan_name
          self._downgrade_request_status = downgrade_request_status
          self._message = message
  
      @property
      def account_payment_method(self):
          """
          Gets the account_payment_method of this DowngradePlanUpdateResponse.
          
  
          :return: The account_payment_method of this DowngradePlanUpdateResponse.
          :rtype: str
          """
          return self._account_payment_method
  
      @account_payment_method.setter
      def account_payment_method(self, account_payment_method):
          """
          Sets the account_payment_method of this DowngradePlanUpdateResponse.
          
  
          :param account_payment_method: The account_payment_method of this DowngradePlanUpdateResponse.
          :type: str
          """
  
          self._account_payment_method = account_payment_method
  
      @property
      def downgrade_effective_date(self):
          """
          Gets the downgrade_effective_date of this DowngradePlanUpdateResponse.
          
  
          :return: The downgrade_effective_date of this DowngradePlanUpdateResponse.
          :rtype: str
          """
          return self._downgrade_effective_date
  
      @downgrade_effective_date.setter
      def downgrade_effective_date(self, downgrade_effective_date):
          """
          Sets the downgrade_effective_date of this DowngradePlanUpdateResponse.
          
  
          :param downgrade_effective_date: The downgrade_effective_date of this DowngradePlanUpdateResponse.
          :type: str
          """
  
          self._downgrade_effective_date = downgrade_effective_date
  
      @property
      def downgrade_payment_cycle(self):
          """
          Gets the downgrade_payment_cycle of this DowngradePlanUpdateResponse.
          
  
          :return: The downgrade_payment_cycle of this DowngradePlanUpdateResponse.
          :rtype: str
          """
          return self._downgrade_payment_cycle
  
      @downgrade_payment_cycle.setter
      def downgrade_payment_cycle(self, downgrade_payment_cycle):
          """
          Sets the downgrade_payment_cycle of this DowngradePlanUpdateResponse.
          
  
          :param downgrade_payment_cycle: The downgrade_payment_cycle of this DowngradePlanUpdateResponse.
          :type: str
          """
  
          self._downgrade_payment_cycle = downgrade_payment_cycle
  
      @property
      def downgrade_plan_id(self):
          """
          Gets the downgrade_plan_id of this DowngradePlanUpdateResponse.
          
  
          :return: The downgrade_plan_id of this DowngradePlanUpdateResponse.
          :rtype: str
          """
          return self._downgrade_plan_id
  
      @downgrade_plan_id.setter
      def downgrade_plan_id(self, downgrade_plan_id):
          """
          Sets the downgrade_plan_id of this DowngradePlanUpdateResponse.
          
  
          :param downgrade_plan_id: The downgrade_plan_id of this DowngradePlanUpdateResponse.
          :type: str
          """
  
          self._downgrade_plan_id = downgrade_plan_id
  
      @property
      def downgrade_plan_name(self):
          """
          Gets the downgrade_plan_name of this DowngradePlanUpdateResponse.
          
  
          :return: The downgrade_plan_name of this DowngradePlanUpdateResponse.
          :rtype: str
          """
          return self._downgrade_plan_name
  
      @downgrade_plan_name.setter
      def downgrade_plan_name(self, downgrade_plan_name):
          """
          Sets the downgrade_plan_name of this DowngradePlanUpdateResponse.
          
  
          :param downgrade_plan_name: The downgrade_plan_name of this DowngradePlanUpdateResponse.
          :type: str
          """
  
          self._downgrade_plan_name = downgrade_plan_name
  
      @property
      def downgrade_request_status(self):
          """
          Gets the downgrade_request_status of this DowngradePlanUpdateResponse.
          
  
          :return: The downgrade_request_status of this DowngradePlanUpdateResponse.
          :rtype: str
          """
          return self._downgrade_request_status
  
      @downgrade_request_status.setter
      def downgrade_request_status(self, downgrade_request_status):
          """
          Sets the downgrade_request_status of this DowngradePlanUpdateResponse.
          
  
          :param downgrade_request_status: The downgrade_request_status of this DowngradePlanUpdateResponse.
          :type: str
          """
  
          self._downgrade_request_status = downgrade_request_status
  
      @property
      def message(self):
          """
          Gets the message of this DowngradePlanUpdateResponse.
          
  
          :return: The message of this DowngradePlanUpdateResponse.
          :rtype: str
          """
          return self._message
  
      @message.setter
      def message(self, message):
          """
          Sets the message of this DowngradePlanUpdateResponse.
          
  
          :param message: The message of this DowngradePlanUpdateResponse.
          :type: str
          """
  
          self._message = message
  
      def to_dict(self):
          """
          Returns the model properties as a dict
          """
          result = {}
  
          for attr, _ in 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 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
          """
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """
          Returns true if both objects are not equal
          """
          return not self == other
  