code: def delete(self, subscription_id, data=None):
          
          if not subscription_id or not subscription_id.startswith(self.RESOURCE_ID_PREFIX):
              raise IdentifierError(
                  "Invalid subscription ID: '{id}'. A subscription ID should start with '{prefix}'.".format(
                      id=subscription_id, prefix=self.RESOURCE_ID_PREFIX)
              )
          result = super(CustomerSubscriptions, self).delete(subscription_id, data)
          return self.get_resource_object(result)
docs: Cancel subscription and return the subscription object.
  
          Deleting a subscription causes the subscription status to changed to 'canceled'.
          The updated subscription object is returned.