diff --git a/README.md b/README.md index d182868..4c480aa 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ A powerful way to send personalized messages at scale and build effective custom For more information, please visit [https://onesignal.com](https://onesignal.com). -- API version: 5.5.0 -- Package version: 5.5.0 +- API version: 5.6.0 +- Package version: 5.6.0 ## Requirements diff --git a/composer.json b/composer.json index f6b2435..02d5850 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "onesignal/onesignal-php-api", - "version": "5.5.0", + "version": "5.6.0", "description": "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com", "keywords": [ "onesignal", 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/ApiException.php b/lib/ApiException.php index e2078a5..dbe7bf2 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/Configuration.php b/lib/Configuration.php index 3b2cddb..b7ee784 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -99,7 +99,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/5.5.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/5.6.0/PHP'; /** * Debug switch (default set to false) @@ -430,8 +430,8 @@ public static function toDebugReport() $report = 'PHP SDK (onesignal\client) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 5.5.0' . PHP_EOL; - $report .= ' SDK Package Version: 5.5.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 5.6.0' . PHP_EOL; + $report .= ' SDK Package Version: 5.6.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 200b665..b4ecb35 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 5c7ddeb..29ff4c0 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/api/DefaultApi.php b/lib/api/DefaultApi.php index 0966170..f5f7287 100644 --- a/lib/api/DefaultApi.php +++ b/lib/api/DefaultApi.php @@ -14,7 +14,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -474,7 +474,7 @@ public function cancelNotificationRequest($app_id, $notification_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -820,7 +820,7 @@ public function copyTemplateToAppRequest($template_id, $app_id, $copy_template_r } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -1245,7 +1245,7 @@ public function createAliasRequest($app_id, $alias_label, $alias_id, $user_ident } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -1651,7 +1651,7 @@ public function createAliasBySubscriptionRequest($app_id, $subscription_id, $use } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -1977,7 +1977,7 @@ public function createApiKeyRequest($app_id, $create_api_key_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -2307,7 +2307,7 @@ public function createAppRequest($app) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -2679,7 +2679,7 @@ public function createCustomEventsRequest($app_id, $custom_events_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -3009,7 +3009,7 @@ public function createNotificationRequest($notification) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -3375,7 +3375,7 @@ public function createSegmentRequest($app_id, $segment = null) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -3823,7 +3823,7 @@ public function createSubscriptionRequest($app_id, $alias_label, $alias_id, $sub } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -4153,7 +4153,7 @@ public function createTemplateRequest($create_template_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -4563,7 +4563,7 @@ public function createUserRequest($app_id, $user) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -4990,7 +4990,7 @@ public function deleteAliasRequest($app_id, $alias_label, $alias_id, $alias_labe } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -5318,7 +5318,7 @@ public function deleteApiKeyRequest($app_id, $token_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -5692,7 +5692,7 @@ public function deleteSegmentRequest($app_id, $segment_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -5967,7 +5967,7 @@ public function deleteSubscriptionRequest($app_id, $subscription_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -6319,7 +6319,7 @@ public function deleteTemplateRequest($template_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -6605,7 +6605,7 @@ public function deleteUserRequest($app_id, $alias_label, $alias_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -6980,7 +6980,7 @@ public function exportEventsRequest($notification_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -7323,7 +7323,7 @@ public function exportSubscriptionsRequest($app_id, $export_subscriptions_reques } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -7708,7 +7708,7 @@ public function getAliasesRequest($app_id, $alias_label, $alias_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -8051,7 +8051,7 @@ public function getAliasesBySubscriptionRequest($app_id, $subscription_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -8383,7 +8383,7 @@ public function getAppRequest($app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -8696,7 +8696,7 @@ public function getAppsRequest() } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -9071,7 +9071,7 @@ public function getNotificationRequest($app_id, $notification_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -9443,7 +9443,7 @@ public function getNotificationHistoryRequest($notification_id, $get_notificatio } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -9818,7 +9818,7 @@ public function getNotificationsRequest($app_id, $limit = null, $offset = null, } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -10226,7 +10226,7 @@ public function getOutcomesRequest($app_id, $outcome_names, $outcome_names2 = nu } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -10586,7 +10586,7 @@ public function getSegmentsRequest($app_id, $offset = null, $limit = null) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -10971,7 +10971,7 @@ public function getUserRequest($app_id, $alias_label, $alias_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -11299,7 +11299,7 @@ public function rotateApiKeyRequest($app_id, $token_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -11667,7 +11667,7 @@ public function startLiveActivityRequest($app_id, $activity_type, $start_live_ac } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -12073,7 +12073,7 @@ public function transferSubscriptionRequest($app_id, $subscription_id, $transfer } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -12444,7 +12444,7 @@ public function unsubscribeEmailWithTokenRequest($app_id, $notification_id, $tok } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -12789,7 +12789,7 @@ public function updateApiKeyRequest($app_id, $token_id, $update_api_key_request) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -13138,7 +13138,7 @@ public function updateAppRequest($app_id, $app) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -13506,7 +13506,7 @@ public function updateLiveActivityRequest($app_id, $activity_id, $update_live_ac } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -13798,7 +13798,7 @@ public function updateSubscriptionRequest($app_id, $subscription_id, $subscripti } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -14185,7 +14185,7 @@ public function updateSubscriptionByTokenRequest($app_id, $token_type, $token, $ } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -14531,7 +14531,7 @@ public function updateTemplateRequest($template_id, $app_id, $update_template_re } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -14933,7 +14933,7 @@ public function updateUserRequest($app_id, $alias_label, $alias_id, $update_user } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -15242,7 +15242,7 @@ public function viewApiKeysRequest($app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -15594,7 +15594,7 @@ public function viewTemplateRequest($template_id, $app_id) } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, @@ -15969,7 +15969,7 @@ public function viewTemplatesRequest($app_id, $limit = 50, $offset = 0, $channel } // Adding the telemetry header - $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.6.0'; $headers = array_merge( $defaultHeaders, diff --git a/lib/model/ApiKeyToken.php b/lib/model/ApiKeyToken.php index bdc89cd..80dd5c5 100644 --- a/lib/model/ApiKeyToken.php +++ b/lib/model/ApiKeyToken.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ApiKeyTokensListResponse.php b/lib/model/ApiKeyTokensListResponse.php index 0e2532f..a508cfe 100644 --- a/lib/model/ApiKeyTokensListResponse.php +++ b/lib/model/ApiKeyTokensListResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/App.php b/lib/model/App.php index 41dfa7b..4fa50a8 100644 --- a/lib/model/App.php +++ b/lib/model/App.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/BasicNotification.php b/lib/model/BasicNotification.php index f1c80f2..b71e633 100644 --- a/lib/model/BasicNotification.php +++ b/lib/model/BasicNotification.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -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..875c067 100644 --- a/lib/model/BasicNotificationAllOf.php +++ b/lib/model/BasicNotificationAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -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/BasicNotificationAllOfAndroidBackgroundLayout.php b/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php index 85a86ea..6933b0c 100644 --- a/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php +++ b/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Button.php b/lib/model/Button.php index 9de4dfd..8656261 100644 --- a/lib/model/Button.php +++ b/lib/model/Button.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CopyTemplateRequest.php b/lib/model/CopyTemplateRequest.php index ee8e651..e87c79f 100644 --- a/lib/model/CopyTemplateRequest.php +++ b/lib/model/CopyTemplateRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateApiKeyRequest.php b/lib/model/CreateApiKeyRequest.php index b1247dc..bd08da5 100644 --- a/lib/model/CreateApiKeyRequest.php +++ b/lib/model/CreateApiKeyRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateApiKeyResponse.php b/lib/model/CreateApiKeyResponse.php index 6de8b13..f3c1440 100644 --- a/lib/model/CreateApiKeyResponse.php +++ b/lib/model/CreateApiKeyResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateNotificationSuccessResponse.php b/lib/model/CreateNotificationSuccessResponse.php index 4d8e926..322ea00 100644 --- a/lib/model/CreateNotificationSuccessResponse.php +++ b/lib/model/CreateNotificationSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateSegmentConflictResponse.php b/lib/model/CreateSegmentConflictResponse.php index 5edd005..8836ef2 100644 --- a/lib/model/CreateSegmentConflictResponse.php +++ b/lib/model/CreateSegmentConflictResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateSegmentSuccessResponse.php b/lib/model/CreateSegmentSuccessResponse.php index 1842f4a..8bb27c0 100644 --- a/lib/model/CreateSegmentSuccessResponse.php +++ b/lib/model/CreateSegmentSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateTemplateRequest.php b/lib/model/CreateTemplateRequest.php index c487ccf..3f9a71e 100644 --- a/lib/model/CreateTemplateRequest.php +++ b/lib/model/CreateTemplateRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateUserConflictResponse.php b/lib/model/CreateUserConflictResponse.php index 34b4936..54009a4 100644 --- a/lib/model/CreateUserConflictResponse.php +++ b/lib/model/CreateUserConflictResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateUserConflictResponseErrorsInner.php b/lib/model/CreateUserConflictResponseErrorsInner.php index 5b11003..01281f0 100644 --- a/lib/model/CreateUserConflictResponseErrorsInner.php +++ b/lib/model/CreateUserConflictResponseErrorsInner.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CreateUserConflictResponseErrorsItemsMeta.php b/lib/model/CreateUserConflictResponseErrorsItemsMeta.php index 368d2db..1b1f20d 100644 --- a/lib/model/CreateUserConflictResponseErrorsItemsMeta.php +++ b/lib/model/CreateUserConflictResponseErrorsItemsMeta.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CustomEvent.php b/lib/model/CustomEvent.php index 1510712..61bcea7 100644 --- a/lib/model/CustomEvent.php +++ b/lib/model/CustomEvent.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/CustomEventsRequest.php b/lib/model/CustomEventsRequest.php index 892830e..70f6a91 100644 --- a/lib/model/CustomEventsRequest.php +++ b/lib/model/CustomEventsRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/DeliveryData.php b/lib/model/DeliveryData.php index 9fc3730..18ac402 100644 --- a/lib/model/DeliveryData.php +++ b/lib/model/DeliveryData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ExportEventsSuccessResponse.php b/lib/model/ExportEventsSuccessResponse.php index 1451721..48438c3 100644 --- a/lib/model/ExportEventsSuccessResponse.php +++ b/lib/model/ExportEventsSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ExportSubscriptionsRequestBody.php b/lib/model/ExportSubscriptionsRequestBody.php index cb70b20..8824f52 100644 --- a/lib/model/ExportSubscriptionsRequestBody.php +++ b/lib/model/ExportSubscriptionsRequestBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ExportSubscriptionsSuccessResponse.php b/lib/model/ExportSubscriptionsSuccessResponse.php index fb6bb48..59bf76b 100644 --- a/lib/model/ExportSubscriptionsSuccessResponse.php +++ b/lib/model/ExportSubscriptionsSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Filter.php b/lib/model/Filter.php index b49620a..207fdd0 100644 --- a/lib/model/Filter.php +++ b/lib/model/Filter.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/FilterExpression.php b/lib/model/FilterExpression.php index 45bc658..0a8f0ce 100644 --- a/lib/model/FilterExpression.php +++ b/lib/model/FilterExpression.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GenericError.php b/lib/model/GenericError.php index bdfa409..23963b7 100644 --- a/lib/model/GenericError.php +++ b/lib/model/GenericError.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GenericSuccessBoolResponse.php b/lib/model/GenericSuccessBoolResponse.php index 088d333..3de13e4 100644 --- a/lib/model/GenericSuccessBoolResponse.php +++ b/lib/model/GenericSuccessBoolResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GetNotificationHistoryRequestBody.php b/lib/model/GetNotificationHistoryRequestBody.php index bd3edc5..8d53086 100644 --- a/lib/model/GetNotificationHistoryRequestBody.php +++ b/lib/model/GetNotificationHistoryRequestBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/GetSegmentsSuccessResponse.php b/lib/model/GetSegmentsSuccessResponse.php index 6aab4ae..d97ee84 100644 --- a/lib/model/GetSegmentsSuccessResponse.php +++ b/lib/model/GetSegmentsSuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/LanguageStringMap.php b/lib/model/LanguageStringMap.php index 57f71f8..7b82a56 100644 --- a/lib/model/LanguageStringMap.php +++ b/lib/model/LanguageStringMap.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/ModelInterface.php b/lib/model/ModelInterface.php index 1ac5b97..0bc4ff9 100644 --- a/lib/model/ModelInterface.php +++ b/lib/model/ModelInterface.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Notification.php b/lib/model/Notification.php index 86ca5b5..0548659 100644 --- a/lib/model/Notification.php +++ b/lib/model/Notification.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -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/NotificationAllOf.php b/lib/model/NotificationAllOf.php index 7d34e4e..8562bb5 100644 --- a/lib/model/NotificationAllOf.php +++ b/lib/model/NotificationAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationHistorySuccessResponse.php b/lib/model/NotificationHistorySuccessResponse.php index 1edcf79..254334f 100644 --- a/lib/model/NotificationHistorySuccessResponse.php +++ b/lib/model/NotificationHistorySuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationSlice.php b/lib/model/NotificationSlice.php index 33f5c9c..c59576c 100644 --- a/lib/model/NotificationSlice.php +++ b/lib/model/NotificationSlice.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationTarget.php b/lib/model/NotificationTarget.php index 51f4ff4..4912376 100644 --- a/lib/model/NotificationTarget.php +++ b/lib/model/NotificationTarget.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -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..75e2ba9 100644 --- a/lib/model/NotificationWithMeta.php +++ b/lib/model/NotificationWithMeta.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -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/NotificationWithMetaAllOf.php b/lib/model/NotificationWithMetaAllOf.php index fe389cf..2bf7fb5 100644 --- a/lib/model/NotificationWithMetaAllOf.php +++ b/lib/model/NotificationWithMetaAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Operator.php b/lib/model/Operator.php index 5b1bef7..c9c9f9a 100644 --- a/lib/model/Operator.php +++ b/lib/model/Operator.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/OutcomeData.php b/lib/model/OutcomeData.php index ceeb315..6cfbb66 100644 --- a/lib/model/OutcomeData.php +++ b/lib/model/OutcomeData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/OutcomesData.php b/lib/model/OutcomesData.php index ec6cb44..c1bb423 100644 --- a/lib/model/OutcomesData.php +++ b/lib/model/OutcomesData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PlatformDeliveryData.php b/lib/model/PlatformDeliveryData.php index 6cd44f1..ab29af7 100644 --- a/lib/model/PlatformDeliveryData.php +++ b/lib/model/PlatformDeliveryData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PlatformDeliveryDataEmailAllOf.php b/lib/model/PlatformDeliveryDataEmailAllOf.php index ebb9b13..f102b82 100644 --- a/lib/model/PlatformDeliveryDataEmailAllOf.php +++ b/lib/model/PlatformDeliveryDataEmailAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PlatformDeliveryDataSmsAllOf.php b/lib/model/PlatformDeliveryDataSmsAllOf.php index d6aa037..fdf3b24 100644 --- a/lib/model/PlatformDeliveryDataSmsAllOf.php +++ b/lib/model/PlatformDeliveryDataSmsAllOf.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PropertiesBody.php b/lib/model/PropertiesBody.php index 3e67b62..a6c3caf 100644 --- a/lib/model/PropertiesBody.php +++ b/lib/model/PropertiesBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PropertiesDeltas.php b/lib/model/PropertiesDeltas.php index a9fd6f0..50dae37 100644 --- a/lib/model/PropertiesDeltas.php +++ b/lib/model/PropertiesDeltas.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/PropertiesObject.php b/lib/model/PropertiesObject.php index 5796425..b492e54 100644 --- a/lib/model/PropertiesObject.php +++ b/lib/model/PropertiesObject.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Purchase.php b/lib/model/Purchase.php index 4475480..b9ab003 100644 --- a/lib/model/Purchase.php +++ b/lib/model/Purchase.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/RateLimitError.php b/lib/model/RateLimitError.php index fe95475..5f48c83 100644 --- a/lib/model/RateLimitError.php +++ b/lib/model/RateLimitError.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Segment.php b/lib/model/Segment.php index 132fe93..d452d74 100644 --- a/lib/model/Segment.php +++ b/lib/model/Segment.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SegmentData.php b/lib/model/SegmentData.php index 8b9a9f7..9af26c9 100644 --- a/lib/model/SegmentData.php +++ b/lib/model/SegmentData.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SegmentNotificationTarget.php b/lib/model/SegmentNotificationTarget.php index 239428a..ce4deb6 100644 --- a/lib/model/SegmentNotificationTarget.php +++ b/lib/model/SegmentNotificationTarget.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/StartLiveActivityRequest.php b/lib/model/StartLiveActivityRequest.php index a554012..1ca6713 100644 --- a/lib/model/StartLiveActivityRequest.php +++ b/lib/model/StartLiveActivityRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/StartLiveActivitySuccessResponse.php b/lib/model/StartLiveActivitySuccessResponse.php index 325413a..1187cd4 100644 --- a/lib/model/StartLiveActivitySuccessResponse.php +++ b/lib/model/StartLiveActivitySuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/Subscription.php b/lib/model/Subscription.php index c5b706c..b2774e6 100644 --- a/lib/model/Subscription.php +++ b/lib/model/Subscription.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SubscriptionBody.php b/lib/model/SubscriptionBody.php index a10d833..ffa6458 100644 --- a/lib/model/SubscriptionBody.php +++ b/lib/model/SubscriptionBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/SubscriptionNotificationTarget.php b/lib/model/SubscriptionNotificationTarget.php index 9851d2e..42f02ff 100644 --- a/lib/model/SubscriptionNotificationTarget.php +++ b/lib/model/SubscriptionNotificationTarget.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -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 * diff --git a/lib/model/TemplateResource.php b/lib/model/TemplateResource.php index 0d7a375..229ecf2 100644 --- a/lib/model/TemplateResource.php +++ b/lib/model/TemplateResource.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/TemplatesListResponse.php b/lib/model/TemplatesListResponse.php index 6ecd5fc..2ed44aa 100644 --- a/lib/model/TemplatesListResponse.php +++ b/lib/model/TemplatesListResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/TransferSubscriptionRequestBody.php b/lib/model/TransferSubscriptionRequestBody.php index 895621e..dccd4d2 100644 --- a/lib/model/TransferSubscriptionRequestBody.php +++ b/lib/model/TransferSubscriptionRequestBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateApiKeyRequest.php b/lib/model/UpdateApiKeyRequest.php index 160fe5b..2c22caa 100644 --- a/lib/model/UpdateApiKeyRequest.php +++ b/lib/model/UpdateApiKeyRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateLiveActivityRequest.php b/lib/model/UpdateLiveActivityRequest.php index cacb76d..3b26550 100644 --- a/lib/model/UpdateLiveActivityRequest.php +++ b/lib/model/UpdateLiveActivityRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateLiveActivitySuccessResponse.php b/lib/model/UpdateLiveActivitySuccessResponse.php index 5de2ec9..f7f2cf9 100644 --- a/lib/model/UpdateLiveActivitySuccessResponse.php +++ b/lib/model/UpdateLiveActivitySuccessResponse.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateTemplateRequest.php b/lib/model/UpdateTemplateRequest.php index 11f1666..b9287dd 100644 --- a/lib/model/UpdateTemplateRequest.php +++ b/lib/model/UpdateTemplateRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UpdateUserRequest.php b/lib/model/UpdateUserRequest.php index 839e4f6..9449270 100644 --- a/lib/model/UpdateUserRequest.php +++ b/lib/model/UpdateUserRequest.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/User.php b/lib/model/User.php index d921f7f..a6f2a7a 100644 --- a/lib/model/User.php +++ b/lib/model/User.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/UserIdentityBody.php b/lib/model/UserIdentityBody.php index 58a0c49..5996d5a 100644 --- a/lib/model/UserIdentityBody.php +++ b/lib/model/UserIdentityBody.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/WebButton.php b/lib/model/WebButton.php index 0c18ec8..4928f26 100644 --- a/lib/model/WebButton.php +++ b/lib/model/WebButton.php @@ -15,7 +15,7 @@ * * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com * - * The version of the OpenAPI document: 5.5.0 + * The version of the OpenAPI document: 5.6.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT