Interface SubscriptionChannels

The channels and consent sub-types to request in a Subscription.

Mirrors the API's subscriptions object: each channel accepts only the consent sub-types the API supports for it, so invalid combinations (transactional email, open-tracking SMS) don't typecheck. Omitting a channel leaves it untouched.

interface SubscriptionChannels {
    email?: readonly EmailConsent[];
    sms?: readonly MessagingConsent[];
    whatsapp?: readonly MessagingConsent[];
}

Properties

Properties

email?: readonly EmailConsent[]

Consent sub-types to request on the EMAIL channel.

sms?: readonly MessagingConsent[]

Consent sub-types to request on the SMS channel.

whatsapp?: readonly MessagingConsent[]

Consent sub-types to request on the WhatsApp channel.