onesignal 5.10.0 → 5.11.1

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 (190) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +3 -3
  5. data/docs/AuditLogActor.md +26 -0
  6. data/docs/AuditLogContext.md +24 -0
  7. data/docs/AuditLogEvent.md +36 -0
  8. data/docs/AuditLogTarget.md +24 -0
  9. data/docs/BasicNotification.md +2 -0
  10. data/docs/BasicNotificationAllOf.md +2 -0
  11. data/docs/DefaultApi.md +268 -1
  12. data/docs/GetSegmentSuccessResponse.md +20 -0
  13. data/docs/ListAuditLogsSuccessResponse.md +22 -0
  14. data/docs/Notification.md +2 -0
  15. data/docs/NotificationWithMeta.md +2 -0
  16. data/docs/SegmentDetails.md +28 -0
  17. data/docs/UpdateSegmentRequest.md +22 -0
  18. data/docs/UpdateSegmentSuccessResponse.md +20 -0
  19. data/lib/onesignal/api/default_api.rb +274 -2
  20. data/lib/onesignal/api_client.rb +2 -2
  21. data/lib/onesignal/api_error.rb +1 -1
  22. data/lib/onesignal/configuration.rb +1 -1
  23. data/lib/onesignal/models/api_key_token.rb +1 -1
  24. data/lib/onesignal/models/api_key_tokens_list_response.rb +1 -1
  25. data/lib/onesignal/models/app.rb +1 -1
  26. data/lib/onesignal/models/audit_log_actor.rb +261 -0
  27. data/lib/onesignal/models/audit_log_context.rb +251 -0
  28. data/lib/onesignal/models/audit_log_event.rb +310 -0
  29. data/lib/onesignal/models/audit_log_target.rb +251 -0
  30. data/lib/onesignal/models/basic_notification.rb +13 -2
  31. data/lib/onesignal/models/basic_notification_all_of.rb +13 -2
  32. data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
  33. data/lib/onesignal/models/button.rb +1 -1
  34. data/lib/onesignal/models/copy_template_request.rb +1 -1
  35. data/lib/onesignal/models/create_api_key_request.rb +1 -1
  36. data/lib/onesignal/models/create_api_key_response.rb +1 -1
  37. data/lib/onesignal/models/create_notification_success_response.rb +1 -1
  38. data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
  39. data/lib/onesignal/models/create_segment_success_response.rb +1 -1
  40. data/lib/onesignal/models/create_template_request.rb +1 -1
  41. data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
  42. data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
  43. data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
  44. data/lib/onesignal/models/custom_event.rb +1 -1
  45. data/lib/onesignal/models/custom_events_request.rb +1 -1
  46. data/lib/onesignal/models/delivery_data.rb +1 -1
  47. data/lib/onesignal/models/export_events_success_response.rb +1 -1
  48. data/lib/onesignal/models/export_subscriptions_request_body.rb +1 -1
  49. data/lib/onesignal/models/export_subscriptions_success_response.rb +1 -1
  50. data/lib/onesignal/models/filter.rb +1 -1
  51. data/lib/onesignal/models/filter_expression.rb +1 -1
  52. data/lib/onesignal/models/generic_error.rb +1 -1
  53. data/lib/onesignal/models/generic_success_bool_response.rb +1 -1
  54. data/lib/onesignal/models/get_notification_history_request_body.rb +1 -1
  55. data/lib/onesignal/models/get_segment_success_response.rb +229 -0
  56. data/lib/onesignal/models/get_segments_success_response.rb +1 -1
  57. data/lib/onesignal/models/language_string_map.rb +1 -1
  58. data/lib/onesignal/models/list_audit_logs_success_response.rb +242 -0
  59. data/lib/onesignal/models/notification.rb +13 -2
  60. data/lib/onesignal/models/notification_all_of.rb +1 -1
  61. data/lib/onesignal/models/notification_history_success_response.rb +1 -1
  62. data/lib/onesignal/models/notification_slice.rb +1 -1
  63. data/lib/onesignal/models/notification_target.rb +1 -1
  64. data/lib/onesignal/models/notification_with_meta.rb +13 -2
  65. data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
  66. data/lib/onesignal/models/operator.rb +1 -1
  67. data/lib/onesignal/models/outcome_data.rb +1 -1
  68. data/lib/onesignal/models/outcomes_data.rb +1 -1
  69. data/lib/onesignal/models/platform_delivery_data.rb +1 -1
  70. data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
  71. data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
  72. data/lib/onesignal/models/properties_body.rb +1 -1
  73. data/lib/onesignal/models/properties_deltas.rb +1 -1
  74. data/lib/onesignal/models/properties_object.rb +1 -1
  75. data/lib/onesignal/models/purchase.rb +1 -1
  76. data/lib/onesignal/models/rate_limit_error.rb +1 -1
  77. data/lib/onesignal/models/segment.rb +1 -1
  78. data/lib/onesignal/models/segment_data.rb +1 -1
  79. data/lib/onesignal/models/segment_details.rb +308 -0
  80. data/lib/onesignal/models/segment_notification_target.rb +1 -1
  81. data/lib/onesignal/models/start_live_activity_request.rb +1 -1
  82. data/lib/onesignal/models/start_live_activity_success_response.rb +1 -1
  83. data/lib/onesignal/models/subscription.rb +1 -1
  84. data/lib/onesignal/models/subscription_body.rb +1 -1
  85. data/lib/onesignal/models/subscription_notification_target.rb +1 -1
  86. data/lib/onesignal/models/template_resource.rb +1 -1
  87. data/lib/onesignal/models/templates_list_response.rb +1 -1
  88. data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
  89. data/lib/onesignal/models/update_api_key_request.rb +1 -1
  90. data/lib/onesignal/models/update_live_activity_request.rb +1 -1
  91. data/lib/onesignal/models/update_live_activity_success_response.rb +1 -1
  92. data/lib/onesignal/models/update_segment_request.rb +281 -0
  93. data/lib/onesignal/models/update_segment_success_response.rb +230 -0
  94. data/lib/onesignal/models/update_template_request.rb +1 -1
  95. data/lib/onesignal/models/update_user_request.rb +1 -1
  96. data/lib/onesignal/models/user.rb +1 -1
  97. data/lib/onesignal/models/user_identity_body.rb +1 -1
  98. data/lib/onesignal/models/web_button.rb +1 -1
  99. data/lib/onesignal/version.rb +2 -2
  100. data/lib/onesignal.rb +10 -1
  101. data/onesignal.gemspec +1 -1
  102. data/spec/api/default_api_spec.rb +52 -1
  103. data/spec/api_client_spec.rb +1 -1
  104. data/spec/configuration_spec.rb +1 -1
  105. data/spec/models/api_key_token_spec.rb +1 -1
  106. data/spec/models/api_key_tokens_list_response_spec.rb +1 -1
  107. data/spec/models/app_spec.rb +1 -1
  108. data/spec/models/audit_log_actor_spec.rb +58 -0
  109. data/spec/models/audit_log_context_spec.rb +52 -0
  110. data/spec/models/audit_log_event_spec.rb +88 -0
  111. data/spec/models/audit_log_target_spec.rb +52 -0
  112. data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
  113. data/spec/models/basic_notification_all_of_spec.rb +7 -1
  114. data/spec/models/basic_notification_spec.rb +7 -1
  115. data/spec/models/button_spec.rb +1 -1
  116. data/spec/models/copy_template_request_spec.rb +1 -1
  117. data/spec/models/create_api_key_request_spec.rb +1 -1
  118. data/spec/models/create_api_key_response_spec.rb +1 -1
  119. data/spec/models/create_notification_success_response_spec.rb +1 -1
  120. data/spec/models/create_segment_conflict_response_spec.rb +1 -1
  121. data/spec/models/create_segment_success_response_spec.rb +1 -1
  122. data/spec/models/create_template_request_spec.rb +1 -1
  123. data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
  124. data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
  125. data/spec/models/create_user_conflict_response_spec.rb +1 -1
  126. data/spec/models/custom_event_spec.rb +1 -1
  127. data/spec/models/custom_events_request_spec.rb +1 -1
  128. data/spec/models/delivery_data_spec.rb +1 -1
  129. data/spec/models/export_events_success_response_spec.rb +1 -1
  130. data/spec/models/export_subscriptions_request_body_spec.rb +1 -1
  131. data/spec/models/export_subscriptions_success_response_spec.rb +1 -1
  132. data/spec/models/filter_expression_spec.rb +1 -1
  133. data/spec/models/filter_spec.rb +1 -1
  134. data/spec/models/generic_error_spec.rb +1 -1
  135. data/spec/models/generic_success_bool_response_spec.rb +1 -1
  136. data/spec/models/get_notification_history_request_body_spec.rb +1 -1
  137. data/spec/models/get_segment_success_response_spec.rb +40 -0
  138. data/spec/models/get_segments_success_response_spec.rb +1 -1
  139. data/spec/models/language_string_map_spec.rb +1 -1
  140. data/spec/models/list_audit_logs_success_response_spec.rb +46 -0
  141. data/spec/models/notification_all_of_spec.rb +1 -1
  142. data/spec/models/notification_history_success_response_spec.rb +1 -1
  143. data/spec/models/notification_slice_spec.rb +1 -1
  144. data/spec/models/notification_spec.rb +7 -1
  145. data/spec/models/notification_target_spec.rb +1 -1
  146. data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
  147. data/spec/models/notification_with_meta_spec.rb +7 -1
  148. data/spec/models/operator_spec.rb +1 -1
  149. data/spec/models/outcome_data_spec.rb +1 -1
  150. data/spec/models/outcomes_data_spec.rb +1 -1
  151. data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
  152. data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
  153. data/spec/models/platform_delivery_data_spec.rb +1 -1
  154. data/spec/models/properties_body_spec.rb +1 -1
  155. data/spec/models/properties_deltas_spec.rb +1 -1
  156. data/spec/models/properties_object_spec.rb +1 -1
  157. data/spec/models/purchase_spec.rb +1 -1
  158. data/spec/models/rate_limit_error_spec.rb +1 -1
  159. data/spec/models/segment_data_spec.rb +1 -1
  160. data/spec/models/segment_details_spec.rb +68 -0
  161. data/spec/models/segment_notification_target_spec.rb +1 -1
  162. data/spec/models/segment_spec.rb +1 -1
  163. data/spec/models/start_live_activity_request_spec.rb +1 -1
  164. data/spec/models/start_live_activity_success_response_spec.rb +1 -1
  165. data/spec/models/subscription_body_spec.rb +1 -1
  166. data/spec/models/subscription_notification_target_spec.rb +1 -1
  167. data/spec/models/subscription_spec.rb +1 -1
  168. data/spec/models/template_resource_spec.rb +1 -1
  169. data/spec/models/templates_list_response_spec.rb +1 -1
  170. data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
  171. data/spec/models/update_api_key_request_spec.rb +1 -1
  172. data/spec/models/update_live_activity_request_spec.rb +1 -1
  173. data/spec/models/update_live_activity_success_response_spec.rb +1 -1
  174. data/spec/models/update_segment_request_spec.rb +46 -0
  175. data/spec/models/update_segment_success_response_spec.rb +40 -0
  176. data/spec/models/update_template_request_spec.rb +1 -1
  177. data/spec/models/update_user_request_spec.rb +1 -1
  178. data/spec/models/user_identity_body_spec.rb +1 -1
  179. data/spec/models/user_spec.rb +1 -1
  180. data/spec/models/web_button_spec.rb +1 -1
  181. data/spec/spec_helper.rb +1 -1
  182. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  183. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  184. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
  185. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
  186. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  187. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
  188. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  189. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  190. metadata +94 -58
@@ -0,0 +1,251 @@
1
+ =begin
2
+ #OneSignal
3
+
4
+ #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
+
6
+ The version of the OpenAPI document: 5.11.1
7
+ Contact: devrel@onesignal.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module OneSignal
17
+ # A resource the action was performed on.
18
+ class AuditLogTarget
19
+ # UUID of the resource.
20
+ attr_accessor :id
21
+
22
+ # Additional resource-specific data.
23
+ attr_accessor :metadata
24
+
25
+ # Display name of the resource. Absent if unavailable.
26
+ attr_accessor :name
27
+
28
+ # Resource type (e.g. notification, segment, journey, app).
29
+ attr_accessor :type
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'id' => :'id',
35
+ :'metadata' => :'metadata',
36
+ :'name' => :'name',
37
+ :'type' => :'type'
38
+ }
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'id' => :'String',
50
+ :'metadata' => :'Object',
51
+ :'name' => :'String',
52
+ :'type' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::AuditLogTarget` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::AuditLogTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'id')
78
+ self.id = attributes[:'id']
79
+ end
80
+
81
+ if attributes.key?(:'metadata')
82
+ self.metadata = attributes[:'metadata']
83
+ end
84
+
85
+ if attributes.key?(:'name')
86
+ self.name = attributes[:'name']
87
+ end
88
+
89
+ if attributes.key?(:'type')
90
+ self.type = attributes[:'type']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ true
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ id == o.id &&
113
+ metadata == o.metadata &&
114
+ name == o.name &&
115
+ type == o.type
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Integer] Hash code
126
+ def hash
127
+ [id, metadata, name, type].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def self.build_from_hash(attributes)
134
+ new.build_from_hash(attributes)
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def build_from_hash(attributes)
141
+ return nil unless attributes.is_a?(Hash)
142
+ attributes = attributes.transform_keys(&:to_sym)
143
+ self.class.openapi_types.each_pair do |key, type|
144
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
145
+ self.send("#{key}=", nil)
146
+ elsif type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
150
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
+ end
152
+ elsif !attributes[self.class.attribute_map[key]].nil?
153
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
154
+ end
155
+ end
156
+
157
+ self
158
+ end
159
+
160
+ # Deserializes the data based on type
161
+ # @param string type Data type
162
+ # @param string value Value to be deserialized
163
+ # @return [Object] Deserialized data
164
+ def _deserialize(type, value)
165
+ case type.to_sym
166
+ when :Time
167
+ Time.parse(value)
168
+ when :Date
169
+ Date.parse(value)
170
+ when :String
171
+ value.to_s
172
+ when :Integer
173
+ value.to_i
174
+ when :Float
175
+ value.to_f
176
+ when :Boolean
177
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
+ true
179
+ else
180
+ false
181
+ end
182
+ when :Object
183
+ # generic object (usually a Hash), return directly
184
+ value
185
+ when /\AArray<(?<inner_type>.+)>\z/
186
+ inner_type = Regexp.last_match[:inner_type]
187
+ value.map { |v| _deserialize(inner_type, v) }
188
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
+ k_type = Regexp.last_match[:k_type]
190
+ v_type = Regexp.last_match[:v_type]
191
+ {}.tap do |hash|
192
+ value.each do |k, v|
193
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
+ end
195
+ end
196
+ else # model
197
+ # models (e.g. Pet) or oneOf
198
+ klass = OneSignal.const_get(type)
199
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
200
+ end
201
+ end
202
+
203
+ # Returns the string representation of the object
204
+ # @return [String] String presentation of the object
205
+ def to_s
206
+ to_hash.to_s
207
+ end
208
+
209
+ # to_body is an alias to to_hash (backward compatibility)
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_body
212
+ to_hash
213
+ end
214
+
215
+ # Returns the object in the form of hash
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_hash
218
+ hash = {}
219
+ self.class.attribute_map.each_pair do |attr, param|
220
+ value = self.send(attr)
221
+ if value.nil?
222
+ is_nullable = self.class.openapi_nullable.include?(attr)
223
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
224
+ end
225
+
226
+ hash[param] = _to_hash(value)
227
+ end
228
+ hash
229
+ end
230
+
231
+ # Outputs non-array value in the form of hash
232
+ # For object, use to_hash. Otherwise, just return the value
233
+ # @param [Object] value Any valid value
234
+ # @return [Hash] Returns the value in the form of hash
235
+ def _to_hash(value)
236
+ if value.is_a?(Array)
237
+ value.compact.map { |v| _to_hash(v) }
238
+ elsif value.is_a?(Hash)
239
+ {}.tap do |hash|
240
+ value.each { |k, v| hash[k] = _to_hash(v) }
241
+ end
242
+ elsif value.respond_to? :to_hash
243
+ value.to_hash
244
+ else
245
+ value
246
+ end
247
+ end
248
+
249
+ end
250
+
251
+ 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: 5.10.0
6
+ The version of the OpenAPI document: 5.11.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -143,6 +143,9 @@ module OneSignal
143
143
  # Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL.
144
144
  attr_accessor :big_picture
145
145
 
146
+ # Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set.
147
+ attr_accessor :global_image
148
+
146
149
  # Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL.
147
150
  attr_accessor :huawei_big_picture
148
151
 
@@ -427,6 +430,7 @@ module OneSignal
427
430
  :'mutable_content' => :'mutable_content',
428
431
  :'target_content_identifier' => :'target_content_identifier',
429
432
  :'big_picture' => :'big_picture',
433
+ :'global_image' => :'global_image',
430
434
  :'huawei_big_picture' => :'huawei_big_picture',
431
435
  :'adm_big_picture' => :'adm_big_picture',
432
436
  :'chrome_big_picture' => :'chrome_big_picture',
@@ -555,6 +559,7 @@ module OneSignal
555
559
  :'mutable_content' => :'Boolean',
556
560
  :'target_content_identifier' => :'String',
557
561
  :'big_picture' => :'String',
562
+ :'global_image' => :'String',
558
563
  :'huawei_big_picture' => :'String',
559
564
  :'adm_big_picture' => :'String',
560
565
  :'chrome_big_picture' => :'String',
@@ -661,6 +666,7 @@ module OneSignal
661
666
  :'content_available',
662
667
  :'target_content_identifier',
663
668
  :'big_picture',
669
+ :'global_image',
664
670
  :'huawei_big_picture',
665
671
  :'adm_big_picture',
666
672
  :'chrome_big_picture',
@@ -959,6 +965,10 @@ module OneSignal
959
965
  self.big_picture = attributes[:'big_picture']
960
966
  end
961
967
 
968
+ if attributes.key?(:'global_image')
969
+ self.global_image = attributes[:'global_image']
970
+ end
971
+
962
972
  if attributes.key?(:'huawei_big_picture')
963
973
  self.huawei_big_picture = attributes[:'huawei_big_picture']
964
974
  end
@@ -1377,6 +1387,7 @@ module OneSignal
1377
1387
  mutable_content == o.mutable_content &&
1378
1388
  target_content_identifier == o.target_content_identifier &&
1379
1389
  big_picture == o.big_picture &&
1390
+ global_image == o.global_image &&
1380
1391
  huawei_big_picture == o.huawei_big_picture &&
1381
1392
  adm_big_picture == o.adm_big_picture &&
1382
1393
  chrome_big_picture == o.chrome_big_picture &&
@@ -1460,7 +1471,7 @@ module OneSignal
1460
1471
  # Calculates hash code according to all attributes.
1461
1472
  # @return [Integer] Hash code
1462
1473
  def hash
1463
- [included_segments, excluded_segments, include_subscription_ids, include_email_tokens, email_to, 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_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, email_bcc, email_sender_domain, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
1474
+ [included_segments, excluded_segments, include_subscription_ids, include_email_tokens, email_to, 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, global_image, 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_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, email_bcc, email_sender_domain, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
1464
1475
  end
1465
1476
 
1466
1477
  # 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.10.0
6
+ The version of the OpenAPI document: 5.11.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -102,6 +102,9 @@ module OneSignal
102
102
  # Channel: Push Notifications Platform: Android Picture to display in the expanded view. Can be a drawable resource name or a URL.
103
103
  attr_accessor :big_picture
104
104
 
105
+ # Channel: Push Notifications Platform: All Picture to display on all platforms that support it. Must be a URL to an image file. Platform-specific picture fields (big_picture, huawei_big_picture, adm_big_picture, chrome_web_image, ios_attachments, firefox_icon) take precedence over this value when set.
106
+ attr_accessor :global_image
107
+
105
108
  # Channel: Push Notifications Platform: Huawei Picture to display in the expanded view. Can be a drawable resource name or a URL.
106
109
  attr_accessor :huawei_big_picture
107
110
 
@@ -372,6 +375,7 @@ module OneSignal
372
375
  :'mutable_content' => :'mutable_content',
373
376
  :'target_content_identifier' => :'target_content_identifier',
374
377
  :'big_picture' => :'big_picture',
378
+ :'global_image' => :'global_image',
375
379
  :'huawei_big_picture' => :'huawei_big_picture',
376
380
  :'adm_big_picture' => :'adm_big_picture',
377
381
  :'chrome_big_picture' => :'chrome_big_picture',
@@ -486,6 +490,7 @@ module OneSignal
486
490
  :'mutable_content' => :'Boolean',
487
491
  :'target_content_identifier' => :'String',
488
492
  :'big_picture' => :'String',
493
+ :'global_image' => :'String',
489
494
  :'huawei_big_picture' => :'String',
490
495
  :'adm_big_picture' => :'String',
491
496
  :'chrome_big_picture' => :'String',
@@ -590,6 +595,7 @@ module OneSignal
590
595
  :'content_available',
591
596
  :'target_content_identifier',
592
597
  :'big_picture',
598
+ :'global_image',
593
599
  :'huawei_big_picture',
594
600
  :'adm_big_picture',
595
601
  :'chrome_big_picture',
@@ -798,6 +804,10 @@ module OneSignal
798
804
  self.big_picture = attributes[:'big_picture']
799
805
  end
800
806
 
807
+ if attributes.key?(:'global_image')
808
+ self.global_image = attributes[:'global_image']
809
+ end
810
+
801
811
  if attributes.key?(:'huawei_big_picture')
802
812
  self.huawei_big_picture = attributes[:'huawei_big_picture']
803
813
  end
@@ -1185,6 +1195,7 @@ module OneSignal
1185
1195
  mutable_content == o.mutable_content &&
1186
1196
  target_content_identifier == o.target_content_identifier &&
1187
1197
  big_picture == o.big_picture &&
1198
+ global_image == o.global_image &&
1188
1199
  huawei_big_picture == o.huawei_big_picture &&
1189
1200
  adm_big_picture == o.adm_big_picture &&
1190
1201
  chrome_big_picture == o.chrome_big_picture &&
@@ -1268,7 +1279,7 @@ module OneSignal
1268
1279
  # Calculates hash code according to all attributes.
1269
1280
  # @return [Integer] Hash code
1270
1281
  def hash
1271
- [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_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, email_bcc, email_sender_domain, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
1282
+ [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, global_image, 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_reply_to_address, email_preheader, disable_email_click_tracking, include_unsubscribed, email_bcc, email_sender_domain, sms_from, sms_media_urls, filters, custom_data, huawei_badge_class, huawei_badge_add_num, huawei_badge_set_num, huawei_category, huawei_bi_tag].hash
1272
1283
  end
1273
1284
 
1274
1285
  # 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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
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.10.0
6
+ The version of the OpenAPI document: 5.11.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT