createSubscription
create a subscription for user (existing) to a newsletter
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
options Required | ICreateSubscriptionParams |
Returns
Property | Type | Notes |
---|---|---|
SubscriptionAction | ||
boolean | ||
Cadence | ||
string | ||
DeliveryMethod | ||
string | ||
SubscriptionEntityType | ||
number | ||
string | ||
ISubscriptionMetadata | ||
number | ||
string | ||
string | ||
Optional | ISubscriptionCatalog | |
Optional | INotificationSpec | |
Optional | IUser |
Function defined in common/src/newsletters/api/subscriptions.ts:37