onesignal 1.0.0.beta1 → 1.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/LICENSE +24 -0
- data/README.md +75 -45
- data/RELEASE_INSTRUCTIONS.md +11 -0
- data/docs/DefaultApi.md +86 -86
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2005.md +4 -2
- data/docs/{InlineResponse2003.md → InlineResponse2007.md} +3 -3
- data/docs/InlineResponse2008.md +18 -0
- data/docs/InlineResponse4002.md +4 -2
- data/docs/InlineResponse4003.md +18 -0
- data/docs/InvalidIdentifierError.md +20 -0
- data/docs/Notification.md +12 -12
- data/docs/Notification200Errors.md +49 -0
- data/docs/NotificationAllOf.md +11 -11
- data/docs/NotificationSlice.md +1 -1
- data/docs/NotificationTarget.md +1 -1
- data/docs/NotificationWithMeta.md +260 -0
- data/docs/NotificationWithMetaAllOf.md +38 -0
- data/docs/OutcomesData.md +18 -0
- data/docs/Player.md +2 -2
- data/docs/PlayerNotificationTarget.md +1 -1
- data/docs/StringMap.md +1 -1
- data/lib/onesignal/api/default_api.rb +82 -55
- data/lib/onesignal/api_client.rb +9 -7
- data/lib/onesignal/api_error.rb +2 -2
- data/lib/onesignal/configuration.rb +6 -3
- data/lib/onesignal/models/app.rb +3 -2
- data/lib/onesignal/models/button.rb +3 -2
- data/lib/onesignal/models/delivery_data.rb +8 -2
- data/lib/onesignal/models/export_players_request_body.rb +3 -2
- data/lib/onesignal/models/filter.rb +3 -2
- data/lib/onesignal/models/filter_expressions.rb +3 -2
- data/lib/onesignal/models/filter_notification_target.rb +3 -2
- data/lib/onesignal/models/get_notification_request_body.rb +3 -2
- data/lib/onesignal/models/inline_response200.rb +4 -3
- data/lib/onesignal/models/inline_response2001.rb +4 -3
- data/lib/onesignal/models/inline_response2002.rb +4 -3
- data/lib/onesignal/models/inline_response2005.rb +19 -9
- data/lib/onesignal/models/{inline_response2003.rb → inline_response2007.rb} +7 -6
- data/lib/onesignal/models/{inline_response2004.rb → inline_response2008.rb} +13 -21
- data/lib/onesignal/models/inline_response201.rb +3 -2
- data/lib/onesignal/models/inline_response400.rb +3 -2
- data/lib/onesignal/models/inline_response4001.rb +3 -2
- data/lib/onesignal/models/inline_response4002.rb +20 -10
- data/lib/onesignal/models/{inline_response409.rb → inline_response4003.rb} +14 -22
- data/lib/onesignal/models/invalid_identifier_error.rb +234 -0
- data/lib/onesignal/models/notification.rb +39 -19
- data/lib/onesignal/models/notification200_errors.rb +105 -0
- data/lib/onesignal/models/notification_all_of.rb +38 -18
- data/lib/onesignal/models/notification_all_of_android_background_layout.rb +3 -2
- data/lib/onesignal/models/notification_slice.rb +4 -3
- data/lib/onesignal/models/notification_target.rb +4 -3
- data/lib/onesignal/models/notification_with_meta.rb +1526 -0
- data/lib/onesignal/models/notification_with_meta_all_of.rb +322 -0
- data/lib/onesignal/models/operator.rb +3 -2
- data/lib/onesignal/models/outcome_data.rb +3 -2
- data/lib/onesignal/models/outcomes_data.rb +221 -0
- data/lib/onesignal/models/platform_delivery_data.rb +3 -2
- data/lib/onesignal/models/player.rb +6 -8
- data/lib/onesignal/models/player_notification_target.rb +4 -3
- data/lib/onesignal/models/player_slice.rb +3 -2
- data/lib/onesignal/models/purchase.rb +3 -2
- data/lib/onesignal/models/segment.rb +3 -2
- data/lib/onesignal/models/segment_notification_target.rb +3 -2
- data/lib/onesignal/models/string_map.rb +3 -7
- data/lib/onesignal/models/update_player_tags_request_body.rb +3 -2
- data/lib/onesignal/version.rb +3 -3
- data/lib/{OneSignal.rb → onesignal.rb} +10 -5
- data/onesignal.gemspec +5 -4
- data/spec/api/default_api_spec.rb +20 -20
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/app_spec.rb +2 -2
- data/spec/models/button_spec.rb +2 -2
- data/spec/models/delivery_data_spec.rb +2 -2
- data/spec/models/export_players_request_body_spec.rb +2 -2
- data/spec/models/filter_expressions_spec.rb +2 -2
- data/spec/models/filter_notification_target_spec.rb +2 -2
- data/spec/models/filter_spec.rb +2 -2
- data/spec/models/get_notification_request_body_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +9 -3
- data/spec/models/{inline_response2003_spec.rb → inline_response2007_spec.rb} +8 -8
- data/spec/models/{inline_response409_spec.rb → inline_response2008_spec.rb} +9 -15
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/inline_response201_spec.rb +2 -2
- data/spec/models/inline_response4001_spec.rb +2 -2
- data/spec/models/inline_response4002_spec.rb +9 -3
- data/spec/models/inline_response4003_spec.rb +34 -0
- data/spec/models/inline_response400_spec.rb +2 -2
- data/spec/models/{inline_response2004_spec.rb → invalid_identifier_error_spec.rb} +10 -10
- data/spec/models/notification200_errors_spec.rb +31 -0
- data/spec/models/notification_all_of_android_background_layout_spec.rb +2 -2
- data/spec/models/notification_all_of_spec.rb +3 -3
- data/spec/models/notification_slice_spec.rb +2 -2
- data/spec/models/notification_spec.rb +3 -3
- data/spec/models/notification_target_spec.rb +2 -2
- data/spec/models/notification_with_meta_all_of_spec.rb +94 -0
- data/spec/models/notification_with_meta_spec.rb +764 -0
- data/spec/models/operator_spec.rb +2 -2
- data/spec/models/outcome_data_spec.rb +2 -2
- data/spec/models/outcomes_data_spec.rb +34 -0
- data/spec/models/platform_delivery_data_spec.rb +2 -2
- data/spec/models/player_notification_target_spec.rb +2 -2
- data/spec/models/player_slice_spec.rb +2 -2
- data/spec/models/player_spec.rb +2 -2
- data/spec/models/purchase_spec.rb +2 -2
- data/spec/models/segment_notification_target_spec.rb +2 -2
- data/spec/models/segment_spec.rb +2 -2
- data/spec/models/string_map_spec.rb +2 -2
- data/spec/models/update_player_tags_request_body_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +51 -29
- data/docs/InlineResponse2004.md +0 -20
- data/docs/InlineResponse409.md +0 -20
- data/git_push.sh +0 -58
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -130,6 +130,7 @@ module OneSignal
|
|
|
130
130
|
# @return [Object] Returns the model itself
|
|
131
131
|
def build_from_hash(attributes)
|
|
132
132
|
return nil unless attributes.is_a?(Hash)
|
|
133
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
134
|
self.class.openapi_types.each_pair do |key, type|
|
|
134
135
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
135
136
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -55,6 +55,11 @@ module OneSignal
|
|
|
55
55
|
# List of attributes with nullable: true
|
|
56
56
|
def self.openapi_nullable
|
|
57
57
|
Set.new([
|
|
58
|
+
:'successful',
|
|
59
|
+
:'failed',
|
|
60
|
+
:'errored',
|
|
61
|
+
:'converted',
|
|
62
|
+
:'received'
|
|
58
63
|
])
|
|
59
64
|
end
|
|
60
65
|
|
|
@@ -143,6 +148,7 @@ module OneSignal
|
|
|
143
148
|
# @return [Object] Returns the model itself
|
|
144
149
|
def build_from_hash(attributes)
|
|
145
150
|
return nil unless attributes.is_a?(Hash)
|
|
151
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
146
152
|
self.class.openapi_types.each_pair do |key, type|
|
|
147
153
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
148
154
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -130,6 +130,7 @@ module OneSignal
|
|
|
130
130
|
# @return [Object] Returns the model itself
|
|
131
131
|
def build_from_hash(attributes)
|
|
132
132
|
return nil unless attributes.is_a?(Hash)
|
|
133
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
134
|
self.class.openapi_types.each_pair do |key, type|
|
|
134
135
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
135
136
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -182,6 +182,7 @@ module OneSignal
|
|
|
182
182
|
# @return [Object] Returns the model itself
|
|
183
183
|
def build_from_hash(attributes)
|
|
184
184
|
return nil unless attributes.is_a?(Hash)
|
|
185
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
185
186
|
self.class.openapi_types.each_pair do |key, type|
|
|
186
187
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
187
188
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -224,6 +224,7 @@ module OneSignal
|
|
|
224
224
|
# @return [Object] Returns the model itself
|
|
225
225
|
def build_from_hash(attributes)
|
|
226
226
|
return nil unless attributes.is_a?(Hash)
|
|
227
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
227
228
|
self.class.openapi_types.each_pair do |key, type|
|
|
228
229
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
229
230
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -218,6 +218,7 @@ module OneSignal
|
|
|
218
218
|
# @return [Object] Returns the model itself
|
|
219
219
|
def build_from_hash(attributes)
|
|
220
220
|
return nil unless attributes.is_a?(Hash)
|
|
221
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
221
222
|
self.class.openapi_types.each_pair do |key, type|
|
|
222
223
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
223
224
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -161,6 +161,7 @@ module OneSignal
|
|
|
161
161
|
# @return [Object] Returns the model itself
|
|
162
162
|
def build_from_hash(attributes)
|
|
163
163
|
return nil unless attributes.is_a?(Hash)
|
|
164
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
164
165
|
self.class.openapi_types.each_pair do |key, type|
|
|
165
166
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
166
167
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -45,7 +45,7 @@ module OneSignal
|
|
|
45
45
|
:'id' => :'String',
|
|
46
46
|
:'recipients' => :'Integer',
|
|
47
47
|
:'external_id' => :'String',
|
|
48
|
-
:'errors' => :'
|
|
48
|
+
:'errors' => :'Notification200Errors'
|
|
49
49
|
}
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -145,6 +145,7 @@ module OneSignal
|
|
|
145
145
|
# @return [Object] Returns the model itself
|
|
146
146
|
def build_from_hash(attributes)
|
|
147
147
|
return nil unless attributes.is_a?(Hash)
|
|
148
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
148
149
|
self.class.openapi_types.each_pair do |key, type|
|
|
149
150
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
150
151
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -32,7 +32,7 @@ module OneSignal
|
|
|
32
32
|
# Attribute type mapping.
|
|
33
33
|
def self.openapi_types
|
|
34
34
|
{
|
|
35
|
-
:'success' => :'
|
|
35
|
+
:'success' => :'Boolean'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -107,6 +107,7 @@ module OneSignal
|
|
|
107
107
|
# @return [Object] Returns the model itself
|
|
108
108
|
def build_from_hash(attributes)
|
|
109
109
|
return nil unless attributes.is_a?(Hash)
|
|
110
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
110
111
|
self.class.openapi_types.each_pair do |key, type|
|
|
111
112
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
112
113
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -35,7 +35,7 @@ module OneSignal
|
|
|
35
35
|
# Attribute type mapping.
|
|
36
36
|
def self.openapi_types
|
|
37
37
|
{
|
|
38
|
-
:'success' => :'
|
|
38
|
+
:'success' => :'Boolean',
|
|
39
39
|
:'destination_url' => :'String'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
@@ -116,6 +116,7 @@ module OneSignal
|
|
|
116
116
|
# @return [Object] Returns the model itself
|
|
117
117
|
def build_from_hash(attributes)
|
|
118
118
|
return nil unless attributes.is_a?(Hash)
|
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
119
120
|
self.class.openapi_types.each_pair do |key, type|
|
|
120
121
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
121
122
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,12 +15,15 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module OneSignal
|
|
17
17
|
class InlineResponse2005
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :success
|
|
19
|
+
|
|
20
|
+
attr_accessor :id
|
|
19
21
|
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
23
|
def self.attribute_map
|
|
22
24
|
{
|
|
23
|
-
:'
|
|
25
|
+
:'success' => :'success',
|
|
26
|
+
:'id' => :'id'
|
|
24
27
|
}
|
|
25
28
|
end
|
|
26
29
|
|
|
@@ -32,7 +35,8 @@ module OneSignal
|
|
|
32
35
|
# Attribute type mapping.
|
|
33
36
|
def self.openapi_types
|
|
34
37
|
{
|
|
35
|
-
:'
|
|
38
|
+
:'success' => :'Boolean',
|
|
39
|
+
:'id' => :'String'
|
|
36
40
|
}
|
|
37
41
|
end
|
|
38
42
|
|
|
@@ -57,8 +61,12 @@ module OneSignal
|
|
|
57
61
|
h[k.to_sym] = v
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
if attributes.key?(:'
|
|
61
|
-
self.
|
|
64
|
+
if attributes.key?(:'success')
|
|
65
|
+
self.success = attributes[:'success']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'id')
|
|
69
|
+
self.id = attributes[:'id']
|
|
62
70
|
end
|
|
63
71
|
end
|
|
64
72
|
|
|
@@ -80,7 +88,8 @@ module OneSignal
|
|
|
80
88
|
def ==(o)
|
|
81
89
|
return true if self.equal?(o)
|
|
82
90
|
self.class == o.class &&
|
|
83
|
-
|
|
91
|
+
success == o.success &&
|
|
92
|
+
id == o.id
|
|
84
93
|
end
|
|
85
94
|
|
|
86
95
|
# @see the `==` method
|
|
@@ -92,7 +101,7 @@ module OneSignal
|
|
|
92
101
|
# Calculates hash code according to all attributes.
|
|
93
102
|
# @return [Integer] Hash code
|
|
94
103
|
def hash
|
|
95
|
-
[
|
|
104
|
+
[success, id].hash
|
|
96
105
|
end
|
|
97
106
|
|
|
98
107
|
# Builds the object from hash
|
|
@@ -107,6 +116,7 @@ module OneSignal
|
|
|
107
116
|
# @return [Object] Returns the model itself
|
|
108
117
|
def build_from_hash(attributes)
|
|
109
118
|
return nil unless attributes.is_a?(Hash)
|
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
110
120
|
self.class.openapi_types.each_pair do |key, type|
|
|
111
121
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
112
122
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OneSignal
|
|
17
|
-
class
|
|
17
|
+
class InlineResponse2007
|
|
18
18
|
attr_accessor :success
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -32,7 +32,7 @@ module OneSignal
|
|
|
32
32
|
# Attribute type mapping.
|
|
33
33
|
def self.openapi_types
|
|
34
34
|
{
|
|
35
|
-
:'success' => :'
|
|
35
|
+
:'success' => :'String'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -46,13 +46,13 @@ module OneSignal
|
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
47
47
|
def initialize(attributes = {})
|
|
48
48
|
if (!attributes.is_a?(Hash))
|
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::InlineResponse2007` initialize method"
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::InlineResponse2007`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
56
56
|
end
|
|
57
57
|
h[k.to_sym] = v
|
|
58
58
|
}
|
|
@@ -107,6 +107,7 @@ module OneSignal
|
|
|
107
107
|
# @return [Object] Returns the model itself
|
|
108
108
|
def build_from_hash(attributes)
|
|
109
109
|
return nil unless attributes.is_a?(Hash)
|
|
110
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
110
111
|
self.class.openapi_types.each_pair do |key, type|
|
|
111
112
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
112
113
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,16 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OneSignal
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
19
|
-
|
|
20
|
-
attr_accessor :id
|
|
17
|
+
class InlineResponse2008
|
|
18
|
+
attr_accessor :csv_file_url
|
|
21
19
|
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
21
|
def self.attribute_map
|
|
24
22
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'id' => :'id'
|
|
23
|
+
:'csv_file_url' => :'csv_file_url'
|
|
27
24
|
}
|
|
28
25
|
end
|
|
29
26
|
|
|
@@ -35,8 +32,7 @@ module OneSignal
|
|
|
35
32
|
# Attribute type mapping.
|
|
36
33
|
def self.openapi_types
|
|
37
34
|
{
|
|
38
|
-
:'
|
|
39
|
-
:'id' => :'String'
|
|
35
|
+
:'csv_file_url' => :'String'
|
|
40
36
|
}
|
|
41
37
|
end
|
|
42
38
|
|
|
@@ -50,23 +46,19 @@ module OneSignal
|
|
|
50
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
47
|
def initialize(attributes = {})
|
|
52
48
|
if (!attributes.is_a?(Hash))
|
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::InlineResponse2008` initialize method"
|
|
54
50
|
end
|
|
55
51
|
|
|
56
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::InlineResponse2008`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
56
|
end
|
|
61
57
|
h[k.to_sym] = v
|
|
62
58
|
}
|
|
63
59
|
|
|
64
|
-
if attributes.key?(:'
|
|
65
|
-
self.
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
if attributes.key?(:'id')
|
|
69
|
-
self.id = attributes[:'id']
|
|
60
|
+
if attributes.key?(:'csv_file_url')
|
|
61
|
+
self.csv_file_url = attributes[:'csv_file_url']
|
|
70
62
|
end
|
|
71
63
|
end
|
|
72
64
|
|
|
@@ -88,8 +80,7 @@ module OneSignal
|
|
|
88
80
|
def ==(o)
|
|
89
81
|
return true if self.equal?(o)
|
|
90
82
|
self.class == o.class &&
|
|
91
|
-
|
|
92
|
-
id == o.id
|
|
83
|
+
csv_file_url == o.csv_file_url
|
|
93
84
|
end
|
|
94
85
|
|
|
95
86
|
# @see the `==` method
|
|
@@ -101,7 +92,7 @@ module OneSignal
|
|
|
101
92
|
# Calculates hash code according to all attributes.
|
|
102
93
|
# @return [Integer] Hash code
|
|
103
94
|
def hash
|
|
104
|
-
[
|
|
95
|
+
[csv_file_url].hash
|
|
105
96
|
end
|
|
106
97
|
|
|
107
98
|
# Builds the object from hash
|
|
@@ -116,6 +107,7 @@ module OneSignal
|
|
|
116
107
|
# @return [Object] Returns the model itself
|
|
117
108
|
def build_from_hash(attributes)
|
|
118
109
|
return nil unless attributes.is_a?(Hash)
|
|
110
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
119
111
|
self.class.openapi_types.each_pair do |key, type|
|
|
120
112
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
121
113
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -117,6 +117,7 @@ module OneSignal
|
|
|
117
117
|
# @return [Object] Returns the model itself
|
|
118
118
|
def build_from_hash(attributes)
|
|
119
119
|
return nil unless attributes.is_a?(Hash)
|
|
120
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
120
121
|
self.class.openapi_types.each_pair do |key, type|
|
|
121
122
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
122
123
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -109,6 +109,7 @@ module OneSignal
|
|
|
109
109
|
# @return [Object] Returns the model itself
|
|
110
110
|
def build_from_hash(attributes)
|
|
111
111
|
return nil unless attributes.is_a?(Hash)
|
|
112
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
112
113
|
self.class.openapi_types.each_pair do |key, type|
|
|
113
114
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
114
115
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -118,6 +118,7 @@ module OneSignal
|
|
|
118
118
|
# @return [Object] Returns the model itself
|
|
119
119
|
def build_from_hash(attributes)
|
|
120
120
|
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
121
122
|
self.class.openapi_types.each_pair do |key, type|
|
|
122
123
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
123
124
|
self.send("#{key}=", nil)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
7
|
Contact: devrel@onesignal.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
9
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,12 +15,15 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module OneSignal
|
|
17
17
|
class InlineResponse4002
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :success
|
|
19
|
+
|
|
20
|
+
attr_accessor :errors
|
|
19
21
|
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
23
|
def self.attribute_map
|
|
22
24
|
{
|
|
23
|
-
:'
|
|
25
|
+
:'success' => :'success',
|
|
26
|
+
:'errors' => :'errors'
|
|
24
27
|
}
|
|
25
28
|
end
|
|
26
29
|
|
|
@@ -32,7 +35,8 @@ module OneSignal
|
|
|
32
35
|
# Attribute type mapping.
|
|
33
36
|
def self.openapi_types
|
|
34
37
|
{
|
|
35
|
-
:'
|
|
38
|
+
:'success' => :'Boolean',
|
|
39
|
+
:'errors' => :'Array<String>'
|
|
36
40
|
}
|
|
37
41
|
end
|
|
38
42
|
|
|
@@ -57,9 +61,13 @@ module OneSignal
|
|
|
57
61
|
h[k.to_sym] = v
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
if attributes.key?(:'
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
if attributes.key?(:'success')
|
|
65
|
+
self.success = attributes[:'success']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'errors')
|
|
69
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
70
|
+
self.errors = value
|
|
63
71
|
end
|
|
64
72
|
end
|
|
65
73
|
end
|
|
@@ -82,7 +90,8 @@ module OneSignal
|
|
|
82
90
|
def ==(o)
|
|
83
91
|
return true if self.equal?(o)
|
|
84
92
|
self.class == o.class &&
|
|
85
|
-
|
|
93
|
+
success == o.success &&
|
|
94
|
+
errors == o.errors
|
|
86
95
|
end
|
|
87
96
|
|
|
88
97
|
# @see the `==` method
|
|
@@ -94,7 +103,7 @@ module OneSignal
|
|
|
94
103
|
# Calculates hash code according to all attributes.
|
|
95
104
|
# @return [Integer] Hash code
|
|
96
105
|
def hash
|
|
97
|
-
[
|
|
106
|
+
[success, errors].hash
|
|
98
107
|
end
|
|
99
108
|
|
|
100
109
|
# Builds the object from hash
|
|
@@ -109,6 +118,7 @@ module OneSignal
|
|
|
109
118
|
# @return [Object] Returns the model itself
|
|
110
119
|
def build_from_hash(attributes)
|
|
111
120
|
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
112
122
|
self.class.openapi_types.each_pair do |key, type|
|
|
113
123
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
114
124
|
self.send("#{key}=", nil)
|