diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 69960fe..e6d4603 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -14,4 +14,4 @@ jobs: with: # SDK Server Project project-url: https://github.com/orgs/OneSignal/projects/11 - github-token: ${{ secrets.GH_PROJECTS_TOKEN }} + github-token: ${{ secrets.GH_PUSH_TOKEN }} diff --git a/README.md b/README.md index 1aa20c4..d182868 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.4.0 -- Package version: 5.4.0 +- API version: 5.5.0 +- Package version: 5.5.0 ## Requirements diff --git a/composer.json b/composer.json index 683e3e0..f6b2435 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "onesignal/onesignal-php-api", - "version": "5.4.0", + "version": "5.5.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 1e19395..0209f75 100644 --- a/docs/Model/BasicNotification.md +++ b/docs/Model/BasicNotification.md @@ -109,6 +109,7 @@ Name | Type | Description | Notes **email_preheader** | **string** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] **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] **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 1e9827a..2755491 100644 --- a/docs/Model/BasicNotificationAllOf.md +++ b/docs/Model/BasicNotificationAllOf.md @@ -96,6 +96,7 @@ Name | Type | Description | Notes **email_preheader** | **string** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] **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] **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/CreateTemplateRequest.md b/docs/Model/CreateTemplateRequest.md index 7680227..2d1294f 100644 --- a/docs/Model/CreateTemplateRequest.md +++ b/docs/Model/CreateTemplateRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **is_email** | **bool** | Set true for an Email template. | [optional] **email_subject** | **string** | Subject of the email. | [optional] **email_body** | **string** | Body of the email (HTML supported). | [optional] +**email_bcc** | **string[]** | BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **is_sms** | **bool** | Set true for an SMS template. | [optional] **dynamic_content** | **string** | JSON string for dynamic content personalization. | [optional] diff --git a/docs/Model/Notification.md b/docs/Model/Notification.md index 7b8ddd7..c2563ee 100644 --- a/docs/Model/Notification.md +++ b/docs/Model/Notification.md @@ -109,6 +109,7 @@ Name | Type | Description | Notes **email_preheader** | **string** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] **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] **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/NotificationWithMeta.md b/docs/Model/NotificationWithMeta.md index 383b675..5591df7 100644 --- a/docs/Model/NotificationWithMeta.md +++ b/docs/Model/NotificationWithMeta.md @@ -109,6 +109,7 @@ Name | Type | Description | Notes **email_preheader** | **string** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] **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] **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] @@ -130,5 +131,6 @@ Name | Type | Description | Notes **completed_at** | **int** | Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after. | [optional] **platform_delivery_stats** | [**\onesignal\client\model\PlatformDeliveryData**](PlatformDeliveryData.md) | | [optional] **canceled** | **bool** | Indicates whether the notification was canceled before it could be sent. | [optional] +**bcc_sent** | **int** | Number of BCC copies successfully sent for this notification. | [optional] [[Back to API list]](https://github.com/OneSignal/onesignal-php-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-php-api) diff --git a/docs/Model/NotificationWithMetaAllOf.md b/docs/Model/NotificationWithMetaAllOf.md index bd38445..9670465 100644 --- a/docs/Model/NotificationWithMetaAllOf.md +++ b/docs/Model/NotificationWithMetaAllOf.md @@ -16,5 +16,7 @@ Name | Type | Description | Notes **received** | **int** | Confirmed Deliveries number of devices that received the push notification. Paid Feature Only. Free accounts will see 0. | [optional] **throttle_rate_per_minute** | **int** | number of push notifications sent per minute. Paid Feature Only. If throttling is not enabled for the app or the notification, and for free accounts, null is returned. Refer to Throttling for more details. | [optional] **canceled** | **bool** | Indicates whether the notification was canceled before it could be sent. | [optional] +**email_bcc** | **string[]** | BCC recipients that were set on this email notification. | [optional] +**bcc_sent** | **int** | Number of BCC copies successfully sent for this notification. | [optional] [[Back to API list]](https://github.com/OneSignal/onesignal-php-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-php-api) diff --git a/docs/Model/UpdateTemplateRequest.md b/docs/Model/UpdateTemplateRequest.md index 62993b4..5e94e92 100644 --- a/docs/Model/UpdateTemplateRequest.md +++ b/docs/Model/UpdateTemplateRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **is_email** | **bool** | Set true for an Email template. | [optional] **email_subject** | **string** | Subject of the email. | [optional] **email_body** | **string** | Body of the email (HTML supported). | [optional] +**email_bcc** | **string[]** | BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **is_sms** | **bool** | Set true for an SMS template. | [optional] **dynamic_content** | **string** | JSON string for dynamic content personalization. | [optional] diff --git a/lib/ApiException.php b/lib/ApiException.php index 4b763e6..e2078a5 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.4.0 + * The version of the OpenAPI document: 5.5.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 d27fc8d..3b2cddb 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.4.0 + * The version of the OpenAPI document: 5.5.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.4.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/5.5.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.4.0' . PHP_EOL; - $report .= ' SDK Package Version: 5.4.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 5.5.0' . PHP_EOL; + $report .= ' SDK Package Version: 5.5.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 4ffc5ff..200b665 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.4.0 + * The version of the OpenAPI document: 5.5.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 19495d7..5c7ddeb 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.4.0 + * The version of the OpenAPI document: 5.5.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 dbfe692..0966170 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.4.0 + * The version of the OpenAPI document: 5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.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.4.0'; + $defaultHeaders['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-php, version=5.5.0'; $headers = array_merge( $defaultHeaders, diff --git a/lib/model/ApiKeyToken.php b/lib/model/ApiKeyToken.php index 8be0a2c..bdc89cd 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.4.0 + * The version of the OpenAPI document: 5.5.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 50edc02..0e2532f 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.4.0 + * The version of the OpenAPI document: 5.5.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 80c8500..41dfa7b 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.4.0 + * The version of the OpenAPI document: 5.5.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 e6d1588..f1c80f2 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -165,6 +165,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'email_preheader' => 'string', 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', + 'email_bcc' => 'string[]', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -289,6 +290,7 @@ class BasicNotification implements ModelInterface, ArrayAccess, \JsonSerializabl 'email_preheader' => null, 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, + 'email_bcc' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -432,6 +434,7 @@ public static function openAPIFormats() 'email_preheader' => 'email_preheader', 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', + 'email_bcc' => 'email_bcc', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -554,6 +557,7 @@ public static function openAPIFormats() 'email_preheader' => 'setEmailPreheader', 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', + 'email_bcc' => 'setEmailBcc', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -676,6 +680,7 @@ public static function openAPIFormats() 'email_preheader' => 'getEmailPreheader', 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', + 'email_bcc' => 'getEmailBcc', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -916,6 +921,7 @@ public function __construct(?array $data = null) $this->container['email_preheader'] = $data['email_preheader'] ?? 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['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -957,6 +963,10 @@ public function listInvalidProperties() if ($this->container['app_id'] === null) { $invalidProperties[] = "'app_id' can't be null"; } + if (!is_null($this->container['email_bcc']) && (count($this->container['email_bcc']) > 5)) { + $invalidProperties[] = "invalid value for 'email_bcc', number of items must be less than or equal to 5."; + } + $allowedValues = $this->getHuaweiCategoryAllowableValues(); if (!is_null($this->container['huawei_category']) && !in_array($this->container['huawei_category'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -3523,6 +3533,34 @@ public function setIncludeUnsubscribed($include_unsubscribed) return $this; } + /** + * Gets email_bcc + * + * @return string[]|null + */ + public function getEmailBcc() + { + return $this->container['email_bcc']; + } + + /** + * Sets email_bcc + * + * @param string[]|null $email_bcc Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailBcc($email_bcc) + { + + if (!is_null($email_bcc) && (count($email_bcc) > 5)) { + throw new \InvalidArgumentException('invalid value for $email_bcc when calling BasicNotification., number of items must be less than or equal to 5.'); + } + $this->container['email_bcc'] = $email_bcc; + + return $this; + } + /** * Gets sms_from * diff --git a/lib/model/BasicNotificationAllOf.php b/lib/model/BasicNotificationAllOf.php index 97ff79a..c5bf4ef 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -152,6 +152,7 @@ class BasicNotificationAllOf implements ModelInterface, ArrayAccess, \JsonSerial 'email_preheader' => 'string', 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', + 'email_bcc' => 'string[]', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -263,6 +264,7 @@ class BasicNotificationAllOf implements ModelInterface, ArrayAccess, \JsonSerial 'email_preheader' => null, 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, + 'email_bcc' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -393,6 +395,7 @@ public static function openAPIFormats() 'email_preheader' => 'email_preheader', 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', + 'email_bcc' => 'email_bcc', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -502,6 +505,7 @@ public static function openAPIFormats() 'email_preheader' => 'setEmailPreheader', 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', + 'email_bcc' => 'setEmailBcc', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -611,6 +615,7 @@ public static function openAPIFormats() 'email_preheader' => 'getEmailPreheader', 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', + 'email_bcc' => 'getEmailBcc', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -821,6 +826,7 @@ public function __construct(?array $data = null) $this->container['email_preheader'] = $data['email_preheader'] ?? 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['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -850,6 +856,10 @@ public function listInvalidProperties() ); } + if (!is_null($this->container['email_bcc']) && (count($this->container['email_bcc']) > 5)) { + $invalidProperties[] = "invalid value for 'email_bcc', number of items must be less than or equal to 5."; + } + $allowedValues = $this->getHuaweiCategoryAllowableValues(); if (!is_null($this->container['huawei_category']) && !in_array($this->container['huawei_category'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -3094,6 +3104,34 @@ public function setIncludeUnsubscribed($include_unsubscribed) return $this; } + /** + * Gets email_bcc + * + * @return string[]|null + */ + public function getEmailBcc() + { + return $this->container['email_bcc']; + } + + /** + * Sets email_bcc + * + * @param string[]|null $email_bcc Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailBcc($email_bcc) + { + + if (!is_null($email_bcc) && (count($email_bcc) > 5)) { + throw new \InvalidArgumentException('invalid value for $email_bcc when calling BasicNotificationAllOf., number of items must be less than or equal to 5.'); + } + $this->container['email_bcc'] = $email_bcc; + + return $this; + } + /** * Gets sms_from * diff --git a/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php b/lib/model/BasicNotificationAllOfAndroidBackgroundLayout.php index 1d66463..85a86ea 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.4.0 + * The version of the OpenAPI document: 5.5.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 5321c06..9de4dfd 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.4.0 + * The version of the OpenAPI document: 5.5.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 7644c3a..ee8e651 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.4.0 + * The version of the OpenAPI document: 5.5.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 800fb70..b1247dc 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.4.0 + * The version of the OpenAPI document: 5.5.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 164c045..6de8b13 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.4.0 + * The version of the OpenAPI document: 5.5.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 8fd6045..4d8e926 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.4.0 + * The version of the OpenAPI document: 5.5.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 e0da374..5edd005 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.4.0 + * The version of the OpenAPI document: 5.5.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 73f6a3e..1842f4a 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.4.0 + * The version of the OpenAPI document: 5.5.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 7d0ef83..c487ccf 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -68,6 +68,7 @@ class CreateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'is_email' => 'bool', 'email_subject' => 'string', 'email_body' => 'string', + 'email_bcc' => 'string[]', 'is_sms' => 'bool', 'dynamic_content' => 'string' ]; @@ -88,6 +89,7 @@ class CreateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'is_email' => null, 'email_subject' => null, 'email_body' => null, + 'email_bcc' => null, 'is_sms' => null, 'dynamic_content' => null ]; @@ -127,6 +129,7 @@ public static function openAPIFormats() 'is_email' => 'isEmail', 'email_subject' => 'email_subject', 'email_body' => 'email_body', + 'email_bcc' => 'email_bcc', 'is_sms' => 'isSMS', 'dynamic_content' => 'dynamic_content' ]; @@ -145,6 +148,7 @@ public static function openAPIFormats() 'is_email' => 'setIsEmail', 'email_subject' => 'setEmailSubject', 'email_body' => 'setEmailBody', + 'email_bcc' => 'setEmailBcc', 'is_sms' => 'setIsSms', 'dynamic_content' => 'setDynamicContent' ]; @@ -163,6 +167,7 @@ public static function openAPIFormats() 'is_email' => 'getIsEmail', 'email_subject' => 'getEmailSubject', 'email_body' => 'getEmailBody', + 'email_bcc' => 'getEmailBcc', 'is_sms' => 'getIsSms', 'dynamic_content' => 'getDynamicContent' ]; @@ -232,6 +237,7 @@ public function __construct(?array $data = null) $this->container['is_email'] = $data['is_email'] ?? null; $this->container['email_subject'] = $data['email_subject'] ?? null; $this->container['email_body'] = $data['email_body'] ?? null; + $this->container['email_bcc'] = $data['email_bcc'] ?? null; $this->container['is_sms'] = $data['is_sms'] ?? null; $this->container['dynamic_content'] = $data['dynamic_content'] ?? null; } @@ -254,6 +260,10 @@ public function listInvalidProperties() if ($this->container['contents'] === null) { $invalidProperties[] = "'contents' can't be null"; } + if (!is_null($this->container['email_bcc']) && (count($this->container['email_bcc']) > 5)) { + $invalidProperties[] = "invalid value for 'email_bcc', number of items must be less than or equal to 5."; + } + return $invalidProperties; } @@ -461,6 +471,34 @@ public function setEmailBody($email_body) return $this; } + /** + * Gets email_bcc + * + * @return string[]|null + */ + public function getEmailBcc() + { + return $this->container['email_bcc']; + } + + /** + * Sets email_bcc + * + * @param string[]|null $email_bcc BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailBcc($email_bcc) + { + + if (!is_null($email_bcc) && (count($email_bcc) > 5)) { + throw new \InvalidArgumentException('invalid value for $email_bcc when calling CreateTemplateRequest., number of items must be less than or equal to 5.'); + } + $this->container['email_bcc'] = $email_bcc; + + return $this; + } + /** * Gets is_sms * diff --git a/lib/model/CreateUserConflictResponse.php b/lib/model/CreateUserConflictResponse.php index ef73092..34b4936 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.4.0 + * The version of the OpenAPI document: 5.5.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 89006f9..5b11003 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.4.0 + * The version of the OpenAPI document: 5.5.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 0a0e03c..368d2db 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.4.0 + * The version of the OpenAPI document: 5.5.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 e301f15..1510712 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.4.0 + * The version of the OpenAPI document: 5.5.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 5b3bb5f..892830e 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.4.0 + * The version of the OpenAPI document: 5.5.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 e7bec69..9fc3730 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.4.0 + * The version of the OpenAPI document: 5.5.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 accc607..1451721 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.4.0 + * The version of the OpenAPI document: 5.5.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 f43fa19..cb70b20 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.4.0 + * The version of the OpenAPI document: 5.5.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 224c9e8..fb6bb48 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.4.0 + * The version of the OpenAPI document: 5.5.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 b2cb11c..b49620a 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.4.0 + * The version of the OpenAPI document: 5.5.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 1ab64a2..45bc658 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.4.0 + * The version of the OpenAPI document: 5.5.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 61fd9dd..bdfa409 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.4.0 + * The version of the OpenAPI document: 5.5.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 93426ab..088d333 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.4.0 + * The version of the OpenAPI document: 5.5.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 9d1b107..bd3edc5 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.4.0 + * The version of the OpenAPI document: 5.5.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 d2da798..6aab4ae 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.4.0 + * The version of the OpenAPI document: 5.5.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 831081e..57f71f8 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.4.0 + * The version of the OpenAPI document: 5.5.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 3479ede..1ac5b97 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.4.0 + * The version of the OpenAPI document: 5.5.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 de1ff64..86ca5b5 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -165,6 +165,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'email_preheader' => 'string', 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', + 'email_bcc' => 'string[]', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -290,6 +291,7 @@ class Notification implements ModelInterface, ArrayAccess, \JsonSerializable 'email_preheader' => null, 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, + 'email_bcc' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -434,6 +436,7 @@ public static function openAPIFormats() 'email_preheader' => 'email_preheader', 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', + 'email_bcc' => 'email_bcc', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -557,6 +560,7 @@ public static function openAPIFormats() 'email_preheader' => 'setEmailPreheader', 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', + 'email_bcc' => 'setEmailBcc', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -680,6 +684,7 @@ public static function openAPIFormats() 'email_preheader' => 'getEmailPreheader', 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', + 'email_bcc' => 'getEmailBcc', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -921,6 +926,7 @@ public function __construct(?array $data = null) $this->container['email_preheader'] = $data['email_preheader'] ?? 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['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -963,6 +969,10 @@ public function listInvalidProperties() if ($this->container['app_id'] === null) { $invalidProperties[] = "'app_id' can't be null"; } + if (!is_null($this->container['email_bcc']) && (count($this->container['email_bcc']) > 5)) { + $invalidProperties[] = "invalid value for 'email_bcc', number of items must be less than or equal to 5."; + } + $allowedValues = $this->getHuaweiCategoryAllowableValues(); if (!is_null($this->container['huawei_category']) && !in_array($this->container['huawei_category'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -3529,6 +3539,34 @@ public function setIncludeUnsubscribed($include_unsubscribed) return $this; } + /** + * Gets email_bcc + * + * @return string[]|null + */ + public function getEmailBcc() + { + return $this->container['email_bcc']; + } + + /** + * Sets email_bcc + * + * @param string[]|null $email_bcc Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailBcc($email_bcc) + { + + if (!is_null($email_bcc) && (count($email_bcc) > 5)) { + throw new \InvalidArgumentException('invalid value for $email_bcc when calling Notification., number of items must be less than or equal to 5.'); + } + $this->container['email_bcc'] = $email_bcc; + + return $this; + } + /** * Gets sms_from * diff --git a/lib/model/NotificationAllOf.php b/lib/model/NotificationAllOf.php index c566967..7d34e4e 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.4.0 + * The version of the OpenAPI document: 5.5.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 73f5245..1edcf79 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.4.0 + * The version of the OpenAPI document: 5.5.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 18707f2..33f5c9c 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.4.0 + * The version of the OpenAPI document: 5.5.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 0e9a6d3..51f4ff4 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/NotificationWithMeta.php b/lib/model/NotificationWithMeta.php index 42732d0..6eeae40 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -165,6 +165,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'email_preheader' => 'string', 'disable_email_click_tracking' => 'bool', 'include_unsubscribed' => 'bool', + 'email_bcc' => 'string[]', 'sms_from' => 'string', 'sms_media_urls' => 'string[]', 'filters' => '\onesignal\client\model\FilterExpression[]', @@ -185,7 +186,8 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'send_after' => 'int', 'completed_at' => 'int', 'platform_delivery_stats' => '\onesignal\client\model\PlatformDeliveryData', - 'canceled' => 'bool' + 'canceled' => 'bool', + 'bcc_sent' => 'int' ]; /** @@ -301,6 +303,7 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'email_preheader' => null, 'disable_email_click_tracking' => null, 'include_unsubscribed' => null, + 'email_bcc' => null, 'sms_from' => null, 'sms_media_urls' => null, 'filters' => null, @@ -321,7 +324,8 @@ class NotificationWithMeta implements ModelInterface, ArrayAccess, \JsonSerializ 'send_after' => 'int64', 'completed_at' => 'int64', 'platform_delivery_stats' => null, - 'canceled' => null + 'canceled' => null, + 'bcc_sent' => null ]; /** @@ -456,6 +460,7 @@ public static function openAPIFormats() 'email_preheader' => 'email_preheader', 'disable_email_click_tracking' => 'disable_email_click_tracking', 'include_unsubscribed' => 'include_unsubscribed', + 'email_bcc' => 'email_bcc', 'sms_from' => 'sms_from', 'sms_media_urls' => 'sms_media_urls', 'filters' => 'filters', @@ -476,7 +481,8 @@ public static function openAPIFormats() 'send_after' => 'send_after', 'completed_at' => 'completed_at', 'platform_delivery_stats' => 'platform_delivery_stats', - 'canceled' => 'canceled' + 'canceled' => 'canceled', + 'bcc_sent' => 'bcc_sent' ]; /** @@ -590,6 +596,7 @@ public static function openAPIFormats() 'email_preheader' => 'setEmailPreheader', 'disable_email_click_tracking' => 'setDisableEmailClickTracking', 'include_unsubscribed' => 'setIncludeUnsubscribed', + 'email_bcc' => 'setEmailBcc', 'sms_from' => 'setSmsFrom', 'sms_media_urls' => 'setSmsMediaUrls', 'filters' => 'setFilters', @@ -610,7 +617,8 @@ public static function openAPIFormats() 'send_after' => 'setSendAfter', 'completed_at' => 'setCompletedAt', 'platform_delivery_stats' => 'setPlatformDeliveryStats', - 'canceled' => 'setCanceled' + 'canceled' => 'setCanceled', + 'bcc_sent' => 'setBccSent' ]; /** @@ -724,6 +732,7 @@ public static function openAPIFormats() 'email_preheader' => 'getEmailPreheader', 'disable_email_click_tracking' => 'getDisableEmailClickTracking', 'include_unsubscribed' => 'getIncludeUnsubscribed', + 'email_bcc' => 'getEmailBcc', 'sms_from' => 'getSmsFrom', 'sms_media_urls' => 'getSmsMediaUrls', 'filters' => 'getFilters', @@ -744,7 +753,8 @@ public static function openAPIFormats() 'send_after' => 'getSendAfter', 'completed_at' => 'getCompletedAt', 'platform_delivery_stats' => 'getPlatformDeliveryStats', - 'canceled' => 'getCanceled' + 'canceled' => 'getCanceled', + 'bcc_sent' => 'getBccSent' ]; /** @@ -976,6 +986,7 @@ public function __construct(?array $data = null) $this->container['email_preheader'] = $data['email_preheader'] ?? 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['sms_from'] = $data['sms_from'] ?? null; $this->container['sms_media_urls'] = $data['sms_media_urls'] ?? null; $this->container['filters'] = $data['filters'] ?? null; @@ -997,6 +1008,7 @@ public function __construct(?array $data = null) $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['platform_delivery_stats'] = $data['platform_delivery_stats'] ?? null; $this->container['canceled'] = $data['canceled'] ?? null; + $this->container['bcc_sent'] = $data['bcc_sent'] ?? null; } /** @@ -3595,6 +3607,30 @@ public function setIncludeUnsubscribed($include_unsubscribed) return $this; } + /** + * Gets email_bcc + * + * @return string[]|null + */ + public function getEmailBcc() + { + return $this->container['email_bcc']; + } + + /** + * Sets email_bcc + * + * @param string[]|null $email_bcc BCC recipients that were set on this email notification. + * + * @return self + */ + public function setEmailBcc($email_bcc) + { + $this->container['email_bcc'] = $email_bcc; + + return $this; + } + /** * Gets sms_from * @@ -4108,6 +4144,30 @@ public function setCanceled($canceled) return $this; } + + /** + * Gets bcc_sent + * + * @return int|null + */ + public function getBccSent() + { + return $this->container['bcc_sent']; + } + + /** + * Sets bcc_sent + * + * @param int|null $bcc_sent Number of BCC copies successfully sent for this notification. + * + * @return self + */ + public function setBccSent($bcc_sent) + { + $this->container['bcc_sent'] = $bcc_sent; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/model/NotificationWithMetaAllOf.php b/lib/model/NotificationWithMetaAllOf.php index 829579b..fe389cf 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -71,7 +71,9 @@ class NotificationWithMetaAllOf implements ModelInterface, ArrayAccess, \JsonSer 'platform_delivery_stats' => '\onesignal\client\model\PlatformDeliveryData', 'received' => 'int', 'throttle_rate_per_minute' => 'int', - 'canceled' => 'bool' + 'canceled' => 'bool', + 'email_bcc' => 'string[]', + 'bcc_sent' => 'int' ]; /** @@ -93,7 +95,9 @@ class NotificationWithMetaAllOf implements ModelInterface, ArrayAccess, \JsonSer 'platform_delivery_stats' => null, 'received' => null, 'throttle_rate_per_minute' => null, - 'canceled' => null + 'canceled' => null, + 'email_bcc' => null, + 'bcc_sent' => null ]; /** @@ -134,7 +138,9 @@ public static function openAPIFormats() 'platform_delivery_stats' => 'platform_delivery_stats', 'received' => 'received', 'throttle_rate_per_minute' => 'throttle_rate_per_minute', - 'canceled' => 'canceled' + 'canceled' => 'canceled', + 'email_bcc' => 'email_bcc', + 'bcc_sent' => 'bcc_sent' ]; /** @@ -154,7 +160,9 @@ public static function openAPIFormats() 'platform_delivery_stats' => 'setPlatformDeliveryStats', 'received' => 'setReceived', 'throttle_rate_per_minute' => 'setThrottleRatePerMinute', - 'canceled' => 'setCanceled' + 'canceled' => 'setCanceled', + 'email_bcc' => 'setEmailBcc', + 'bcc_sent' => 'setBccSent' ]; /** @@ -174,7 +182,9 @@ public static function openAPIFormats() 'platform_delivery_stats' => 'getPlatformDeliveryStats', 'received' => 'getReceived', 'throttle_rate_per_minute' => 'getThrottleRatePerMinute', - 'canceled' => 'getCanceled' + 'canceled' => 'getCanceled', + 'email_bcc' => 'getEmailBcc', + 'bcc_sent' => 'getBccSent' ]; /** @@ -246,6 +256,8 @@ public function __construct(?array $data = null) $this->container['received'] = $data['received'] ?? null; $this->container['throttle_rate_per_minute'] = $data['throttle_rate_per_minute'] ?? null; $this->container['canceled'] = $data['canceled'] ?? null; + $this->container['email_bcc'] = $data['email_bcc'] ?? null; + $this->container['bcc_sent'] = $data['bcc_sent'] ?? null; } /** @@ -559,6 +571,54 @@ public function setCanceled($canceled) return $this; } + + /** + * Gets email_bcc + * + * @return string[]|null + */ + public function getEmailBcc() + { + return $this->container['email_bcc']; + } + + /** + * Sets email_bcc + * + * @param string[]|null $email_bcc BCC recipients that were set on this email notification. + * + * @return self + */ + public function setEmailBcc($email_bcc) + { + $this->container['email_bcc'] = $email_bcc; + + return $this; + } + + /** + * Gets bcc_sent + * + * @return int|null + */ + public function getBccSent() + { + return $this->container['bcc_sent']; + } + + /** + * Sets bcc_sent + * + * @param int|null $bcc_sent Number of BCC copies successfully sent for this notification. + * + * @return self + */ + public function setBccSent($bcc_sent) + { + $this->container['bcc_sent'] = $bcc_sent; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/model/Operator.php b/lib/model/Operator.php index da7dcda..5b1bef7 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.4.0 + * The version of the OpenAPI document: 5.5.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 8044dcc..ceeb315 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.4.0 + * The version of the OpenAPI document: 5.5.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 038fd38..ec6cb44 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.4.0 + * The version of the OpenAPI document: 5.5.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 1adc0fa..6cd44f1 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.4.0 + * The version of the OpenAPI document: 5.5.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 953008d..ebb9b13 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.4.0 + * The version of the OpenAPI document: 5.5.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 1f9501f..d6aa037 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.4.0 + * The version of the OpenAPI document: 5.5.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 ad85bf4..3e67b62 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.4.0 + * The version of the OpenAPI document: 5.5.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 fdfbfe6..a9fd6f0 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.4.0 + * The version of the OpenAPI document: 5.5.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 de45e28..5796425 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.4.0 + * The version of the OpenAPI document: 5.5.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 271564f..4475480 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.4.0 + * The version of the OpenAPI document: 5.5.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 7a6aba2..fe95475 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.4.0 + * The version of the OpenAPI document: 5.5.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 43c090c..132fe93 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.4.0 + * The version of the OpenAPI document: 5.5.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 8ee6ea4..8b9a9f7 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.4.0 + * The version of the OpenAPI document: 5.5.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 5778fc6..239428a 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.4.0 + * The version of the OpenAPI document: 5.5.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 0c098c7..a554012 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.4.0 + * The version of the OpenAPI document: 5.5.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 021b708..325413a 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.4.0 + * The version of the OpenAPI document: 5.5.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 fb9045f..c5b706c 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.4.0 + * The version of the OpenAPI document: 5.5.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 a363ad8..a10d833 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.4.0 + * The version of the OpenAPI document: 5.5.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 87e61e3..9851d2e 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT diff --git a/lib/model/TemplateResource.php b/lib/model/TemplateResource.php index 3a0160d..0d7a375 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.4.0 + * The version of the OpenAPI document: 5.5.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 a1dbd84..6ecd5fc 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.4.0 + * The version of the OpenAPI document: 5.5.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 1ffdfda..895621e 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.4.0 + * The version of the OpenAPI document: 5.5.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 fa57818..160fe5b 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.4.0 + * The version of the OpenAPI document: 5.5.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 ee3961e..cacb76d 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.4.0 + * The version of the OpenAPI document: 5.5.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 6c1b739..5de2ec9 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.4.0 + * The version of the OpenAPI document: 5.5.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 946d956..11f1666 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT @@ -67,6 +67,7 @@ class UpdateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'is_email' => 'bool', 'email_subject' => 'string', 'email_body' => 'string', + 'email_bcc' => 'string[]', 'is_sms' => 'bool', 'dynamic_content' => 'string' ]; @@ -86,6 +87,7 @@ class UpdateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'is_email' => null, 'email_subject' => null, 'email_body' => null, + 'email_bcc' => null, 'is_sms' => null, 'dynamic_content' => null ]; @@ -124,6 +126,7 @@ public static function openAPIFormats() 'is_email' => 'isEmail', 'email_subject' => 'email_subject', 'email_body' => 'email_body', + 'email_bcc' => 'email_bcc', 'is_sms' => 'isSMS', 'dynamic_content' => 'dynamic_content' ]; @@ -141,6 +144,7 @@ public static function openAPIFormats() 'is_email' => 'setIsEmail', 'email_subject' => 'setEmailSubject', 'email_body' => 'setEmailBody', + 'email_bcc' => 'setEmailBcc', 'is_sms' => 'setIsSms', 'dynamic_content' => 'setDynamicContent' ]; @@ -158,6 +162,7 @@ public static function openAPIFormats() 'is_email' => 'getIsEmail', 'email_subject' => 'getEmailSubject', 'email_body' => 'getEmailBody', + 'email_bcc' => 'getEmailBcc', 'is_sms' => 'getIsSms', 'dynamic_content' => 'getDynamicContent' ]; @@ -226,6 +231,7 @@ public function __construct(?array $data = null) $this->container['is_email'] = $data['is_email'] ?? null; $this->container['email_subject'] = $data['email_subject'] ?? null; $this->container['email_body'] = $data['email_body'] ?? null; + $this->container['email_bcc'] = $data['email_bcc'] ?? null; $this->container['is_sms'] = $data['is_sms'] ?? null; $this->container['dynamic_content'] = $data['dynamic_content'] ?? null; } @@ -239,6 +245,10 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['email_bcc']) && (count($this->container['email_bcc']) > 5)) { + $invalidProperties[] = "invalid value for 'email_bcc', number of items must be less than or equal to 5."; + } + return $invalidProperties; } @@ -422,6 +432,34 @@ public function setEmailBody($email_body) return $this; } + /** + * Gets email_bcc + * + * @return string[]|null + */ + public function getEmailBcc() + { + return $this->container['email_bcc']; + } + + /** + * Sets email_bcc + * + * @param string[]|null $email_bcc BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. + * + * @return self + */ + public function setEmailBcc($email_bcc) + { + + if (!is_null($email_bcc) && (count($email_bcc) > 5)) { + throw new \InvalidArgumentException('invalid value for $email_bcc when calling UpdateTemplateRequest., number of items must be less than or equal to 5.'); + } + $this->container['email_bcc'] = $email_bcc; + + return $this; + } + /** * Gets is_sms * diff --git a/lib/model/UpdateUserRequest.php b/lib/model/UpdateUserRequest.php index 2b550bd..839e4f6 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.4.0 + * The version of the OpenAPI document: 5.5.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 faadf78..d921f7f 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.4.0 + * The version of the OpenAPI document: 5.5.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 4ce5b73..58a0c49 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.4.0 + * The version of the OpenAPI document: 5.5.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 4e78acc..0c18ec8 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.4.0 + * The version of the OpenAPI document: 5.5.0 * Contact: devrel@onesignal.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.0-SNAPSHOT