diff --git a/docs/Model/BasicNotification.md b/docs/Model/BasicNotification.md index 0209f75..0ec14f4 100644 --- a/docs/Model/BasicNotification.md +++ b/docs/Model/BasicNotification.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **included_segments** | **string[]** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **excluded_segments** | **string[]** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **include_subscription_ids** | **string[]** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional] -**include_email_tokens** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional] +**include_email_tokens** | **string[]** | Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. | [optional] +**email_to** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. | [optional] **include_phone_numbers** | **string[]** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional] **include_ios_tokens** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional] **include_wp_wns_uris** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional] @@ -110,6 +111,7 @@ Name | Type | Description | Notes **disable_email_click_tracking** | **bool** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] **include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | **string[]** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] +**email_sender_domain** | **string** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **sms_from** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **string[]** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**\onesignal\client\model\FilterExpression[]**](FilterExpression.md) | | [optional] diff --git a/docs/Model/BasicNotificationAllOf.md b/docs/Model/BasicNotificationAllOf.md index 2755491..5fa45d7 100644 --- a/docs/Model/BasicNotificationAllOf.md +++ b/docs/Model/BasicNotificationAllOf.md @@ -97,6 +97,7 @@ Name | Type | Description | Notes **disable_email_click_tracking** | **bool** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] **include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | **string[]** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] +**email_sender_domain** | **string** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **sms_from** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **string[]** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**\onesignal\client\model\FilterExpression[]**](FilterExpression.md) | | [optional] diff --git a/docs/Model/Notification.md b/docs/Model/Notification.md index c2563ee..f80cb4b 100644 --- a/docs/Model/Notification.md +++ b/docs/Model/Notification.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **included_segments** | **string[]** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **excluded_segments** | **string[]** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **include_subscription_ids** | **string[]** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional] -**include_email_tokens** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional] +**include_email_tokens** | **string[]** | Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. | [optional] +**email_to** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. | [optional] **include_phone_numbers** | **string[]** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional] **include_ios_tokens** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional] **include_wp_wns_uris** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional] @@ -110,6 +111,7 @@ Name | Type | Description | Notes **disable_email_click_tracking** | **bool** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] **include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | **string[]** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] +**email_sender_domain** | **string** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **sms_from** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **string[]** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**\onesignal\client\model\FilterExpression[]**](FilterExpression.md) | | [optional] diff --git a/docs/Model/NotificationTarget.md b/docs/Model/NotificationTarget.md index f494a78..11f2b94 100644 --- a/docs/Model/NotificationTarget.md +++ b/docs/Model/NotificationTarget.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **included_segments** | **string[]** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **excluded_segments** | **string[]** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **include_subscription_ids** | **string[]** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional] -**include_email_tokens** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional] +**include_email_tokens** | **string[]** | Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. | [optional] +**email_to** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. | [optional] **include_phone_numbers** | **string[]** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional] **include_ios_tokens** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional] **include_wp_wns_uris** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional] diff --git a/docs/Model/NotificationWithMeta.md b/docs/Model/NotificationWithMeta.md index 5591df7..bc26354 100644 --- a/docs/Model/NotificationWithMeta.md +++ b/docs/Model/NotificationWithMeta.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **included_segments** | **string[]** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **excluded_segments** | **string[]** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] **include_subscription_ids** | **string[]** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional] -**include_email_tokens** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional] +**include_email_tokens** | **string[]** | Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. | [optional] +**email_to** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. | [optional] **include_phone_numbers** | **string[]** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional] **include_ios_tokens** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional] **include_wp_wns_uris** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional] @@ -110,6 +111,7 @@ Name | Type | Description | Notes **disable_email_click_tracking** | **bool** | Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked. | [optional] **include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **email_bcc** | **string[]** | BCC recipients that were set on this email notification. | [optional] +**email_sender_domain** | **string** | Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. | [optional] **sms_from** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **string[]** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**\onesignal\client\model\FilterExpression[]**](FilterExpression.md) | | [optional] diff --git a/docs/Model/SubscriptionNotificationTarget.md b/docs/Model/SubscriptionNotificationTarget.md index 91eebf5..e6f60e5 100644 --- a/docs/Model/SubscriptionNotificationTarget.md +++ b/docs/Model/SubscriptionNotificationTarget.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **include_subscription_ids** | **string[]** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional] -**include_email_tokens** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional] +**include_email_tokens** | **string[]** | Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. | [optional] +**email_to** | **string[]** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. | [optional] **include_phone_numbers** | **string[]** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional] **include_ios_tokens** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional] **include_wp_wns_uris** | **string[]** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional] diff --git a/lib/model/BasicNotification.php b/lib/model/BasicNotification.php index f1c80f2..0503ce9 100644 --- a/lib/model/BasicNotification.php +++ b/lib/model/BasicNotification.php @@ -64,6 +64,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'excluded_segments' => 'string[]', 'include_subscription_ids' => 'string[]', 'include_email_tokens' => 'string[]', + 'email_to' => 'string[]', 'include_phone_numbers' => 'string[]', 'include_ios_tokens' => 'string[]', 'include_wp_wns_uris' => 'string[]', @@ -166,6 +167,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', 'email_bcc' => 'string[]', + 'email_sender_domain' => 'string', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -189,6 +191,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'excluded_segments' => null, 'include_subscription_ids' => null, 'include_email_tokens' => null, + 'email_to' => null, 'include_phone_numbers' => null, 'include_ios_tokens' => null, 'include_wp_wns_uris' => null, @@ -291,6 +294,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, 'email_bcc' => null, + 'email_sender_domain' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -333,6 +337,7 @@ public static function openAPIFormats() 'excluded_segments' => 'excluded_segments', 'include_subscription_ids' => 'include_subscription_ids', 'include_email_tokens' => 'include_email_tokens', + 'email_to' => 'email_to', 'include_phone_numbers' => 'include_phone_numbers', 'include_ios_tokens' => 'include_ios_tokens', 'include_wp_wns_uris' => 'include_wp_wns_uris', @@ -435,6 +440,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', 'email_bcc' => 'email_bcc', + 'email_sender_domain' => 'email_sender_domain', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -456,6 +462,7 @@ public static function openAPIFormats() 'excluded_segments' => 'setExcludedSegments', 'include_subscription_ids' => 'setIncludeSubscriptionIds', 'include_email_tokens' => 'setIncludeEmailTokens', + 'email_to' => 'setEmailTo', 'include_phone_numbers' => 'setIncludePhoneNumbers', 'include_ios_tokens' => 'setIncludeIosTokens', 'include_wp_wns_uris' => 'setIncludeWpWnsUris', @@ -558,6 +565,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', 'email_bcc' => 'setEmailBcc', + 'email_sender_domain' => 'setEmailSenderDomain', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -579,6 +587,7 @@ public static function openAPIFormats() 'excluded_segments' => 'getExcludedSegments', 'include_subscription_ids' => 'getIncludeSubscriptionIds', 'include_email_tokens' => 'getIncludeEmailTokens', + 'email_to' => 'getEmailTo', 'include_phone_numbers' => 'getIncludePhoneNumbers', 'include_ios_tokens' => 'getIncludeIosTokens', 'include_wp_wns_uris' => 'getIncludeWpWnsUris', @@ -681,6 +690,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', 'email_bcc' => 'getEmailBcc', + 'email_sender_domain' => 'getEmailSenderDomain', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -820,6 +830,7 @@ public function __construct(?array $data = null) $this->container['excluded_segments'] = $data['excluded_segments'] ?? null; $this->container['include_subscription_ids'] = $data['include_subscription_ids'] ?? null; $this->container['include_email_tokens'] = $data['include_email_tokens'] ?? null; + $this->container['email_to'] = $data['email_to'] ?? null; $this->container['include_phone_numbers'] = $data['include_phone_numbers'] ?? null; $this->container['include_ios_tokens'] = $data['include_ios_tokens'] ?? null; $this->container['include_wp_wns_uris'] = $data['include_wp_wns_uris'] ?? null; @@ -922,6 +933,7 @@ public function __construct(?array $data = null) $this->container['disable_email_click_tracking'] = $data['disable_email_click_tracking'] ?? null; $this->container['include_unsubscribed'] = $data['include_unsubscribed'] ?? null; $this->container['email_bcc'] = $data['email_bcc'] ?? null; + $this->container['email_sender_domain'] = $data['email_sender_domain'] ?? null; $this->container['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -1067,6 +1079,7 @@ public function setIncludeSubscriptionIds($include_subscription_ids) * Gets include_email_tokens * * @return string[]|null + * @deprecated */ public function getIncludeEmailTokens() { @@ -1076,9 +1089,10 @@ public function getIncludeEmailTokens() /** * Sets include_email_tokens * - * @param string[]|null $include_email_tokens Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call + * @param string[]|null $include_email_tokens Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. * * @return self + * @deprecated */ public function setIncludeEmailTokens($include_email_tokens) { @@ -1087,6 +1101,30 @@ public function setIncludeEmailTokens($include_email_tokens) return $this; } + /** + * Gets email_to + * + * @return string[]|null + */ + public function getEmailTo() + { + return $this->container['email_to']; + } + + /** + * Sets email_to + * + * @param string[]|null $email_to Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. + * + * @return self + */ + public function setEmailTo($email_to) + { + $this->container['email_to'] = $email_to; + + return $this; + } + /** * Gets include_phone_numbers * @@ -3561,6 +3599,30 @@ public function setEmailBcc($email_bcc) return $this; } + /** + * Gets email_sender_domain + * + * @return string|null + */ + public function getEmailSenderDomain() + { + return $this->container['email_sender_domain']; + } + + /** + * Sets email_sender_domain + * + * @param string|null $email_sender_domain Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailSenderDomain($email_sender_domain) + { + $this->container['email_sender_domain'] = $email_sender_domain; + + return $this; + } + /** * Gets sms_from * diff --git a/lib/model/BasicNotificationAllOf.php b/lib/model/BasicNotificationAllOf.php index c5bf4ef..2c8c2c4 100644 --- a/lib/model/BasicNotificationAllOf.php +++ b/lib/model/BasicNotificationAllOf.php @@ -153,6 +153,7 @@ class BasicNotificationAllOf implements ModelInterface, ArrayAccess, \JsonSerial 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', 'email_bcc' => 'string[]', + 'email_sender_domain' => 'string', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -265,6 +266,7 @@ class BasicNotificationAllOf implements ModelInterface, ArrayAccess, \JsonSerial 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, 'email_bcc' => null, + 'email_sender_domain' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -396,6 +398,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', 'email_bcc' => 'email_bcc', + 'email_sender_domain' => 'email_sender_domain', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -506,6 +509,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', 'email_bcc' => 'setEmailBcc', + 'email_sender_domain' => 'setEmailSenderDomain', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -616,6 +620,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', 'email_bcc' => 'getEmailBcc', + 'email_sender_domain' => 'getEmailSenderDomain', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -827,6 +832,7 @@ public function __construct(?array $data = null) $this->container['disable_email_click_tracking'] = $data['disable_email_click_tracking'] ?? null; $this->container['include_unsubscribed'] = $data['include_unsubscribed'] ?? null; $this->container['email_bcc'] = $data['email_bcc'] ?? null; + $this->container['email_sender_domain'] = $data['email_sender_domain'] ?? null; $this->container['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -3132,6 +3138,30 @@ public function setEmailBcc($email_bcc) return $this; } + /** + * Gets email_sender_domain + * + * @return string|null + */ + public function getEmailSenderDomain() + { + return $this->container['email_sender_domain']; + } + + /** + * Sets email_sender_domain + * + * @param string|null $email_sender_domain Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailSenderDomain($email_sender_domain) + { + $this->container['email_sender_domain'] = $email_sender_domain; + + return $this; + } + /** * Gets sms_from * diff --git a/lib/model/Notification.php b/lib/model/Notification.php index 86ca5b5..8ccfbec 100644 --- a/lib/model/Notification.php +++ b/lib/model/Notification.php @@ -64,6 +64,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'excluded_segments' => 'string[]', 'include_subscription_ids' => 'string[]', 'include_email_tokens' => 'string[]', + 'email_to' => 'string[]', 'include_phone_numbers' => 'string[]', 'include_ios_tokens' => 'string[]', 'include_wp_wns_uris' => 'string[]', @@ -166,6 +167,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', 'email_bcc' => 'string[]', + 'email_sender_domain' => 'string', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -190,6 +192,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'excluded_segments' => null, 'include_subscription_ids' => null, 'include_email_tokens' => null, + 'email_to' => null, 'include_phone_numbers' => null, 'include_ios_tokens' => null, 'include_wp_wns_uris' => null, @@ -292,6 +295,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, 'email_bcc' => null, + 'email_sender_domain' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -335,6 +339,7 @@ public static function openAPIFormats() 'excluded_segments' => 'excluded_segments', 'include_subscription_ids' => 'include_subscription_ids', 'include_email_tokens' => 'include_email_tokens', + 'email_to' => 'email_to', 'include_phone_numbers' => 'include_phone_numbers', 'include_ios_tokens' => 'include_ios_tokens', 'include_wp_wns_uris' => 'include_wp_wns_uris', @@ -437,6 +442,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', 'email_bcc' => 'email_bcc', + 'email_sender_domain' => 'email_sender_domain', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -459,6 +465,7 @@ public static function openAPIFormats() 'excluded_segments' => 'setExcludedSegments', 'include_subscription_ids' => 'setIncludeSubscriptionIds', 'include_email_tokens' => 'setIncludeEmailTokens', + 'email_to' => 'setEmailTo', 'include_phone_numbers' => 'setIncludePhoneNumbers', 'include_ios_tokens' => 'setIncludeIosTokens', 'include_wp_wns_uris' => 'setIncludeWpWnsUris', @@ -561,6 +568,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', 'email_bcc' => 'setEmailBcc', + 'email_sender_domain' => 'setEmailSenderDomain', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -583,6 +591,7 @@ public static function openAPIFormats() 'excluded_segments' => 'getExcludedSegments', 'include_subscription_ids' => 'getIncludeSubscriptionIds', 'include_email_tokens' => 'getIncludeEmailTokens', + 'email_to' => 'getEmailTo', 'include_phone_numbers' => 'getIncludePhoneNumbers', 'include_ios_tokens' => 'getIncludeIosTokens', 'include_wp_wns_uris' => 'getIncludeWpWnsUris', @@ -685,6 +694,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', 'email_bcc' => 'getEmailBcc', + 'email_sender_domain' => 'getEmailSenderDomain', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -825,6 +835,7 @@ public function __construct(?array $data = null) $this->container['excluded_segments'] = $data['excluded_segments'] ?? null; $this->container['include_subscription_ids'] = $data['include_subscription_ids'] ?? null; $this->container['include_email_tokens'] = $data['include_email_tokens'] ?? null; + $this->container['email_to'] = $data['email_to'] ?? null; $this->container['include_phone_numbers'] = $data['include_phone_numbers'] ?? null; $this->container['include_ios_tokens'] = $data['include_ios_tokens'] ?? null; $this->container['include_wp_wns_uris'] = $data['include_wp_wns_uris'] ?? null; @@ -927,6 +938,7 @@ public function __construct(?array $data = null) $this->container['disable_email_click_tracking'] = $data['disable_email_click_tracking'] ?? null; $this->container['include_unsubscribed'] = $data['include_unsubscribed'] ?? null; $this->container['email_bcc'] = $data['email_bcc'] ?? null; + $this->container['email_sender_domain'] = $data['email_sender_domain'] ?? null; $this->container['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -1073,6 +1085,7 @@ public function setIncludeSubscriptionIds($include_subscription_ids) * Gets include_email_tokens * * @return string[]|null + * @deprecated */ public function getIncludeEmailTokens() { @@ -1082,9 +1095,10 @@ public function getIncludeEmailTokens() /** * Sets include_email_tokens * - * @param string[]|null $include_email_tokens Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call + * @param string[]|null $include_email_tokens Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. * * @return self + * @deprecated */ public function setIncludeEmailTokens($include_email_tokens) { @@ -1093,6 +1107,30 @@ public function setIncludeEmailTokens($include_email_tokens) return $this; } + /** + * Gets email_to + * + * @return string[]|null + */ + public function getEmailTo() + { + return $this->container['email_to']; + } + + /** + * Sets email_to + * + * @param string[]|null $email_to Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. + * + * @return self + */ + public function setEmailTo($email_to) + { + $this->container['email_to'] = $email_to; + + return $this; + } + /** * Gets include_phone_numbers * @@ -3567,6 +3605,30 @@ public function setEmailBcc($email_bcc) return $this; } + /** + * Gets email_sender_domain + * + * @return string|null + */ + public function getEmailSenderDomain() + { + return $this->container['email_sender_domain']; + } + + /** + * Sets email_sender_domain + * + * @param string|null $email_sender_domain Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailSenderDomain($email_sender_domain) + { + $this->container['email_sender_domain'] = $email_sender_domain; + + return $this; + } + /** * Gets sms_from * diff --git a/lib/model/NotificationTarget.php b/lib/model/NotificationTarget.php index 51f4ff4..4a47767 100644 --- a/lib/model/NotificationTarget.php +++ b/lib/model/NotificationTarget.php @@ -64,6 +64,7 @@ class NotificationTarget implements ModelInterface, ArrayAccess, \JsonSerializab 'excluded_segments' => 'string[]', 'include_subscription_ids' => 'string[]', 'include_email_tokens' => 'string[]', + 'email_to' => 'string[]', 'include_phone_numbers' => 'string[]', 'include_ios_tokens' => 'string[]', 'include_wp_wns_uris' => 'string[]', @@ -87,6 +88,7 @@ class NotificationTarget implements ModelInterface, ArrayAccess, \JsonSerializab 'excluded_segments' => null, 'include_subscription_ids' => null, 'include_email_tokens' => null, + 'email_to' => null, 'include_phone_numbers' => null, 'include_ios_tokens' => null, 'include_wp_wns_uris' => null, @@ -129,6 +131,7 @@ public static function openAPIFormats() 'excluded_segments' => 'excluded_segments', 'include_subscription_ids' => 'include_subscription_ids', 'include_email_tokens' => 'include_email_tokens', + 'email_to' => 'email_to', 'include_phone_numbers' => 'include_phone_numbers', 'include_ios_tokens' => 'include_ios_tokens', 'include_wp_wns_uris' => 'include_wp_wns_uris', @@ -150,6 +153,7 @@ public static function openAPIFormats() 'excluded_segments' => 'setExcludedSegments', 'include_subscription_ids' => 'setIncludeSubscriptionIds', 'include_email_tokens' => 'setIncludeEmailTokens', + 'email_to' => 'setEmailTo', 'include_phone_numbers' => 'setIncludePhoneNumbers', 'include_ios_tokens' => 'setIncludeIosTokens', 'include_wp_wns_uris' => 'setIncludeWpWnsUris', @@ -171,6 +175,7 @@ public static function openAPIFormats() 'excluded_segments' => 'getExcludedSegments', 'include_subscription_ids' => 'getIncludeSubscriptionIds', 'include_email_tokens' => 'getIncludeEmailTokens', + 'email_to' => 'getEmailTo', 'include_phone_numbers' => 'getIncludePhoneNumbers', 'include_ios_tokens' => 'getIncludeIosTokens', 'include_wp_wns_uris' => 'getIncludeWpWnsUris', @@ -260,6 +265,7 @@ public function __construct(?array $data = null) $this->container['excluded_segments'] = $data['excluded_segments'] ?? null; $this->container['include_subscription_ids'] = $data['include_subscription_ids'] ?? null; $this->container['include_email_tokens'] = $data['include_email_tokens'] ?? null; + $this->container['email_to'] = $data['email_to'] ?? null; $this->container['include_phone_numbers'] = $data['include_phone_numbers'] ?? null; $this->container['include_ios_tokens'] = $data['include_ios_tokens'] ?? null; $this->container['include_wp_wns_uris'] = $data['include_wp_wns_uris'] ?? null; @@ -380,6 +386,7 @@ public function setIncludeSubscriptionIds($include_subscription_ids) * Gets include_email_tokens * * @return string[]|null + * @deprecated */ public function getIncludeEmailTokens() { @@ -389,9 +396,10 @@ public function getIncludeEmailTokens() /** * Sets include_email_tokens * - * @param string[]|null $include_email_tokens Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call + * @param string[]|null $include_email_tokens Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. * * @return self + * @deprecated */ public function setIncludeEmailTokens($include_email_tokens) { @@ -400,6 +408,30 @@ public function setIncludeEmailTokens($include_email_tokens) return $this; } + /** + * Gets email_to + * + * @return string[]|null + */ + public function getEmailTo() + { + return $this->container['email_to']; + } + + /** + * Sets email_to + * + * @param string[]|null $email_to Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. + * + * @return self + */ + public function setEmailTo($email_to) + { + $this->container['email_to'] = $email_to; + + return $this; + } + /** * Gets include_phone_numbers * diff --git a/lib/model/NotificationWithMeta.php b/lib/model/NotificationWithMeta.php index 6eeae40..7bcc83f 100644 --- a/lib/model/NotificationWithMeta.php +++ b/lib/model/NotificationWithMeta.php @@ -64,6 +64,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'excluded_segments' => 'string[]', 'include_subscription_ids' => 'string[]', 'include_email_tokens' => 'string[]', + 'email_to' => 'string[]', 'include_phone_numbers' => 'string[]', 'include_ios_tokens' => 'string[]', 'include_wp_wns_uris' => 'string[]', @@ -166,6 +167,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', 'email_bcc' => 'string[]', + 'email_sender_domain' => 'string', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -202,6 +204,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'excluded_segments' => null, 'include_subscription_ids' => null, 'include_email_tokens' => null, + 'email_to' => null, 'include_phone_numbers' => null, 'include_ios_tokens' => null, 'include_wp_wns_uris' => null, @@ -304,6 +307,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, 'email_bcc' => null, + 'email_sender_domain' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -359,6 +363,7 @@ public static function openAPIFormats() 'excluded_segments' => 'excluded_segments', 'include_subscription_ids' => 'include_subscription_ids', 'include_email_tokens' => 'include_email_tokens', + 'email_to' => 'email_to', 'include_phone_numbers' => 'include_phone_numbers', 'include_ios_tokens' => 'include_ios_tokens', 'include_wp_wns_uris' => 'include_wp_wns_uris', @@ -461,6 +466,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', 'email_bcc' => 'email_bcc', + 'email_sender_domain' => 'email_sender_domain', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -495,6 +501,7 @@ public static function openAPIFormats() 'excluded_segments' => 'setExcludedSegments', 'include_subscription_ids' => 'setIncludeSubscriptionIds', 'include_email_tokens' => 'setIncludeEmailTokens', + 'email_to' => 'setEmailTo', 'include_phone_numbers' => 'setIncludePhoneNumbers', 'include_ios_tokens' => 'setIncludeIosTokens', 'include_wp_wns_uris' => 'setIncludeWpWnsUris', @@ -597,6 +604,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', 'email_bcc' => 'setEmailBcc', + 'email_sender_domain' => 'setEmailSenderDomain', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -631,6 +639,7 @@ public static function openAPIFormats() 'excluded_segments' => 'getExcludedSegments', 'include_subscription_ids' => 'getIncludeSubscriptionIds', 'include_email_tokens' => 'getIncludeEmailTokens', + 'email_to' => 'getEmailTo', 'include_phone_numbers' => 'getIncludePhoneNumbers', 'include_ios_tokens' => 'getIncludeIosTokens', 'include_wp_wns_uris' => 'getIncludeWpWnsUris', @@ -733,6 +742,7 @@ public static function openAPIFormats() 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', 'email_bcc' => 'getEmailBcc', + 'email_sender_domain' => 'getEmailSenderDomain', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -885,6 +895,7 @@ public function __construct(?array $data = null) $this->container['excluded_segments'] = $data['excluded_segments'] ?? null; $this->container['include_subscription_ids'] = $data['include_subscription_ids'] ?? null; $this->container['include_email_tokens'] = $data['include_email_tokens'] ?? null; + $this->container['email_to'] = $data['email_to'] ?? null; $this->container['include_phone_numbers'] = $data['include_phone_numbers'] ?? null; $this->container['include_ios_tokens'] = $data['include_ios_tokens'] ?? null; $this->container['include_wp_wns_uris'] = $data['include_wp_wns_uris'] ?? null; @@ -987,6 +998,7 @@ public function __construct(?array $data = null) $this->container['disable_email_click_tracking'] = $data['disable_email_click_tracking'] ?? null; $this->container['include_unsubscribed'] = $data['include_unsubscribed'] ?? null; $this->container['email_bcc'] = $data['email_bcc'] ?? null; + $this->container['email_sender_domain'] = $data['email_sender_domain'] ?? null; $this->container['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -1141,6 +1153,7 @@ public function setIncludeSubscriptionIds($include_subscription_ids) * Gets include_email_tokens * * @return string[]|null + * @deprecated */ public function getIncludeEmailTokens() { @@ -1150,9 +1163,10 @@ public function getIncludeEmailTokens() /** * Sets include_email_tokens * - * @param string[]|null $include_email_tokens Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call + * @param string[]|null $include_email_tokens Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. * * @return self + * @deprecated */ public function setIncludeEmailTokens($include_email_tokens) { @@ -1161,6 +1175,30 @@ public function setIncludeEmailTokens($include_email_tokens) return $this; } + /** + * Gets email_to + * + * @return string[]|null + */ + public function getEmailTo() + { + return $this->container['email_to']; + } + + /** + * Sets email_to + * + * @param string[]|null $email_to Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. + * + * @return self + */ + public function setEmailTo($email_to) + { + $this->container['email_to'] = $email_to; + + return $this; + } + /** * Gets include_phone_numbers * @@ -3631,6 +3669,30 @@ public function setEmailBcc($email_bcc) return $this; } + /** + * Gets email_sender_domain + * + * @return string|null + */ + public function getEmailSenderDomain() + { + return $this->container['email_sender_domain']; + } + + /** + * Sets email_sender_domain + * + * @param string|null $email_sender_domain Channel: Email Sender domain to use for the email message. Overrides the default sender domain configured for the app. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailSenderDomain($email_sender_domain) + { + $this->container['email_sender_domain'] = $email_sender_domain; + + return $this; + } + /** * Gets sms_from * diff --git a/lib/model/SubscriptionNotificationTarget.php b/lib/model/SubscriptionNotificationTarget.php index 9851d2e..13eab5a 100644 --- a/lib/model/SubscriptionNotificationTarget.php +++ b/lib/model/SubscriptionNotificationTarget.php @@ -62,6 +62,7 @@ class SubscriptionNotificationTarget implements ModelInterface, ArrayAccess, \Js protected static $openAPITypes = [ 'include_subscription_ids' => 'string[]', 'include_email_tokens' => 'string[]', + 'email_to' => 'string[]', 'include_phone_numbers' => 'string[]', 'include_ios_tokens' => 'string[]', 'include_wp_wns_uris' => 'string[]', @@ -83,6 +84,7 @@ class SubscriptionNotificationTarget implements ModelInterface, ArrayAccess, \Js protected static $openAPIFormats = [ 'include_subscription_ids' => null, 'include_email_tokens' => null, + 'email_to' => null, 'include_phone_numbers' => null, 'include_ios_tokens' => null, 'include_wp_wns_uris' => null, @@ -123,6 +125,7 @@ public static function openAPIFormats() protected static $attributeMap = [ 'include_subscription_ids' => 'include_subscription_ids', 'include_email_tokens' => 'include_email_tokens', + 'email_to' => 'email_to', 'include_phone_numbers' => 'include_phone_numbers', 'include_ios_tokens' => 'include_ios_tokens', 'include_wp_wns_uris' => 'include_wp_wns_uris', @@ -142,6 +145,7 @@ public static function openAPIFormats() protected static $setters = [ 'include_subscription_ids' => 'setIncludeSubscriptionIds', 'include_email_tokens' => 'setIncludeEmailTokens', + 'email_to' => 'setEmailTo', 'include_phone_numbers' => 'setIncludePhoneNumbers', 'include_ios_tokens' => 'setIncludeIosTokens', 'include_wp_wns_uris' => 'setIncludeWpWnsUris', @@ -161,6 +165,7 @@ public static function openAPIFormats() protected static $getters = [ 'include_subscription_ids' => 'getIncludeSubscriptionIds', 'include_email_tokens' => 'getIncludeEmailTokens', + 'email_to' => 'getEmailTo', 'include_phone_numbers' => 'getIncludePhoneNumbers', 'include_ios_tokens' => 'getIncludeIosTokens', 'include_wp_wns_uris' => 'getIncludeWpWnsUris', @@ -248,6 +253,7 @@ public function __construct(?array $data = null) { $this->container['include_subscription_ids'] = $data['include_subscription_ids'] ?? null; $this->container['include_email_tokens'] = $data['include_email_tokens'] ?? null; + $this->container['email_to'] = $data['email_to'] ?? null; $this->container['include_phone_numbers'] = $data['include_phone_numbers'] ?? null; $this->container['include_ios_tokens'] = $data['include_ios_tokens'] ?? null; $this->container['include_wp_wns_uris'] = $data['include_wp_wns_uris'] ?? null; @@ -320,6 +326,7 @@ public function setIncludeSubscriptionIds($include_subscription_ids) * Gets include_email_tokens * * @return string[]|null + * @deprecated */ public function getIncludeEmailTokens() { @@ -329,9 +336,10 @@ public function getIncludeEmailTokens() /** * Sets include_email_tokens * - * @param string[]|null $include_email_tokens Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call + * @param string[]|null $include_email_tokens Deprecated alias for `email_to`. Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Prefer `email_to` in new integrations. * * @return self + * @deprecated */ public function setIncludeEmailTokens($include_email_tokens) { @@ -340,6 +348,30 @@ public function setIncludeEmailTokens($include_email_tokens) return $this; } + /** + * Gets email_to + * + * @return string[]|null + */ + public function getEmailTo() + { + return $this->container['email_to']; + } + + /** + * Sets email_to + * + * @param string[]|null $email_to Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts. Limit of 2,000 entries per REST API call. Supersedes the deprecated `include_email_tokens` field. + * + * @return self + */ + public function setEmailTo($email_to) + { + $this->container['email_to'] = $email_to; + + return $this; + } + /** * Gets include_phone_numbers *