onesignal 1.0.1 → 2.2.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/Gemfile.lock +74 -0
- data/README.md +112 -88
- data/docs/App.md +9 -1
- data/docs/BasicNotification.md +230 -0
- data/docs/BasicNotificationAllOf.md +202 -0
- data/docs/{NotificationAllOfAndroidBackgroundLayout.md → BasicNotificationAllOfAndroidBackgroundLayout.md} +2 -2
- data/docs/BeginLiveActivityRequest.md +20 -0
- data/docs/CancelNotificationSuccessResponse.md +18 -0
- data/docs/CreateNotificationSuccessResponse.md +24 -0
- data/docs/{InlineResponse2005.md → CreatePlayerSuccessResponse.md} +2 -2
- data/docs/{InlineResponse4002.md → CreateSegmentConflictResponse.md} +2 -2
- data/docs/CreateSegmentSuccessResponse.md +20 -0
- data/docs/CreateSubscriptionRequestBody.md +20 -0
- data/docs/CreateUserConflictResponse.md +18 -0
- data/docs/CreateUserConflictResponseErrorsInner.md +22 -0
- data/docs/CreateUserConflictResponseErrorsItemsMeta.md +18 -0
- data/docs/DefaultApi.md +1591 -266
- data/docs/DeletePlayerNotFoundResponse.md +18 -0
- data/docs/{InlineResponse2001.md → DeletePlayerSuccessResponse.md} +2 -2
- data/docs/DeleteSegmentNotFoundResponse.md +18 -0
- data/docs/DeleteSegmentSuccessResponse.md +18 -0
- data/docs/DeliveryData.md +5 -5
- data/docs/{InlineResponse2008.md → ExportEventsSuccessResponse.md} +2 -2
- data/docs/ExportPlayersRequestBody.md +2 -2
- data/docs/ExportPlayersSuccessResponse.md +18 -0
- data/docs/Filter.md +1 -1
- data/docs/FilterExpressions.md +1 -1
- data/docs/GenericError.md +18 -0
- data/docs/GenericErrorErrorsInner.md +20 -0
- data/docs/InlineResponse200.md +2 -8
- data/docs/InlineResponse2003.md +18 -0
- data/docs/InlineResponse201.md +2 -4
- data/docs/InlineResponse202.md +18 -0
- data/docs/Notification.md +22 -30
- data/docs/NotificationAllOf.md +1 -175
- data/docs/{InlineResponse2002.md → NotificationHistorySuccessResponse.md} +2 -2
- data/docs/NotificationTarget.md +5 -25
- data/docs/NotificationWithMeta.md +21 -29
- data/docs/PlatformDeliveryData.md +5 -1
- data/docs/PlatformDeliveryDataEmailAllOf.md +30 -0
- data/docs/PlatformDeliveryDataSmsAllOf.md +22 -0
- data/docs/Player.md +1 -1
- data/docs/PlayerNotificationTarget.md +5 -1
- data/docs/PlayerNotificationTargetIncludeAliases.md +18 -0
- data/docs/PropertiesDeltas.md +22 -0
- data/docs/PropertiesObject.md +38 -0
- data/docs/Purchase.md +4 -2
- data/docs/RateLimiterError.md +18 -0
- data/docs/SubscriptionObject.md +50 -0
- data/docs/TransferSubscriptionRequestBody.md +18 -0
- data/docs/UpdateLiveActivityRequest.md +24 -0
- data/docs/UpdateLiveActivitySuccessResponse.md +20 -0
- data/docs/{InlineResponse2007.md → UpdatePlayerSuccessResponse.md} +3 -3
- data/docs/UpdatePlayerTagsSuccessResponse.md +18 -0
- data/docs/UpdateSubscriptionRequestBody.md +18 -0
- data/docs/UpdateUserRequest.md +22 -0
- data/docs/User.md +24 -0
- data/docs/UserIdentityRequestBody.md +18 -0
- data/docs/UserIdentityResponse.md +18 -0
- data/docs/UserSubscriptionOptions.md +18 -0
- data/lib/onesignal/api/default_api.rb +1583 -221
- data/lib/onesignal/api_client.rb +2 -2
- data/lib/onesignal/api_error.rb +1 -1
- data/lib/onesignal/configuration.rb +6 -6
- data/lib/onesignal/models/app.rb +57 -7
- data/lib/onesignal/models/basic_notification.rb +1442 -0
- data/lib/onesignal/models/basic_notification_all_of.rb +1252 -0
- data/lib/onesignal/models/{notification_all_of_android_background_layout.rb → basic_notification_all_of_android_background_layout.rb} +4 -4
- data/lib/onesignal/models/begin_live_activity_request.rb +238 -0
- data/lib/onesignal/models/button.rb +1 -1
- data/lib/onesignal/models/cancel_notification_success_response.rb +219 -0
- data/lib/onesignal/models/create_notification_success_response.rb +248 -0
- data/lib/onesignal/models/{inline_response2005.rb → create_player_success_response.rb} +4 -4
- data/lib/onesignal/models/{inline_response4002.rb → create_segment_conflict_response.rb} +4 -4
- data/lib/onesignal/models/create_segment_success_response.rb +229 -0
- data/lib/onesignal/models/create_subscription_request_body.rb +228 -0
- data/lib/onesignal/models/{inline_response4001.rb → create_user_conflict_response.rb} +6 -15
- data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +237 -0
- data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +219 -0
- data/lib/onesignal/models/delete_player_not_found_response.rb +219 -0
- data/lib/onesignal/models/{inline_response2001.rb → delete_player_success_response.rb} +4 -4
- data/lib/onesignal/models/delete_segment_not_found_response.rb +219 -0
- data/lib/onesignal/models/delete_segment_success_response.rb +219 -0
- data/lib/onesignal/models/delivery_data.rb +6 -1
- data/lib/onesignal/models/{inline_response2008.rb → export_events_success_response.rb} +4 -4
- data/lib/onesignal/models/export_players_request_body.rb +3 -3
- data/lib/onesignal/models/export_players_success_response.rb +219 -0
- data/lib/onesignal/models/filter.rb +2 -2
- data/lib/onesignal/models/filter_expressions.rb +2 -2
- data/lib/onesignal/models/{inline_response400.rb → generic_error.rb} +5 -5
- data/lib/onesignal/models/generic_error_errors_inner.rb +228 -0
- data/lib/onesignal/models/get_notification_request_body.rb +1 -1
- data/lib/onesignal/models/inline_response200.rb +10 -46
- data/lib/onesignal/models/{inline_response4003.rb → inline_response2003.rb} +12 -12
- data/lib/onesignal/models/inline_response201.rb +8 -18
- data/lib/onesignal/models/inline_response202.rb +219 -0
- data/lib/onesignal/models/invalid_identifier_error.rb +1 -1
- data/lib/onesignal/models/notification.rb +173 -141
- data/lib/onesignal/models/notification200_errors.rb +1 -1
- data/lib/onesignal/models/notification_all_of.rb +6 -929
- data/lib/onesignal/models/{inline_response2002.rb → notification_history_success_response.rb} +4 -4
- data/lib/onesignal/models/notification_slice.rb +1 -1
- data/lib/onesignal/models/notification_target.rb +60 -126
- data/lib/onesignal/models/notification_with_meta.rb +168 -137
- data/lib/onesignal/models/notification_with_meta_all_of.rb +2 -1
- 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 +25 -5
- data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +287 -0
- data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +243 -0
- data/lib/onesignal/models/player.rb +9 -6
- data/lib/onesignal/models/player_notification_target.rb +60 -5
- data/lib/onesignal/models/player_notification_target_include_aliases.rb +221 -0
- data/lib/onesignal/models/player_slice.rb +1 -1
- data/lib/onesignal/models/properties_deltas.rb +239 -0
- data/lib/onesignal/models/properties_object.rb +313 -0
- data/lib/onesignal/models/purchase.rb +15 -6
- data/lib/onesignal/models/rate_limiter_error.rb +221 -0
- data/lib/onesignal/models/segment.rb +1 -1
- data/lib/onesignal/models/segment_notification_target.rb +1 -1
- data/lib/onesignal/models/string_map.rb +1 -1
- data/lib/onesignal/models/{filter_notification_target.rb → subscription_object.rb} +145 -78
- data/lib/onesignal/models/transfer_subscription_request_body.rb +221 -0
- data/lib/onesignal/models/update_live_activity_request.rb +309 -0
- data/lib/onesignal/models/update_live_activity_success_response.rb +228 -0
- data/lib/onesignal/models/{inline_response2007.rb → update_player_success_response.rb} +5 -5
- data/lib/onesignal/models/update_player_tags_request_body.rb +1 -1
- data/lib/onesignal/models/update_player_tags_success_response.rb +219 -0
- data/lib/onesignal/models/update_subscription_request_body.rb +219 -0
- data/lib/onesignal/models/update_user_request.rb +239 -0
- data/lib/onesignal/models/user.rb +250 -0
- data/lib/onesignal/models/user_identity_request_body.rb +221 -0
- data/lib/onesignal/models/user_identity_response.rb +221 -0
- data/lib/onesignal/models/user_subscription_options.rb +219 -0
- data/lib/onesignal/version.rb +2 -2
- data/lib/onesignal.rb +43 -12
- data/onesignal.gemspec +1 -1
- data/spec/api/default_api_spec.rb +249 -12
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/app_spec.rb +25 -1
- data/spec/models/{notification_all_of_android_background_layout_spec.rb → basic_notification_all_of_android_background_layout_spec.rb} +7 -7
- data/spec/models/basic_notification_all_of_spec.rb +590 -0
- data/spec/models/basic_notification_spec.rb +678 -0
- data/spec/models/begin_live_activity_request_spec.rb +40 -0
- data/spec/models/button_spec.rb +1 -1
- data/spec/models/cancel_notification_success_response_spec.rb +34 -0
- data/spec/models/create_notification_success_response_spec.rb +52 -0
- data/spec/models/{inline_response2005_spec.rb → create_player_success_response_spec.rb} +7 -7
- data/spec/models/{inline_response4001_spec.rb → create_segment_conflict_response_spec.rb} +7 -7
- data/spec/models/{inline_response4002_spec.rb → create_segment_success_response_spec.rb} +8 -8
- data/spec/models/create_subscription_request_body_spec.rb +40 -0
- data/spec/models/create_user_conflict_response_errors_inner_spec.rb +46 -0
- data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +34 -0
- data/spec/models/create_user_conflict_response_spec.rb +34 -0
- data/spec/models/delete_player_not_found_response_spec.rb +34 -0
- data/spec/models/{inline_response2001_spec.rb → delete_player_success_response_spec.rb} +7 -7
- data/spec/models/delete_segment_not_found_response_spec.rb +34 -0
- data/spec/models/delete_segment_success_response_spec.rb +34 -0
- data/spec/models/delivery_data_spec.rb +1 -1
- data/spec/models/{inline_response2008_spec.rb → export_events_success_response_spec.rb} +7 -7
- data/spec/models/export_players_request_body_spec.rb +1 -1
- data/spec/models/export_players_success_response_spec.rb +34 -0
- data/spec/models/filter_expressions_spec.rb +1 -1
- data/spec/models/filter_spec.rb +1 -1
- data/spec/models/generic_error_errors_inner_spec.rb +40 -0
- data/spec/models/{inline_response4003_spec.rb → generic_error_spec.rb} +8 -8
- data/spec/models/get_notification_request_body_spec.rb +1 -1
- data/spec/models/{inline_response2007_spec.rb → inline_response2003_spec.rb} +8 -8
- data/spec/models/inline_response200_spec.rb +2 -20
- data/spec/models/inline_response201_spec.rb +2 -8
- data/spec/models/{inline_response400_spec.rb → inline_response202_spec.rb} +8 -8
- data/spec/models/invalid_identifier_error_spec.rb +1 -1
- data/spec/models/notification200_errors_spec.rb +1 -1
- data/spec/models/notification_all_of_spec.rb +1 -527
- data/spec/models/{inline_response2002_spec.rb → notification_history_success_response_spec.rb} +7 -7
- data/spec/models/notification_slice_spec.rb +1 -1
- data/spec/models/notification_spec.rb +56 -76
- data/spec/models/notification_target_spec.rb +17 -73
- data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
- data/spec/models/notification_with_meta_spec.rb +56 -76
- 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 +70 -0
- data/spec/models/platform_delivery_data_sms_all_of_spec.rb +46 -0
- data/spec/models/platform_delivery_data_spec.rb +13 -1
- data/spec/models/player_notification_target_include_aliases_spec.rb +34 -0
- data/spec/models/player_notification_target_spec.rb +17 -1
- data/spec/models/player_slice_spec.rb +1 -1
- data/spec/models/player_spec.rb +1 -1
- data/spec/models/properties_deltas_spec.rb +46 -0
- data/spec/models/{filter_notification_target_spec.rb → properties_object_spec.rb} +18 -24
- data/spec/models/purchase_spec.rb +7 -1
- data/spec/models/rate_limiter_error_spec.rb +34 -0
- data/spec/models/segment_notification_target_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/string_map_spec.rb +1 -1
- data/spec/models/subscription_object_spec.rb +134 -0
- data/spec/models/transfer_subscription_request_body_spec.rb +34 -0
- data/spec/models/update_live_activity_request_spec.rb +60 -0
- data/spec/models/update_live_activity_success_response_spec.rb +40 -0
- data/spec/models/update_player_success_response_spec.rb +34 -0
- data/spec/models/update_player_tags_request_body_spec.rb +1 -1
- data/spec/models/update_player_tags_success_response_spec.rb +34 -0
- data/spec/models/update_subscription_request_body_spec.rb +34 -0
- data/spec/models/update_user_request_spec.rb +46 -0
- data/spec/models/user_identity_request_body_spec.rb +34 -0
- data/spec/models/user_identity_response_spec.rb +34 -0
- data/spec/models/user_spec.rb +52 -0
- data/spec/models/user_subscription_options_spec.rb +34 -0
- data/spec/spec_helper.rb +1 -1
- metadata +178 -53
- data/docs/FilterNotificationTarget.md +0 -40
- data/docs/InlineResponse400.md +0 -18
- data/docs/InlineResponse4001.md +0 -20
- data/docs/InlineResponse4003.md +0 -18
@@ -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: 1.0
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -21,42 +21,6 @@ module OneSignal
|
|
21
21
|
# Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"]
|
22
22
|
attr_accessor :excluded_segments
|
23
23
|
|
24
|
-
# relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\"
|
25
|
-
attr_accessor :last_session
|
26
|
-
|
27
|
-
# relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\"
|
28
|
-
attr_accessor :first_session
|
29
|
-
|
30
|
-
# relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\"
|
31
|
-
attr_accessor :session_count
|
32
|
-
|
33
|
-
# relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\"
|
34
|
-
attr_accessor :session_time
|
35
|
-
|
36
|
-
# relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\"
|
37
|
-
attr_accessor :amount_spent
|
38
|
-
|
39
|
-
# relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\"
|
40
|
-
attr_accessor :bought_sku
|
41
|
-
|
42
|
-
# relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters
|
43
|
-
attr_accessor :tag
|
44
|
-
|
45
|
-
# relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization.
|
46
|
-
attr_accessor :language
|
47
|
-
|
48
|
-
# relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\"
|
49
|
-
attr_accessor :app_version
|
50
|
-
|
51
|
-
# radius = in meters lat = latitude long = longitude
|
52
|
-
attr_accessor :location
|
53
|
-
|
54
|
-
# value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter
|
55
|
-
attr_accessor :email
|
56
|
-
|
57
|
-
# relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\"
|
58
|
-
attr_accessor :country
|
59
|
-
|
60
24
|
# Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
|
61
25
|
attr_accessor :include_player_ids
|
62
26
|
|
@@ -87,10 +51,17 @@ module OneSignal
|
|
87
51
|
# Not Recommended: Please consider using include_player_ids or include_external_user_ids 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
|
88
52
|
attr_accessor :include_android_reg_ids
|
89
53
|
|
54
|
+
attr_accessor :include_aliases
|
55
|
+
|
56
|
+
attr_accessor :target_channel
|
57
|
+
|
90
58
|
attr_accessor :id
|
91
59
|
|
92
60
|
attr_accessor :value
|
93
61
|
|
62
|
+
# Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user.
|
63
|
+
attr_accessor :name
|
64
|
+
|
94
65
|
attr_accessor :aggregation
|
95
66
|
|
96
67
|
# Indicates whether to send to all devices registered under your app's Apple iOS platform.
|
@@ -129,9 +100,12 @@ module OneSignal
|
|
129
100
|
# 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.
|
130
101
|
attr_accessor :app_id
|
131
102
|
|
132
|
-
# 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
|
103
|
+
# [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
|
133
104
|
attr_accessor :external_id
|
134
105
|
|
106
|
+
# 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
|
107
|
+
attr_accessor :idempotency_key
|
108
|
+
|
135
109
|
attr_accessor :contents
|
136
110
|
|
137
111
|
attr_accessor :headings
|
@@ -284,9 +258,6 @@ module OneSignal
|
|
284
258
|
# Channel: Push Notifications Platform: iOS 10+ iOS can localize push notification messages on the client using special parameters such as loc-key. When using the Create Notification endpoint, you must include these parameters inside of a field called apns_alert. Please see Apple's guide on localizing push notifications to learn more.
|
285
259
|
attr_accessor :apns_alert
|
286
260
|
|
287
|
-
# Unix timestamp indicating when notification delivery should begin.
|
288
|
-
attr_accessor :send_after
|
289
|
-
|
290
261
|
# Channel: All Possible values are: timezone (Deliver at a specific time-of-day in each users own timezone) last-active Same as Intelligent Delivery . (Deliver at the same time of day as each user last used your app). If send_after is used, this takes effect after the send_after time has elapsed.
|
291
262
|
attr_accessor :delayed_option
|
292
263
|
|
@@ -338,12 +309,23 @@ module OneSignal
|
|
338
309
|
# Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings.
|
339
310
|
attr_accessor :email_from_address
|
340
311
|
|
312
|
+
# Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null.
|
313
|
+
attr_accessor :email_preheader
|
314
|
+
|
315
|
+
# 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.
|
316
|
+
attr_accessor :include_unsubscribed
|
317
|
+
|
341
318
|
# Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
|
342
319
|
attr_accessor :sms_from
|
343
320
|
|
344
321
|
# Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs.
|
345
322
|
attr_accessor :sms_media_urls
|
346
323
|
|
324
|
+
attr_accessor :filters
|
325
|
+
|
326
|
+
# Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
|
327
|
+
attr_accessor :custom_data
|
328
|
+
|
347
329
|
# Number of notifications that were successfully delivered.
|
348
330
|
attr_accessor :successful
|
349
331
|
|
@@ -367,6 +349,9 @@ module OneSignal
|
|
367
349
|
# Unix timestamp indicating when the notification was created.
|
368
350
|
attr_accessor :queued_at
|
369
351
|
|
352
|
+
# Unix timestamp indicating when notification delivery should begin.
|
353
|
+
attr_accessor :send_after
|
354
|
+
|
370
355
|
# Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after.
|
371
356
|
attr_accessor :completed_at
|
372
357
|
|
@@ -399,18 +384,6 @@ module OneSignal
|
|
399
384
|
{
|
400
385
|
:'included_segments' => :'included_segments',
|
401
386
|
:'excluded_segments' => :'excluded_segments',
|
402
|
-
:'last_session' => :'last_session',
|
403
|
-
:'first_session' => :'first_session',
|
404
|
-
:'session_count' => :'session_count',
|
405
|
-
:'session_time' => :'session_time',
|
406
|
-
:'amount_spent' => :'amount_spent',
|
407
|
-
:'bought_sku' => :'bought_sku',
|
408
|
-
:'tag' => :'tag',
|
409
|
-
:'language' => :'language',
|
410
|
-
:'app_version' => :'app_version',
|
411
|
-
:'location' => :'location',
|
412
|
-
:'email' => :'email',
|
413
|
-
:'country' => :'country',
|
414
387
|
:'include_player_ids' => :'include_player_ids',
|
415
388
|
:'include_external_user_ids' => :'include_external_user_ids',
|
416
389
|
:'include_email_tokens' => :'include_email_tokens',
|
@@ -421,8 +394,11 @@ module OneSignal
|
|
421
394
|
:'include_chrome_reg_ids' => :'include_chrome_reg_ids',
|
422
395
|
:'include_chrome_web_reg_ids' => :'include_chrome_web_reg_ids',
|
423
396
|
:'include_android_reg_ids' => :'include_android_reg_ids',
|
397
|
+
:'include_aliases' => :'include_aliases',
|
398
|
+
:'target_channel' => :'target_channel',
|
424
399
|
:'id' => :'id',
|
425
400
|
:'value' => :'value',
|
401
|
+
:'name' => :'name',
|
426
402
|
:'aggregation' => :'aggregation',
|
427
403
|
:'is_ios' => :'isIos',
|
428
404
|
:'is_android' => :'isAndroid',
|
@@ -437,6 +413,7 @@ module OneSignal
|
|
437
413
|
:'channel_for_external_user_ids' => :'channel_for_external_user_ids',
|
438
414
|
:'app_id' => :'app_id',
|
439
415
|
:'external_id' => :'external_id',
|
416
|
+
:'idempotency_key' => :'idempotency_key',
|
440
417
|
:'contents' => :'contents',
|
441
418
|
:'headings' => :'headings',
|
442
419
|
:'subtitle' => :'subtitle',
|
@@ -489,7 +466,6 @@ module OneSignal
|
|
489
466
|
:'collapse_id' => :'collapse_id',
|
490
467
|
:'web_push_topic' => :'web_push_topic',
|
491
468
|
:'apns_alert' => :'apns_alert',
|
492
|
-
:'send_after' => :'send_after',
|
493
469
|
:'delayed_option' => :'delayed_option',
|
494
470
|
:'delivery_time_of_day' => :'delivery_time_of_day',
|
495
471
|
:'ttl' => :'ttl',
|
@@ -507,8 +483,12 @@ module OneSignal
|
|
507
483
|
:'email_body' => :'email_body',
|
508
484
|
:'email_from_name' => :'email_from_name',
|
509
485
|
:'email_from_address' => :'email_from_address',
|
486
|
+
:'email_preheader' => :'email_preheader',
|
487
|
+
:'include_unsubscribed' => :'include_unsubscribed',
|
510
488
|
:'sms_from' => :'sms_from',
|
511
489
|
:'sms_media_urls' => :'sms_media_urls',
|
490
|
+
:'filters' => :'filters',
|
491
|
+
:'custom_data' => :'custom_data',
|
512
492
|
:'successful' => :'successful',
|
513
493
|
:'failed' => :'failed',
|
514
494
|
:'errored' => :'errored',
|
@@ -517,6 +497,7 @@ module OneSignal
|
|
517
497
|
:'outcomes' => :'outcomes',
|
518
498
|
:'remaining' => :'remaining',
|
519
499
|
:'queued_at' => :'queued_at',
|
500
|
+
:'send_after' => :'send_after',
|
520
501
|
:'completed_at' => :'completed_at',
|
521
502
|
:'platform_delivery_stats' => :'platform_delivery_stats'
|
522
503
|
}
|
@@ -532,18 +513,6 @@ module OneSignal
|
|
532
513
|
{
|
533
514
|
:'included_segments' => :'Array<String>',
|
534
515
|
:'excluded_segments' => :'Array<String>',
|
535
|
-
:'last_session' => :'String',
|
536
|
-
:'first_session' => :'String',
|
537
|
-
:'session_count' => :'String',
|
538
|
-
:'session_time' => :'String',
|
539
|
-
:'amount_spent' => :'String',
|
540
|
-
:'bought_sku' => :'String',
|
541
|
-
:'tag' => :'String',
|
542
|
-
:'language' => :'String',
|
543
|
-
:'app_version' => :'String',
|
544
|
-
:'location' => :'String',
|
545
|
-
:'email' => :'String',
|
546
|
-
:'country' => :'String',
|
547
516
|
:'include_player_ids' => :'Array<String>',
|
548
517
|
:'include_external_user_ids' => :'Array<String>',
|
549
518
|
:'include_email_tokens' => :'Array<String>',
|
@@ -554,8 +523,11 @@ module OneSignal
|
|
554
523
|
:'include_chrome_reg_ids' => :'Array<String>',
|
555
524
|
:'include_chrome_web_reg_ids' => :'Array<String>',
|
556
525
|
:'include_android_reg_ids' => :'Array<String>',
|
526
|
+
:'include_aliases' => :'PlayerNotificationTargetIncludeAliases',
|
527
|
+
:'target_channel' => :'String',
|
557
528
|
:'id' => :'String',
|
558
529
|
:'value' => :'Integer',
|
530
|
+
:'name' => :'String',
|
559
531
|
:'aggregation' => :'String',
|
560
532
|
:'is_ios' => :'Boolean',
|
561
533
|
:'is_android' => :'Boolean',
|
@@ -570,6 +542,7 @@ module OneSignal
|
|
570
542
|
:'channel_for_external_user_ids' => :'String',
|
571
543
|
:'app_id' => :'String',
|
572
544
|
:'external_id' => :'String',
|
545
|
+
:'idempotency_key' => :'String',
|
573
546
|
:'contents' => :'StringMap',
|
574
547
|
:'headings' => :'StringMap',
|
575
548
|
:'subtitle' => :'StringMap',
|
@@ -595,7 +568,7 @@ module OneSignal
|
|
595
568
|
:'huawei_channel_id' => :'String',
|
596
569
|
:'existing_android_channel_id' => :'String',
|
597
570
|
:'huawei_existing_channel_id' => :'String',
|
598
|
-
:'android_background_layout' => :'
|
571
|
+
:'android_background_layout' => :'BasicNotificationAllOfAndroidBackgroundLayout',
|
599
572
|
:'small_icon' => :'String',
|
600
573
|
:'huawei_small_icon' => :'String',
|
601
574
|
:'large_icon' => :'String',
|
@@ -622,7 +595,6 @@ module OneSignal
|
|
622
595
|
:'collapse_id' => :'String',
|
623
596
|
:'web_push_topic' => :'String',
|
624
597
|
:'apns_alert' => :'Object',
|
625
|
-
:'send_after' => :'Integer',
|
626
598
|
:'delayed_option' => :'String',
|
627
599
|
:'delivery_time_of_day' => :'String',
|
628
600
|
:'ttl' => :'Integer',
|
@@ -640,8 +612,12 @@ module OneSignal
|
|
640
612
|
:'email_body' => :'String',
|
641
613
|
:'email_from_name' => :'String',
|
642
614
|
:'email_from_address' => :'String',
|
615
|
+
:'email_preheader' => :'String',
|
616
|
+
:'include_unsubscribed' => :'Boolean',
|
643
617
|
:'sms_from' => :'String',
|
644
618
|
:'sms_media_urls' => :'Array<String>',
|
619
|
+
:'filters' => :'Array<Filter>',
|
620
|
+
:'custom_data' => :'Object',
|
645
621
|
:'successful' => :'Integer',
|
646
622
|
:'failed' => :'Integer',
|
647
623
|
:'errored' => :'Integer',
|
@@ -650,6 +626,7 @@ module OneSignal
|
|
650
626
|
:'outcomes' => :'Array<OutcomeData>',
|
651
627
|
:'remaining' => :'Integer',
|
652
628
|
:'queued_at' => :'Integer',
|
629
|
+
:'send_after' => :'Integer',
|
653
630
|
:'completed_at' => :'Integer',
|
654
631
|
:'platform_delivery_stats' => :'PlatformDeliveryData'
|
655
632
|
}
|
@@ -658,6 +635,10 @@ module OneSignal
|
|
658
635
|
# List of attributes with nullable: true
|
659
636
|
def self.openapi_nullable
|
660
637
|
Set.new([
|
638
|
+
:'include_player_ids',
|
639
|
+
:'include_external_user_ids',
|
640
|
+
:'include_aliases',
|
641
|
+
:'name',
|
661
642
|
:'is_ios',
|
662
643
|
:'is_android',
|
663
644
|
:'is_huawei',
|
@@ -668,17 +649,75 @@ module OneSignal
|
|
668
649
|
:'is_wp_wns',
|
669
650
|
:'is_adm',
|
670
651
|
:'is_chrome',
|
652
|
+
:'external_id',
|
653
|
+
:'idempotency_key',
|
671
654
|
:'contents',
|
672
655
|
:'headings',
|
673
656
|
:'subtitle',
|
657
|
+
:'data',
|
658
|
+
:'huawei_msg_type',
|
659
|
+
:'url',
|
660
|
+
:'web_url',
|
661
|
+
:'app_url',
|
662
|
+
:'ios_attachments',
|
663
|
+
:'template_id',
|
674
664
|
:'content_available',
|
665
|
+
:'target_content_identifier',
|
666
|
+
:'big_picture',
|
667
|
+
:'huawei_big_picture',
|
668
|
+
:'adm_big_picture',
|
669
|
+
:'chrome_big_picture',
|
670
|
+
:'chrome_web_image',
|
671
|
+
:'buttons',
|
672
|
+
:'web_buttons',
|
673
|
+
:'ios_category',
|
674
|
+
:'huawei_channel_id',
|
675
|
+
:'huawei_existing_channel_id',
|
676
|
+
:'small_icon',
|
677
|
+
:'huawei_small_icon',
|
678
|
+
:'large_icon',
|
679
|
+
:'huawei_large_icon',
|
680
|
+
:'adm_small_icon',
|
681
|
+
:'adm_large_icon',
|
682
|
+
:'chrome_web_icon',
|
683
|
+
:'chrome_web_badge',
|
684
|
+
:'firefox_icon',
|
685
|
+
:'chrome_icon',
|
686
|
+
:'ios_sound',
|
687
|
+
:'android_sound',
|
688
|
+
:'huawei_sound',
|
689
|
+
:'adm_sound',
|
690
|
+
:'wp_wns_sound',
|
691
|
+
:'android_led_color',
|
692
|
+
:'huawei_led_color',
|
693
|
+
:'android_accent_color',
|
694
|
+
:'huawei_accent_color',
|
675
695
|
:'android_visibility',
|
676
696
|
:'huawei_visibility',
|
697
|
+
:'ios_badge_type',
|
677
698
|
:'ios_badge_count',
|
699
|
+
:'web_push_topic',
|
700
|
+
:'apns_alert',
|
701
|
+
:'delayed_option',
|
702
|
+
:'delivery_time_of_day',
|
678
703
|
:'ttl',
|
679
704
|
:'priority',
|
680
705
|
:'throttle_rate_per_minute',
|
706
|
+
:'android_group',
|
707
|
+
:'android_group_message',
|
708
|
+
:'adm_group',
|
709
|
+
:'adm_group_message',
|
710
|
+
:'thread_id',
|
711
|
+
:'email_subject',
|
712
|
+
:'email_from_name',
|
713
|
+
:'email_from_address',
|
714
|
+
:'email_preheader',
|
715
|
+
:'sms_from',
|
716
|
+
:'sms_media_urls',
|
717
|
+
:'filters',
|
718
|
+
:'custom_data',
|
681
719
|
:'received',
|
720
|
+
:'send_after',
|
682
721
|
:'completed_at',
|
683
722
|
])
|
684
723
|
end
|
@@ -686,8 +725,8 @@ module OneSignal
|
|
686
725
|
# List of class defined in allOf (OpenAPI v3)
|
687
726
|
def self.openapi_all_of
|
688
727
|
[
|
728
|
+
:'BasicNotification',
|
689
729
|
:'DeliveryData',
|
690
|
-
:'Notification',
|
691
730
|
:'NotificationWithMetaAllOf',
|
692
731
|
:'OutcomesData'
|
693
732
|
]
|
@@ -720,54 +759,6 @@ module OneSignal
|
|
720
759
|
end
|
721
760
|
end
|
722
761
|
|
723
|
-
if attributes.key?(:'last_session')
|
724
|
-
self.last_session = attributes[:'last_session']
|
725
|
-
end
|
726
|
-
|
727
|
-
if attributes.key?(:'first_session')
|
728
|
-
self.first_session = attributes[:'first_session']
|
729
|
-
end
|
730
|
-
|
731
|
-
if attributes.key?(:'session_count')
|
732
|
-
self.session_count = attributes[:'session_count']
|
733
|
-
end
|
734
|
-
|
735
|
-
if attributes.key?(:'session_time')
|
736
|
-
self.session_time = attributes[:'session_time']
|
737
|
-
end
|
738
|
-
|
739
|
-
if attributes.key?(:'amount_spent')
|
740
|
-
self.amount_spent = attributes[:'amount_spent']
|
741
|
-
end
|
742
|
-
|
743
|
-
if attributes.key?(:'bought_sku')
|
744
|
-
self.bought_sku = attributes[:'bought_sku']
|
745
|
-
end
|
746
|
-
|
747
|
-
if attributes.key?(:'tag')
|
748
|
-
self.tag = attributes[:'tag']
|
749
|
-
end
|
750
|
-
|
751
|
-
if attributes.key?(:'language')
|
752
|
-
self.language = attributes[:'language']
|
753
|
-
end
|
754
|
-
|
755
|
-
if attributes.key?(:'app_version')
|
756
|
-
self.app_version = attributes[:'app_version']
|
757
|
-
end
|
758
|
-
|
759
|
-
if attributes.key?(:'location')
|
760
|
-
self.location = attributes[:'location']
|
761
|
-
end
|
762
|
-
|
763
|
-
if attributes.key?(:'email')
|
764
|
-
self.email = attributes[:'email']
|
765
|
-
end
|
766
|
-
|
767
|
-
if attributes.key?(:'country')
|
768
|
-
self.country = attributes[:'country']
|
769
|
-
end
|
770
|
-
|
771
762
|
if attributes.key?(:'include_player_ids')
|
772
763
|
if (value = attributes[:'include_player_ids']).is_a?(Array)
|
773
764
|
self.include_player_ids = value
|
@@ -828,6 +819,14 @@ module OneSignal
|
|
828
819
|
end
|
829
820
|
end
|
830
821
|
|
822
|
+
if attributes.key?(:'include_aliases')
|
823
|
+
self.include_aliases = attributes[:'include_aliases']
|
824
|
+
end
|
825
|
+
|
826
|
+
if attributes.key?(:'target_channel')
|
827
|
+
self.target_channel = attributes[:'target_channel']
|
828
|
+
end
|
829
|
+
|
831
830
|
if attributes.key?(:'id')
|
832
831
|
self.id = attributes[:'id']
|
833
832
|
end
|
@@ -836,14 +835,16 @@ module OneSignal
|
|
836
835
|
self.value = attributes[:'value']
|
837
836
|
end
|
838
837
|
|
838
|
+
if attributes.key?(:'name')
|
839
|
+
self.name = attributes[:'name']
|
840
|
+
end
|
841
|
+
|
839
842
|
if attributes.key?(:'aggregation')
|
840
843
|
self.aggregation = attributes[:'aggregation']
|
841
844
|
end
|
842
845
|
|
843
846
|
if attributes.key?(:'is_ios')
|
844
847
|
self.is_ios = attributes[:'is_ios']
|
845
|
-
else
|
846
|
-
self.is_ios = true
|
847
848
|
end
|
848
849
|
|
849
850
|
if attributes.key?(:'is_android')
|
@@ -894,6 +895,10 @@ module OneSignal
|
|
894
895
|
self.external_id = attributes[:'external_id']
|
895
896
|
end
|
896
897
|
|
898
|
+
if attributes.key?(:'idempotency_key')
|
899
|
+
self.idempotency_key = attributes[:'idempotency_key']
|
900
|
+
end
|
901
|
+
|
897
902
|
if attributes.key?(:'contents')
|
898
903
|
self.contents = attributes[:'contents']
|
899
904
|
end
|
@@ -1106,10 +1111,6 @@ module OneSignal
|
|
1106
1111
|
self.apns_alert = attributes[:'apns_alert']
|
1107
1112
|
end
|
1108
1113
|
|
1109
|
-
if attributes.key?(:'send_after')
|
1110
|
-
self.send_after = attributes[:'send_after']
|
1111
|
-
end
|
1112
|
-
|
1113
1114
|
if attributes.key?(:'delayed_option')
|
1114
1115
|
self.delayed_option = attributes[:'delayed_option']
|
1115
1116
|
end
|
@@ -1178,6 +1179,14 @@ module OneSignal
|
|
1178
1179
|
self.email_from_address = attributes[:'email_from_address']
|
1179
1180
|
end
|
1180
1181
|
|
1182
|
+
if attributes.key?(:'email_preheader')
|
1183
|
+
self.email_preheader = attributes[:'email_preheader']
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
if attributes.key?(:'include_unsubscribed')
|
1187
|
+
self.include_unsubscribed = attributes[:'include_unsubscribed']
|
1188
|
+
end
|
1189
|
+
|
1181
1190
|
if attributes.key?(:'sms_from')
|
1182
1191
|
self.sms_from = attributes[:'sms_from']
|
1183
1192
|
end
|
@@ -1188,6 +1197,16 @@ module OneSignal
|
|
1188
1197
|
end
|
1189
1198
|
end
|
1190
1199
|
|
1200
|
+
if attributes.key?(:'filters')
|
1201
|
+
if (value = attributes[:'filters']).is_a?(Array)
|
1202
|
+
self.filters = value
|
1203
|
+
end
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
if attributes.key?(:'custom_data')
|
1207
|
+
self.custom_data = attributes[:'custom_data']
|
1208
|
+
end
|
1209
|
+
|
1191
1210
|
if attributes.key?(:'successful')
|
1192
1211
|
self.successful = attributes[:'successful']
|
1193
1212
|
end
|
@@ -1222,6 +1241,10 @@ module OneSignal
|
|
1222
1241
|
self.queued_at = attributes[:'queued_at']
|
1223
1242
|
end
|
1224
1243
|
|
1244
|
+
if attributes.key?(:'send_after')
|
1245
|
+
self.send_after = attributes[:'send_after']
|
1246
|
+
end
|
1247
|
+
|
1225
1248
|
if attributes.key?(:'completed_at')
|
1226
1249
|
self.completed_at = attributes[:'completed_at']
|
1227
1250
|
end
|
@@ -1245,12 +1268,24 @@ module OneSignal
|
|
1245
1268
|
# Check to see if the all the properties in the model are valid
|
1246
1269
|
# @return true if the model is valid
|
1247
1270
|
def valid?
|
1271
|
+
target_channel_validator = EnumAttributeValidator.new('String', ["push", "email", "sms"])
|
1272
|
+
return false unless target_channel_validator.valid?(@target_channel)
|
1248
1273
|
aggregation_validator = EnumAttributeValidator.new('String', ["sum", "count"])
|
1249
1274
|
return false unless aggregation_validator.valid?(@aggregation)
|
1250
1275
|
return false if @app_id.nil?
|
1251
1276
|
true
|
1252
1277
|
end
|
1253
1278
|
|
1279
|
+
# Custom attribute writer method checking allowed values (enum).
|
1280
|
+
# @param [Object] target_channel Object to be assigned
|
1281
|
+
def target_channel=(target_channel)
|
1282
|
+
validator = EnumAttributeValidator.new('String', ["push", "email", "sms"])
|
1283
|
+
unless validator.valid?(target_channel)
|
1284
|
+
fail ArgumentError, "invalid value for \"target_channel\", must be one of #{validator.allowable_values}."
|
1285
|
+
end
|
1286
|
+
@target_channel = target_channel
|
1287
|
+
end
|
1288
|
+
|
1254
1289
|
# Custom attribute writer method checking allowed values (enum).
|
1255
1290
|
# @param [Object] aggregation Object to be assigned
|
1256
1291
|
def aggregation=(aggregation)
|
@@ -1268,18 +1303,6 @@ module OneSignal
|
|
1268
1303
|
self.class == o.class &&
|
1269
1304
|
included_segments == o.included_segments &&
|
1270
1305
|
excluded_segments == o.excluded_segments &&
|
1271
|
-
last_session == o.last_session &&
|
1272
|
-
first_session == o.first_session &&
|
1273
|
-
session_count == o.session_count &&
|
1274
|
-
session_time == o.session_time &&
|
1275
|
-
amount_spent == o.amount_spent &&
|
1276
|
-
bought_sku == o.bought_sku &&
|
1277
|
-
tag == o.tag &&
|
1278
|
-
language == o.language &&
|
1279
|
-
app_version == o.app_version &&
|
1280
|
-
location == o.location &&
|
1281
|
-
email == o.email &&
|
1282
|
-
country == o.country &&
|
1283
1306
|
include_player_ids == o.include_player_ids &&
|
1284
1307
|
include_external_user_ids == o.include_external_user_ids &&
|
1285
1308
|
include_email_tokens == o.include_email_tokens &&
|
@@ -1290,8 +1313,11 @@ module OneSignal
|
|
1290
1313
|
include_chrome_reg_ids == o.include_chrome_reg_ids &&
|
1291
1314
|
include_chrome_web_reg_ids == o.include_chrome_web_reg_ids &&
|
1292
1315
|
include_android_reg_ids == o.include_android_reg_ids &&
|
1316
|
+
include_aliases == o.include_aliases &&
|
1317
|
+
target_channel == o.target_channel &&
|
1293
1318
|
id == o.id &&
|
1294
1319
|
value == o.value &&
|
1320
|
+
name == o.name &&
|
1295
1321
|
aggregation == o.aggregation &&
|
1296
1322
|
is_ios == o.is_ios &&
|
1297
1323
|
is_android == o.is_android &&
|
@@ -1306,6 +1332,7 @@ module OneSignal
|
|
1306
1332
|
channel_for_external_user_ids == o.channel_for_external_user_ids &&
|
1307
1333
|
app_id == o.app_id &&
|
1308
1334
|
external_id == o.external_id &&
|
1335
|
+
idempotency_key == o.idempotency_key &&
|
1309
1336
|
contents == o.contents &&
|
1310
1337
|
headings == o.headings &&
|
1311
1338
|
subtitle == o.subtitle &&
|
@@ -1358,7 +1385,6 @@ module OneSignal
|
|
1358
1385
|
collapse_id == o.collapse_id &&
|
1359
1386
|
web_push_topic == o.web_push_topic &&
|
1360
1387
|
apns_alert == o.apns_alert &&
|
1361
|
-
send_after == o.send_after &&
|
1362
1388
|
delayed_option == o.delayed_option &&
|
1363
1389
|
delivery_time_of_day == o.delivery_time_of_day &&
|
1364
1390
|
ttl == o.ttl &&
|
@@ -1376,8 +1402,12 @@ module OneSignal
|
|
1376
1402
|
email_body == o.email_body &&
|
1377
1403
|
email_from_name == o.email_from_name &&
|
1378
1404
|
email_from_address == o.email_from_address &&
|
1405
|
+
email_preheader == o.email_preheader &&
|
1406
|
+
include_unsubscribed == o.include_unsubscribed &&
|
1379
1407
|
sms_from == o.sms_from &&
|
1380
1408
|
sms_media_urls == o.sms_media_urls &&
|
1409
|
+
filters == o.filters &&
|
1410
|
+
custom_data == o.custom_data &&
|
1381
1411
|
successful == o.successful &&
|
1382
1412
|
failed == o.failed &&
|
1383
1413
|
errored == o.errored &&
|
@@ -1386,6 +1416,7 @@ module OneSignal
|
|
1386
1416
|
outcomes == o.outcomes &&
|
1387
1417
|
remaining == o.remaining &&
|
1388
1418
|
queued_at == o.queued_at &&
|
1419
|
+
send_after == o.send_after &&
|
1389
1420
|
completed_at == o.completed_at &&
|
1390
1421
|
platform_delivery_stats == o.platform_delivery_stats
|
1391
1422
|
end
|
@@ -1399,7 +1430,7 @@ module OneSignal
|
|
1399
1430
|
# Calculates hash code according to all attributes.
|
1400
1431
|
# @return [Integer] Hash code
|
1401
1432
|
def hash
|
1402
|
-
[included_segments, excluded_segments,
|
1433
|
+
[included_segments, excluded_segments, include_player_ids, include_external_user_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, channel_for_external_user_ids, 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, email_subject, email_body, email_from_name, email_from_address, email_preheader, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data, successful, failed, errored, converted, received, outcomes, remaining, queued_at, send_after, completed_at, platform_delivery_stats].hash
|
1403
1434
|
end
|
1404
1435
|
|
1405
1436
|
# 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: 1.0
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -89,6 +89,7 @@ module OneSignal
|
|
89
89
|
# List of attributes with nullable: true
|
90
90
|
def self.openapi_nullable
|
91
91
|
Set.new([
|
92
|
+
:'send_after',
|
92
93
|
:'completed_at',
|
93
94
|
:'received',
|
94
95
|
:'throttle_rate_per_minute'
|
@@ -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: 1.0
|
6
|
+
The version of the OpenAPI document: 1.4.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: 1.0
|
6
|
+
The version of the OpenAPI document: 1.4.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: 1.0
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|