feat(messaging): suite-channel patient email/SMS and entitlement sync
Deploy Ladill Care / deploy (push) Successful in 40s

Prefer platform suite messaging for patient email/SMS, fall back to product
keys; write suite entitlements on Pro wallet, prepaid, and renewal.
This commit is contained in:
isaacclad
2026-07-16 11:24:21 +00:00
parent 7a0a7fcb88
commit c9f5df6ed7
9 changed files with 409 additions and 128 deletions
+5 -3
View File
@@ -50,12 +50,14 @@ SMS_API_KEY_CARE=
SMS_CUSTOMER_RELAY_URL=https://ladill.com/api/sms
SMS_DEFAULT_SENDER_ID=Ladill
# Ladill Bird / SMTP (patient email uses customer keys via Integrations)
SMTP_PLATFORM_API_URL=https://bird.ladill.com/api/smtp
# Platform suite messaging (zero-config — channel=suite; no Bird/SMS product keys required)
# Monolith: MESSAGING_SUITE_PLATFORM_CHANNEL=true, SMTP_API_KEY_CARE + SMS_API_KEY_CARE
SMTP_PLATFORM_API_URL=https://ladill.com/api/smtp
SMTP_API_KEY_CARE=
SMTP_CUSTOMER_RELAY_URL=https://bird.ladill.com/api/smtp
SMTP_CUSTOMER_RELAY_URL=https://ladill.com/api/smtp
CARE_SMTP_FROM=care@ladill.com
CARE_SMTP_FROM_NAME="Ladill Care"
MESSAGING_SETTINGS_URL=https://account.ladill.com/account/settings/messaging?reason=messaging_mailbox_required&from=suite
# Afia in-app assistant (uses platform relay when AFIA_API_KEY is empty)
AFIA_ENABLED=true