@staticmethod
    def response_inbound_sms(domain):
        try:
            surveys = filter(
                lambda x: x.method in [METHOD_IVR_SURVEY, METHOD_SMS_SURVEY],
                _active_reminders(domain)
            )
            for survey in surveys:
                survey.active = False
                survey.save()
        except Exception:
            log_accounting_error(
                "Failed to downgrade inbound sms for domain %s."
                % domain.name
            )
            return False
        return True
Return the key associated to a registered file object.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/accounting/subscription_changes.py/DomainDowngradeActionHandler.response_inbound_sms--crossover with--dataset/ETHPy150Open dpkp/kafka-python/kafka/selectors34.py/BaseSelector.get_key