def METHOD_NAME(domain):
    settings, created = HmacCalloutSettings.objects.get_or_create(domain=domain)
    return {
        'domain': domain,
        'destination_url': settings.destination_url,
        'is_enabled': settings.is_enabled,
        'api_key': settings.api_key,
        'api_secret': settings.api_secret,
    }