def METHOD_NAME(self, domain_dict):
    """
    Takes a domain dict and applies required transformation to make it suitable for ES.
    :param domain: an instance of ``dict`` which is result of ``Domain.to_json()``
    """
    from corehq.apps.accounting.models import Subscription
    sub = Subscription.visible_objects.filter(subscriber__domain=domain_dict['name'], is_active=True)
    domain_dict['deployment'] = domain_dict.get('deployment') or {}
    countries = domain_dict['deployment'].get('countries', [])
    domain_dict['deployment']['countries'] = []
    if sub:
        domain_dict['subscription'] = sub[0].plan_version.plan.edition
    for country in countries:
        domain_dict['deployment']['countries'].append(Countries[country].upper())
    return super().METHOD_NAME(domain_dict)