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/docs/BasicNotification.md b/docs/BasicNotification.md index 1b4edd6..ac837cc 100644 --- a/docs/BasicNotification.md +++ b/docs/BasicNotification.md @@ -109,6 +109,7 @@ Name | Type | Description | Notes **email_preheader** | **str, none_type** | 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, none_type** | 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** | **[str], none_type** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | 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** | [**[FilterExpression], none_type**](FilterExpression.md) | | [optional] diff --git a/docs/BasicNotificationAllOf.md b/docs/BasicNotificationAllOf.md index 6b9507d..c1a66da 100644 --- a/docs/BasicNotificationAllOf.md +++ b/docs/BasicNotificationAllOf.md @@ -96,6 +96,7 @@ Name | Type | Description | Notes **email_preheader** | **str, none_type** | 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, none_type** | 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** | **[str], none_type** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | 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** | [**[FilterExpression], none_type**](FilterExpression.md) | | [optional] diff --git a/docs/CreateTemplateRequest.md b/docs/CreateTemplateRequest.md index dbb5d27..868dc16 100644 --- a/docs/CreateTemplateRequest.md +++ b/docs/CreateTemplateRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **is_email** | **bool** | Set true for an Email template. | [optional] **email_subject** | **str, none_type** | Subject of the email. | [optional] **email_body** | **str, none_type** | Body of the email (HTML supported). | [optional] +**email_bcc** | **[str], none_type** | 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** | **str, none_type** | JSON string for dynamic content personalization. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 2701d4d..e1e4fa9 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -1082,6 +1082,9 @@ with onesignal.ApiClient(configuration) as api_client: is_email=True, email_subject="email_subject_example", email_body="email_body_example", + email_bcc=[ + "email_bcc_example", + ], is_sms=True, dynamic_content="dynamic_content_example", ) @@ -3838,6 +3841,9 @@ with onesignal.ApiClient(configuration) as api_client: is_email=True, email_subject="email_subject_example", email_body="email_body_example", + email_bcc=[ + "email_bcc_example", + ], is_sms=True, dynamic_content="dynamic_content_example", ) diff --git a/docs/Notification.md b/docs/Notification.md index c1e28c6..8420521 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -109,6 +109,7 @@ Name | Type | Description | Notes **email_preheader** | **str, none_type** | 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, none_type** | 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** | **[str], none_type** | Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | 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** | [**[FilterExpression], none_type**](FilterExpression.md) | | [optional] diff --git a/docs/NotificationWithMeta.md b/docs/NotificationWithMeta.md index 68b27d3..46def70 100644 --- a/docs/NotificationWithMeta.md +++ b/docs/NotificationWithMeta.md @@ -109,6 +109,7 @@ Name | Type | Description | Notes **email_preheader** | **str, none_type** | 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, none_type** | 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** | **[str], none_type** | BCC recipients that were set on this email notification. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | 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** | [**[FilterExpression], none_type**](FilterExpression.md) | | [optional] @@ -130,6 +131,7 @@ Name | Type | Description | Notes **completed_at** | **int, none_type** | 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** | [**PlatformDeliveryData**](PlatformDeliveryData.md) | | [optional] **canceled** | **bool** | Indicates whether the notification was canceled before it could be sent. | [optional] +**bcc_sent** | **int, none_type** | Number of BCC copies successfully sent for this notification. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to API list]](https://github.com/OneSignal/onesignal-python-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-python-api) diff --git a/docs/NotificationWithMetaAllOf.md b/docs/NotificationWithMetaAllOf.md index d8c96d7..8fe7a06 100644 --- a/docs/NotificationWithMetaAllOf.md +++ b/docs/NotificationWithMetaAllOf.md @@ -16,6 +16,8 @@ Name | Type | Description | Notes **received** | **int, none_type** | Confirmed Deliveries number of devices that received the push notification. Paid Feature Only. Free accounts will see 0. | [optional] **throttle_rate_per_minute** | **int, none_type** | 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** | **[str], none_type** | BCC recipients that were set on this email notification. | [optional] +**bcc_sent** | **int, none_type** | Number of BCC copies successfully sent for this notification. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to API list]](https://github.com/OneSignal/onesignal-python-api#full-api-reference) [[Back to README]](https://github.com/OneSignal/onesignal-python-api) diff --git a/docs/UpdateTemplateRequest.md b/docs/UpdateTemplateRequest.md index 96e92f5..ee7ea5f 100644 --- a/docs/UpdateTemplateRequest.md +++ b/docs/UpdateTemplateRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **is_email** | **bool** | Set true for an Email template. | [optional] **email_subject** | **str, none_type** | Subject of the email. | [optional] **email_body** | **str, none_type** | Body of the email (HTML supported). | [optional] +**email_bcc** | **[str], none_type** | 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** | **str, none_type** | JSON string for dynamic content personalization. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/onesignal/model/basic_notification.py b/onesignal/model/basic_notification.py index 7177aec..c24e39a 100644 --- a/onesignal/model/basic_notification.py +++ b/onesignal/model/basic_notification.py @@ -101,6 +101,9 @@ class BasicNotification(ModelComposed): } validations = { + ('email_bcc',): { + 'max_items': 5, + }, } @cached_property @@ -231,6 +234,7 @@ def openapi_types(): 'email_preheader': (str, none_type,), # noqa: E501 'disable_email_click_tracking': (bool, none_type,), # noqa: E501 'include_unsubscribed': (bool,), # noqa: E501 + 'email_bcc': ([str], none_type,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([FilterExpression], none_type,), # noqa: E501 @@ -353,6 +357,7 @@ def discriminator(): 'email_preheader': 'email_preheader', # noqa: E501 'disable_email_click_tracking': 'disable_email_click_tracking', # noqa: E501 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 + 'email_bcc': 'email_bcc', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 @@ -510,6 +515,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. . [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 @@ -727,6 +733,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. . [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 diff --git a/onesignal/model/basic_notification_all_of.py b/onesignal/model/basic_notification_all_of.py index f20b68e..bf51ed4 100644 --- a/onesignal/model/basic_notification_all_of.py +++ b/onesignal/model/basic_notification_all_of.py @@ -90,6 +90,9 @@ class BasicNotificationAllOf(ModelNormal): } validations = { + ('email_bcc',): { + 'max_items': 5, + }, } @cached_property @@ -207,6 +210,7 @@ def openapi_types(): 'email_preheader': (str, none_type,), # noqa: E501 'disable_email_click_tracking': (bool, none_type,), # noqa: E501 'include_unsubscribed': (bool,), # noqa: E501 + 'email_bcc': ([str], none_type,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([FilterExpression], none_type,), # noqa: E501 @@ -316,6 +320,7 @@ def discriminator(): 'email_preheader': 'email_preheader', # noqa: E501 'disable_email_click_tracking': 'disable_email_click_tracking', # noqa: E501 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 + 'email_bcc': 'email_bcc', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 @@ -462,6 +467,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. . [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 @@ -648,6 +654,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. . [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 diff --git a/onesignal/model/create_template_request.py b/onesignal/model/create_template_request.py index f108d8b..1783318 100644 --- a/onesignal/model/create_template_request.py +++ b/onesignal/model/create_template_request.py @@ -63,6 +63,9 @@ class CreateTemplateRequest(ModelNormal): } validations = { + ('email_bcc',): { + 'max_items': 5, + }, } @cached_property @@ -96,6 +99,7 @@ def openapi_types(): 'is_email': (bool,), # noqa: E501 'email_subject': (str, none_type,), # noqa: E501 'email_body': (str, none_type,), # noqa: E501 + 'email_bcc': ([str], none_type,), # noqa: E501 'is_sms': (bool,), # noqa: E501 'dynamic_content': (str, none_type,), # noqa: E501 } @@ -114,6 +118,7 @@ def discriminator(): 'is_email': 'isEmail', # noqa: E501 'email_subject': 'email_subject', # noqa: E501 'email_body': 'email_body', # noqa: E501 + 'email_bcc': 'email_bcc', # noqa: E501 'is_sms': 'isSMS', # noqa: E501 'dynamic_content': 'dynamic_content', # noqa: E501 } @@ -169,6 +174,7 @@ def _from_openapi_data(cls, app_id, name, contents, *args, **kwargs): # noqa: E is_email (bool): Set true for an Email template.. [optional] # noqa: E501 email_subject (str, none_type): Subject of the email.. [optional] # noqa: E501 email_body (str, none_type): Body of the email (HTML supported).. [optional] # noqa: E501 + email_bcc ([str], none_type): BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.. [optional] # noqa: E501 is_sms (bool): Set true for an SMS template.. [optional] # noqa: E501 dynamic_content (str, none_type): JSON string for dynamic content personalization.. [optional] # noqa: E501 """ @@ -269,6 +275,7 @@ def __init__(self, app_id, name, contents, *args, **kwargs): # noqa: E501 is_email (bool): Set true for an Email template.. [optional] # noqa: E501 email_subject (str, none_type): Subject of the email.. [optional] # noqa: E501 email_body (str, none_type): Body of the email (HTML supported).. [optional] # noqa: E501 + email_bcc ([str], none_type): BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.. [optional] # noqa: E501 is_sms (bool): Set true for an SMS template.. [optional] # noqa: E501 dynamic_content (str, none_type): JSON string for dynamic content personalization.. [optional] # noqa: E501 """ diff --git a/onesignal/model/notification.py b/onesignal/model/notification.py index 67c06e3..4ab5142 100644 --- a/onesignal/model/notification.py +++ b/onesignal/model/notification.py @@ -101,6 +101,9 @@ class Notification(ModelComposed): } validations = { + ('email_bcc',): { + 'max_items': 5, + }, } @cached_property @@ -231,6 +234,7 @@ def openapi_types(): 'email_preheader': (str, none_type,), # noqa: E501 'disable_email_click_tracking': (bool, none_type,), # noqa: E501 'include_unsubscribed': (bool,), # noqa: E501 + 'email_bcc': ([str], none_type,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([FilterExpression], none_type,), # noqa: E501 @@ -354,6 +358,7 @@ def discriminator(): 'email_preheader': 'email_preheader', # noqa: E501 'disable_email_click_tracking': 'disable_email_click_tracking', # noqa: E501 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 + 'email_bcc': 'email_bcc', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 @@ -512,6 +517,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. . [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 @@ -730,6 +736,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email. . [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 diff --git a/onesignal/model/notification_with_meta.py b/onesignal/model/notification_with_meta.py index 68df7f8..750382c 100644 --- a/onesignal/model/notification_with_meta.py +++ b/onesignal/model/notification_with_meta.py @@ -239,6 +239,7 @@ def openapi_types(): 'email_preheader': (str, none_type,), # noqa: E501 'disable_email_click_tracking': (bool, none_type,), # noqa: E501 'include_unsubscribed': (bool,), # noqa: E501 + 'email_bcc': ([str], none_type,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([FilterExpression], none_type,), # noqa: E501 @@ -260,6 +261,7 @@ def openapi_types(): 'completed_at': (int, none_type,), # noqa: E501 'platform_delivery_stats': (PlatformDeliveryData,), # noqa: E501 'canceled': (bool,), # noqa: E501 + 'bcc_sent': (int, none_type,), # noqa: E501 } @cached_property @@ -373,6 +375,7 @@ def discriminator(): 'email_preheader': 'email_preheader', # noqa: E501 'disable_email_click_tracking': 'disable_email_click_tracking', # noqa: E501 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 + 'email_bcc': 'email_bcc', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 @@ -394,6 +397,7 @@ def discriminator(): 'completed_at': 'completed_at', # noqa: E501 'platform_delivery_stats': 'platform_delivery_stats', # noqa: E501 'canceled': 'canceled', # noqa: E501 + 'bcc_sent': 'bcc_sent', # noqa: E501 } read_only_vars = { @@ -542,6 +546,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): BCC recipients that were set on this email notification.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 @@ -563,6 +568,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 completed_at (int, none_type): Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after.. [optional] # noqa: E501 platform_delivery_stats (PlatformDeliveryData): [optional] # noqa: E501 canceled (bool): Indicates whether the notification was canceled before it could be sent.. [optional] # noqa: E501 + bcc_sent (int, none_type): Number of BCC copies successfully sent for this notification.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -771,6 +777,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_preheader (str, none_type): 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] # noqa: E501 disable_email_click_tracking (bool, none_type): 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] # noqa: E501 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] # noqa: E501 + email_bcc ([str], none_type): BCC recipients that were set on this email notification.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): 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] # noqa: E501 filters ([FilterExpression], none_type): [optional] # noqa: E501 @@ -792,6 +799,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 completed_at (int, none_type): Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after.. [optional] # noqa: E501 platform_delivery_stats (PlatformDeliveryData): [optional] # noqa: E501 canceled (bool): Indicates whether the notification was canceled before it could be sent.. [optional] # noqa: E501 + bcc_sent (int, none_type): Number of BCC copies successfully sent for this notification.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/onesignal/model/notification_with_meta_all_of.py b/onesignal/model/notification_with_meta_all_of.py index 0ba6556..746d246 100644 --- a/onesignal/model/notification_with_meta_all_of.py +++ b/onesignal/model/notification_with_meta_all_of.py @@ -100,6 +100,8 @@ def openapi_types(): 'received': (int, none_type,), # noqa: E501 'throttle_rate_per_minute': (int, none_type,), # noqa: E501 'canceled': (bool,), # noqa: E501 + 'email_bcc': ([str], none_type,), # noqa: E501 + 'bcc_sent': (int, none_type,), # noqa: E501 } @cached_property @@ -120,6 +122,8 @@ def discriminator(): 'received': 'received', # noqa: E501 'throttle_rate_per_minute': 'throttle_rate_per_minute', # noqa: E501 'canceled': 'canceled', # noqa: E501 + 'email_bcc': 'email_bcc', # noqa: E501 + 'bcc_sent': 'bcc_sent', # noqa: E501 } read_only_vars = { @@ -175,6 +179,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 received (int, none_type): Confirmed Deliveries number of devices that received the push notification. Paid Feature Only. Free accounts will see 0.. [optional] # noqa: E501 throttle_rate_per_minute (int, none_type): 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] # noqa: E501 canceled (bool): Indicates whether the notification was canceled before it could be sent.. [optional] # noqa: E501 + email_bcc ([str], none_type): BCC recipients that were set on this email notification.. [optional] # noqa: E501 + bcc_sent (int, none_type): Number of BCC copies successfully sent for this notification.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -272,6 +278,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 received (int, none_type): Confirmed Deliveries number of devices that received the push notification. Paid Feature Only. Free accounts will see 0.. [optional] # noqa: E501 throttle_rate_per_minute (int, none_type): 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] # noqa: E501 canceled (bool): Indicates whether the notification was canceled before it could be sent.. [optional] # noqa: E501 + email_bcc ([str], none_type): BCC recipients that were set on this email notification.. [optional] # noqa: E501 + bcc_sent (int, none_type): Number of BCC copies successfully sent for this notification.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/onesignal/model/update_template_request.py b/onesignal/model/update_template_request.py index a924641..b299565 100644 --- a/onesignal/model/update_template_request.py +++ b/onesignal/model/update_template_request.py @@ -63,6 +63,9 @@ class UpdateTemplateRequest(ModelNormal): } validations = { + ('email_bcc',): { + 'max_items': 5, + }, } @cached_property @@ -95,6 +98,7 @@ def openapi_types(): 'is_email': (bool,), # noqa: E501 'email_subject': (str, none_type,), # noqa: E501 'email_body': (str, none_type,), # noqa: E501 + 'email_bcc': ([str], none_type,), # noqa: E501 'is_sms': (bool,), # noqa: E501 'dynamic_content': (str, none_type,), # noqa: E501 } @@ -112,6 +116,7 @@ def discriminator(): 'is_email': 'isEmail', # noqa: E501 'email_subject': 'email_subject', # noqa: E501 'email_body': 'email_body', # noqa: E501 + 'email_bcc': 'email_bcc', # noqa: E501 'is_sms': 'isSMS', # noqa: E501 'dynamic_content': 'dynamic_content', # noqa: E501 } @@ -164,6 +169,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 is_email (bool): Set true for an Email template.. [optional] # noqa: E501 email_subject (str, none_type): Subject of the email.. [optional] # noqa: E501 email_body (str, none_type): Body of the email (HTML supported).. [optional] # noqa: E501 + email_bcc ([str], none_type): BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.. [optional] # noqa: E501 is_sms (bool): Set true for an SMS template.. [optional] # noqa: E501 dynamic_content (str, none_type): JSON string for dynamic content personalization.. [optional] # noqa: E501 """ @@ -258,6 +264,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 is_email (bool): Set true for an Email template.. [optional] # noqa: E501 email_subject (str, none_type): Subject of the email.. [optional] # noqa: E501 email_body (str, none_type): Body of the email (HTML supported).. [optional] # noqa: E501 + email_bcc ([str], none_type): BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.. [optional] # noqa: E501 is_sms (bool): Set true for an SMS template.. [optional] # noqa: E501 dynamic_content (str, none_type): JSON string for dynamic content personalization.. [optional] # noqa: E501 """