onesignal 5.4.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -3
- data/docs/BasicNotification.md +4 -2
- data/docs/BasicNotificationAllOf.md +3 -1
- data/docs/CreateNotificationSuccessResponse.md +3 -3
- data/docs/CreateTemplateRequest.md +2 -0
- data/docs/DefaultApi.md +6 -2
- data/docs/Notification.md +4 -2
- data/docs/NotificationTarget.md +1 -1
- data/docs/NotificationWithMeta.md +7 -3
- data/docs/NotificationWithMetaAllOf.md +5 -1
- data/docs/StartLiveActivityRequest.md +1 -1
- data/docs/SubscriptionNotificationTarget.md +1 -1
- data/docs/UpdateTemplateRequest.md +2 -0
- data/lib/onesignal/api/default_api.rb +3 -3
- data/lib/onesignal/api_client.rb +2 -2
- data/lib/onesignal/api_error.rb +1 -1
- data/lib/onesignal/configuration.rb +1 -1
- data/lib/onesignal/models/api_key_token.rb +1 -1
- data/lib/onesignal/models/api_key_tokens_list_response.rb +1 -1
- data/lib/onesignal/models/app.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +32 -4
- data/lib/onesignal/models/basic_notification_all_of.rb +31 -3
- data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
- data/lib/onesignal/models/button.rb +1 -1
- data/lib/onesignal/models/copy_template_request.rb +1 -1
- data/lib/onesignal/models/create_api_key_request.rb +1 -1
- data/lib/onesignal/models/create_api_key_response.rb +1 -1
- data/lib/onesignal/models/create_notification_success_response.rb +4 -2
- data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_segment_success_response.rb +1 -1
- data/lib/onesignal/models/create_template_request.rb +30 -2
- data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
- data/lib/onesignal/models/custom_event.rb +1 -1
- data/lib/onesignal/models/custom_events_request.rb +1 -1
- data/lib/onesignal/models/delivery_data.rb +1 -1
- data/lib/onesignal/models/export_events_success_response.rb +1 -1
- data/lib/onesignal/models/export_subscriptions_request_body.rb +1 -1
- data/lib/onesignal/models/export_subscriptions_success_response.rb +1 -1
- data/lib/onesignal/models/filter.rb +1 -1
- data/lib/onesignal/models/filter_expression.rb +1 -1
- data/lib/onesignal/models/generic_error.rb +1 -1
- data/lib/onesignal/models/generic_success_bool_response.rb +1 -1
- data/lib/onesignal/models/get_notification_history_request_body.rb +1 -1
- data/lib/onesignal/models/get_segments_success_response.rb +1 -1
- data/lib/onesignal/models/language_string_map.rb +1 -1
- data/lib/onesignal/models/notification.rb +32 -4
- data/lib/onesignal/models/notification_all_of.rb +1 -1
- data/lib/onesignal/models/notification_history_success_response.rb +1 -1
- data/lib/onesignal/models/notification_slice.rb +1 -1
- data/lib/onesignal/models/notification_target.rb +2 -2
- data/lib/onesignal/models/notification_with_meta.rb +31 -7
- data/lib/onesignal/models/notification_with_meta_all_of.rb +29 -5
- data/lib/onesignal/models/operator.rb +1 -1
- data/lib/onesignal/models/outcome_data.rb +1 -1
- data/lib/onesignal/models/outcomes_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
- data/lib/onesignal/models/properties_body.rb +1 -1
- data/lib/onesignal/models/properties_deltas.rb +1 -1
- data/lib/onesignal/models/properties_object.rb +1 -1
- data/lib/onesignal/models/purchase.rb +1 -1
- data/lib/onesignal/models/rate_limit_error.rb +1 -1
- data/lib/onesignal/models/segment.rb +1 -1
- data/lib/onesignal/models/segment_data.rb +1 -1
- data/lib/onesignal/models/segment_notification_target.rb +1 -1
- data/lib/onesignal/models/start_live_activity_request.rb +2 -2
- data/lib/onesignal/models/start_live_activity_success_response.rb +1 -1
- data/lib/onesignal/models/subscription.rb +1 -1
- data/lib/onesignal/models/subscription_body.rb +1 -1
- data/lib/onesignal/models/subscription_notification_target.rb +2 -2
- data/lib/onesignal/models/template_resource.rb +1 -1
- data/lib/onesignal/models/templates_list_response.rb +1 -1
- data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
- data/lib/onesignal/models/update_api_key_request.rb +1 -1
- data/lib/onesignal/models/update_live_activity_request.rb +1 -1
- data/lib/onesignal/models/update_live_activity_success_response.rb +1 -1
- data/lib/onesignal/models/update_template_request.rb +30 -2
- data/lib/onesignal/models/update_user_request.rb +1 -1
- data/lib/onesignal/models/user.rb +1 -1
- data/lib/onesignal/models/user_identity_body.rb +1 -1
- data/lib/onesignal/models/web_button.rb +1 -1
- data/lib/onesignal/version.rb +2 -2
- data/lib/onesignal.rb +1 -1
- data/onesignal.gemspec +1 -1
- data/spec/api/default_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/api_key_token_spec.rb +1 -1
- data/spec/models/api_key_tokens_list_response_spec.rb +1 -1
- data/spec/models/app_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_spec.rb +7 -1
- data/spec/models/basic_notification_spec.rb +7 -1
- data/spec/models/button_spec.rb +1 -1
- data/spec/models/copy_template_request_spec.rb +1 -1
- data/spec/models/create_api_key_request_spec.rb +1 -1
- data/spec/models/create_api_key_response_spec.rb +1 -1
- data/spec/models/create_notification_success_response_spec.rb +1 -1
- data/spec/models/create_segment_conflict_response_spec.rb +1 -1
- data/spec/models/create_segment_success_response_spec.rb +1 -1
- data/spec/models/create_template_request_spec.rb +7 -1
- data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_spec.rb +1 -1
- data/spec/models/custom_event_spec.rb +1 -1
- data/spec/models/custom_events_request_spec.rb +1 -1
- data/spec/models/delivery_data_spec.rb +1 -1
- data/spec/models/export_events_success_response_spec.rb +1 -1
- data/spec/models/export_subscriptions_request_body_spec.rb +1 -1
- data/spec/models/export_subscriptions_success_response_spec.rb +1 -1
- data/spec/models/filter_expression_spec.rb +1 -1
- data/spec/models/filter_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/generic_success_bool_response_spec.rb +1 -1
- data/spec/models/get_notification_history_request_body_spec.rb +1 -1
- data/spec/models/get_segments_success_response_spec.rb +1 -1
- data/spec/models/language_string_map_spec.rb +1 -1
- data/spec/models/notification_all_of_spec.rb +1 -1
- data/spec/models/notification_history_success_response_spec.rb +1 -1
- data/spec/models/notification_slice_spec.rb +1 -1
- data/spec/models/notification_spec.rb +7 -1
- data/spec/models/notification_target_spec.rb +1 -1
- data/spec/models/notification_with_meta_all_of_spec.rb +13 -1
- data/spec/models/notification_with_meta_spec.rb +13 -1
- data/spec/models/operator_spec.rb +1 -1
- data/spec/models/outcome_data_spec.rb +1 -1
- data/spec/models/outcomes_data_spec.rb +1 -1
- data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_spec.rb +1 -1
- data/spec/models/properties_body_spec.rb +1 -1
- data/spec/models/properties_deltas_spec.rb +1 -1
- data/spec/models/properties_object_spec.rb +1 -1
- data/spec/models/purchase_spec.rb +1 -1
- data/spec/models/rate_limit_error_spec.rb +1 -1
- data/spec/models/segment_data_spec.rb +1 -1
- data/spec/models/segment_notification_target_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/start_live_activity_request_spec.rb +1 -1
- data/spec/models/start_live_activity_success_response_spec.rb +1 -1
- data/spec/models/subscription_body_spec.rb +1 -1
- data/spec/models/subscription_notification_target_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/template_resource_spec.rb +1 -1
- data/spec/models/templates_list_response_spec.rb +1 -1
- data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
- data/spec/models/update_api_key_request_spec.rb +1 -1
- data/spec/models/update_live_activity_request_spec.rb +1 -1
- data/spec/models/update_live_activity_success_response_spec.rb +1 -1
- data/spec/models/update_template_request_spec.rb +7 -1
- data/spec/models/update_user_request_spec.rb +1 -1
- data/spec/models/user_identity_body_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/web_button_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -57,7 +57,7 @@ module OneSignal
|
|
|
57
57
|
# Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434.
|
|
58
58
|
attr_accessor :app_id
|
|
59
59
|
|
|
60
|
-
# [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
60
|
+
# This field does **not** target users by their External ID. To send to External IDs, use `include_aliases` with the label `external_id` plus `target_channel` as documented for alias-based targeting. [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
61
61
|
attr_accessor :external_id
|
|
62
62
|
|
|
63
63
|
# Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
@@ -284,6 +284,9 @@ module OneSignal
|
|
|
284
284
|
# 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.
|
|
285
285
|
attr_accessor :include_unsubscribed
|
|
286
286
|
|
|
287
|
+
# Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.
|
|
288
|
+
attr_accessor :email_bcc
|
|
289
|
+
|
|
287
290
|
# Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
|
|
288
291
|
attr_accessor :sms_from
|
|
289
292
|
|
|
@@ -427,6 +430,7 @@ module OneSignal
|
|
|
427
430
|
:'email_preheader' => :'email_preheader',
|
|
428
431
|
:'disable_email_click_tracking' => :'disable_email_click_tracking',
|
|
429
432
|
:'include_unsubscribed' => :'include_unsubscribed',
|
|
433
|
+
:'email_bcc' => :'email_bcc',
|
|
430
434
|
:'sms_from' => :'sms_from',
|
|
431
435
|
:'sms_media_urls' => :'sms_media_urls',
|
|
432
436
|
:'filters' => :'filters',
|
|
@@ -539,6 +543,7 @@ module OneSignal
|
|
|
539
543
|
:'email_preheader' => :'String',
|
|
540
544
|
:'disable_email_click_tracking' => :'Boolean',
|
|
541
545
|
:'include_unsubscribed' => :'Boolean',
|
|
546
|
+
:'email_bcc' => :'Array<String>',
|
|
542
547
|
:'sms_from' => :'String',
|
|
543
548
|
:'sms_media_urls' => :'Array<String>',
|
|
544
549
|
:'filters' => :'Array<FilterExpression>',
|
|
@@ -634,6 +639,7 @@ module OneSignal
|
|
|
634
639
|
:'email_reply_to_address',
|
|
635
640
|
:'email_preheader',
|
|
636
641
|
:'disable_email_click_tracking',
|
|
642
|
+
:'email_bcc',
|
|
637
643
|
:'sms_from',
|
|
638
644
|
:'sms_media_urls',
|
|
639
645
|
:'filters',
|
|
@@ -1033,6 +1039,12 @@ module OneSignal
|
|
|
1033
1039
|
self.include_unsubscribed = attributes[:'include_unsubscribed']
|
|
1034
1040
|
end
|
|
1035
1041
|
|
|
1042
|
+
if attributes.key?(:'email_bcc')
|
|
1043
|
+
if (value = attributes[:'email_bcc']).is_a?(Array)
|
|
1044
|
+
self.email_bcc = value
|
|
1045
|
+
end
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1036
1048
|
if attributes.key?(:'sms_from')
|
|
1037
1049
|
self.sms_from = attributes[:'sms_from']
|
|
1038
1050
|
end
|
|
@@ -1078,6 +1090,10 @@ module OneSignal
|
|
|
1078
1090
|
# @return Array for valid properties with the reasons
|
|
1079
1091
|
def list_invalid_properties
|
|
1080
1092
|
invalid_properties = Array.new
|
|
1093
|
+
if !@email_bcc.nil? && @email_bcc.length > 5
|
|
1094
|
+
invalid_properties.push('invalid value for "email_bcc", number of items must be less than or equal to 5.')
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1081
1097
|
invalid_properties
|
|
1082
1098
|
end
|
|
1083
1099
|
|
|
@@ -1086,6 +1102,7 @@ module OneSignal
|
|
|
1086
1102
|
def valid?
|
|
1087
1103
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1088
1104
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1105
|
+
return false if !@email_bcc.nil? && @email_bcc.length > 5
|
|
1089
1106
|
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1090
1107
|
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1091
1108
|
true
|
|
@@ -1101,6 +1118,16 @@ module OneSignal
|
|
|
1101
1118
|
@aggregation = aggregation
|
|
1102
1119
|
end
|
|
1103
1120
|
|
|
1121
|
+
# Custom attribute writer method with validation
|
|
1122
|
+
# @param [Object] email_bcc Value to be assigned
|
|
1123
|
+
def email_bcc=(email_bcc)
|
|
1124
|
+
if !email_bcc.nil? && email_bcc.length > 5
|
|
1125
|
+
fail ArgumentError, 'invalid value for "email_bcc", number of items must be less than or equal to 5.'
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1128
|
+
@email_bcc = email_bcc
|
|
1129
|
+
end
|
|
1130
|
+
|
|
1104
1131
|
# Custom attribute writer method checking allowed values (enum).
|
|
1105
1132
|
# @param [Object] huawei_category Object to be assigned
|
|
1106
1133
|
def huawei_category=(huawei_category)
|
|
@@ -1208,6 +1235,7 @@ module OneSignal
|
|
|
1208
1235
|
email_preheader == o.email_preheader &&
|
|
1209
1236
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1210
1237
|
include_unsubscribed == o.include_unsubscribed &&
|
|
1238
|
+
email_bcc == o.email_bcc &&
|
|
1211
1239
|
sms_from == o.sms_from &&
|
|
1212
1240
|
sms_media_urls == o.sms_media_urls &&
|
|
1213
1241
|
filters == o.filters &&
|
|
@@ -1228,7 +1256,7 @@ module OneSignal
|
|
|
1228
1256
|
# Calculates hash code according to all attributes.
|
|
1229
1257
|
# @return [Integer] Hash code
|
|
1230
1258
|
def hash
|
|
1231
|
-
[id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
|
|
1259
|
+
[id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, email_bcc, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
|
|
1232
1260
|
end
|
|
1233
1261
|
|
|
1234
1262
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -15,11 +15,13 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module OneSignal
|
|
17
17
|
class CreateNotificationSuccessResponse
|
|
18
|
+
# Notification identifier when the request created a notification. An empty string means no notification was created; read `errors` for details (HTTP may still be 200).
|
|
18
19
|
attr_accessor :id
|
|
19
20
|
|
|
21
|
+
# Optional correlation / idempotency-related value from the API response. This is not the end-user External ID used for targeting recipients (that lives under `include_aliases.external_id`).
|
|
20
22
|
attr_accessor :external_id
|
|
21
23
|
|
|
22
|
-
#
|
|
24
|
+
# Polymorphic field: may be an array of human-readable strings and/or an object (for example with `invalid_aliases`, `invalid_external_user_ids`, or `invalid_player_ids`) depending on the API response; HTTP may still be 200 with partial success. Typed SDKs model this loosely so both shapes deserialize.
|
|
23
25
|
attr_accessor :errors
|
|
24
26
|
|
|
25
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -36,6 +36,9 @@ module OneSignal
|
|
|
36
36
|
# Body of the email (HTML supported).
|
|
37
37
|
attr_accessor :email_body
|
|
38
38
|
|
|
39
|
+
# BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.
|
|
40
|
+
attr_accessor :email_bcc
|
|
41
|
+
|
|
39
42
|
# Set true for an SMS template.
|
|
40
43
|
attr_accessor :is_sms
|
|
41
44
|
|
|
@@ -53,6 +56,7 @@ module OneSignal
|
|
|
53
56
|
:'is_email' => :'isEmail',
|
|
54
57
|
:'email_subject' => :'email_subject',
|
|
55
58
|
:'email_body' => :'email_body',
|
|
59
|
+
:'email_bcc' => :'email_bcc',
|
|
56
60
|
:'is_sms' => :'isSMS',
|
|
57
61
|
:'dynamic_content' => :'dynamic_content'
|
|
58
62
|
}
|
|
@@ -74,6 +78,7 @@ module OneSignal
|
|
|
74
78
|
:'is_email' => :'Boolean',
|
|
75
79
|
:'email_subject' => :'String',
|
|
76
80
|
:'email_body' => :'String',
|
|
81
|
+
:'email_bcc' => :'Array<String>',
|
|
77
82
|
:'is_sms' => :'Boolean',
|
|
78
83
|
:'dynamic_content' => :'String'
|
|
79
84
|
}
|
|
@@ -84,6 +89,7 @@ module OneSignal
|
|
|
84
89
|
Set.new([
|
|
85
90
|
:'email_subject',
|
|
86
91
|
:'email_body',
|
|
92
|
+
:'email_bcc',
|
|
87
93
|
:'dynamic_content'
|
|
88
94
|
])
|
|
89
95
|
end
|
|
@@ -135,6 +141,12 @@ module OneSignal
|
|
|
135
141
|
self.email_body = attributes[:'email_body']
|
|
136
142
|
end
|
|
137
143
|
|
|
144
|
+
if attributes.key?(:'email_bcc')
|
|
145
|
+
if (value = attributes[:'email_bcc']).is_a?(Array)
|
|
146
|
+
self.email_bcc = value
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
138
150
|
if attributes.key?(:'is_sms')
|
|
139
151
|
self.is_sms = attributes[:'is_sms']
|
|
140
152
|
end
|
|
@@ -160,6 +172,10 @@ module OneSignal
|
|
|
160
172
|
invalid_properties.push('invalid value for "contents", contents cannot be nil.')
|
|
161
173
|
end
|
|
162
174
|
|
|
175
|
+
if !@email_bcc.nil? && @email_bcc.length > 5
|
|
176
|
+
invalid_properties.push('invalid value for "email_bcc", number of items must be less than or equal to 5.')
|
|
177
|
+
end
|
|
178
|
+
|
|
163
179
|
invalid_properties
|
|
164
180
|
end
|
|
165
181
|
|
|
@@ -169,9 +185,20 @@ module OneSignal
|
|
|
169
185
|
return false if @app_id.nil?
|
|
170
186
|
return false if @name.nil?
|
|
171
187
|
return false if @contents.nil?
|
|
188
|
+
return false if !@email_bcc.nil? && @email_bcc.length > 5
|
|
172
189
|
true
|
|
173
190
|
end
|
|
174
191
|
|
|
192
|
+
# Custom attribute writer method with validation
|
|
193
|
+
# @param [Object] email_bcc Value to be assigned
|
|
194
|
+
def email_bcc=(email_bcc)
|
|
195
|
+
if !email_bcc.nil? && email_bcc.length > 5
|
|
196
|
+
fail ArgumentError, 'invalid value for "email_bcc", number of items must be less than or equal to 5.'
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
@email_bcc = email_bcc
|
|
200
|
+
end
|
|
201
|
+
|
|
175
202
|
# Checks equality by comparing each attribute.
|
|
176
203
|
# @param [Object] Object to be compared
|
|
177
204
|
def ==(o)
|
|
@@ -185,6 +212,7 @@ module OneSignal
|
|
|
185
212
|
is_email == o.is_email &&
|
|
186
213
|
email_subject == o.email_subject &&
|
|
187
214
|
email_body == o.email_body &&
|
|
215
|
+
email_bcc == o.email_bcc &&
|
|
188
216
|
is_sms == o.is_sms &&
|
|
189
217
|
dynamic_content == o.dynamic_content
|
|
190
218
|
end
|
|
@@ -198,7 +226,7 @@ module OneSignal
|
|
|
198
226
|
# Calculates hash code according to all attributes.
|
|
199
227
|
# @return [Integer] Hash code
|
|
200
228
|
def hash
|
|
201
|
-
[app_id, name, contents, headings, subtitle, is_email, email_subject, email_body, is_sms, dynamic_content].hash
|
|
229
|
+
[app_id, name, contents, headings, subtitle, is_email, email_subject, email_body, email_bcc, is_sms, dynamic_content].hash
|
|
202
230
|
end
|
|
203
231
|
|
|
204
232
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -48,7 +48,7 @@ module OneSignal
|
|
|
48
48
|
# Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
|
|
49
49
|
attr_accessor :include_android_reg_ids
|
|
50
50
|
|
|
51
|
-
# Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms.
|
|
51
|
+
# Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Keys must match API spellings exactly (for example the label for External ID is the string `external_id`; arbitrary keys such as camelCase variants are not aliases and may yield no recipients). Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms.
|
|
52
52
|
attr_accessor :include_aliases
|
|
53
53
|
|
|
54
54
|
attr_accessor :target_channel
|
|
@@ -95,7 +95,7 @@ module OneSignal
|
|
|
95
95
|
# Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434.
|
|
96
96
|
attr_accessor :app_id
|
|
97
97
|
|
|
98
|
-
# [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
98
|
+
# This field does **not** target users by their External ID. To send to External IDs, use `include_aliases` with the label `external_id` plus `target_channel` as documented for alias-based targeting. [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
99
99
|
attr_accessor :external_id
|
|
100
100
|
|
|
101
101
|
# Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
@@ -322,6 +322,9 @@ module OneSignal
|
|
|
322
322
|
# 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.
|
|
323
323
|
attr_accessor :include_unsubscribed
|
|
324
324
|
|
|
325
|
+
# Channel: Email BCC recipients for the email. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.
|
|
326
|
+
attr_accessor :email_bcc
|
|
327
|
+
|
|
325
328
|
# Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
|
|
326
329
|
attr_accessor :sms_from
|
|
327
330
|
|
|
@@ -481,6 +484,7 @@ module OneSignal
|
|
|
481
484
|
:'email_preheader' => :'email_preheader',
|
|
482
485
|
:'disable_email_click_tracking' => :'disable_email_click_tracking',
|
|
483
486
|
:'include_unsubscribed' => :'include_unsubscribed',
|
|
487
|
+
:'email_bcc' => :'email_bcc',
|
|
484
488
|
:'sms_from' => :'sms_from',
|
|
485
489
|
:'sms_media_urls' => :'sms_media_urls',
|
|
486
490
|
:'filters' => :'filters',
|
|
@@ -607,6 +611,7 @@ module OneSignal
|
|
|
607
611
|
:'email_preheader' => :'String',
|
|
608
612
|
:'disable_email_click_tracking' => :'Boolean',
|
|
609
613
|
:'include_unsubscribed' => :'Boolean',
|
|
614
|
+
:'email_bcc' => :'Array<String>',
|
|
610
615
|
:'sms_from' => :'String',
|
|
611
616
|
:'sms_media_urls' => :'Array<String>',
|
|
612
617
|
:'filters' => :'Array<FilterExpression>',
|
|
@@ -705,6 +710,7 @@ module OneSignal
|
|
|
705
710
|
:'email_reply_to_address',
|
|
706
711
|
:'email_preheader',
|
|
707
712
|
:'disable_email_click_tracking',
|
|
713
|
+
:'email_bcc',
|
|
708
714
|
:'sms_from',
|
|
709
715
|
:'sms_media_urls',
|
|
710
716
|
:'filters',
|
|
@@ -1189,6 +1195,12 @@ module OneSignal
|
|
|
1189
1195
|
self.include_unsubscribed = attributes[:'include_unsubscribed']
|
|
1190
1196
|
end
|
|
1191
1197
|
|
|
1198
|
+
if attributes.key?(:'email_bcc')
|
|
1199
|
+
if (value = attributes[:'email_bcc']).is_a?(Array)
|
|
1200
|
+
self.email_bcc = value
|
|
1201
|
+
end
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1192
1204
|
if attributes.key?(:'sms_from')
|
|
1193
1205
|
self.sms_from = attributes[:'sms_from']
|
|
1194
1206
|
end
|
|
@@ -1242,6 +1254,10 @@ module OneSignal
|
|
|
1242
1254
|
invalid_properties.push('invalid value for "app_id", app_id cannot be nil.')
|
|
1243
1255
|
end
|
|
1244
1256
|
|
|
1257
|
+
if !@email_bcc.nil? && @email_bcc.length > 5
|
|
1258
|
+
invalid_properties.push('invalid value for "email_bcc", number of items must be less than or equal to 5.')
|
|
1259
|
+
end
|
|
1260
|
+
|
|
1245
1261
|
invalid_properties
|
|
1246
1262
|
end
|
|
1247
1263
|
|
|
@@ -1253,6 +1269,7 @@ module OneSignal
|
|
|
1253
1269
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1254
1270
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1255
1271
|
return false if @app_id.nil?
|
|
1272
|
+
return false if !@email_bcc.nil? && @email_bcc.length > 5
|
|
1256
1273
|
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1257
1274
|
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1258
1275
|
true
|
|
@@ -1278,6 +1295,16 @@ module OneSignal
|
|
|
1278
1295
|
@aggregation = aggregation
|
|
1279
1296
|
end
|
|
1280
1297
|
|
|
1298
|
+
# Custom attribute writer method with validation
|
|
1299
|
+
# @param [Object] email_bcc Value to be assigned
|
|
1300
|
+
def email_bcc=(email_bcc)
|
|
1301
|
+
if !email_bcc.nil? && email_bcc.length > 5
|
|
1302
|
+
fail ArgumentError, 'invalid value for "email_bcc", number of items must be less than or equal to 5.'
|
|
1303
|
+
end
|
|
1304
|
+
|
|
1305
|
+
@email_bcc = email_bcc
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1281
1308
|
# Custom attribute writer method checking allowed values (enum).
|
|
1282
1309
|
# @param [Object] huawei_category Object to be assigned
|
|
1283
1310
|
def huawei_category=(huawei_category)
|
|
@@ -1398,6 +1425,7 @@ module OneSignal
|
|
|
1398
1425
|
email_preheader == o.email_preheader &&
|
|
1399
1426
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1400
1427
|
include_unsubscribed == o.include_unsubscribed &&
|
|
1428
|
+
email_bcc == o.email_bcc &&
|
|
1401
1429
|
sms_from == o.sms_from &&
|
|
1402
1430
|
sms_media_urls == o.sms_media_urls &&
|
|
1403
1431
|
filters == o.filters &&
|
|
@@ -1419,7 +1447,7 @@ module OneSignal
|
|
|
1419
1447
|
# Calculates hash code according to all attributes.
|
|
1420
1448
|
# @return [Integer] Hash code
|
|
1421
1449
|
def hash
|
|
1422
|
-
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag, send_after].hash
|
|
1450
|
+
[included_segments, excluded_segments, include_subscription_ids, include_email_tokens, include_phone_numbers, include_ios_tokens, include_wp_wns_uris, include_amazon_reg_ids, include_chrome_reg_ids, include_chrome_web_reg_ids, include_android_reg_ids, include_aliases, target_channel, id, value, name, aggregation, is_ios, is_android, is_huawei, is_any_web, is_chrome_web, is_firefox, is_safari, is_wp_wns, is_adm, is_chrome, app_id, external_id, idempotency_key, contents, headings, subtitle, data, huawei_msg_type, url, web_url, app_url, ios_attachments, template_id, content_available, mutable_content, target_content_identifier, big_picture, huawei_big_picture, adm_big_picture, chrome_big_picture, chrome_web_image, buttons, web_buttons, ios_category, android_channel_id, huawei_channel_id, existing_android_channel_id, huawei_existing_channel_id, android_background_layout, small_icon, huawei_small_icon, large_icon, huawei_large_icon, adm_small_icon, adm_large_icon, chrome_web_icon, chrome_web_badge, firefox_icon, chrome_icon, ios_sound, android_sound, huawei_sound, adm_sound, wp_wns_sound, android_led_color, huawei_led_color, android_accent_color, huawei_accent_color, android_visibility, huawei_visibility, ios_badge_type, ios_badge_count, collapse_id, web_push_topic, apns_alert, delayed_option, delivery_time_of_day, ttl, priority, apns_push_type_override, throttle_rate_per_minute, android_group, android_group_message, adm_group, adm_group_message, thread_id, summary_arg, summary_arg_count, ios_relevance_score, ios_interruption_level, email_subject, email_body, email_from_name, email_from_address, email_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, email_bcc, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag, send_after].hash
|
|
1423
1451
|
end
|
|
1424
1452
|
|
|
1425
1453
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.5.0
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|