onesignal 5.3.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 +12 -0
- data/README.md +57 -186
- data/docs/BasicNotification.md +4 -2
- data/docs/BasicNotificationAllOf.md +3 -1
- data/docs/CreateNotificationSuccessResponse.md +3 -3
- data/docs/CreateTemplateRequest.md +6 -0
- data/docs/DefaultApi.md +50 -46
- 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 +6 -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 +4 -5
- 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 +34 -4
- data/lib/onesignal/models/basic_notification_all_of.rb +33 -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 +48 -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 +34 -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 +33 -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 +48 -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 +19 -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 +19 -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
|
|
@@ -33,11 +33,10 @@ module OneSignal
|
|
|
33
33
|
# Default server operation variables
|
|
34
34
|
attr_accessor :server_operation_variables
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
attr_accessor :organization_api_key
|
|
37
|
+
|
|
38
|
+
attr_accessor :rest_api_key
|
|
38
39
|
|
|
39
|
-
# OneSignal API token for User Authentication
|
|
40
|
-
attr_accessor :user_key
|
|
41
40
|
|
|
42
41
|
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
|
43
42
|
# details will be logged with `logger.debug` (see the `logger` attribute).
|
|
@@ -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
|
data/lib/onesignal/models/app.rb
CHANGED
|
@@ -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
|
|
|
@@ -478,6 +481,7 @@ module OneSignal
|
|
|
478
481
|
:'email_preheader' => :'email_preheader',
|
|
479
482
|
:'disable_email_click_tracking' => :'disable_email_click_tracking',
|
|
480
483
|
:'include_unsubscribed' => :'include_unsubscribed',
|
|
484
|
+
:'email_bcc' => :'email_bcc',
|
|
481
485
|
:'sms_from' => :'sms_from',
|
|
482
486
|
:'sms_media_urls' => :'sms_media_urls',
|
|
483
487
|
:'filters' => :'filters',
|
|
@@ -603,6 +607,7 @@ module OneSignal
|
|
|
603
607
|
:'email_preheader' => :'String',
|
|
604
608
|
:'disable_email_click_tracking' => :'Boolean',
|
|
605
609
|
:'include_unsubscribed' => :'Boolean',
|
|
610
|
+
:'email_bcc' => :'Array<String>',
|
|
606
611
|
:'sms_from' => :'String',
|
|
607
612
|
:'sms_media_urls' => :'Array<String>',
|
|
608
613
|
:'filters' => :'Array<FilterExpression>',
|
|
@@ -653,7 +658,9 @@ module OneSignal
|
|
|
653
658
|
:'buttons',
|
|
654
659
|
:'web_buttons',
|
|
655
660
|
:'ios_category',
|
|
661
|
+
:'android_channel_id',
|
|
656
662
|
:'huawei_channel_id',
|
|
663
|
+
:'existing_android_channel_id',
|
|
657
664
|
:'huawei_existing_channel_id',
|
|
658
665
|
:'small_icon',
|
|
659
666
|
:'huawei_small_icon',
|
|
@@ -698,6 +705,7 @@ module OneSignal
|
|
|
698
705
|
:'email_reply_to_address',
|
|
699
706
|
:'email_preheader',
|
|
700
707
|
:'disable_email_click_tracking',
|
|
708
|
+
:'email_bcc',
|
|
701
709
|
:'sms_from',
|
|
702
710
|
:'sms_media_urls',
|
|
703
711
|
:'filters',
|
|
@@ -1181,6 +1189,12 @@ module OneSignal
|
|
|
1181
1189
|
self.include_unsubscribed = attributes[:'include_unsubscribed']
|
|
1182
1190
|
end
|
|
1183
1191
|
|
|
1192
|
+
if attributes.key?(:'email_bcc')
|
|
1193
|
+
if (value = attributes[:'email_bcc']).is_a?(Array)
|
|
1194
|
+
self.email_bcc = value
|
|
1195
|
+
end
|
|
1196
|
+
end
|
|
1197
|
+
|
|
1184
1198
|
if attributes.key?(:'sms_from')
|
|
1185
1199
|
self.sms_from = attributes[:'sms_from']
|
|
1186
1200
|
end
|
|
@@ -1230,6 +1244,10 @@ module OneSignal
|
|
|
1230
1244
|
invalid_properties.push('invalid value for "app_id", app_id cannot be nil.')
|
|
1231
1245
|
end
|
|
1232
1246
|
|
|
1247
|
+
if !@email_bcc.nil? && @email_bcc.length > 5
|
|
1248
|
+
invalid_properties.push('invalid value for "email_bcc", number of items must be less than or equal to 5.')
|
|
1249
|
+
end
|
|
1250
|
+
|
|
1233
1251
|
invalid_properties
|
|
1234
1252
|
end
|
|
1235
1253
|
|
|
@@ -1241,6 +1259,7 @@ module OneSignal
|
|
|
1241
1259
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1242
1260
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1243
1261
|
return false if @app_id.nil?
|
|
1262
|
+
return false if !@email_bcc.nil? && @email_bcc.length > 5
|
|
1244
1263
|
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1245
1264
|
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1246
1265
|
true
|
|
@@ -1266,6 +1285,16 @@ module OneSignal
|
|
|
1266
1285
|
@aggregation = aggregation
|
|
1267
1286
|
end
|
|
1268
1287
|
|
|
1288
|
+
# Custom attribute writer method with validation
|
|
1289
|
+
# @param [Object] email_bcc Value to be assigned
|
|
1290
|
+
def email_bcc=(email_bcc)
|
|
1291
|
+
if !email_bcc.nil? && email_bcc.length > 5
|
|
1292
|
+
fail ArgumentError, 'invalid value for "email_bcc", number of items must be less than or equal to 5.'
|
|
1293
|
+
end
|
|
1294
|
+
|
|
1295
|
+
@email_bcc = email_bcc
|
|
1296
|
+
end
|
|
1297
|
+
|
|
1269
1298
|
# Custom attribute writer method checking allowed values (enum).
|
|
1270
1299
|
# @param [Object] huawei_category Object to be assigned
|
|
1271
1300
|
def huawei_category=(huawei_category)
|
|
@@ -1386,6 +1415,7 @@ module OneSignal
|
|
|
1386
1415
|
email_preheader == o.email_preheader &&
|
|
1387
1416
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1388
1417
|
include_unsubscribed == o.include_unsubscribed &&
|
|
1418
|
+
email_bcc == o.email_bcc &&
|
|
1389
1419
|
sms_from == o.sms_from &&
|
|
1390
1420
|
sms_media_urls == o.sms_media_urls &&
|
|
1391
1421
|
filters == o.filters &&
|
|
@@ -1406,7 +1436,7 @@ module OneSignal
|
|
|
1406
1436
|
# Calculates hash code according to all attributes.
|
|
1407
1437
|
# @return [Integer] Hash code
|
|
1408
1438
|
def hash
|
|
1409
|
-
[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].hash
|
|
1439
|
+
[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].hash
|
|
1410
1440
|
end
|
|
1411
1441
|
|
|
1412
1442
|
# 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
|
|
@@ -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>',
|
|
@@ -587,7 +592,9 @@ module OneSignal
|
|
|
587
592
|
:'buttons',
|
|
588
593
|
:'web_buttons',
|
|
589
594
|
:'ios_category',
|
|
595
|
+
:'android_channel_id',
|
|
590
596
|
:'huawei_channel_id',
|
|
597
|
+
:'existing_android_channel_id',
|
|
591
598
|
:'huawei_existing_channel_id',
|
|
592
599
|
:'small_icon',
|
|
593
600
|
:'huawei_small_icon',
|
|
@@ -632,6 +639,7 @@ module OneSignal
|
|
|
632
639
|
:'email_reply_to_address',
|
|
633
640
|
:'email_preheader',
|
|
634
641
|
:'disable_email_click_tracking',
|
|
642
|
+
:'email_bcc',
|
|
635
643
|
:'sms_from',
|
|
636
644
|
:'sms_media_urls',
|
|
637
645
|
:'filters',
|
|
@@ -1031,6 +1039,12 @@ module OneSignal
|
|
|
1031
1039
|
self.include_unsubscribed = attributes[:'include_unsubscribed']
|
|
1032
1040
|
end
|
|
1033
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
|
+
|
|
1034
1048
|
if attributes.key?(:'sms_from')
|
|
1035
1049
|
self.sms_from = attributes[:'sms_from']
|
|
1036
1050
|
end
|
|
@@ -1076,6 +1090,10 @@ module OneSignal
|
|
|
1076
1090
|
# @return Array for valid properties with the reasons
|
|
1077
1091
|
def list_invalid_properties
|
|
1078
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
|
+
|
|
1079
1097
|
invalid_properties
|
|
1080
1098
|
end
|
|
1081
1099
|
|
|
@@ -1084,6 +1102,7 @@ module OneSignal
|
|
|
1084
1102
|
def valid?
|
|
1085
1103
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
|
1086
1104
|
return false unless aggregation_validator.valid?(@aggregation)
|
|
1105
|
+
return false if !@email_bcc.nil? && @email_bcc.length > 5
|
|
1087
1106
|
huawei_category_validator = EnumAttributeValidator.new('String', ["IM", "VOIP", "SUBSCRIPTION", "TRAVEL", "HEALTH", "WORK", "ACCOUNT", "EXPRESS", "FINANCE", "DEVICE_REMINDER", "MAIL", "MARKETING"])
|
|
1088
1107
|
return false unless huawei_category_validator.valid?(@huawei_category)
|
|
1089
1108
|
true
|
|
@@ -1099,6 +1118,16 @@ module OneSignal
|
|
|
1099
1118
|
@aggregation = aggregation
|
|
1100
1119
|
end
|
|
1101
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
|
+
|
|
1102
1131
|
# Custom attribute writer method checking allowed values (enum).
|
|
1103
1132
|
# @param [Object] huawei_category Object to be assigned
|
|
1104
1133
|
def huawei_category=(huawei_category)
|
|
@@ -1206,6 +1235,7 @@ module OneSignal
|
|
|
1206
1235
|
email_preheader == o.email_preheader &&
|
|
1207
1236
|
disable_email_click_tracking == o.disable_email_click_tracking &&
|
|
1208
1237
|
include_unsubscribed == o.include_unsubscribed &&
|
|
1238
|
+
email_bcc == o.email_bcc &&
|
|
1209
1239
|
sms_from == o.sms_from &&
|
|
1210
1240
|
sms_media_urls == o.sms_media_urls &&
|
|
1211
1241
|
filters == o.filters &&
|
|
@@ -1226,7 +1256,7 @@ module OneSignal
|
|
|
1226
1256
|
# Calculates hash code according to all attributes.
|
|
1227
1257
|
# @return [Integer] Hash code
|
|
1228
1258
|
def hash
|
|
1229
|
-
[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
|
|
1230
1260
|
end
|
|
1231
1261
|
|
|
1232
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
|
|
@@ -23,6 +23,10 @@ module OneSignal
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :contents
|
|
25
25
|
|
|
26
|
+
attr_accessor :headings
|
|
27
|
+
|
|
28
|
+
attr_accessor :subtitle
|
|
29
|
+
|
|
26
30
|
# Set true for an Email template.
|
|
27
31
|
attr_accessor :is_email
|
|
28
32
|
|
|
@@ -32,6 +36,9 @@ module OneSignal
|
|
|
32
36
|
# Body of the email (HTML supported).
|
|
33
37
|
attr_accessor :email_body
|
|
34
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
|
+
|
|
35
42
|
# Set true for an SMS template.
|
|
36
43
|
attr_accessor :is_sms
|
|
37
44
|
|
|
@@ -44,9 +51,12 @@ module OneSignal
|
|
|
44
51
|
:'app_id' => :'app_id',
|
|
45
52
|
:'name' => :'name',
|
|
46
53
|
:'contents' => :'contents',
|
|
54
|
+
:'headings' => :'headings',
|
|
55
|
+
:'subtitle' => :'subtitle',
|
|
47
56
|
:'is_email' => :'isEmail',
|
|
48
57
|
:'email_subject' => :'email_subject',
|
|
49
58
|
:'email_body' => :'email_body',
|
|
59
|
+
:'email_bcc' => :'email_bcc',
|
|
50
60
|
:'is_sms' => :'isSMS',
|
|
51
61
|
:'dynamic_content' => :'dynamic_content'
|
|
52
62
|
}
|
|
@@ -63,9 +73,12 @@ module OneSignal
|
|
|
63
73
|
:'app_id' => :'String',
|
|
64
74
|
:'name' => :'String',
|
|
65
75
|
:'contents' => :'LanguageStringMap',
|
|
76
|
+
:'headings' => :'LanguageStringMap',
|
|
77
|
+
:'subtitle' => :'LanguageStringMap',
|
|
66
78
|
:'is_email' => :'Boolean',
|
|
67
79
|
:'email_subject' => :'String',
|
|
68
80
|
:'email_body' => :'String',
|
|
81
|
+
:'email_bcc' => :'Array<String>',
|
|
69
82
|
:'is_sms' => :'Boolean',
|
|
70
83
|
:'dynamic_content' => :'String'
|
|
71
84
|
}
|
|
@@ -76,6 +89,7 @@ module OneSignal
|
|
|
76
89
|
Set.new([
|
|
77
90
|
:'email_subject',
|
|
78
91
|
:'email_body',
|
|
92
|
+
:'email_bcc',
|
|
79
93
|
:'dynamic_content'
|
|
80
94
|
])
|
|
81
95
|
end
|
|
@@ -107,6 +121,14 @@ module OneSignal
|
|
|
107
121
|
self.contents = attributes[:'contents']
|
|
108
122
|
end
|
|
109
123
|
|
|
124
|
+
if attributes.key?(:'headings')
|
|
125
|
+
self.headings = attributes[:'headings']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'subtitle')
|
|
129
|
+
self.subtitle = attributes[:'subtitle']
|
|
130
|
+
end
|
|
131
|
+
|
|
110
132
|
if attributes.key?(:'is_email')
|
|
111
133
|
self.is_email = attributes[:'is_email']
|
|
112
134
|
end
|
|
@@ -119,6 +141,12 @@ module OneSignal
|
|
|
119
141
|
self.email_body = attributes[:'email_body']
|
|
120
142
|
end
|
|
121
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
|
+
|
|
122
150
|
if attributes.key?(:'is_sms')
|
|
123
151
|
self.is_sms = attributes[:'is_sms']
|
|
124
152
|
end
|
|
@@ -144,6 +172,10 @@ module OneSignal
|
|
|
144
172
|
invalid_properties.push('invalid value for "contents", contents cannot be nil.')
|
|
145
173
|
end
|
|
146
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
|
+
|
|
147
179
|
invalid_properties
|
|
148
180
|
end
|
|
149
181
|
|
|
@@ -153,9 +185,20 @@ module OneSignal
|
|
|
153
185
|
return false if @app_id.nil?
|
|
154
186
|
return false if @name.nil?
|
|
155
187
|
return false if @contents.nil?
|
|
188
|
+
return false if !@email_bcc.nil? && @email_bcc.length > 5
|
|
156
189
|
true
|
|
157
190
|
end
|
|
158
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
|
+
|
|
159
202
|
# Checks equality by comparing each attribute.
|
|
160
203
|
# @param [Object] Object to be compared
|
|
161
204
|
def ==(o)
|
|
@@ -164,9 +207,12 @@ module OneSignal
|
|
|
164
207
|
app_id == o.app_id &&
|
|
165
208
|
name == o.name &&
|
|
166
209
|
contents == o.contents &&
|
|
210
|
+
headings == o.headings &&
|
|
211
|
+
subtitle == o.subtitle &&
|
|
167
212
|
is_email == o.is_email &&
|
|
168
213
|
email_subject == o.email_subject &&
|
|
169
214
|
email_body == o.email_body &&
|
|
215
|
+
email_bcc == o.email_bcc &&
|
|
170
216
|
is_sms == o.is_sms &&
|
|
171
217
|
dynamic_content == o.dynamic_content
|
|
172
218
|
end
|
|
@@ -180,7 +226,7 @@ module OneSignal
|
|
|
180
226
|
# Calculates hash code according to all attributes.
|
|
181
227
|
# @return [Integer] Hash code
|
|
182
228
|
def hash
|
|
183
|
-
[app_id, name, contents, 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
|
|
184
230
|
end
|
|
185
231
|
|
|
186
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
|