onesignal 5.10.0 → 5.11.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 (186) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -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/DefaultApi.md +267 -0
  10. data/docs/GetSegmentSuccessResponse.md +20 -0
  11. data/docs/ListAuditLogsSuccessResponse.md +22 -0
  12. data/docs/SegmentDetails.md +28 -0
  13. data/docs/UpdateSegmentRequest.md +22 -0
  14. data/docs/UpdateSegmentSuccessResponse.md +20 -0
  15. data/lib/onesignal/api/default_api.rb +273 -1
  16. data/lib/onesignal/api_client.rb +2 -2
  17. data/lib/onesignal/api_error.rb +1 -1
  18. data/lib/onesignal/configuration.rb +1 -1
  19. data/lib/onesignal/models/api_key_token.rb +1 -1
  20. data/lib/onesignal/models/api_key_tokens_list_response.rb +1 -1
  21. data/lib/onesignal/models/app.rb +1 -1
  22. data/lib/onesignal/models/audit_log_actor.rb +261 -0
  23. data/lib/onesignal/models/audit_log_context.rb +251 -0
  24. data/lib/onesignal/models/audit_log_event.rb +310 -0
  25. data/lib/onesignal/models/audit_log_target.rb +251 -0
  26. data/lib/onesignal/models/basic_notification.rb +1 -1
  27. data/lib/onesignal/models/basic_notification_all_of.rb +1 -1
  28. data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
  29. data/lib/onesignal/models/button.rb +1 -1
  30. data/lib/onesignal/models/copy_template_request.rb +1 -1
  31. data/lib/onesignal/models/create_api_key_request.rb +1 -1
  32. data/lib/onesignal/models/create_api_key_response.rb +1 -1
  33. data/lib/onesignal/models/create_notification_success_response.rb +1 -1
  34. data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
  35. data/lib/onesignal/models/create_segment_success_response.rb +1 -1
  36. data/lib/onesignal/models/create_template_request.rb +1 -1
  37. data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
  38. data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
  39. data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
  40. data/lib/onesignal/models/custom_event.rb +1 -1
  41. data/lib/onesignal/models/custom_events_request.rb +1 -1
  42. data/lib/onesignal/models/delivery_data.rb +1 -1
  43. data/lib/onesignal/models/export_events_success_response.rb +1 -1
  44. data/lib/onesignal/models/export_subscriptions_request_body.rb +1 -1
  45. data/lib/onesignal/models/export_subscriptions_success_response.rb +1 -1
  46. data/lib/onesignal/models/filter.rb +1 -1
  47. data/lib/onesignal/models/filter_expression.rb +1 -1
  48. data/lib/onesignal/models/generic_error.rb +1 -1
  49. data/lib/onesignal/models/generic_success_bool_response.rb +1 -1
  50. data/lib/onesignal/models/get_notification_history_request_body.rb +1 -1
  51. data/lib/onesignal/models/get_segment_success_response.rb +229 -0
  52. data/lib/onesignal/models/get_segments_success_response.rb +1 -1
  53. data/lib/onesignal/models/language_string_map.rb +1 -1
  54. data/lib/onesignal/models/list_audit_logs_success_response.rb +242 -0
  55. data/lib/onesignal/models/notification.rb +1 -1
  56. data/lib/onesignal/models/notification_all_of.rb +1 -1
  57. data/lib/onesignal/models/notification_history_success_response.rb +1 -1
  58. data/lib/onesignal/models/notification_slice.rb +1 -1
  59. data/lib/onesignal/models/notification_target.rb +1 -1
  60. data/lib/onesignal/models/notification_with_meta.rb +1 -1
  61. data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
  62. data/lib/onesignal/models/operator.rb +1 -1
  63. data/lib/onesignal/models/outcome_data.rb +1 -1
  64. data/lib/onesignal/models/outcomes_data.rb +1 -1
  65. data/lib/onesignal/models/platform_delivery_data.rb +1 -1
  66. data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
  67. data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
  68. data/lib/onesignal/models/properties_body.rb +1 -1
  69. data/lib/onesignal/models/properties_deltas.rb +1 -1
  70. data/lib/onesignal/models/properties_object.rb +1 -1
  71. data/lib/onesignal/models/purchase.rb +1 -1
  72. data/lib/onesignal/models/rate_limit_error.rb +1 -1
  73. data/lib/onesignal/models/segment.rb +1 -1
  74. data/lib/onesignal/models/segment_data.rb +1 -1
  75. data/lib/onesignal/models/segment_details.rb +308 -0
  76. data/lib/onesignal/models/segment_notification_target.rb +1 -1
  77. data/lib/onesignal/models/start_live_activity_request.rb +1 -1
  78. data/lib/onesignal/models/start_live_activity_success_response.rb +1 -1
  79. data/lib/onesignal/models/subscription.rb +1 -1
  80. data/lib/onesignal/models/subscription_body.rb +1 -1
  81. data/lib/onesignal/models/subscription_notification_target.rb +1 -1
  82. data/lib/onesignal/models/template_resource.rb +1 -1
  83. data/lib/onesignal/models/templates_list_response.rb +1 -1
  84. data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
  85. data/lib/onesignal/models/update_api_key_request.rb +1 -1
  86. data/lib/onesignal/models/update_live_activity_request.rb +1 -1
  87. data/lib/onesignal/models/update_live_activity_success_response.rb +1 -1
  88. data/lib/onesignal/models/update_segment_request.rb +281 -0
  89. data/lib/onesignal/models/update_segment_success_response.rb +230 -0
  90. data/lib/onesignal/models/update_template_request.rb +1 -1
  91. data/lib/onesignal/models/update_user_request.rb +1 -1
  92. data/lib/onesignal/models/user.rb +1 -1
  93. data/lib/onesignal/models/user_identity_body.rb +1 -1
  94. data/lib/onesignal/models/web_button.rb +1 -1
  95. data/lib/onesignal/version.rb +2 -2
  96. data/lib/onesignal.rb +10 -1
  97. data/onesignal.gemspec +1 -1
  98. data/spec/api/default_api_spec.rb +52 -1
  99. data/spec/api_client_spec.rb +1 -1
  100. data/spec/configuration_spec.rb +1 -1
  101. data/spec/models/api_key_token_spec.rb +1 -1
  102. data/spec/models/api_key_tokens_list_response_spec.rb +1 -1
  103. data/spec/models/app_spec.rb +1 -1
  104. data/spec/models/audit_log_actor_spec.rb +58 -0
  105. data/spec/models/audit_log_context_spec.rb +52 -0
  106. data/spec/models/audit_log_event_spec.rb +88 -0
  107. data/spec/models/audit_log_target_spec.rb +52 -0
  108. data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
  109. data/spec/models/basic_notification_all_of_spec.rb +1 -1
  110. data/spec/models/basic_notification_spec.rb +1 -1
  111. data/spec/models/button_spec.rb +1 -1
  112. data/spec/models/copy_template_request_spec.rb +1 -1
  113. data/spec/models/create_api_key_request_spec.rb +1 -1
  114. data/spec/models/create_api_key_response_spec.rb +1 -1
  115. data/spec/models/create_notification_success_response_spec.rb +1 -1
  116. data/spec/models/create_segment_conflict_response_spec.rb +1 -1
  117. data/spec/models/create_segment_success_response_spec.rb +1 -1
  118. data/spec/models/create_template_request_spec.rb +1 -1
  119. data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
  120. data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
  121. data/spec/models/create_user_conflict_response_spec.rb +1 -1
  122. data/spec/models/custom_event_spec.rb +1 -1
  123. data/spec/models/custom_events_request_spec.rb +1 -1
  124. data/spec/models/delivery_data_spec.rb +1 -1
  125. data/spec/models/export_events_success_response_spec.rb +1 -1
  126. data/spec/models/export_subscriptions_request_body_spec.rb +1 -1
  127. data/spec/models/export_subscriptions_success_response_spec.rb +1 -1
  128. data/spec/models/filter_expression_spec.rb +1 -1
  129. data/spec/models/filter_spec.rb +1 -1
  130. data/spec/models/generic_error_spec.rb +1 -1
  131. data/spec/models/generic_success_bool_response_spec.rb +1 -1
  132. data/spec/models/get_notification_history_request_body_spec.rb +1 -1
  133. data/spec/models/get_segment_success_response_spec.rb +40 -0
  134. data/spec/models/get_segments_success_response_spec.rb +1 -1
  135. data/spec/models/language_string_map_spec.rb +1 -1
  136. data/spec/models/list_audit_logs_success_response_spec.rb +46 -0
  137. data/spec/models/notification_all_of_spec.rb +1 -1
  138. data/spec/models/notification_history_success_response_spec.rb +1 -1
  139. data/spec/models/notification_slice_spec.rb +1 -1
  140. data/spec/models/notification_spec.rb +1 -1
  141. data/spec/models/notification_target_spec.rb +1 -1
  142. data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
  143. data/spec/models/notification_with_meta_spec.rb +1 -1
  144. data/spec/models/operator_spec.rb +1 -1
  145. data/spec/models/outcome_data_spec.rb +1 -1
  146. data/spec/models/outcomes_data_spec.rb +1 -1
  147. data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
  148. data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
  149. data/spec/models/platform_delivery_data_spec.rb +1 -1
  150. data/spec/models/properties_body_spec.rb +1 -1
  151. data/spec/models/properties_deltas_spec.rb +1 -1
  152. data/spec/models/properties_object_spec.rb +1 -1
  153. data/spec/models/purchase_spec.rb +1 -1
  154. data/spec/models/rate_limit_error_spec.rb +1 -1
  155. data/spec/models/segment_data_spec.rb +1 -1
  156. data/spec/models/segment_details_spec.rb +68 -0
  157. data/spec/models/segment_notification_target_spec.rb +1 -1
  158. data/spec/models/segment_spec.rb +1 -1
  159. data/spec/models/start_live_activity_request_spec.rb +1 -1
  160. data/spec/models/start_live_activity_success_response_spec.rb +1 -1
  161. data/spec/models/subscription_body_spec.rb +1 -1
  162. data/spec/models/subscription_notification_target_spec.rb +1 -1
  163. data/spec/models/subscription_spec.rb +1 -1
  164. data/spec/models/template_resource_spec.rb +1 -1
  165. data/spec/models/templates_list_response_spec.rb +1 -1
  166. data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
  167. data/spec/models/update_api_key_request_spec.rb +1 -1
  168. data/spec/models/update_live_activity_request_spec.rb +1 -1
  169. data/spec/models/update_live_activity_success_response_spec.rb +1 -1
  170. data/spec/models/update_segment_request_spec.rb +46 -0
  171. data/spec/models/update_segment_success_response_spec.rb +40 -0
  172. data/spec/models/update_template_request_spec.rb +1 -1
  173. data/spec/models/update_user_request_spec.rb +1 -1
  174. data/spec/models/user_identity_body_spec.rb +1 -1
  175. data/spec/models/user_spec.rb +1 -1
  176. data/spec/models/web_button_spec.rb +1 -1
  177. data/spec/spec_helper.rb +1 -1
  178. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  179. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  180. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
  181. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
  182. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  183. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
  184. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  185. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  186. metadata +94 -58
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 5.10.0
6
+ The version of the OpenAPI document: 5.11.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -0,0 +1,308 @@
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.0
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
+ # Segment details. Only included when the include-segment-detail query parameter is set to true.
18
+ class SegmentDetails
19
+ # The unique identifier for the segment (UUID v4).
20
+ attr_accessor :id
21
+
22
+ # The segment name.
23
+ attr_accessor :name
24
+
25
+ # Human-readable description for the segment. `null` when unset. Maximum 255 characters.
26
+ attr_accessor :description
27
+
28
+ # Unix timestamp when the segment was created.
29
+ attr_accessor :created_at
30
+
31
+ # The source of the segment.
32
+ attr_accessor :source
33
+
34
+ # Array of filter and operator objects defining the segment criteria. Uses the same format as the Create Segment API, so filters can be directly used to recreate or update the segment.
35
+ attr_accessor :filters
36
+
37
+ class EnumAttributeValidator
38
+ attr_reader :datatype
39
+ attr_reader :allowable_values
40
+
41
+ def initialize(datatype, allowable_values)
42
+ @allowable_values = allowable_values.map do |value|
43
+ case datatype.to_s
44
+ when /Integer/i
45
+ value.to_i
46
+ when /Float/i
47
+ value.to_f
48
+ else
49
+ value
50
+ end
51
+ end
52
+ end
53
+
54
+ def valid?(value)
55
+ !value || allowable_values.include?(value)
56
+ end
57
+ end
58
+
59
+ # Attribute mapping from ruby-style variable name to JSON key.
60
+ def self.attribute_map
61
+ {
62
+ :'id' => :'id',
63
+ :'name' => :'name',
64
+ :'description' => :'description',
65
+ :'created_at' => :'created_at',
66
+ :'source' => :'source',
67
+ :'filters' => :'filters'
68
+ }
69
+ end
70
+
71
+ # Returns all the JSON keys this model knows about
72
+ def self.acceptable_attributes
73
+ attribute_map.values
74
+ end
75
+
76
+ # Attribute type mapping.
77
+ def self.openapi_types
78
+ {
79
+ :'id' => :'String',
80
+ :'name' => :'String',
81
+ :'description' => :'String',
82
+ :'created_at' => :'Integer',
83
+ :'source' => :'String',
84
+ :'filters' => :'Array<FilterExpression>'
85
+ }
86
+ end
87
+
88
+ # List of attributes with nullable: true
89
+ def self.openapi_nullable
90
+ Set.new([
91
+ :'description',
92
+ ])
93
+ end
94
+
95
+ # Initializes the object
96
+ # @param [Hash] attributes Model attributes in the form of hash
97
+ def initialize(attributes = {})
98
+ if (!attributes.is_a?(Hash))
99
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::SegmentDetails` initialize method"
100
+ end
101
+
102
+ # check to see if the attribute exists and convert string to symbol for hash key
103
+ attributes = attributes.each_with_object({}) { |(k, v), h|
104
+ if (!self.class.attribute_map.key?(k.to_sym))
105
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::SegmentDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
106
+ end
107
+ h[k.to_sym] = v
108
+ }
109
+
110
+ if attributes.key?(:'id')
111
+ self.id = attributes[:'id']
112
+ end
113
+
114
+ if attributes.key?(:'name')
115
+ self.name = attributes[:'name']
116
+ end
117
+
118
+ if attributes.key?(:'description')
119
+ self.description = attributes[:'description']
120
+ end
121
+
122
+ if attributes.key?(:'created_at')
123
+ self.created_at = attributes[:'created_at']
124
+ end
125
+
126
+ if attributes.key?(:'source')
127
+ self.source = attributes[:'source']
128
+ end
129
+
130
+ if attributes.key?(:'filters')
131
+ if (value = attributes[:'filters']).is_a?(Array)
132
+ self.filters = value
133
+ end
134
+ end
135
+ end
136
+
137
+ # Show invalid properties with the reasons. Usually used together with valid?
138
+ # @return Array for valid properties with the reasons
139
+ def list_invalid_properties
140
+ invalid_properties = Array.new
141
+ invalid_properties
142
+ end
143
+
144
+ # Check to see if the all the properties in the model are valid
145
+ # @return true if the model is valid
146
+ def valid?
147
+ source_validator = EnumAttributeValidator.new('String', ["default", "custom", "quickstart"])
148
+ return false unless source_validator.valid?(@source)
149
+ true
150
+ end
151
+
152
+ # Custom attribute writer method checking allowed values (enum).
153
+ # @param [Object] source Object to be assigned
154
+ def source=(source)
155
+ validator = EnumAttributeValidator.new('String', ["default", "custom", "quickstart"])
156
+ unless validator.valid?(source)
157
+ fail ArgumentError, "invalid value for \"source\", must be one of #{validator.allowable_values}."
158
+ end
159
+ @source = source
160
+ end
161
+
162
+ # Checks equality by comparing each attribute.
163
+ # @param [Object] Object to be compared
164
+ def ==(o)
165
+ return true if self.equal?(o)
166
+ self.class == o.class &&
167
+ id == o.id &&
168
+ name == o.name &&
169
+ description == o.description &&
170
+ created_at == o.created_at &&
171
+ source == o.source &&
172
+ filters == o.filters
173
+ end
174
+
175
+ # @see the `==` method
176
+ # @param [Object] Object to be compared
177
+ def eql?(o)
178
+ self == o
179
+ end
180
+
181
+ # Calculates hash code according to all attributes.
182
+ # @return [Integer] Hash code
183
+ def hash
184
+ [id, name, description, created_at, source, filters].hash
185
+ end
186
+
187
+ # Builds the object from hash
188
+ # @param [Hash] attributes Model attributes in the form of hash
189
+ # @return [Object] Returns the model itself
190
+ def self.build_from_hash(attributes)
191
+ new.build_from_hash(attributes)
192
+ end
193
+
194
+ # Builds the object from hash
195
+ # @param [Hash] attributes Model attributes in the form of hash
196
+ # @return [Object] Returns the model itself
197
+ def build_from_hash(attributes)
198
+ return nil unless attributes.is_a?(Hash)
199
+ attributes = attributes.transform_keys(&:to_sym)
200
+ self.class.openapi_types.each_pair do |key, type|
201
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
202
+ self.send("#{key}=", nil)
203
+ elsif type =~ /\AArray<(.*)>/i
204
+ # check to ensure the input is an array given that the attribute
205
+ # is documented as an array but the input is not
206
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
207
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
208
+ end
209
+ elsif !attributes[self.class.attribute_map[key]].nil?
210
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
211
+ end
212
+ end
213
+
214
+ self
215
+ end
216
+
217
+ # Deserializes the data based on type
218
+ # @param string type Data type
219
+ # @param string value Value to be deserialized
220
+ # @return [Object] Deserialized data
221
+ def _deserialize(type, value)
222
+ case type.to_sym
223
+ when :Time
224
+ Time.parse(value)
225
+ when :Date
226
+ Date.parse(value)
227
+ when :String
228
+ value.to_s
229
+ when :Integer
230
+ value.to_i
231
+ when :Float
232
+ value.to_f
233
+ when :Boolean
234
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
235
+ true
236
+ else
237
+ false
238
+ end
239
+ when :Object
240
+ # generic object (usually a Hash), return directly
241
+ value
242
+ when /\AArray<(?<inner_type>.+)>\z/
243
+ inner_type = Regexp.last_match[:inner_type]
244
+ value.map { |v| _deserialize(inner_type, v) }
245
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
246
+ k_type = Regexp.last_match[:k_type]
247
+ v_type = Regexp.last_match[:v_type]
248
+ {}.tap do |hash|
249
+ value.each do |k, v|
250
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
251
+ end
252
+ end
253
+ else # model
254
+ # models (e.g. Pet) or oneOf
255
+ klass = OneSignal.const_get(type)
256
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
257
+ end
258
+ end
259
+
260
+ # Returns the string representation of the object
261
+ # @return [String] String presentation of the object
262
+ def to_s
263
+ to_hash.to_s
264
+ end
265
+
266
+ # to_body is an alias to to_hash (backward compatibility)
267
+ # @return [Hash] Returns the object in the form of hash
268
+ def to_body
269
+ to_hash
270
+ end
271
+
272
+ # Returns the object in the form of hash
273
+ # @return [Hash] Returns the object in the form of hash
274
+ def to_hash
275
+ hash = {}
276
+ self.class.attribute_map.each_pair do |attr, param|
277
+ value = self.send(attr)
278
+ if value.nil?
279
+ is_nullable = self.class.openapi_nullable.include?(attr)
280
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
281
+ end
282
+
283
+ hash[param] = _to_hash(value)
284
+ end
285
+ hash
286
+ end
287
+
288
+ # Outputs non-array value in the form of hash
289
+ # For object, use to_hash. Otherwise, just return the value
290
+ # @param [Object] value Any valid value
291
+ # @return [Hash] Returns the value in the form of hash
292
+ def _to_hash(value)
293
+ if value.is_a?(Array)
294
+ value.compact.map { |v| _to_hash(v) }
295
+ elsif value.is_a?(Hash)
296
+ {}.tap do |hash|
297
+ value.each { |k, v| hash[k] = _to_hash(v) }
298
+ end
299
+ elsif value.respond_to? :to_hash
300
+ value.to_hash
301
+ else
302
+ value
303
+ end
304
+ end
305
+
306
+ end
307
+
308
+ 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.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.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.10.0
6
+ The version of the OpenAPI document: 5.11.0
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT