onesignal 2.2.1 → 5.2.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.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -67
  3. data/docs/BasicNotification.md +20 -18
  4. data/docs/BasicNotificationAllOf.md +11 -7
  5. data/docs/CreateNotificationSuccessResponse.md +1 -3
  6. data/docs/DefaultApi.md +364 -948
  7. data/docs/{ExportPlayersRequestBody.md → ExportSubscriptionsRequestBody.md} +2 -2
  8. data/docs/{ExportPlayersSuccessResponse.md → ExportSubscriptionsSuccessResponse.md} +2 -2
  9. data/docs/Filter.md +10 -2
  10. data/docs/{Notification200Errors.md → FilterExpression.md} +9 -9
  11. data/docs/GenericError.md +6 -2
  12. data/docs/{DeletePlayerSuccessResponse.md → GenericSuccessBoolResponse.md} +2 -2
  13. data/docs/{GetNotificationRequestBody.md → GetNotificationHistoryRequestBody.md} +2 -2
  14. data/docs/GetSegmentsSuccessResponse.md +24 -0
  15. data/docs/{StringMap.md → LanguageStringMap.md} +2 -2
  16. data/docs/Notification.md +20 -18
  17. data/docs/NotificationTarget.md +9 -11
  18. data/docs/NotificationWithMeta.md +20 -18
  19. data/docs/{InlineResponse202.md → PropertiesBody.md} +2 -2
  20. data/docs/PropertiesDeltas.md +2 -2
  21. data/docs/PropertiesObject.md +2 -2
  22. data/docs/Purchase.md +1 -1
  23. data/docs/RateLimitError.md +20 -0
  24. data/docs/Segment.md +1 -1
  25. data/docs/SegmentData.md +30 -0
  26. data/docs/{SubscriptionObject.md → Subscription.md} +6 -6
  27. data/docs/SubscriptionBody.md +18 -0
  28. data/docs/SubscriptionNotificationTarget.md +38 -0
  29. data/docs/TransferSubscriptionRequestBody.md +1 -1
  30. data/docs/UpdateLiveActivityRequest.md +14 -4
  31. data/docs/UpdateLiveActivitySuccessResponse.md +2 -4
  32. data/docs/User.md +3 -5
  33. data/docs/{InlineResponse200.md → UserIdentityBody.md} +3 -3
  34. data/docs/WebButton.md +24 -0
  35. data/lib/onesignal/api/default_api.rb +382 -890
  36. data/lib/onesignal/api_client.rb +2 -2
  37. data/lib/onesignal/api_error.rb +1 -1
  38. data/lib/onesignal/configuration.rb +5 -5
  39. data/lib/onesignal/models/app.rb +1 -1
  40. data/lib/onesignal/models/basic_notification.rb +60 -47
  41. data/lib/onesignal/models/basic_notification_all_of.rb +40 -17
  42. data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
  43. data/lib/onesignal/models/button.rb +1 -1
  44. data/lib/onesignal/models/create_notification_success_response.rb +5 -13
  45. data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
  46. data/lib/onesignal/models/create_segment_success_response.rb +1 -1
  47. data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
  48. data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
  49. data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
  50. data/lib/onesignal/models/delivery_data.rb +1 -1
  51. data/lib/onesignal/models/export_events_success_response.rb +1 -1
  52. data/lib/onesignal/models/{export_players_request_body.rb → export_subscriptions_request_body.rb} +4 -4
  53. data/lib/onesignal/models/{export_players_success_response.rb → export_subscriptions_success_response.rb} +4 -4
  54. data/lib/onesignal/models/filter.rb +44 -14
  55. data/lib/onesignal/models/{notification200_errors.rb → filter_expression.rb} +4 -4
  56. data/lib/onesignal/models/generic_error.rb +26 -8
  57. data/lib/onesignal/models/{update_player_success_response.rb → generic_success_bool_response.rb} +4 -4
  58. data/lib/onesignal/models/{get_notification_request_body.rb → get_notification_history_request_body.rb} +4 -4
  59. data/lib/onesignal/models/{player_slice.rb → get_segments_success_response.rb} +16 -12
  60. data/lib/onesignal/models/{string_map.rb → language_string_map.rb} +4 -4
  61. data/lib/onesignal/models/notification.rb +60 -47
  62. data/lib/onesignal/models/notification_all_of.rb +1 -1
  63. data/lib/onesignal/models/notification_history_success_response.rb +1 -1
  64. data/lib/onesignal/models/notification_slice.rb +1 -1
  65. data/lib/onesignal/models/notification_target.rb +24 -34
  66. data/lib/onesignal/models/notification_with_meta.rb +60 -47
  67. data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
  68. data/lib/onesignal/models/operator.rb +1 -1
  69. data/lib/onesignal/models/outcome_data.rb +1 -1
  70. data/lib/onesignal/models/outcomes_data.rb +1 -1
  71. data/lib/onesignal/models/platform_delivery_data.rb +1 -1
  72. data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
  73. data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
  74. data/lib/onesignal/models/{inline_response202.rb → properties_body.rb} +4 -4
  75. data/lib/onesignal/models/properties_deltas.rb +3 -3
  76. data/lib/onesignal/models/properties_object.rb +3 -3
  77. data/lib/onesignal/models/purchase.rb +2 -2
  78. data/lib/onesignal/models/{rate_limiter_error.rb → rate_limit_error.rb} +17 -8
  79. data/lib/onesignal/models/segment.rb +2 -2
  80. data/lib/onesignal/models/{begin_live_activity_request.rb → segment_data.rb} +69 -27
  81. data/lib/onesignal/models/segment_notification_target.rb +1 -1
  82. data/lib/onesignal/models/{subscription_object.rb → subscription.rb} +8 -8
  83. data/lib/onesignal/models/{inline_response201.rb → subscription_body.rb} +5 -5
  84. data/lib/onesignal/models/{player_notification_target.rb → subscription_notification_target.rb} +25 -35
  85. data/lib/onesignal/models/transfer_subscription_request_body.rb +26 -2
  86. data/lib/onesignal/models/update_live_activity_request.rb +59 -22
  87. data/lib/onesignal/models/update_live_activity_success_response.rb +8 -17
  88. data/lib/onesignal/models/update_user_request.rb +1 -1
  89. data/lib/onesignal/models/user.rb +6 -15
  90. data/lib/onesignal/models/{inline_response200.rb → user_identity_body.rb} +5 -5
  91. data/lib/onesignal/models/{create_player_success_response.rb → web_button.rb} +40 -17
  92. data/lib/onesignal/version.rb +2 -2
  93. data/lib/onesignal.rb +16 -34
  94. data/onesignal.gemspec +1 -1
  95. data/spec/api/default_api_spec.rb +82 -174
  96. data/spec/api_client_spec.rb +1 -1
  97. data/spec/configuration_spec.rb +1 -1
  98. data/spec/models/app_spec.rb +1 -1
  99. data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
  100. data/spec/models/basic_notification_all_of_spec.rb +19 -7
  101. data/spec/models/basic_notification_spec.rb +20 -14
  102. data/spec/models/button_spec.rb +1 -1
  103. data/spec/models/create_notification_success_response_spec.rb +1 -7
  104. data/spec/models/create_segment_conflict_response_spec.rb +1 -1
  105. data/spec/models/create_segment_success_response_spec.rb +1 -1
  106. data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
  107. data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
  108. data/spec/models/create_user_conflict_response_spec.rb +1 -1
  109. data/spec/models/delivery_data_spec.rb +1 -1
  110. data/spec/models/export_events_success_response_spec.rb +1 -1
  111. data/spec/models/{export_players_request_body_spec.rb → export_subscriptions_request_body_spec.rb} +7 -7
  112. data/spec/models/{export_players_success_response_spec.rb → export_subscriptions_success_response_spec.rb} +7 -7
  113. data/spec/models/{notification200_errors_spec.rb → filter_expression_spec.rb} +3 -3
  114. data/spec/models/filter_spec.rb +25 -1
  115. data/spec/models/generic_error_spec.rb +13 -1
  116. data/spec/models/{delete_player_success_response_spec.rb → generic_success_bool_response_spec.rb} +7 -7
  117. data/spec/models/{get_notification_request_body_spec.rb → get_notification_history_request_body_spec.rb} +7 -7
  118. data/spec/models/{player_slice_spec.rb → get_segments_success_response_spec.rb} +8 -8
  119. data/spec/models/{string_map_spec.rb → language_string_map_spec.rb} +7 -7
  120. data/spec/models/notification_all_of_spec.rb +1 -1
  121. data/spec/models/notification_history_success_response_spec.rb +1 -1
  122. data/spec/models/notification_slice_spec.rb +1 -1
  123. data/spec/models/notification_spec.rb +20 -14
  124. data/spec/models/notification_target_spec.rb +2 -8
  125. data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
  126. data/spec/models/notification_with_meta_spec.rb +20 -14
  127. data/spec/models/operator_spec.rb +1 -1
  128. data/spec/models/outcome_data_spec.rb +1 -1
  129. data/spec/models/outcomes_data_spec.rb +1 -1
  130. data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
  131. data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
  132. data/spec/models/platform_delivery_data_spec.rb +1 -1
  133. data/spec/models/{inline_response202_spec.rb → properties_body_spec.rb} +7 -7
  134. data/spec/models/properties_deltas_spec.rb +1 -1
  135. data/spec/models/properties_object_spec.rb +1 -1
  136. data/spec/models/purchase_spec.rb +1 -1
  137. data/spec/models/{generic_error_errors_inner_spec.rb → rate_limit_error_spec.rb} +9 -9
  138. data/spec/models/{filter_expressions_spec.rb → segment_data_spec.rb} +24 -20
  139. data/spec/models/segment_notification_target_spec.rb +1 -1
  140. data/spec/models/segment_spec.rb +1 -1
  141. data/spec/models/{inline_response201_spec.rb → subscription_body_spec.rb} +7 -7
  142. data/spec/models/{player_notification_target_spec.rb → subscription_notification_target_spec.rb} +8 -14
  143. data/spec/models/{subscription_object_spec.rb → subscription_spec.rb} +7 -7
  144. data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
  145. data/spec/models/update_live_activity_request_spec.rb +32 -6
  146. data/spec/models/update_live_activity_success_response_spec.rb +2 -8
  147. data/spec/models/update_user_request_spec.rb +1 -1
  148. data/spec/models/{user_identity_response_spec.rb → user_identity_body_spec.rb} +7 -7
  149. data/spec/models/user_spec.rb +1 -7
  150. data/spec/models/{create_player_success_response_spec.rb → web_button_spec.rb} +21 -9
  151. data/spec/spec_helper.rb +1 -1
  152. metadata +61 -133
  153. data/docs/BeginLiveActivityRequest.md +0 -20
  154. data/docs/CancelNotificationSuccessResponse.md +0 -18
  155. data/docs/CreatePlayerSuccessResponse.md +0 -20
  156. data/docs/CreateSubscriptionRequestBody.md +0 -20
  157. data/docs/DeletePlayerNotFoundResponse.md +0 -18
  158. data/docs/DeleteSegmentNotFoundResponse.md +0 -18
  159. data/docs/DeleteSegmentSuccessResponse.md +0 -18
  160. data/docs/FilterExpressions.md +0 -26
  161. data/docs/GenericErrorErrorsInner.md +0 -20
  162. data/docs/InlineResponse2003.md +0 -18
  163. data/docs/InlineResponse201.md +0 -18
  164. data/docs/InvalidIdentifierError.md +0 -20
  165. data/docs/Player.md +0 -70
  166. data/docs/PlayerNotificationTarget.md +0 -40
  167. data/docs/PlayerNotificationTargetIncludeAliases.md +0 -18
  168. data/docs/PlayerSlice.md +0 -24
  169. data/docs/RateLimiterError.md +0 -18
  170. data/docs/UpdatePlayerSuccessResponse.md +0 -18
  171. data/docs/UpdatePlayerTagsRequestBody.md +0 -18
  172. data/docs/UpdatePlayerTagsSuccessResponse.md +0 -18
  173. data/docs/UpdateSubscriptionRequestBody.md +0 -18
  174. data/docs/UserIdentityRequestBody.md +0 -18
  175. data/docs/UserIdentityResponse.md +0 -18
  176. data/docs/UserSubscriptionOptions.md +0 -18
  177. data/lib/onesignal/models/cancel_notification_success_response.rb +0 -219
  178. data/lib/onesignal/models/create_subscription_request_body.rb +0 -228
  179. data/lib/onesignal/models/delete_player_not_found_response.rb +0 -219
  180. data/lib/onesignal/models/delete_player_success_response.rb +0 -219
  181. data/lib/onesignal/models/delete_segment_not_found_response.rb +0 -219
  182. data/lib/onesignal/models/delete_segment_success_response.rb +0 -219
  183. data/lib/onesignal/models/filter_expressions.rb +0 -336
  184. data/lib/onesignal/models/generic_error_errors_inner.rb +0 -228
  185. data/lib/onesignal/models/inline_response2003.rb +0 -221
  186. data/lib/onesignal/models/invalid_identifier_error.rb +0 -234
  187. data/lib/onesignal/models/player.rb +0 -494
  188. data/lib/onesignal/models/player_notification_target_include_aliases.rb +0 -221
  189. data/lib/onesignal/models/update_player_tags_request_body.rb +0 -220
  190. data/lib/onesignal/models/update_player_tags_success_response.rb +0 -219
  191. data/lib/onesignal/models/update_subscription_request_body.rb +0 -219
  192. data/lib/onesignal/models/user_identity_request_body.rb +0 -221
  193. data/lib/onesignal/models/user_identity_response.rb +0 -221
  194. data/lib/onesignal/models/user_subscription_options.rb +0 -219
  195. data/spec/models/begin_live_activity_request_spec.rb +0 -40
  196. data/spec/models/cancel_notification_success_response_spec.rb +0 -34
  197. data/spec/models/create_subscription_request_body_spec.rb +0 -40
  198. data/spec/models/delete_player_not_found_response_spec.rb +0 -34
  199. data/spec/models/delete_segment_not_found_response_spec.rb +0 -34
  200. data/spec/models/delete_segment_success_response_spec.rb +0 -34
  201. data/spec/models/inline_response2003_spec.rb +0 -34
  202. data/spec/models/inline_response200_spec.rb +0 -34
  203. data/spec/models/invalid_identifier_error_spec.rb +0 -40
  204. data/spec/models/player_notification_target_include_aliases_spec.rb +0 -34
  205. data/spec/models/player_spec.rb +0 -190
  206. data/spec/models/rate_limiter_error_spec.rb +0 -34
  207. data/spec/models/update_player_success_response_spec.rb +0 -34
  208. data/spec/models/update_player_tags_request_body_spec.rb +0 -34
  209. data/spec/models/update_player_tags_success_response_spec.rb +0 -34
  210. data/spec/models/update_subscription_request_body_spec.rb +0 -34
  211. data/spec/models/user_identity_request_body_spec.rb +0 -34
  212. 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.4.1
