onesignal 2.2.0 → 5.1.0.pre.beta1
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/README.md +42 -65
- data/docs/BasicNotification.md +18 -18
- data/docs/BasicNotificationAllOf.md +9 -7
- data/docs/CreateNotificationSuccessResponse.md +1 -3
- data/docs/DefaultApi.md +364 -874
- data/docs/{ExportPlayersRequestBody.md → ExportSubscriptionsRequestBody.md} +2 -2
- data/docs/{ExportPlayersSuccessResponse.md → ExportSubscriptionsSuccessResponse.md} +2 -2
- data/docs/Filter.md +10 -2
- data/docs/{Notification200Errors.md → FilterExpression.md} +9 -9
- data/docs/GenericError.md +6 -2
- data/docs/{DeletePlayerSuccessResponse.md → GenericSuccessBoolResponse.md} +2 -2
- data/docs/{GetNotificationRequestBody.md → GetNotificationHistoryRequestBody.md} +2 -2
- data/docs/GetSegmentsSuccessResponse.md +24 -0
- data/docs/{StringMap.md → LanguageStringMap.md} +2 -2
- data/docs/Notification.md +18 -18
- data/docs/NotificationTarget.md +9 -11
- data/docs/NotificationWithMeta.md +18 -18
- data/docs/{InlineResponse202.md → PropertiesBody.md} +2 -2
- data/docs/PropertiesDeltas.md +2 -2
- data/docs/PropertiesObject.md +2 -2
- data/docs/Purchase.md +1 -1
- data/docs/RateLimitError.md +20 -0
- data/docs/Segment.md +1 -1
- data/docs/SegmentData.md +30 -0
- data/docs/{SubscriptionObject.md → Subscription.md} +7 -7
- data/docs/SubscriptionBody.md +18 -0
- data/docs/SubscriptionNotificationTarget.md +38 -0
- data/docs/TransferSubscriptionRequestBody.md +1 -1
- data/docs/UpdateLiveActivityRequest.md +14 -4
- data/docs/UpdateLiveActivitySuccessResponse.md +2 -4
- data/docs/User.md +3 -5
- data/docs/{InlineResponse200.md → UserIdentityBody.md} +3 -3
- data/docs/WebButton.md +24 -0
- data/lib/onesignal/api/default_api.rb +382 -890
- data/lib/onesignal/api_client.rb +2 -2
- data/lib/onesignal/api_error.rb +1 -1
- data/lib/onesignal/configuration.rb +5 -5
- data/lib/onesignal/models/app.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +49 -47
- data/lib/onesignal/models/basic_notification_all_of.rb +29 -17
- 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/create_notification_success_response.rb +5 -13
- 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_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/delivery_data.rb +1 -1
- data/lib/onesignal/models/export_events_success_response.rb +1 -1
- data/lib/onesignal/models/{export_players_request_body.rb → export_subscriptions_request_body.rb} +4 -4
- data/lib/onesignal/models/{export_players_success_response.rb → export_subscriptions_success_response.rb} +4 -4
- data/lib/onesignal/models/filter.rb +44 -14
- data/lib/onesignal/models/{notification200_errors.rb → filter_expression.rb} +4 -4
- data/lib/onesignal/models/generic_error.rb +26 -8
- data/lib/onesignal/models/{update_player_success_response.rb → generic_success_bool_response.rb} +4 -4
- data/lib/onesignal/models/{get_notification_request_body.rb → get_notification_history_request_body.rb} +4 -4
- data/lib/onesignal/models/{player_slice.rb → get_segments_success_response.rb} +16 -12
- data/lib/onesignal/models/{string_map.rb → language_string_map.rb} +4 -4
- data/lib/onesignal/models/notification.rb +49 -47
- 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 +24 -34
- data/lib/onesignal/models/notification_with_meta.rb +49 -47
- data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -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 +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/{inline_response202.rb → properties_body.rb} +4 -4
- data/lib/onesignal/models/properties_deltas.rb +3 -3
- data/lib/onesignal/models/properties_object.rb +3 -3
- data/lib/onesignal/models/purchase.rb +2 -2
- data/lib/onesignal/models/{rate_limiter_error.rb → rate_limit_error.rb} +17 -8
- data/lib/onesignal/models/segment.rb +2 -2
- data/lib/onesignal/models/{begin_live_activity_request.rb → segment_data.rb} +69 -27
- data/lib/onesignal/models/segment_notification_target.rb +1 -1
- data/lib/onesignal/models/{subscription_object.rb → subscription.rb} +9 -9
- data/lib/onesignal/models/{inline_response201.rb → subscription_body.rb} +5 -5
- data/lib/onesignal/models/{player_notification_target.rb → subscription_notification_target.rb} +25 -35
- data/lib/onesignal/models/transfer_subscription_request_body.rb +26 -2
- data/lib/onesignal/models/update_live_activity_request.rb +59 -22
- data/lib/onesignal/models/update_live_activity_success_response.rb +8 -17
- data/lib/onesignal/models/update_user_request.rb +1 -1
- data/lib/onesignal/models/user.rb +6 -15
- data/lib/onesignal/models/{inline_response200.rb → user_identity_body.rb} +5 -5
- data/lib/onesignal/models/{create_player_success_response.rb → web_button.rb} +40 -17
- data/lib/onesignal/version.rb +2 -2
- data/lib/onesignal.rb +16 -34
- data/onesignal.gemspec +1 -1
- data/spec/api/default_api_spec.rb +82 -174
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_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 +13 -7
- data/spec/models/basic_notification_spec.rb +14 -14
- data/spec/models/button_spec.rb +1 -1
- data/spec/models/create_notification_success_response_spec.rb +1 -7
- 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_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/delivery_data_spec.rb +1 -1
- data/spec/models/export_events_success_response_spec.rb +1 -1
- data/spec/models/{export_players_request_body_spec.rb → export_subscriptions_request_body_spec.rb} +7 -7
- data/spec/models/{export_players_success_response_spec.rb → export_subscriptions_success_response_spec.rb} +7 -7
- data/spec/models/{notification200_errors_spec.rb → filter_expression_spec.rb} +3 -3
- data/spec/models/filter_spec.rb +25 -1
- data/spec/models/generic_error_spec.rb +13 -1
- data/spec/models/{delete_player_success_response_spec.rb → generic_success_bool_response_spec.rb} +7 -7
- data/spec/models/{get_notification_request_body_spec.rb → get_notification_history_request_body_spec.rb} +7 -7
- data/spec/models/{player_slice_spec.rb → get_segments_success_response_spec.rb} +8 -8
- data/spec/models/{string_map_spec.rb → language_string_map_spec.rb} +7 -7
- 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 +14 -14
- data/spec/models/notification_target_spec.rb +2 -8
- data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
- data/spec/models/notification_with_meta_spec.rb +14 -14
- 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/{inline_response202_spec.rb → properties_body_spec.rb} +7 -7
- 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/{generic_error_errors_inner_spec.rb → rate_limit_error_spec.rb} +9 -9
- data/spec/models/{filter_expressions_spec.rb → segment_data_spec.rb} +24 -20
- data/spec/models/segment_notification_target_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/{inline_response201_spec.rb → subscription_body_spec.rb} +7 -7
- data/spec/models/{player_notification_target_spec.rb → subscription_notification_target_spec.rb} +8 -14
- data/spec/models/{subscription_object_spec.rb → subscription_spec.rb} +7 -7
- data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
- data/spec/models/update_live_activity_request_spec.rb +32 -6
- data/spec/models/update_live_activity_success_response_spec.rb +2 -8
- data/spec/models/update_user_request_spec.rb +1 -1
- data/spec/models/{user_identity_response_spec.rb → user_identity_body_spec.rb} +7 -7
- data/spec/models/user_spec.rb +1 -7
- data/spec/models/{create_player_success_response_spec.rb → web_button_spec.rb} +21 -9
- data/spec/spec_helper.rb +1 -1
- metadata +97 -171
- data/Gemfile.lock +0 -74
- data/docs/BeginLiveActivityRequest.md +0 -20
- data/docs/CancelNotificationSuccessResponse.md +0 -18
- data/docs/CreatePlayerSuccessResponse.md +0 -20
- data/docs/CreateSubscriptionRequestBody.md +0 -20
- data/docs/DeletePlayerNotFoundResponse.md +0 -18
- data/docs/DeleteSegmentNotFoundResponse.md +0 -18
- data/docs/DeleteSegmentSuccessResponse.md +0 -18
- data/docs/FilterExpressions.md +0 -26
- data/docs/InlineResponse2003.md +0 -18
- data/docs/InlineResponse201.md +0 -18
- data/docs/InvalidIdentifierError.md +0 -20
- data/docs/Player.md +0 -70
- data/docs/PlayerNotificationTarget.md +0 -40
- data/docs/PlayerNotificationTargetIncludeAliases.md +0 -18
- data/docs/PlayerSlice.md +0 -24
- data/docs/UpdatePlayerSuccessResponse.md +0 -18
- data/docs/UpdatePlayerTagsRequestBody.md +0 -18
- data/docs/UpdatePlayerTagsSuccessResponse.md +0 -18
- data/docs/UpdateSubscriptionRequestBody.md +0 -18
- data/docs/UserIdentityRequestBody.md +0 -18
- data/docs/UserIdentityResponse.md +0 -18
- data/docs/UserSubscriptionOptions.md +0 -18
- data/lib/onesignal/models/cancel_notification_success_response.rb +0 -219
- data/lib/onesignal/models/create_subscription_request_body.rb +0 -228
- data/lib/onesignal/models/delete_player_not_found_response.rb +0 -219
- data/lib/onesignal/models/delete_player_success_response.rb +0 -219
- data/lib/onesignal/models/delete_segment_not_found_response.rb +0 -219
- data/lib/onesignal/models/delete_segment_success_response.rb +0 -219
- data/lib/onesignal/models/filter_expressions.rb +0 -336
- data/lib/onesignal/models/generic_error_errors_inner.rb +0 -228
- data/lib/onesignal/models/inline_response2003.rb +0 -221
- data/lib/onesignal/models/invalid_identifier_error.rb +0 -234
- data/lib/onesignal/models/player.rb +0 -494
- data/lib/onesignal/models/player_notification_target_include_aliases.rb +0 -221
- data/lib/onesignal/models/update_player_tags_request_body.rb +0 -220
- data/lib/onesignal/models/update_player_tags_success_response.rb +0 -219
- data/lib/onesignal/models/update_subscription_request_body.rb +0 -219
- data/lib/onesignal/models/user_identity_request_body.rb +0 -221
- data/lib/onesignal/models/user_identity_response.rb +0 -221
- data/lib/onesignal/models/user_subscription_options.rb +0 -219
- data/spec/models/begin_live_activity_request_spec.rb +0 -40
- data/spec/models/cancel_notification_success_response_spec.rb +0 -34
- data/spec/models/create_subscription_request_body_spec.rb +0 -40
- data/spec/models/delete_player_not_found_response_spec.rb +0 -34
- data/spec/models/delete_segment_not_found_response_spec.rb +0 -34
- data/spec/models/delete_segment_success_response_spec.rb +0 -34
- data/spec/models/inline_response2003_spec.rb +0 -34
- data/spec/models/inline_response200_spec.rb +0 -34
- data/spec/models/invalid_identifier_error_spec.rb +0 -40
- data/spec/models/player_notification_target_include_aliases_spec.rb +0 -34
- data/spec/models/player_spec.rb +0 -190
- data/spec/models/rate_limiter_error_spec.rb +0 -34
- data/spec/models/update_player_success_response_spec.rb +0 -34
- data/spec/models/update_player_tags_request_body_spec.rb +0 -34
- data/spec/models/update_player_tags_success_response_spec.rb +0 -34
- data/spec/models/update_subscription_request_body_spec.rb +0 -34
- data/spec/models/user_identity_request_body_spec.rb +0 -34
- data/spec/models/user_subscription_options_spec.rb +0 -34
data/lib/onesignal/api_client.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: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -90,7 +90,7 @@ module OneSignal
|
|
90
90
|
url = build_request_url(path, opts)
|
91
91
|
http_method = http_method.to_sym.downcase
|
92
92
|
|
93
|
-
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=
|
93
|
+
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=5.1.0-beta1'
|
94
94
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
95
95
|
query_params = opts[:query_params] || {}
|
96
96
|
form_params = opts[:form_params] || {}
|
data/lib/onesignal/api_error.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: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.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.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -175,19 +175,19 @@ module OneSignal
|
|
175
175
|
# Returns Auth Settings hash for api client.
|
176
176
|
def auth_settings
|
177
177
|
{
|
178
|
-
'
|
178
|
+
'organization_api_key' =>
|
179
179
|
{
|
180
180
|
type: 'bearer',
|
181
181
|
in: 'header',
|
182
182
|
key: 'Authorization',
|
183
|
-
value: "Key
|
183
|
+
value: "Key \"#{ organization_api_key }\""
|
184
184
|
},
|
185
|
-
'
|
185
|
+
'rest_api_key' =>
|
186
186
|
{
|
187
187
|
type: 'bearer',
|
188
188
|
in: 'header',
|
189
189
|
key: 'Authorization',
|
190
|
-
value: "Key
|
190
|
+
value: "Key \"#{ rest_api_key }\""
|
191
191
|
},
|
192
192
|
}
|
193
193
|
end
|
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: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.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.
|
6
|
+
The version of the OpenAPI document: 5.1.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,11 +21,8 @@ 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
|
-
# Specific
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] 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 channel_for_external_user_ids to indicate you are sending a push or email or sms.
|
28
|
-
attr_accessor :include_external_user_ids
|
24
|
+
# Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
|
25
|
+
attr_accessor :include_subscription_ids
|
29
26
|
|
30
27
|
# Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call
|
31
28
|
attr_accessor :include_email_tokens
|
@@ -33,24 +30,25 @@ module OneSignal
|
|
33
30
|
# Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call
|
34
31
|
attr_accessor :include_phone_numbers
|
35
32
|
|
36
|
-
# Not Recommended: Please consider using
|
33
|
+
# Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call
|
37
34
|
attr_accessor :include_ios_tokens
|
38
35
|
|
39
|
-
# Not Recommended: Please consider using
|
36
|
+
# Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call
|
40
37
|
attr_accessor :include_wp_wns_uris
|
41
38
|
|
42
|
-
# Not Recommended: Please consider using
|
39
|
+
# Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call
|
43
40
|
attr_accessor :include_amazon_reg_ids
|
44
41
|
|
45
|
-
# Not Recommended: Please consider using
|
42
|
+
# Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App 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
|
46
43
|
attr_accessor :include_chrome_reg_ids
|
47
44
|
|
48
|
-
# Not Recommended: Please consider using
|
45
|
+
# Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push 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
46
|
attr_accessor :include_chrome_web_reg_ids
|
50
47
|
|
51
|
-
# Not Recommended: Please consider using
|
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
|
52
49
|
attr_accessor :include_android_reg_ids
|
53
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.
|
54
52
|
attr_accessor :include_aliases
|
55
53
|
|
56
54
|
attr_accessor :target_channel
|
@@ -94,9 +92,6 @@ module OneSignal
|
|
94
92
|
# This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform.
|
95
93
|
attr_accessor :is_chrome
|
96
94
|
|
97
|
-
# Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS.
|
98
|
-
attr_accessor :channel_for_external_user_ids
|
99
|
-
|
100
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.
|
101
96
|
attr_accessor :app_id
|
102
97
|
|
@@ -297,6 +292,12 @@ module OneSignal
|
|
297
292
|
# Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\"
|
298
293
|
attr_accessor :summary_arg_count
|
299
294
|
|
295
|
+
# Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1.
|
296
|
+
attr_accessor :ios_relevance_score
|
297
|
+
|
298
|
+
# Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active.
|
299
|
+
attr_accessor :ios_interruption_level
|
300
|
+
|
300
301
|
# Channel: Email Required. The subject of the email.
|
301
302
|
attr_accessor :email_subject
|
302
303
|
|
@@ -353,8 +354,7 @@ module OneSignal
|
|
353
354
|
{
|
354
355
|
:'included_segments' => :'included_segments',
|
355
356
|
:'excluded_segments' => :'excluded_segments',
|
356
|
-
:'
|
357
|
-
:'include_external_user_ids' => :'include_external_user_ids',
|
357
|
+
:'include_subscription_ids' => :'include_subscription_ids',
|
358
358
|
:'include_email_tokens' => :'include_email_tokens',
|
359
359
|
:'include_phone_numbers' => :'include_phone_numbers',
|
360
360
|
:'include_ios_tokens' => :'include_ios_tokens',
|
@@ -379,7 +379,6 @@ module OneSignal
|
|
379
379
|
:'is_wp_wns' => :'isWP_WNS',
|
380
380
|
:'is_adm' => :'isAdm',
|
381
381
|
:'is_chrome' => :'isChrome',
|
382
|
-
:'channel_for_external_user_ids' => :'channel_for_external_user_ids',
|
383
382
|
:'app_id' => :'app_id',
|
384
383
|
:'external_id' => :'external_id',
|
385
384
|
:'idempotency_key' => :'idempotency_key',
|
@@ -448,6 +447,8 @@ module OneSignal
|
|
448
447
|
:'thread_id' => :'thread_id',
|
449
448
|
:'summary_arg' => :'summary_arg',
|
450
449
|
:'summary_arg_count' => :'summary_arg_count',
|
450
|
+
:'ios_relevance_score' => :'ios_relevance_score',
|
451
|
+
:'ios_interruption_level' => :'ios_interruption_level',
|
451
452
|
:'email_subject' => :'email_subject',
|
452
453
|
:'email_body' => :'email_body',
|
453
454
|
:'email_from_name' => :'email_from_name',
|
@@ -471,8 +472,7 @@ module OneSignal
|
|
471
472
|
{
|
472
473
|
:'included_segments' => :'Array<String>',
|
473
474
|
:'excluded_segments' => :'Array<String>',
|
474
|
-
:'
|
475
|
-
:'include_external_user_ids' => :'Array<String>',
|
475
|
+
:'include_subscription_ids' => :'Array<String>',
|
476
476
|
:'include_email_tokens' => :'Array<String>',
|
477
477
|
:'include_phone_numbers' => :'Array<String>',
|
478
478
|
:'include_ios_tokens' => :'Array<String>',
|
@@ -481,7 +481,7 @@ module OneSignal
|
|
481
481
|
:'include_chrome_reg_ids' => :'Array<String>',
|
482
482
|
:'include_chrome_web_reg_ids' => :'Array<String>',
|
483
483
|
:'include_android_reg_ids' => :'Array<String>',
|
484
|
-
:'include_aliases' => :'
|
484
|
+
:'include_aliases' => :'Hash<String, Array<String>>',
|
485
485
|
:'target_channel' => :'String',
|
486
486
|
:'id' => :'String',
|
487
487
|
:'value' => :'Integer',
|
@@ -497,13 +497,12 @@ module OneSignal
|
|
497
497
|
:'is_wp_wns' => :'Boolean',
|
498
498
|
:'is_adm' => :'Boolean',
|
499
499
|
:'is_chrome' => :'Boolean',
|
500
|
-
:'channel_for_external_user_ids' => :'String',
|
501
500
|
:'app_id' => :'String',
|
502
501
|
:'external_id' => :'String',
|
503
502
|
:'idempotency_key' => :'String',
|
504
|
-
:'contents' => :'
|
505
|
-
:'headings' => :'
|
506
|
-
:'subtitle' => :'
|
503
|
+
:'contents' => :'LanguageStringMap',
|
504
|
+
:'headings' => :'LanguageStringMap',
|
505
|
+
:'subtitle' => :'LanguageStringMap',
|
507
506
|
:'data' => :'Object',
|
508
507
|
:'huawei_msg_type' => :'String',
|
509
508
|
:'url' => :'String',
|
@@ -520,7 +519,7 @@ module OneSignal
|
|
520
519
|
:'chrome_big_picture' => :'String',
|
521
520
|
:'chrome_web_image' => :'String',
|
522
521
|
:'buttons' => :'Array<Button>',
|
523
|
-
:'web_buttons' => :'Array<
|
522
|
+
:'web_buttons' => :'Array<WebButton>',
|
524
523
|
:'ios_category' => :'String',
|
525
524
|
:'android_channel_id' => :'String',
|
526
525
|
:'huawei_channel_id' => :'String',
|
@@ -566,6 +565,8 @@ module OneSignal
|
|
566
565
|
:'thread_id' => :'String',
|
567
566
|
:'summary_arg' => :'String',
|
568
567
|
:'summary_arg_count' => :'Integer',
|
568
|
+
:'ios_relevance_score' => :'Float',
|
569
|
+
:'ios_interruption_level' => :'String',
|
569
570
|
:'email_subject' => :'String',
|
570
571
|
:'email_body' => :'String',
|
571
572
|
:'email_from_name' => :'String',
|
@@ -574,7 +575,7 @@ module OneSignal
|
|
574
575
|
:'include_unsubscribed' => :'Boolean',
|
575
576
|
:'sms_from' => :'String',
|
576
577
|
:'sms_media_urls' => :'Array<String>',
|
577
|
-
:'filters' => :'Array<
|
578
|
+
:'filters' => :'Array<FilterExpression>',
|
578
579
|
:'custom_data' => :'Object'
|
579
580
|
}
|
580
581
|
end
|
@@ -582,8 +583,7 @@ module OneSignal
|
|
582
583
|
# List of attributes with nullable: true
|
583
584
|
def self.openapi_nullable
|
584
585
|
Set.new([
|
585
|
-
:'
|
586
|
-
:'include_external_user_ids',
|
586
|
+
:'include_subscription_ids',
|
587
587
|
:'include_aliases',
|
588
588
|
:'name',
|
589
589
|
:'is_ios',
|
@@ -655,6 +655,8 @@ module OneSignal
|
|
655
655
|
:'adm_group',
|
656
656
|
:'adm_group_message',
|
657
657
|
:'thread_id',
|
658
|
+
:'ios_relevance_score',
|
659
|
+
:'ios_interruption_level',
|
658
660
|
:'email_subject',
|
659
661
|
:'email_from_name',
|
660
662
|
:'email_from_address',
|
@@ -701,15 +703,9 @@ module OneSignal
|
|
701
703
|
end
|
702
704
|
end
|
703
705
|
|
704
|
-
if attributes.key?(:'
|
705
|
-
if (value = attributes[:'
|
706
|
-
self.
|
707
|
-
end
|
708
|
-
end
|
709
|
-
|
710
|
-
if attributes.key?(:'include_external_user_ids')
|
711
|
-
if (value = attributes[:'include_external_user_ids']).is_a?(Array)
|
712
|
-
self.include_external_user_ids = value
|
706
|
+
if attributes.key?(:'include_subscription_ids')
|
707
|
+
if (value = attributes[:'include_subscription_ids']).is_a?(Array)
|
708
|
+
self.include_subscription_ids = value
|
713
709
|
end
|
714
710
|
end
|
715
711
|
|
@@ -762,7 +758,9 @@ module OneSignal
|
|
762
758
|
end
|
763
759
|
|
764
760
|
if attributes.key?(:'include_aliases')
|
765
|
-
|
761
|
+
if (value = attributes[:'include_aliases']).is_a?(Hash)
|
762
|
+
self.include_aliases = value
|
763
|
+
end
|
766
764
|
end
|
767
765
|
|
768
766
|
if attributes.key?(:'target_channel')
|
@@ -825,10 +823,6 @@ module OneSignal
|
|
825
823
|
self.is_chrome = attributes[:'is_chrome']
|
826
824
|
end
|
827
825
|
|
828
|
-
if attributes.key?(:'channel_for_external_user_ids')
|
829
|
-
self.channel_for_external_user_ids = attributes[:'channel_for_external_user_ids']
|
830
|
-
end
|
831
|
-
|
832
826
|
if attributes.key?(:'app_id')
|
833
827
|
self.app_id = attributes[:'app_id']
|
834
828
|
end
|
@@ -1105,6 +1099,14 @@ module OneSignal
|
|
1105
1099
|
self.summary_arg_count = attributes[:'summary_arg_count']
|
1106
1100
|
end
|
1107
1101
|
|
1102
|
+
if attributes.key?(:'ios_relevance_score')
|
1103
|
+
self.ios_relevance_score = attributes[:'ios_relevance_score']
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
if attributes.key?(:'ios_interruption_level')
|
1107
|
+
self.ios_interruption_level = attributes[:'ios_interruption_level']
|
1108
|
+
end
|
1109
|
+
|
1108
1110
|
if attributes.key?(:'email_subject')
|
1109
1111
|
self.email_subject = attributes[:'email_subject']
|
1110
1112
|
end
|
@@ -1199,8 +1201,7 @@ module OneSignal
|
|
1199
1201
|
self.class == o.class &&
|
1200
1202
|
included_segments == o.included_segments &&
|
1201
1203
|
excluded_segments == o.excluded_segments &&
|
1202
|
-
|
1203
|
-
include_external_user_ids == o.include_external_user_ids &&
|
1204
|
+
include_subscription_ids == o.include_subscription_ids &&
|
1204
1205
|
include_email_tokens == o.include_email_tokens &&
|
1205
1206
|
include_phone_numbers == o.include_phone_numbers &&
|
1206
1207
|
include_ios_tokens == o.include_ios_tokens &&
|
@@ -1225,7 +1226,6 @@ module OneSignal
|
|
1225
1226
|
is_wp_wns == o.is_wp_wns &&
|
1226
1227
|
is_adm == o.is_adm &&
|
1227
1228
|
is_chrome == o.is_chrome &&
|
1228
|
-
channel_for_external_user_ids == o.channel_for_external_user_ids &&
|
1229
1229
|
app_id == o.app_id &&
|
1230
1230
|
external_id == o.external_id &&
|
1231
1231
|
idempotency_key == o.idempotency_key &&
|
@@ -1294,6 +1294,8 @@ module OneSignal
|
|
1294
1294
|
thread_id == o.thread_id &&
|
1295
1295
|
summary_arg == o.summary_arg &&
|
1296
1296
|
summary_arg_count == o.summary_arg_count &&
|
1297
|
+
ios_relevance_score == o.ios_relevance_score &&
|
1298
|
+
ios_interruption_level == o.ios_interruption_level &&
|
1297
1299
|
email_subject == o.email_subject &&
|
1298
1300
|
email_body == o.email_body &&
|
1299
1301
|
email_from_name == o.email_from_name &&
|
@@ -1315,7 +1317,7 @@ module OneSignal
|
|
1315
1317
|
# Calculates hash code according to all attributes.
|
1316
1318
|
# @return [Integer] Hash code
|
1317
1319
|
def hash
|
1318
|
-
[included_segments, excluded_segments,
|
1320
|
+
[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_preheader, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash
|
1319
1321
|
end
|
1320
1322
|
|
1321
1323
|
# 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.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -54,9 +54,6 @@ module OneSignal
|
|
54
54
|
# This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform.
|
55
55
|
attr_accessor :is_chrome
|
56
56
|
|
57
|
-
# Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS.
|
58
|
-
attr_accessor :channel_for_external_user_ids
|
59
|
-
|
60
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.
|
61
58
|
attr_accessor :app_id
|
62
59
|
|
@@ -257,6 +254,12 @@ module OneSignal
|
|
257
254
|
# Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\"
|
258
255
|
attr_accessor :summary_arg_count
|
259
256
|
|
257
|
+
# Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1.
|
258
|
+
attr_accessor :ios_relevance_score
|
259
|
+
|
260
|
+
# Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active.
|
261
|
+
attr_accessor :ios_interruption_level
|
262
|
+
|
260
263
|
# Channel: Email Required. The subject of the email.
|
261
264
|
attr_accessor :email_subject
|
262
265
|
|
@@ -325,7 +328,6 @@ module OneSignal
|
|
325
328
|
:'is_wp_wns' => :'isWP_WNS',
|
326
329
|
:'is_adm' => :'isAdm',
|
327
330
|
:'is_chrome' => :'isChrome',
|
328
|
-
:'channel_for_external_user_ids' => :'channel_for_external_user_ids',
|
329
331
|
:'app_id' => :'app_id',
|
330
332
|
:'external_id' => :'external_id',
|
331
333
|
:'idempotency_key' => :'idempotency_key',
|
@@ -394,6 +396,8 @@ module OneSignal
|
|
394
396
|
:'thread_id' => :'thread_id',
|
395
397
|
:'summary_arg' => :'summary_arg',
|
396
398
|
:'summary_arg_count' => :'summary_arg_count',
|
399
|
+
:'ios_relevance_score' => :'ios_relevance_score',
|
400
|
+
:'ios_interruption_level' => :'ios_interruption_level',
|
397
401
|
:'email_subject' => :'email_subject',
|
398
402
|
:'email_body' => :'email_body',
|
399
403
|
:'email_from_name' => :'email_from_name',
|
@@ -429,13 +433,12 @@ module OneSignal
|
|
429
433
|
:'is_wp_wns' => :'Boolean',
|
430
434
|
:'is_adm' => :'Boolean',
|
431
435
|
:'is_chrome' => :'Boolean',
|
432
|
-
:'channel_for_external_user_ids' => :'String',
|
433
436
|
:'app_id' => :'String',
|
434
437
|
:'external_id' => :'String',
|
435
438
|
:'idempotency_key' => :'String',
|
436
|
-
:'contents' => :'
|
437
|
-
:'headings' => :'
|
438
|
-
:'subtitle' => :'
|
439
|
+
:'contents' => :'LanguageStringMap',
|
440
|
+
:'headings' => :'LanguageStringMap',
|
441
|
+
:'subtitle' => :'LanguageStringMap',
|
439
442
|
:'data' => :'Object',
|
440
443
|
:'huawei_msg_type' => :'String',
|
441
444
|
:'url' => :'String',
|
@@ -452,7 +455,7 @@ module OneSignal
|
|
452
455
|
:'chrome_big_picture' => :'String',
|
453
456
|
:'chrome_web_image' => :'String',
|
454
457
|
:'buttons' => :'Array<Button>',
|
455
|
-
:'web_buttons' => :'Array<
|
458
|
+
:'web_buttons' => :'Array<WebButton>',
|
456
459
|
:'ios_category' => :'String',
|
457
460
|
:'android_channel_id' => :'String',
|
458
461
|
:'huawei_channel_id' => :'String',
|
@@ -498,6 +501,8 @@ module OneSignal
|
|
498
501
|
:'thread_id' => :'String',
|
499
502
|
:'summary_arg' => :'String',
|
500
503
|
:'summary_arg_count' => :'Integer',
|
504
|
+
:'ios_relevance_score' => :'Float',
|
505
|
+
:'ios_interruption_level' => :'String',
|
501
506
|
:'email_subject' => :'String',
|
502
507
|
:'email_body' => :'String',
|
503
508
|
:'email_from_name' => :'String',
|
@@ -506,7 +511,7 @@ module OneSignal
|
|
506
511
|
:'include_unsubscribed' => :'Boolean',
|
507
512
|
:'sms_from' => :'String',
|
508
513
|
:'sms_media_urls' => :'Array<String>',
|
509
|
-
:'filters' => :'Array<
|
514
|
+
:'filters' => :'Array<FilterExpression>',
|
510
515
|
:'custom_data' => :'Object'
|
511
516
|
}
|
512
517
|
end
|
@@ -584,6 +589,8 @@ module OneSignal
|
|
584
589
|
:'adm_group',
|
585
590
|
:'adm_group_message',
|
586
591
|
:'thread_id',
|
592
|
+
:'ios_relevance_score',
|
593
|
+
:'ios_interruption_level',
|
587
594
|
:'email_subject',
|
588
595
|
:'email_from_name',
|
589
596
|
:'email_from_address',
|
@@ -666,10 +673,6 @@ module OneSignal
|
|
666
673
|
self.is_chrome = attributes[:'is_chrome']
|
667
674
|
end
|
668
675
|
|
669
|
-
if attributes.key?(:'channel_for_external_user_ids')
|
670
|
-
self.channel_for_external_user_ids = attributes[:'channel_for_external_user_ids']
|
671
|
-
end
|
672
|
-
|
673
676
|
if attributes.key?(:'app_id')
|
674
677
|
self.app_id = attributes[:'app_id']
|
675
678
|
end
|
@@ -946,6 +949,14 @@ module OneSignal
|
|
946
949
|
self.summary_arg_count = attributes[:'summary_arg_count']
|
947
950
|
end
|
948
951
|
|
952
|
+
if attributes.key?(:'ios_relevance_score')
|
953
|
+
self.ios_relevance_score = attributes[:'ios_relevance_score']
|
954
|
+
end
|
955
|
+
|
956
|
+
if attributes.key?(:'ios_interruption_level')
|
957
|
+
self.ios_interruption_level = attributes[:'ios_interruption_level']
|
958
|
+
end
|
959
|
+
|
949
960
|
if attributes.key?(:'email_subject')
|
950
961
|
self.email_subject = attributes[:'email_subject']
|
951
962
|
end
|
@@ -1035,7 +1046,6 @@ module OneSignal
|
|
1035
1046
|
is_wp_wns == o.is_wp_wns &&
|
1036
1047
|
is_adm == o.is_adm &&
|
1037
1048
|
is_chrome == o.is_chrome &&
|
1038
|
-
channel_for_external_user_ids == o.channel_for_external_user_ids &&
|
1039
1049
|
app_id == o.app_id &&
|
1040
1050
|
external_id == o.external_id &&
|
1041
1051
|
idempotency_key == o.idempotency_key &&
|
@@ -1104,6 +1114,8 @@ module OneSignal
|
|
1104
1114
|
thread_id == o.thread_id &&
|
1105
1115
|
summary_arg == o.summary_arg &&
|
1106
1116
|
summary_arg_count == o.summary_arg_count &&
|
1117
|
+
ios_relevance_score == o.ios_relevance_score &&
|
1118
|
+
ios_interruption_level == o.ios_interruption_level &&
|
1107
1119
|
email_subject == o.email_subject &&
|
1108
1120
|
email_body == o.email_body &&
|
1109
1121
|
email_from_name == o.email_from_name &&
|
@@ -1125,7 +1137,7 @@ module OneSignal
|
|
1125
1137
|
# Calculates hash code according to all attributes.
|
1126
1138
|
# @return [Integer] Hash code
|
1127
1139
|
def hash
|
1128
|
-
[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,
|
1140
|
+
[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_preheader, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash
|
1129
1141
|
end
|
1130
1142
|
|
1131
1143
|
# 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.
|
6
|
+
The version of the OpenAPI document: 5.1.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.
|
6
|
+
The version of the OpenAPI document: 5.1.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.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -17,18 +17,15 @@ module OneSignal
|
|
17
17
|
class CreateNotificationSuccessResponse
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
# Estimated number of subscribers targetted by notification.
|
21
|
-
attr_accessor :recipients
|
22
|
-
|
23
20
|
attr_accessor :external_id
|
24
21
|
|
22
|
+
# Errors include the identifiers that are invalid, or that there are no subscribers.
|
25
23
|
attr_accessor :errors
|
26
24
|
|
27
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
26
|
def self.attribute_map
|
29
27
|
{
|
30
28
|
:'id' => :'id',
|
31
|
-
:'recipients' => :'recipients',
|
32
29
|
:'external_id' => :'external_id',
|
33
30
|
:'errors' => :'errors'
|
34
31
|
}
|
@@ -43,9 +40,8 @@ module OneSignal
|
|
43
40
|
def self.openapi_types
|
44
41
|
{
|
45
42
|
:'id' => :'String',
|
46
|
-
:'recipients' => :'Integer',
|
47
43
|
:'external_id' => :'String',
|
48
|
-
:'errors' => :'
|
44
|
+
:'errors' => :'Object'
|
49
45
|
}
|
50
46
|
end
|
51
47
|
|
@@ -53,6 +49,7 @@ module OneSignal
|
|
53
49
|
def self.openapi_nullable
|
54
50
|
Set.new([
|
55
51
|
:'external_id',
|
52
|
+
:'errors'
|
56
53
|
])
|
57
54
|
end
|
58
55
|
|
@@ -75,10 +72,6 @@ module OneSignal
|
|
75
72
|
self.id = attributes[:'id']
|
76
73
|
end
|
77
74
|
|
78
|
-
if attributes.key?(:'recipients')
|
79
|
-
self.recipients = attributes[:'recipients']
|
80
|
-
end
|
81
|
-
|
82
75
|
if attributes.key?(:'external_id')
|
83
76
|
self.external_id = attributes[:'external_id']
|
84
77
|
end
|
@@ -107,7 +100,6 @@ module OneSignal
|
|
107
100
|
return true if self.equal?(o)
|
108
101
|
self.class == o.class &&
|
109
102
|
id == o.id &&
|
110
|
-
recipients == o.recipients &&
|
111
103
|
external_id == o.external_id &&
|
112
104
|
errors == o.errors
|
113
105
|
end
|
@@ -121,7 +113,7 @@ module OneSignal
|
|
121
113
|
# Calculates hash code according to all attributes.
|
122
114
|
# @return [Integer] Hash code
|
123
115
|
def hash
|
124
|
-
[id,
|
116
|
+
[id, external_id, errors].hash
|
125
117
|
end
|
126
118
|
|
127
119
|
# 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.
|
6
|
+
The version of the OpenAPI document: 5.1.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.
|
6
|
+
The version of the OpenAPI document: 5.1.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.
|
6
|
+
The version of the OpenAPI document: 5.1.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.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|