Files
web_django_template/site/directmail/providers/postcard/postgrid.py
T
westfarnandCursor 787f0e48fb Populate the client website template with catalog feature flags.
Extract always-on public/portal/UTM plus optional email_sms, directmail, blog, payments, social, and social_ai so new client sites can be bootstrapped from this seed.

Refs #1
Refs #2

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 07:55:26 -05:00

23 lines
592 B
Python

"""PostGrid postcard adapter."""
from dataclasses import dataclass
from django.conf import settings
from directmail.providers.postcard import PostcardResult
@dataclass
class PostGridProvider:
name: str = "postgrid"
def send_postcard(self, message) -> PostcardResult:
if not settings.POSTGRID_API_KEY:
raise RuntimeError("POSTGRID_API_KEY is not configured")
raise NotImplementedError(
"PostGrid adapter stub — configure account then implement send"
)
def get_status(self, provider_id: str) -> str:
return "unknown"