onesignal 5.3.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +57 -186
  4. data/docs/BasicNotification.md +4 -2
  5. data/docs/BasicNotificationAllOf.md +3 -1
  6. data/docs/CreateNotificationSuccessResponse.md +3 -3
  7. data/docs/CreateTemplateRequest.md +6 -0
  8. data/docs/DefaultApi.md +50 -46
  9. data/docs/Notification.md +4 -2
  10. data/docs/NotificationTarget.md +1 -1
  11. data/docs/NotificationWithMeta.md +7 -3
  12. data/docs/NotificationWithMetaAllOf.md +5 -1
  13. data/docs/StartLiveActivityRequest.md +1 -1
  14. data/docs/SubscriptionNotificationTarget.md +1 -1
  15. data/docs/UpdateTemplateRequest.md +6 -0
  16. data/lib/onesignal/api/default_api.rb +3 -3
  17. data/lib/onesignal/api_client.rb +2 -2
  18. data/lib/onesignal/api_error.rb +1 -1
  19. data/lib/onesignal/configuration.rb +4 -5
  20. data/lib/onesignal/models/api_key_token.rb +1 -1
  21. data/lib/onesignal/models/api_key_tokens_list_response.rb +1 -1
  22. data/lib/onesignal/models/app.rb +1 -1
  23. data/lib/onesignal/models/basic_notification.rb +34 -4
  24. data/lib/onesignal/models/basic_notification_all_of.rb +33 -3
  25. data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
  26. data/lib/onesignal/models/button.rb +1 -1
  27. data/lib/onesignal/models/copy_template_request.rb +1 -1
  28. data/lib/onesignal/models/create_api_key_request.rb +1 -1
  29. data/lib/onesignal/models/create_api_key_response.rb +1 -1
  30. data/lib/onesignal/models/create_notification_success_response.rb +4 -2
  31. data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
  32. data/lib/onesignal/models/create_segment_success_response.rb +1 -1
  33. data/lib/onesignal/models/create_template_request.rb +48 -2
  34. data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
  35. data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
  36. data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
  37. data/lib/onesignal/models/custom_event.rb +1 -1
  38. data/lib/onesignal/models/custom_events_request.rb +1 -1
  39. data/lib/onesignal/models/delivery_data.rb +1 -1
  40. data/lib/onesignal/models/export_events_success_response.rb +1 -1
  41. data/lib/onesignal/models/export_subscriptions_request_body.rb +1 -1
  42. data/lib/onesignal/models/export_subscriptions_success_response.rb +1 -1
  43. data/lib/onesignal/models/filter.rb +1 -1
  44. data/lib/onesignal/models/filter_expression.rb +1 -1
  45. data/lib/onesignal/models/generic_error.rb +1 -1
  46. data/lib/onesignal/models/generic_success_bool_response.rb +1 -1
  47. data/lib/onesignal/models/get_notification_history_request_body.rb +1 -1
  48. data/lib/onesignal/models/get_segments_success_response.rb +1 -1
  49. data/lib/onesignal/models/language_string_map.rb +1 -1
  50. data/lib/onesignal/models/notification.rb +34 -4
  51. data/lib/onesignal/models/notification_all_of.rb +1 -1
  52. data/lib/onesignal/models/notification_history_success_response.rb +1 -1
  53. data/lib/onesignal/models/notification_slice.rb +1 -1
  54. data/lib/onesignal/models/notification_target.rb +2 -2
  55. data/lib/onesignal/models/notification_with_meta.rb +33 -7
  56. data/lib/onesignal/models/notification_with_meta_all_of.rb +29 -5
  57. data/lib/onesignal/models/operator.rb +1 -1
  58. data/lib/onesignal/models/outcome_data.rb +1 -1
  59. data/lib/onesignal/models/outcomes_data.rb +1 -1
  60. data/lib/onesignal/models/platform_delivery_data.rb +1 -1
  61. data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
  62. data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
  63. data/lib/onesignal/models/properties_body.rb +1 -1
  64. data/lib/onesignal/models/properties_deltas.rb +1 -1
  65. data/lib/onesignal/models/properties_object.rb +1 -1
  66. data/lib/onesignal/models/purchase.rb +1 -1
  67. data/lib/onesignal/models/rate_limit_error.rb +1 -1
  68. data/lib/onesignal/models/segment.rb +1 -1
  69. data/lib/onesignal/models/segment_data.rb +1 -1
  70. data/lib/onesignal/models/segment_notification_target.rb +1 -1
  71. data/lib/onesignal/models/start_live_activity_request.rb +2 -2
  72. data/lib/onesignal/models/start_live_activity_success_response.rb +1 -1
  73. data/lib/onesignal/models/subscription.rb +1 -1
  74. data/lib/onesignal/models/subscription_body.rb +1 -1
  75. data/lib/onesignal/models/subscription_notification_target.rb +2 -2
  76. data/lib/onesignal/models/template_resource.rb +1 -1
  77. data/lib/onesignal/models/templates_list_response.rb +1 -1
  78. data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
  79. data/lib/onesignal/models/update_api_key_request.rb +1 -1
  80. data/lib/onesignal/models/update_live_activity_request.rb +1 -1
  81. data/lib/onesignal/models/update_live_activity_success_response.rb +1 -1
  82. data/lib/onesignal/models/update_template_request.rb +48 -2
  83. data/lib/onesignal/models/update_user_request.rb +1 -1
  84. data/lib/onesignal/models/user.rb +1 -1
  85. data/lib/onesignal/models/user_identity_body.rb +1 -1
  86. data/lib/onesignal/models/web_button.rb +1 -1
  87. data/lib/onesignal/version.rb +2 -2
  88. data/lib/onesignal.rb +1 -1
  89. data/onesignal.gemspec +1 -1
  90. data/spec/api/default_api_spec.rb +2 -2
  91. data/spec/api_client_spec.rb +1 -1
  92. data/spec/configuration_spec.rb +1 -1
  93. data/spec/models/api_key_token_spec.rb +1 -1
  94. data/spec/models/api_key_tokens_list_response_spec.rb +1 -1
  95. data/spec/models/app_spec.rb +1 -1
  96. data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
  97. data/spec/models/basic_notification_all_of_spec.rb +7 -1
  98. data/spec/models/basic_notification_spec.rb +7 -1
  99. data/spec/models/button_spec.rb +1 -1
  100. data/spec/models/copy_template_request_spec.rb +1 -1
  101. data/spec/models/create_api_key_request_spec.rb +1 -1
  102. data/spec/models/create_api_key_response_spec.rb +1 -1
  103. data/spec/models/create_notification_success_response_spec.rb +1 -1
  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_template_request_spec.rb +19 -1
  107. data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
  108. data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
  109. data/spec/models/create_user_conflict_response_spec.rb +1 -1
  110. data/spec/models/custom_event_spec.rb +1 -1
  111. data/spec/models/custom_events_request_spec.rb +1 -1
  112. data/spec/models/delivery_data_spec.rb +1 -1
  113. data/spec/models/export_events_success_response_spec.rb +1 -1
  114. data/spec/models/export_subscriptions_request_body_spec.rb +1 -1
  115. data/spec/models/export_subscriptions_success_response_spec.rb +1 -1
  116. data/spec/models/filter_expression_spec.rb +1 -1
  117. data/spec/models/filter_spec.rb +1 -1
  118. data/spec/models/generic_error_spec.rb +1 -1
  119. data/spec/models/generic_success_bool_response_spec.rb +1 -1
  120. data/spec/models/get_notification_history_request_body_spec.rb +1 -1
  121. data/spec/models/get_segments_success_response_spec.rb +1 -1
  122. data/spec/models/language_string_map_spec.rb +1 -1
  123. data/spec/models/notification_all_of_spec.rb +1 -1
  124. data/spec/models/notification_history_success_response_spec.rb +1 -1
  125. data/spec/models/notification_slice_spec.rb +1 -1
  126. data/spec/models/notification_spec.rb +7 -1
  127. data/spec/models/notification_target_spec.rb +1 -1
  128. data/spec/models/notification_with_meta_all_of_spec.rb +13 -1
  129. data/spec/models/notification_with_meta_spec.rb +13 -1
  130. data/spec/models/operator_spec.rb +1 -1
  131. data/spec/models/outcome_data_spec.rb +1 -1
  132. data/spec/models/outcomes_data_spec.rb +1 -1
  133. data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
  134. data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
  135. data/spec/models/platform_delivery_data_spec.rb +1 -1
  136. data/spec/models/properties_body_spec.rb +1 -1
  137. data/spec/models/properties_deltas_spec.rb +1 -1
  138. data/spec/models/properties_object_spec.rb +1 -1
  139. data/spec/models/purchase_spec.rb +1 -1
  140. data/spec/models/rate_limit_error_spec.rb +1 -1
  141. data/spec/models/segment_data_spec.rb +1 -1
  142. data/spec/models/segment_notification_target_spec.rb +1 -1
  143. data/spec/models/segment_spec.rb +1 -1
  144. data/spec/models/start_live_activity_request_spec.rb +1 -1
  145. data/spec/models/start_live_activity_success_response_spec.rb +1 -1
  146. data/spec/models/subscription_body_spec.rb +1 -1
  147. data/spec/models/subscription_notification_target_spec.rb +1 -1
  148. data/spec/models/subscription_spec.rb +1 -1
  149. data/spec/models/template_resource_spec.rb +1 -1
  150. data/spec/models/templates_list_response_spec.rb +1 -1
  151. data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
  152. data/spec/models/update_api_key_request_spec.rb +1 -1
  153. data/spec/models/update_live_activity_request_spec.rb +1 -1
  154. data/spec/models/update_live_activity_success_response_spec.rb +1 -1
  155. data/spec/models/update_template_request_spec.rb +19 -1
  156. data/spec/models/update_user_request_spec.rb +1 -1
  157. data/spec/models/user_identity_body_spec.rb +1 -1
  158. data/spec/models/user_spec.rb +1 -1
  159. data/spec/models/web_button_spec.rb +1 -1
  160. data/spec/spec_helper.rb +1 -1
  161. metadata +1 -1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -45,7 +45,7 @@ module OneSignal
45
45
  # Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
46
46
  attr_accessor :idempotency_key
47
47
 
48
- # 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.
48
+ # Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Keys must match API spellings exactly (for example the label for External ID is the string `external_id`; arbitrary keys such as camelCase variants are not aliases and may yield no recipients). Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms.
49
49
  attr_accessor :include_aliases
50
50
 
51
51
  # Specific subscription ids to target. Not compatible with other targeting parameters.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -42,7 +42,7 @@ module OneSignal
42
42
  # 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
43
43
  attr_accessor :include_android_reg_ids
44
44
 
45
- # 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.
45
+ # Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Keys must match API spellings exactly (for example the label for External ID is the string `external_id`; arbitrary keys such as camelCase variants are not aliases and may yield no recipients). Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms.
46
46
  attr_accessor :include_aliases
47
47
 
48
48
  attr_accessor :target_channel
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -20,6 +20,10 @@ module OneSignal
20
20
 
21
21
  attr_accessor :contents
22
22
 
23
+ attr_accessor :headings
24
+
25
+ attr_accessor :subtitle
26
+
23
27
  # Set true for an Email template.
24
28
  attr_accessor :is_email
25
29
 
@@ -29,6 +33,9 @@ module OneSignal
29
33
  # Body of the email (HTML supported).
30
34
  attr_accessor :email_body