6
+ The version of the OpenAPI document: 5.2.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=2.2.1'
93
+ opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=5.2.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] || {}
@@ -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.4.1
6
+ The version of the OpenAPI document: 5.2.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.4.1
6
+ The version of the OpenAPI document: 5.2.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
- 'app_key' =>
178
+ 'organization_api_key' =>
179
179
  {
180
180
  type: 'bearer',
181
181
  in: 'header',
182
182
  key: 'Authorization',
183
- value: "Key \"#{ app_key }\""
183
+ value: "Key \"#{ organization_api_key }\""
184
184
  },
185
- 'user_key' =>
185
+ 'rest_api_key' =>
186
186
  {
187
187
  type: 'bearer',
188
188
  in: 'header',
189
189
  key: 'Authorization',
190
- value: "Key \"#{ user_key }\""
190
+ value: "Key \"#{ rest_api_key }\""
191
191
  },
192
192
  }
193
193
  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.4.1
6
+ The version of the OpenAPI document: 5.2.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.4.1
6
+ The version of the OpenAPI document: 5.2.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 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
25
- attr_accessor :include_player_ids
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 include_player_ids or include_external_user_ids 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
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 include_player_ids or include_external_user_ids 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
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 include_player_ids or include_external_user_ids 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
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 include_player_ids or include_external_user_ids 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
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 include_player_ids or include_external_user_ids 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
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 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
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
 
@@ -312,6 +313,9 @@ module OneSignal
312
313
  # 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
314
  attr_accessor :email_preheader
314
315
 
316
+ # Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked.
317
+ attr_accessor :disable_email_click_tracking
318
+
315
319
  # 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
320
  attr_accessor :include_unsubscribed
317
321
 
@@ -353,8 +357,7 @@ module OneSignal
353
357
  {
354
358
  :'included_segments' => :'included_segments',
355
359
  :'excluded_segments' => :'excluded_segments',
356
- :'include_player_ids' => :'include_player_ids',
357
- :'include_external_user_ids' => :'include_external_user_ids',
360
+ :'include_subscription_ids' => :'include_subscription_ids',
358
361
  :'include_email_tokens' => :'include_email_tokens',
359
362
  :'include_phone_numbers' => :'include_phone_numbers',
360
363
  :'include_ios_tokens' => :'include_ios_tokens',
@@ -379,7 +382,6 @@ module OneSignal
379
382
  :'is_wp_wns' => :'isWP_WNS',
380
383
  :'is_adm' => :'isAdm',
381
384
  :'is_chrome' => :'isChrome',
382
- :'channel_for_external_user_ids' => :'channel_for_external_user_ids',
383
385
  :'app_id' => :'app_id',
384
386
  :'external_id' => :'external_id',
385
387
  :'idempotency_key' => :'idempotency_key',
@@ -448,11 +450,14 @@ module OneSignal
448
450
  :'thread_id' => :'thread_id',
449
451
  :'summary_arg' => :'summary_arg',
450
452
  :'summary_arg_count' => :'summary_arg_count',
453
+ :'ios_relevance_score' => :'ios_relevance_score',
454
+ :'ios_interruption_level' => :'ios_interruption_level',
451
455
  :'email_subject' => :'email_subject',
452
456
  :'email_body' => :'email_body',
453
457
  :'email_from_name' => :'email_from_name',
454
458
  :'email_from_address' => :'email_from_address',
455
459
  :'email_preheader' => :'email_preheader',
460
+ :'disable_email_click_tracking' => :'disable_email_click_tracking',
456
461
  :'include_unsubscribed' => :'include_unsubscribed',
457
462
  :'sms_from' => :'sms_from',
458
463
  :'sms_media_urls' => :'sms_media_urls',
@@ -471,8 +476,7 @@ module OneSignal
471
476
  {
472
477
  :'included_segments' => :'Array<String>',
473
478
  :'excluded_segments' => :'Array<String>',
474
- :'include_player_ids' => :'Array<String>',
475
- :'include_external_user_ids' => :'Array<String>',
479
+ :'include_subscription_ids' => :'Array<String>',
476
480
  :'include_email_tokens' => :'Array<String>',
477
481
  :'include_phone_numbers' => :'Array<String>',
478
482
  :'include_ios_tokens' => :'Array<String>',
@@ -481,7 +485,7 @@ module OneSignal
481
485
  :'include_chrome_reg_ids' => :'Array<String>',
482
486
  :'include_chrome_web_reg_ids' => :'Array<String>',
483
487
  :'include_android_reg_ids' => :'Array<String>',
484
- :'include_aliases' => :'PlayerNotificationTargetIncludeAliases',
488
+ :'include_aliases' => :'Hash<String, Array<String>>',
485
489
  :'target_channel' => :'String',
486
490
  :'id' => :'String',
487
491
  :'value' => :'Integer',
@@ -497,13 +501,12 @@ module OneSignal
497
501
  :'is_wp_wns' => :'Boolean',
498
502
  :'is_adm' => :'Boolean',
499
503
  :'is_chrome' => :'Boolean',
500
- :'channel_for_external_user_ids' => :'String',
501
504
  :'app_id' => :'String',
502
505
  :'external_id' => :'String',
503
506
  :'idempotency_key' => :'String',
504
- :'contents' => :'StringMap',
505
- :'headings' => :'StringMap',
506
- :'subtitle' => :'StringMap',
507
+ :'contents' => :'LanguageStringMap',
508
+ :'headings' => :'LanguageStringMap',
509
+ :'subtitle' => :'LanguageStringMap',
507
510
  :'data' => :'Object',
508
511
  :'huawei_msg_type' => :'String',
509
512
  :'url' => :'String',
@@ -520,7 +523,7 @@ module OneSignal
520
523
  :'chrome_big_picture' => :'String',
521
524
  :'chrome_web_image' => :'String',
522
525
  :'buttons' => :'Array<Button>',
523
- :'web_buttons' => :'Array<Button>',
526
+ :'web_buttons' => :'Array<WebButton>',
524
527
  :'ios_category' => :'String',
525
528
  :'android_channel_id' => :'String',
526
529
  :'huawei_channel_id' => :'String',
@@ -566,15 +569,18 @@ module OneSignal
566
569
  :'thread_id' => :'String',
567
570
  :'summary_arg' => :'String',
568
571
  :'summary_arg_count' => :'Integer',
572
+ :'ios_relevance_score' => :'Float',
573
+ :'ios_interruption_level' => :'String',
569
574
  :'email_subject' => :'String',
570
575
  :'email_body' => :'String',
571
576
  :'email_from_name' => :'String',
572
577
  :'email_from_address' => :'String',
573
578
  :'email_preheader' => :'String',
579
+ :'disable_email_click_tracking' => :'Boolean',
574
580
  :'include_unsubscribed' => :'Boolean',
575
581
  :'sms_from' => :'String',
576
582
  :'sms_media_urls' => :'Array<String>',
577
- :'filters' => :'Array<Filter>',
583
+ :'filters' => :'Array<FilterExpression>',
578
584
  :'custom_data' => :'Object'
579
585
  }
580
586
  end
@@ -582,8 +588,7 @@ module OneSignal
582
588
  # List of attributes with nullable: true
583
589
  def self.openapi_nullable
584
590
  Set.new([
585
- :'include_player_ids',
586
- :'include_external_user_ids',
591
+ :'include_subscription_ids',
587
592
  :'include_aliases',
588
593
  :'name',
589
594
  :'is_ios',
@@ -655,10 +660,13 @@ module OneSignal
655
660
  :'adm_group',
656
661
  :'adm_group_message',
657
662
  :'thread_id',
663
+ :'ios_relevance_score',
664
+ :'ios_interruption_level',
658
665
  :'email_subject',
659
666
  :'email_from_name',
660
667
  :'email_from_address',
661
668
  :'email_preheader',
669
+ :'disable_email_click_tracking',
662
670
  :'sms_from',
663
671
  :'sms_media_urls',
664
672
  :'filters',
@@ -701,15 +709,9 @@ module OneSignal
701
709
  end
702
710
  end
703
711
 
704
- if attributes.key?(:'include_player_ids')
705
- if (value = attributes[:'include_player_ids']).is_a?(Array)
706
- self.include_player_ids = value
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
712
+ if attributes.key?(:'include_subscription_ids')
713
+ if (value = attributes[:'include_subscription_ids']).is_a?(Array)
714
+ self.include_subscription_ids = value
713
715
  end
714
716
  end
715
717
 
@@ -762,7 +764,9 @@ module OneSignal
762
764
  end
763
765
 
764
766
  if attributes.key?(:'include_aliases')
765
- self.include_aliases = attributes[:'include_aliases']
767
+ if (value = attributes[:'include_aliases']).is_a?(Hash)
768
+ self.include_aliases = value
769
+ end
766
770
  end
767
771
 
768
772
  if attributes.key?(:'target_channel')
@@ -825,10 +829,6 @@ module OneSignal
825
829
  self.is_chrome = attributes[:'is_chrome']
826
830
  end
827
831
 
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
832
  if attributes.key?(:'app_id')
833
833
  self.app_id = attributes[:'app_id']
834
834
  end
@@ -1105,6 +1105,14 @@ module OneSignal
1105
1105
  self.summary_arg_count = attributes[:'summary_arg_count']
1106
1106
  end
1107
1107
 
1108
+ if attributes.key?(:'ios_relevance_score')
1109
+ self.ios_relevance_score = attributes[:'ios_relevance_score']
1110
+ end
1111
+
1112
+ if attributes.key?(:'ios_interruption_level')
1113
+ self.ios_interruption_level = attributes[:'ios_interruption_level']
1114
+ end
1115
+
1108
1116
  if attributes.key?(:'email_subject')
1109
1117
  self.email_subject = attributes[:'email_subject']
1110
1118
  end
@@ -1125,6 +1133,10 @@ module OneSignal
1125
1133
  self.email_preheader = attributes[:'email_preheader']
1126
1134
  end
1127
1135
 
1136
+ if attributes.key?(:'disable_email_click_tracking')
1137
+ self.disable_email_click_tracking = attributes[:'disable_email_click_tracking']
1138
+ end
1139
+
1128
1140
  if attributes.key?(:'include_unsubscribed')
1129
1141
  self.include_unsubscribed = attributes[:'include_unsubscribed']
1130
1142
  end
@@ -1199,8 +1211,7 @@ module OneSignal
1199
1211
  self.class == o.class &&
1200
1212
  included_segments == o.included_segments &&
1201
1213
  excluded_segments == o.excluded_segments &&
1202
- include_player_ids == o.include_player_ids &&
1203
- include_external_user_ids == o.include_external_user_ids &&
1214
+ include_subscription_ids == o.include_subscription_ids &&
1204
1215
  include_email_tokens == o.include_email_tokens &&
1205
1216
  include_phone_numbers == o.include_phone_numbers &&
1206
1217
  include_ios_tokens == o.include_ios_tokens &&
@@ -1225,7 +1236,6 @@ module OneSignal
1225
1236
  is_wp_wns == o.is_wp_wns &&
1226
1237
  is_adm == o.is_adm &&
1227
1238
  is_chrome == o.is_chrome &&
1228
- channel_for_external_user_ids == o.channel_for_external_user_ids &&
1229
1239
  app_id == o.app_id &&
1230
1240
  external_id == o.external_id &&
1231
1241
  idempotency_key == o.idempotency_key &&
@@ -1294,11 +1304,14 @@ module OneSignal
1294
1304
  thread_id == o.thread_id &&
1295
1305
  summary_arg == o.summary_arg &&
1296
1306
  summary_arg_count == o.summary_arg_count &&
1307
+ ios_relevance_score == o.ios_relevance_score &&
1308
+ ios_interruption_level == o.ios_interruption_level &&
1297
1309
  email_subject == o.email_subject &&
1298
1310
  email_body == o.email_body &&
1299
1311
  email_from_name == o.email_from_name &&
1300
1312
  email_from_address == o.email_from_address &&
1301
1313
  email_preheader == o.email_preheader &&
1314
+ disable_email_click_tracking == o.disable_email_click_tracking &&
1302
1315
  include_unsubscribed == o.include_unsubscribed &&
1303
1316
  sms_from == o.sms_from &&
1304
1317
  sms_media_urls == o.sms_media_urls &&
@@ -1315,7 +1328,7 @@ module OneSignal
1315
1328
  # Calculates hash code according to all attributes.
1316
1329
  # @return [Integer] Hash code
1317
1330
  def hash
1318
- [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].hash
1331
+ [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, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash
1319
1332
  end
1320
1333
 
1321
1334
  # 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.4.1
6
+ The version of the OpenAPI document: 5.2.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
 
@@ -272,6 +275,9 @@ module OneSignal
272
275
  # 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.
273
276
  attr_accessor :email_preheader
274
277
 
278
+ # Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked.
279
+ attr_accessor :disable_email_click_tracking
280
+
275
281
  # 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.
276
282
  attr_accessor :include_unsubscribed
277
283
 
@@ -325,7 +331,6 @@ module OneSignal
325
331
  :'is_wp_wns' => :'isWP_WNS',
326
332
  :'is_adm' => :'isAdm',
327
333
  :'is_chrome' => :'isChrome',
328
- :'channel_for_external_user_ids' => :'channel_for_external_user_ids',
329
334
  :'app_id' => :'app_id',
330
335
  :'external_id' => :'external_id',
331
336
  :'idempotency_key' => :'idempotency_key',
@@ -394,11 +399,14 @@ module OneSignal
394
399
  :'thread_id' => :'thread_id',
395
400
  :'summary_arg' => :'summary_arg',
396
401
  :'summary_arg_count' => :'summary_arg_count',
402
+ :'ios_relevance_score' => :'ios_relevance_score',
403
+ :'ios_interruption_level' => :'ios_interruption_level',
397
404
  :'email_subject' => :'email_subject',
398
405
  :'email_body' => :'email_body',
399
406
  :'email_from_name' => :'email_from_name',
400
407
  :'email_from_address' => :'email_from_address',
401
408
  :'email_preheader' => :'email_preheader',
409
+ :'disable_email_click_tracking' => :'disable_email_click_tracking',
402
410
  :'include_unsubscribed' => :'include_unsubscribed',
403
411
  :'sms_from' => :'sms_from',
404
412
  :'sms_media_urls' => :'sms_media_urls',
@@ -429,13 +437,12 @@ module OneSignal
429
437
  :'is_wp_wns' => :'Boolean',
430
438
  :'is_adm' => :'Boolean',
431
439
  :'is_chrome' => :'Boolean',
432
- :'channel_for_external_user_ids' => :'String',
433
440
  :'app_id' => :'String',
434
441
  :'external_id' => :'String',
435
442
  :'idempotency_key' => :'String',
436
- :'contents' => :'StringMap',
437
- :'headings' => :'StringMap',
438
- :'subtitle' => :'StringMap',
443
+ :'contents' => :'LanguageStringMap',
444
+ :'headings' => :'LanguageStringMap',
445
+ :'subtitle' => :'LanguageStringMap',
439
446
  :'data' => :'Object',
440
447
  :'huawei_msg_type' => :'String',
441
448
  :'url' => :'String',
@@ -452,7 +459,7 @@ module OneSignal
452
459
  :'chrome_big_picture' => :'String',
453
460
  :'chrome_web_image' => :'String',
454
461
  :'buttons' => :'Array<Button>',
455
- :'web_buttons' => :'Array<Button>',
462
+ :'web_buttons' => :'Array<WebButton>',
456
463
  :'ios_category' => :'String',
457
464
  :'android_channel_id' => :'String',
458
465
  :'huawei_channel_id' => :'String',
@@ -498,15 +505,18 @@ module OneSignal
498
505
  :'thread_id' => :'String',
499
506
  :'summary_arg' => :'String',
500
507
  :'summary_arg_count' => :'Integer',
508
+ :'ios_relevance_score' => :'Float',
509
+ :'ios_interruption_level' => :'String',
501
510
  :'email_subject' => :'String',
502
511
  :'email_body' => :'String',
503
512
  :'email_from_name' => :'String',
504
513
  :'email_from_address' => :'String',
505
514
  :'email_preheader' => :'String',
515
+ :'disable_email_click_tracking' => :'Boolean',
506
516
  :'include_unsubscribed' => :'Boolean',
507
517
  :'sms_from' => :'String',
508
518
  :'sms_media_urls' => :'Array<String>',
509
- :'filters' => :'Array<Filter>',
519
+ :'filters' => :'Array<FilterExpression>',
510
520
  :'custom_data' => :'Object'
511
521
  }
512
522
  end
@@ -584,10 +594,13 @@ module OneSignal
584
594
  :'adm_group',
585
595
  :'adm_group_message',
586
596
  :'thread_id',
597
+ :'ios_relevance_score',
598
+ :'ios_interruption_level',
587
599
  :'email_subject',
588
600
  :'email_from_name',
589
601
  :'email_from_address',
590
602
  :'email_preheader',
603
+ :'disable_email_click_tracking',
591
604
  :'sms_from',
592
605
  :'sms_media_urls',
593
606
  :'filters',
@@ -666,10 +679,6 @@ module OneSignal
666
679
  self.is_chrome = attributes[:'is_chrome']
667
680
  end
668
681
 
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
682
  if attributes.key?(:'app_id')
674
683
  self.app_id = attributes[:'app_id']
675
684
  end
@@ -946,6 +955,14 @@ module OneSignal
946
955
  self.summary_arg_count = attributes[:'summary_arg_count']
947
956
  end
948
957
 
958
+ if attributes.key?(:'ios_relevance_score')
959
+ self.ios_relevance_score = attributes[:'ios_relevance_score']
960
+ end
961
+
962
+ if attributes.key?(:'ios_interruption_level')
963
+ self.ios_interruption_level = attributes[:'ios_interruption_level']
964
+ end
965
+
949
966
  if attributes.key?(:'email_subject')
950
967
  self.email_subject = attributes[:'email_subject']
951
968
  end
@@ -966,6 +983,10 @@ module OneSignal
966
983
  self.email_preheader = attributes[:'email_preheader']
967
984
  end
968
985
 
986
+ if attributes.key?(:'disable_email_click_tracking')
987
+ self.disable_email_click_tracking = attributes[:'disable_email_click_tracking']
988
+ end
989
+
969
990
  if attributes.key?(:'include_unsubscribed')
970
991
  self.include_unsubscribed = attributes[:'include_unsubscribed']
971
992
  end
@@ -1035,7 +1056,6 @@ module OneSignal
1035
1056
  is_wp_wns == o.is_wp_wns &&
1036
1057
  is_adm == o.is_adm &&
1037
1058
  is_chrome == o.is_chrome &&
1038
- channel_for_external_user_ids == o.channel_for_external_user_ids &&
1039
1059
  app_id == o.app_id &&
1040
1060
  external_id == o.external_id &&
1041
1061
  idempotency_key == o.idempotency_key &&
@@ -1104,11 +1124,14 @@ module OneSignal
1104
1124
  thread_id == o.thread_id &&
1105
1125
  summary_arg == o.summary_arg &&
1106
1126
  summary_arg_count == o.summary_arg_count &&
1127
+ ios_relevance_score == o.ios_relevance_score &&
1128
+ ios_interruption_level == o.ios_interruption_level &&
1107
1129
  email_subject == o.email_subject &&
1108
1130
  email_body == o.email_body &&
1109
1131
  email_from_name == o.email_from_name &&
1110
1132
  email_from_address == o.email_from_address &&
1111
1133
  email_preheader == o.email_preheader &&
1134
+ disable_email_click_tracking == o.disable_email_click_tracking &&
1112
1135
  include_unsubscribed == o.include_unsubscribed &&
1113
1136
  sms_from == o.sms_from &&
1114
1137
  sms_media_urls == o.sms_media_urls &&
@@ -1125,7 +1148,7 @@ module OneSignal
1125
1148
  # Calculates hash code according to all attributes.
1126
1149
  # @return [Integer] Hash code
1127
1150
  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, 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].hash
1151
+ [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, disable_email_click_tracking, include_unsubscribed, sms_from, sms_media_urls, filters, custom_data].hash
1129
1152
  end
1130
1153
 
1131
1154
  # 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.4.1
6
+ The version of the OpenAPI document: 5.2.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.4.1
6
+ The version of the OpenAPI document: 5.2.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT