old_contents: """Script used to define Paystack subscription class"""
  
  from paystackapi.base import PayStackBase
  
  
  class Subscription(PayStackBase):
      """docstring for Subscription."""
  
      @classmethod
      def create(cls, **kwargs):
          """
          Create subscription.
  
          Args:
              customer: Customer's email address or customer code
              plan: Plan code
              authorization: customers authorization code
              start_date:  the date for the first debit. (ISO 8601 format)
  
          Returns:
              Json data from paystack API.
          """
          return cls().requests.post('subscription', data=kwargs)
  
      @classmethod
      def list(cls):
          """
          List subscriptions.
  
          Args:
              No argument required.
  
          Returns:
              Json data from paystack API.
          """
          return cls().requests.get('subscription')
  
      @classmethod
      def disable(cls, **kwargs):
          """
          Disables subscription
          Args:
              code: Subscription code
              token: Email token
          returns:
              Json data from paystack API
          """
          return cls().requests.post('subscription/disable', data=kwargs)
  
      @classmethod
      def enable(cls, **kwargs):
          """
          Disables subscription
  
          Args:
              code: Subscription code
              token: Email token
  
          returns:
              Json data from paystack API
          """
          return cls().requests.post('subscription/enable', data=kwargs)
  
      @classmethod
      def fetch(cls, subscription_id):
          """
          Fetch subscription.
  
          Args:
              subscription_id: subscription id.
  
          Returns:
              Json data from paystack API.
          """
          return cls().requests.get('subscription/{subscription_id}'.format(**locals()))
  
new_contents: """Script used to define Paystack subscription class"""
  
  from paystackapi.base import PayStackBase
  
  
  class Subscription(PayStackBase):
      """docstring for Subscription."""
  
      @classmethod
      def create(cls, **kwargs):
          """
          Create subscription.
  
          Args:
              customer: Customer's email address or customer code
              plan: Plan code
              authorization: customers authorization code
              start_date:  the date for the first debit. (ISO 8601 format)
  
          Returns:
              Json data from paystack API.
          """
          return cls().requests.post('subscription', data=kwargs)
  
      @classmethod
      def list(cls):
          """
          List subscriptions.
  
          Args:
              No argument required.
  
          Returns:
              Json data from paystack API.
          """
          return cls().requests.get('subscription')
  
      @classmethod
      def disable(cls, **kwargs):
          """
          Disables subscription
          Args:
              code: Subscription code
              token: Email token
          returns:
              Json data from paystack API
          """
          return cls().requests.post('subscription/disable', data=kwargs)
  
      @classmethod
      def enable(cls, **kwargs):
          """
          Disables subscription
  
          Args:
              code: Subscription code
              token: Email token
  
          returns:
              Json data from paystack API
          """
          return cls().requests.post('subscription/enable', data=kwargs)
  
      @classmethod
      def fetch(cls, subscription_id):
          """
          Fetch subscription.
  
          Args:
              subscription_id: subscription id.
  
          Returns:
              Json data from paystack API.
          """
          return cls().requests.get(f"subscription/{subscription_id}")
  
subject: update Subscription