31
35
 
36
+ # BCC recipients for the email template. Maximum 5 addresses. Only supported when the email service provider is OneSignal Email.
37
+ attr_accessor :email_bcc
38
+
32
39
  # Set true for an SMS template.
33
40
  attr_accessor :is_sms
34
41
 
@@ -40,9 +47,12 @@ module OneSignal
40
47
  {
41
48
  :'name' => :'name',
42
49
  :'contents' => :'contents',
50
+ :'headings' => :'headings',
51
+ :'subtitle' => :'subtitle',
43
52
  :'is_email' => :'isEmail',
44
53
  :'email_subject' => :'email_subject',
45
54
  :'email_body' => :'email_body',
55
+ :'email_bcc' => :'email_bcc',
46
56
  :'is_sms' => :'isSMS',
47
57
  :'dynamic_content' => :'dynamic_content'
48
58
  }
@@ -58,9 +68,12 @@ module OneSignal
58
68
  {
59
69
  :'name' => :'String',
60
70
  :'contents' => :'LanguageStringMap',
71
+ :'headings' => :'LanguageStringMap',
72
+ :'subtitle' => :'LanguageStringMap',
61
73
  :'is_email' => :'Boolean',
62
74
  :'email_subject' => :'String',
63
75
  :'email_body' => :'String',
76
+ :'email_bcc' => :'Array<String>',
64
77
  :'is_sms' => :'Boolean',
65
78
  :'dynamic_content' => :'String'
66
79
  }
@@ -71,6 +84,7 @@ module OneSignal
71
84
  Set.new([
72
85
  :'email_subject',
73
86
  :'email_body',
87
+ :'email_bcc',
74
88
  :'dynamic_content'
75
89
  ])
76
90
  end
@@ -98,6 +112,14 @@ module OneSignal
98
112
  self.contents = attributes[:'contents']
99
113
  end
100
114
 
115
+ if attributes.key?(:'headings')
116
+ self.headings = attributes[:'headings']
117
+ end
118
+
119
+ if attributes.key?(:'subtitle')
120
+ self.subtitle = attributes[:'subtitle']
121
+ end
122
+
101
123
  if attributes.key?(:'is_email')
102
124
  self.is_email = attributes[:'is_email']
103
125
  end
@@ -110,6 +132,12 @@ module OneSignal
110
132
  self.email_body = attributes[:'email_body']
111
133
  end
112
134
 
135
+ if attributes.key?(:'email_bcc')
136
+ if (value = attributes[:'email_bcc']).is_a?(Array)
137
+ self.email_bcc = value
138
+ end
139
+ end
140
+
113
141
  if attributes.key?(:'is_sms')
114
142
  self.is_sms = attributes[:'is_sms']
115
143
  end
@@ -123,15 +151,30 @@ module OneSignal
123
151
  # @return Array for valid properties with the reasons
124
152
  def list_invalid_properties
125
153
  invalid_properties = Array.new
154
+ if !@email_bcc.nil? && @email_bcc.length > 5
155
+ invalid_properties.push('invalid value for "email_bcc", number of items must be less than or equal to 5.')
156
+ end
157
+
126
158
  invalid_properties
127
159
  end
128
160
 
129
161
  # Check to see if the all the properties in the model are valid
130
162
  # @return true if the model is valid
131
163
  def valid?
164
+ return false if !@email_bcc.nil? && @email_bcc.length > 5
132
165
  true
133
166
  end
134
167
 
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] email_bcc Value to be assigned
170
+ def email_bcc=(email_bcc)
171
+ if !email_bcc.nil? && email_bcc.length > 5
172
+ fail ArgumentError, 'invalid value for "email_bcc", number of items must be less than or equal to 5.'
173
+ end
174
+
175
+ @email_bcc = email_bcc
176
+ end
177
+
135
178
  # Checks equality by comparing each attribute.
136
179
  # @param [Object] Object to be compared
137
180
  def ==(o)
@@ -139,9 +182,12 @@ module OneSignal
139
182
  self.class == o.class &&
140
183
  name == o.name &&
141
184
  contents == o.contents &&
185
+ headings == o.headings &&
186
+ subtitle == o.subtitle &&
142
187
  is_email == o.is_email &&
143
188
  email_subject == o.email_subject &&
144
189
  email_body == o.email_body &&
190
+ email_bcc == o.email_bcc &&
145
191
  is_sms == o.is_sms &&
146
192
  dynamic_content == o.dynamic_content
147
193
  end
@@ -155,7 +201,7 @@ module OneSignal
155
201
  # Calculates hash code according to all attributes.
156
202
  # @return [Integer] Hash code
157
203
  def hash
158
- [name, contents, is_email, email_subject, email_body, is_sms, dynamic_content].hash
204
+ [name, contents, headings, subtitle, is_email, email_subject, email_body, email_bcc, is_sms, dynamic_content].hash
159
205
  end
160
206
 
161
207
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module OneSignal
14
- VERSION = '5.3.0'
14
+ VERSION = '5.5.0'
15
15
  end
data/lib/onesignal.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
data/onesignal.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
7
7
 
8
- The version of the OpenAPI document: 5.3.0
8
+ The version of the OpenAPI document: 5.5.0
9
9
  Contact: devrel@onesignal.com
10
10
  Generated by: https://openapi-generator.tech
11
11
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -126,7 +126,7 @@ describe 'DefaultApi' do
126
126
 
127
127
  # unit tests for create_notification
128
128
  # Create notification
129
- # Sends notifications to your users
129
+ # Sends notifications to your users. **Target by External ID (push example):** set &#x60;include_aliases&#x60; to &#x60;{ \&quot;external_id\&quot;: [\&quot;your-user-id\&quot;] }&#x60; and set &#x60;target_channel&#x60; to &#x60;push&#x60; (or &#x60;email&#x60; / &#x60;sms&#x60; for those channels). Alias object keys must match API labels exactly (for example &#x60;external_id&#x60;, not camelCase). **Do not confuse** the notification-level &#x60;external_id&#x60; field with External ID targeting: top-level &#x60;external_id&#x60; / &#x60;idempotency_key&#x60; are for idempotent notification requests only, not for selecting recipients. **Targeting compatibility:** &#x60;include_aliases&#x60; must not be combined with other targeting modes (segments, filters, subscription IDs, legacy player IDs, etc.). Clients should send only one targeting strategy per request.
130
130
  # @param notification
131
131
  # @param [Hash] opts the optional parameters
132
132
  # @return [CreateNotificationSuccessResponse]
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -581,6 +581,12 @@ describe OneSignal::BasicNotificationAllOf do
581
581
  end
582
582
  end
583
583
 
584
+ describe 'test attribute "email_bcc"' do
585
+ it 'should work' do
586
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
587
+ end
588
+ end
589
+
584
590
  describe 'test attribute "sms_from"' do
585
591
  it 'should work' do
586
592
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -663,6 +663,12 @@ describe OneSignal::BasicNotification do
663
663
  end
664
664
  end
665
665
 
666
+ describe 'test attribute "email_bcc"' do
667
+ it 'should work' do
668
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
669
+ end
670
+ end
671
+
666
672
  describe 'test attribute "sms_from"' do
667
673
  it 'should work' do
668
674
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -43,6 +43,18 @@ describe OneSignal::CreateTemplateRequest do
43
43
  end
44
44
  end
45
45
 
46
+ describe 'test attribute "headings"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "subtitle"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
46
58
  describe 'test attribute "is_email"' do
47
59
  it 'should work' do
48
60
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -61,6 +73,12 @@ describe OneSignal::CreateTemplateRequest do
61
73
  end
62
74
  end
63
75
 
76
+ describe 'test attribute "email_bcc"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
64
82
  describe 'test attribute "is_sms"' do
65
83
  it 'should work' do
66
84
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.3.0
6
+ The version of the OpenAPI document: 5.5.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT