onesignal 2.2.1 → 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 -67
- data/docs/BasicNotification.md +18 -18
- data/docs/BasicNotificationAllOf.md +9 -7
- data/docs/CreateNotificationSuccessResponse.md +1 -3
- data/docs/DefaultApi.md +364 -948
- 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} +6 -6
- 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} +8 -8
- 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 +61 -131
- 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
@@ -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
|
|
@@ -384,8 +385,7 @@ module OneSignal
|
|
384
385
|
{
|
385
386
|
:'included_segments' => :'included_segments',
|
386
387
|
:'excluded_segments' => :'excluded_segments',
|
387
|
-
:'
|
388
|
-
:'include_external_user_ids' => :'include_external_user_ids',
|
388
|
+
:'include_subscription_ids' => :'include_subscription_ids',
|
389
389
|
:'include_email_tokens' => :'include_email_tokens',
|
390
390
|
:'include_phone_numbers' => :'include_phone_numbers',
|
391
391
|
:'include_ios_tokens' => :'include_ios_tokens',
|
@@ -410,7 +410,6 @@ module OneSignal
|
|
410
410
|
:'is_wp_wns' => :'isWP_WNS',
|
411
411
|
:'is_adm' => :'isAdm',
|
412
412
|
:'is_chrome' => :'isChrome',
|
413
|
-
:'channel_for_external_user_ids' => :'channel_for_external_user_ids',
|
414
413
|
:'app_id' => :'app_id',
|
415
414
|
:'external_id' => :'external_id',
|
416
415
|
:'idempotency_key' => :'idempotency_key',
|
@@ -479,6 +478,8 @@ module OneSignal
|
|
479
478
|
:'thread_id' => :'thread_id',
|
480
479
|
:'summary_arg' => :'summary_arg',
|
481
480
|
:'summary_arg_count' => :'summary_arg_count',
|
481
|
+
:'ios_relevance_score' => :'ios_relevance_score',
|
482
|
+
:'ios_interruption_level' => :'ios_interruption_level',
|
482
483
|
:'email_subject' => :'email_subject',
|
483
484
|
:'email_body' => :'email_body',
|
484
485
|
:'email_from_name' => :'email_from_name',
|
@@ -513,8 +514,7 @@ module OneSignal
|
|
513
514
|
{
|
514
515
|
:'included_segments' => :'Array<String>',
|
515
516
|
:'excluded_segments' => :'Array<String>',
|
516
|
-
:'
|
517
|
-
:'include_external_user_ids' => :'Array<String>',
|
517
|
+
:'include_subscription_ids' => :'Array<String>',
|
518
518
|
:'include_email_tokens' => :'Array<String>',
|
519
519
|
:'include_phone_numbers' => :'Array<String>',
|
520
520
|
:'include_ios_tokens' => :'Array<String>',
|
@@ -523,7 +523,7 @@ module OneSignal
|
|
523
523
|
:'include_chrome_reg_ids' => :'Array<String>',
|
524
524
|
:'include_chrome_web_reg_ids' => :'Array<String>',
|
525
525
|
:'include_android_reg_ids' => :'Array<String>',
|
526
|
-
:'include_aliases' => :'
|
526
|
+
:'include_aliases' => :'Hash<String, Array<String>>',
|
527
527
|
:'target_channel' => :'String',
|
528
528
|
:'id' => :'String',
|
529
529
|
:'value' => :'Integer',
|
@@ -539,13 +539,12 @@ module OneSignal
|
|
539
539
|
:'is_wp_wns' => :'Boolean',
|
540
540
|
:'is_adm' => :'Boolean',
|
541
541
|
:'is_chrome' => :'Boolean',
|
542
|
-
:'channel_for_external_user_ids' => :'String',
|
543
542
|
:'app_id' => :'String',
|
544
543
|
:'external_id' => :'String',
|
545
544
|
:'idempotency_key' => :'String',
|
546
|
-
:'contents' => :'
|
547
|
-
:'headings' => :'
|
548
|
-
:'subtitle' => :'
|
545
|
+
:'contents' => :'LanguageStringMap',
|
546
|
+
:'headings' => :'LanguageStringMap',
|
547
|
+
:'subtitle' => :'LanguageStringMap',
|
549
548
|
:'data' => :'Object',
|
550
549
|
:'huawei_msg_type' => :'String',
|
551
550
|
:'url' => :'String',
|
@@ -562,7 +561,7 @@ module OneSignal
|
|
562
561
|
:'chrome_big_picture' => :'String',
|
563
562
|
:'chrome_web_image' => :'String',
|
564
563
|
:'buttons' => :'Array<Button>',
|
565
|
-
:'web_buttons' => :'Array<
|
564
|
+
:'web_buttons' => :'Array<WebButton>',
|
566
565
|
:'ios_category' => :'String',
|
567
566
|
:'android_channel_id' => :'String',
|
568
567
|
:'huawei_channel_id' => :'String',
|
@@ -608,6 +607,8 @@ module OneSignal
|
|
608
607
|
:'thread_id' => :'String',
|
609
608
|
:'summary_arg' => :'String',
|
610
609
|
:'summary_arg_count' => :'Integer',
|
610
|
+
:'ios_relevance_score' => :'Float',
|
611
|
+
:'ios_interruption_level' => :'String',
|
611
612
|
:'email_subject' => :'String',
|
612
613
|
:'email_body' => :'String',
|
613
614
|
:'email_from_name' => :'String',
|
@@ -616,7 +617,7 @@ module OneSignal
|
|
616
617
|
:'include_unsubscribed' => :'Boolean',
|
617
618
|
:'sms_from' => :'String',
|
618
619
|
:'sms_media_urls' => :'Array<String>',
|
619
|
-
:'filters' => :'Array<
|
620
|
+
:'filters' => :'Array<FilterExpression>',
|
620
621
|
:'custom_data' => :'Object',
|
621
622
|
:'successful' => :'Integer',
|
622
623
|
:'failed' => :'Integer',
|
@@ -635,8 +636,7 @@ module OneSignal
|
|
635
636
|
# List of attributes with nullable: true
|
636
637
|
def self.openapi_nullable
|
637
638
|
Set.new([
|
638
|
-
:'
|
639
|
-
:'include_external_user_ids',
|
639
|
+
:'include_subscription_ids',
|
640
640
|
:'include_aliases',
|
641
641
|
:'name',
|
642
642
|
:'is_ios',
|
@@ -708,6 +708,8 @@ module OneSignal
|
|
708
708
|
:'adm_group',
|
709
709
|
:'adm_group_message',
|
710
710
|
:'thread_id',
|
711
|
+
:'ios_relevance_score',
|
712
|
+
:'ios_interruption_level',
|
711
713
|
:'email_subject',
|
712
714
|
:'email_from_name',
|
713
715
|
:'email_from_address',
|
@@ -759,15 +761,9 @@ module OneSignal
|
|
759
761
|
end
|
760
762
|
end
|
761
763
|
|
762
|
-
if attributes.key?(:'
|
763
|
-
if (value = attributes[:'
|
764
|
-
self.
|
765
|
-
end
|
766
|
-
end
|
767
|
-
|
768
|
-
if attributes.key?(:'include_external_user_ids')
|
769
|
-
if (value = attributes[:'include_external_user_ids']).is_a?(Array)
|
770
|
-
self.include_external_user_ids = value
|
764
|
+
if attributes.key?(:'include_subscription_ids')
|
765
|
+
if (value = attributes[:'include_subscription_ids']).is_a?(Array)
|
766
|
+
self.include_subscription_ids = value
|
771
767
|
end
|
772
768
|
end
|
773
769
|
|
@@ -820,7 +816,9 @@ module OneSignal
|
|
820
816
|
end
|
821
817
|
|
822
818
|
if attributes.key?(:'include_aliases')
|
823
|
-
|
819
|
+
if (value = attributes[:'include_aliases']).is_a?(Hash)
|
820
|
+
self.include_aliases = value
|
821
|
+
end
|
824
822
|
end
|
825
823
|
|
826
824
|
if attributes.key?(:'target_channel')
|
@@ -883,10 +881,6 @@ module OneSignal
|
|
883
881
|
self.is_chrome = attributes[:'is_chrome']
|
884
882
|
end
|
885
883
|
|
886
|
-
if attributes.key?(:'channel_for_external_user_ids')
|
887
|
-
self.channel_for_external_user_ids = attributes[:'channel_for_external_user_ids']
|
888
|
-
end
|
889
|
-
|
890
884
|
if attributes.key?(:'app_id')
|
891
885
|
self.app_id = attributes[:'app_id']
|
892
886
|
end
|
@@ -1163,6 +1157,14 @@ module OneSignal
|
|
1163
1157
|
self.summary_arg_count = attributes[:'summary_arg_count']
|
1164
1158
|
end
|
1165
1159
|
|
1160
|
+
if attributes.key?(:'ios_relevance_score')
|
1161
|
+
self.ios_relevance_score = attributes[:'ios_relevance_score']
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
if attributes.key?(:'ios_interruption_level')
|
1165
|
+
self.ios_interruption_level = attributes[:'ios_interruption_level']
|
1166
|
+
end
|
1167
|
+
|
1166
1168
|
if attributes.key?(:'email_subject')
|
1167
1169
|
self.email_subject = attributes[:'email_subject']
|
1168
1170
|
end
|
@@ -1303,8 +1305,7 @@ module OneSignal
|
|
1303
1305
|
self.class == o.class &&
|
1304
1306
|
included_segments == o.included_segments &&
|
1305
1307
|
excluded_segments == o.excluded_segments &&
|
1306
|
-
|
1307
|
-
include_external_user_ids == o.include_external_user_ids &&
|
1308
|
+
include_subscription_ids == o.include_subscription_ids &&
|
1308
1309
|
include_email_tokens == o.include_email_tokens &&
|
1309
1310
|
include_phone_numbers == o.include_phone_numbers &&
|
1310
1311
|
include_ios_tokens == o.include_ios_tokens &&
|
@@ -1329,7 +1330,6 @@ module OneSignal
|
|
1329
1330
|
is_wp_wns == o.is_wp_wns &&
|
1330
1331
|
is_adm == o.is_adm &&
|
1331
1332
|
is_chrome == o.is_chrome &&
|
1332
|
-
channel_for_external_user_ids == o.channel_for_external_user_ids &&
|
1333
1333
|
app_id == o.app_id &&
|
1334
1334
|
external_id == o.external_id &&
|
1335
1335
|
idempotency_key == o.idempotency_key &&
|
@@ -1398,6 +1398,8 @@ module OneSignal
|
|
1398
1398
|
thread_id == o.thread_id &&
|
1399
1399
|
summary_arg == o.summary_arg &&
|
1400
1400
|
summary_arg_count == o.summary_arg_count &&
|
1401
|
+
ios_relevance_score == o.ios_relevance_score &&
|
1402
|
+
ios_interruption_level == o.ios_interruption_level &&
|
1401
1403
|
email_subject == o.email_subject &&
|
1402
1404
|
email_body == o.email_body &&
|
1403
1405
|
email_from_name == o.email_from_name &&
|
@@ -1430,7 +1432,7 @@ module OneSignal
|
|
1430
1432
|
# Calculates hash code according to all attributes.
|
1431
1433
|
# @return [Integer] Hash code
|
1432
1434
|
def hash
|
1433
|
-
[included_segments, excluded_segments,
|
1435
|
+
[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, successful, failed, errored, converted, received, outcomes, remaining, queued_at, send_after, completed_at, platform_delivery_stats].hash
|
1434
1436
|
end
|
1435
1437
|
|
1436
1438
|
# 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
|
@@ -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
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OneSignal
|
17
|
-
class
|
17
|
+
class PropertiesBody
|
18
18
|
attr_accessor :properties
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -46,13 +46,13 @@ module OneSignal
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::PropertiesBody` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::PropertiesBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -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
|
@@ -38,8 +38,8 @@ module OneSignal
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'session_time' => :'
|
42
|
-
:'session_count' => :'
|
41
|
+
:'session_time' => :'Integer',
|
42
|
+
:'session_count' => :'Integer',
|
43
43
|
:'purchases' => :'Array<Purchase>'
|
44
44
|
}
|
45
45
|
end
|
@@ -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
|
@@ -68,8 +68,8 @@ module OneSignal
|
|
68
68
|
:'lat' => :'Float',
|
69
69
|
:'long' => :'Float',
|
70
70
|
:'country' => :'String',
|
71
|
-
:'first_active' => :'
|
72
|
-
:'last_active' => :'
|
71
|
+
:'first_active' => :'Integer',
|
72
|
+
:'last_active' => :'Integer',
|
73
73
|
:'amount_spent' => :'Float',
|
74
74
|
:'purchases' => :'Array<Purchase>',
|
75
75
|
:'ip' => :'String'
|
@@ -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
|
@@ -47,7 +47,7 @@ module OneSignal
|
|
47
47
|
:'sku' => :'String',
|
48
48
|
:'amount' => :'String',
|
49
49
|
:'iso' => :'String',
|
50
|
-
:'count' => :'
|
50
|
+
:'count' => :'Integer'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -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
|
@@ -14,13 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OneSignal
|
17
|
-
class
|
17
|
+
class RateLimitError
|
18
18
|
attr_accessor :errors
|
19
19
|
|
20
|
+
attr_accessor :limit
|
21
|
+
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
23
|
def self.attribute_map
|
22
24
|
{
|
23
|
-
:'errors' => :'errors'
|
25
|
+
:'errors' => :'errors',
|
26
|
+
:'limit' => :'limit'
|
24
27
|
}
|
25
28
|
end
|
26
29
|
|
@@ -32,7 +35,8 @@ module OneSignal
|
|
32
35
|
# Attribute type mapping.
|
33
36
|
def self.openapi_types
|
34
37
|
{
|
35
|
-
:'errors' => :'Array<
|
38
|
+
:'errors' => :'Array<String>',
|
39
|
+
:'limit' => :'String'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -46,13 +50,13 @@ module OneSignal
|
|
46
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
51
|
def initialize(attributes = {})
|
48
52
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::RateLimitError` initialize method"
|
50
54
|
end
|
51
55
|
|
52
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::RateLimitError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
60
|
end
|
57
61
|
h[k.to_sym] = v
|
58
62
|
}
|
@@ -62,6 +66,10 @@ module OneSignal
|
|
62
66
|
self.errors = value
|
63
67
|
end
|
64
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'limit')
|
71
|
+
self.limit = attributes[:'limit']
|
72
|
+
end
|
65
73
|
end
|
66
74
|
|
67
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -82,7 +90,8 @@ module OneSignal
|
|
82
90
|
def ==(o)
|
83
91
|
return true if self.equal?(o)
|
84
92
|
self.class == o.class &&
|
85
|
-
errors == o.errors
|
93
|
+
errors == o.errors &&
|
94
|
+
limit == o.limit
|
86
95
|
end
|
87
96
|
|
88
97
|
# @see the `==` method
|
@@ -94,7 +103,7 @@ module OneSignal
|
|
94
103
|
# Calculates hash code according to all attributes.
|
95
104
|
# @return [Integer] Hash code
|
96
105
|
def hash
|
97
|
-
[errors].hash
|
106
|
+
[errors, limit].hash
|
98
107
|
end
|
99
108
|
|
100
109
|
# 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
|
@@ -43,7 +43,7 @@ module OneSignal
|
|
43
43
|
{
|
44
44
|
:'id' => :'String',
|
45
45
|
:'name' => :'String',
|
46
|
-
:'filters' => :'Array<
|
46
|
+
:'filters' => :'Array<FilterExpression>'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|