onesignal 2.2.1 → 5.1.0.pre.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +42 -67
- data/docs/BasicNotification.md +18 -18
- data/docs/BasicNotificationAllOf.md +9 -7
- data/docs/CreateNotificationSuccessResponse.md +1 -3
- data/docs/DefaultApi.md +364 -948
- data/docs/{ExportPlayersRequestBody.md → ExportSubscriptionsRequestBody.md} +2 -2
- data/docs/{ExportPlayersSuccessResponse.md → ExportSubscriptionsSuccessResponse.md} +2 -2
- data/docs/Filter.md +10 -2
- data/docs/{Notification200Errors.md → FilterExpression.md} +9 -9
- data/docs/GenericError.md +6 -2
- data/docs/{DeletePlayerSuccessResponse.md → GenericSuccessBoolResponse.md} +2 -2
- data/docs/{GetNotificationRequestBody.md → GetNotificationHistoryRequestBody.md} +2 -2
- data/docs/GetSegmentsSuccessResponse.md +24 -0
- data/docs/{StringMap.md → LanguageStringMap.md} +2 -2
- data/docs/Notification.md +18 -18
- data/docs/NotificationTarget.md +9 -11
- data/docs/NotificationWithMeta.md +18 -18
- data/docs/{InlineResponse202.md → PropertiesBody.md} +2 -2
- data/docs/PropertiesDeltas.md +2 -2
- data/docs/PropertiesObject.md +2 -2
- data/docs/Purchase.md +1 -1
- data/docs/RateLimitError.md +20 -0
- data/docs/Segment.md +1 -1
- data/docs/SegmentData.md +30 -0
- data/docs/{SubscriptionObject.md → Subscription.md} +6 -6
- data/docs/SubscriptionBody.md +18 -0
- data/docs/SubscriptionNotificationTarget.md +38 -0
- data/docs/TransferSubscriptionRequestBody.md +1 -1
- data/docs/UpdateLiveActivityRequest.md +14 -4
- data/docs/UpdateLiveActivitySuccessResponse.md +2 -4
- data/docs/User.md +3 -5
- data/docs/{InlineResponse200.md → UserIdentityBody.md} +3 -3
- data/docs/WebButton.md +24 -0
- data/lib/onesignal/api/default_api.rb +382 -890
- data/lib/onesignal/api_client.rb +2 -2
- data/lib/onesignal/api_error.rb +1 -1
- data/lib/onesignal/configuration.rb +5 -5
- data/lib/onesignal/models/app.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +49 -47
- data/lib/onesignal/models/basic_notification_all_of.rb +29 -17
- data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
- data/lib/onesignal/models/button.rb +1 -1
- data/lib/onesignal/models/create_notification_success_response.rb +5 -13
- data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_segment_success_response.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
- data/lib/onesignal/models/delivery_data.rb +1 -1
- data/lib/onesignal/models/export_events_success_response.rb +1 -1
- data/lib/onesignal/models/{export_players_request_body.rb → export_subscriptions_request_body.rb} +4 -4
- data/lib/onesignal/models/{export_players_success_response.rb → export_subscriptions_success_response.rb} +4 -4
- data/lib/onesignal/models/filter.rb +44 -14
- data/lib/onesignal/models/{notification200_errors.rb → filter_expression.rb} +4 -4
- data/lib/onesignal/models/generic_error.rb +26 -8
- data/lib/onesignal/models/{update_player_success_response.rb → generic_success_bool_response.rb} +4 -4
- data/lib/onesignal/models/{get_notification_request_body.rb → get_notification_history_request_body.rb} +4 -4
- data/lib/onesignal/models/{player_slice.rb → get_segments_success_response.rb} +16 -12
- data/lib/onesignal/models/{string_map.rb → language_string_map.rb} +4 -4
- data/lib/onesignal/models/notification.rb +49 -47
- data/lib/onesignal/models/notification_all_of.rb +1 -1
- data/lib/onesignal/models/notification_history_success_response.rb +1 -1
- data/lib/onesignal/models/notification_slice.rb +1 -1
- data/lib/onesignal/models/notification_target.rb +24 -34
- data/lib/onesignal/models/notification_with_meta.rb +49 -47
- data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
- data/lib/onesignal/models/operator.rb +1 -1
- data/lib/onesignal/models/outcome_data.rb +1 -1
- data/lib/onesignal/models/outcomes_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
- data/lib/onesignal/models/{inline_response202.rb → properties_body.rb} +4 -4
- data/lib/onesignal/models/properties_deltas.rb +3 -3
- data/lib/onesignal/models/properties_object.rb +3 -3
- data/lib/onesignal/models/purchase.rb +2 -2
- data/lib/onesignal/models/{rate_limiter_error.rb → rate_limit_error.rb} +17 -8
- data/lib/onesignal/models/segment.rb +2 -2
- data/lib/onesignal/models/{begin_live_activity_request.rb → segment_data.rb} +69 -27
- data/lib/onesignal/models/segment_notification_target.rb +1 -1
- data/lib/onesignal/models/{subscription_object.rb → subscription.rb} +8 -8
- data/lib/onesignal/models/{inline_response201.rb → subscription_body.rb} +5 -5
- data/lib/onesignal/models/{player_notification_target.rb → subscription_notification_target.rb} +25 -35
- data/lib/onesignal/models/transfer_subscription_request_body.rb +26 -2
- data/lib/onesignal/models/update_live_activity_request.rb +59 -22
- data/lib/onesignal/models/update_live_activity_success_response.rb +8 -17
- data/lib/onesignal/models/update_user_request.rb +1 -1
- data/lib/onesignal/models/user.rb +6 -15
- data/lib/onesignal/models/{inline_response200.rb → user_identity_body.rb} +5 -5
- data/lib/onesignal/models/{create_player_success_response.rb → web_button.rb} +40 -17
- data/lib/onesignal/version.rb +2 -2
- data/lib/onesignal.rb +16 -34
- data/onesignal.gemspec +1 -1
- data/spec/api/default_api_spec.rb +82 -174
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/app_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_spec.rb +13 -7
- data/spec/models/basic_notification_spec.rb +14 -14
- data/spec/models/button_spec.rb +1 -1
- data/spec/models/create_notification_success_response_spec.rb +1 -7
- data/spec/models/create_segment_conflict_response_spec.rb +1 -1
- data/spec/models/create_segment_success_response_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_spec.rb +1 -1
- data/spec/models/delivery_data_spec.rb +1 -1
- data/spec/models/export_events_success_response_spec.rb +1 -1
- data/spec/models/{export_players_request_body_spec.rb → export_subscriptions_request_body_spec.rb} +7 -7
- data/spec/models/{export_players_success_response_spec.rb → export_subscriptions_success_response_spec.rb} +7 -7
- data/spec/models/{notification200_errors_spec.rb → filter_expression_spec.rb} +3 -3
- data/spec/models/filter_spec.rb +25 -1
- data/spec/models/generic_error_spec.rb +13 -1
- data/spec/models/{delete_player_success_response_spec.rb → generic_success_bool_response_spec.rb} +7 -7
- data/spec/models/{get_notification_request_body_spec.rb → get_notification_history_request_body_spec.rb} +7 -7
- data/spec/models/{player_slice_spec.rb → get_segments_success_response_spec.rb} +8 -8
- data/spec/models/{string_map_spec.rb → language_string_map_spec.rb} +7 -7
- data/spec/models/notification_all_of_spec.rb +1 -1
- data/spec/models/notification_history_success_response_spec.rb +1 -1
- data/spec/models/notification_slice_spec.rb +1 -1
- data/spec/models/notification_spec.rb +14 -14
- data/spec/models/notification_target_spec.rb +2 -8
- data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
- data/spec/models/notification_with_meta_spec.rb +14 -14
- data/spec/models/operator_spec.rb +1 -1
- data/spec/models/outcome_data_spec.rb +1 -1
- data/spec/models/outcomes_data_spec.rb +1 -1
- data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_spec.rb +1 -1
- data/spec/models/{inline_response202_spec.rb → properties_body_spec.rb} +7 -7
- data/spec/models/properties_deltas_spec.rb +1 -1
- data/spec/models/properties_object_spec.rb +1 -1
- data/spec/models/purchase_spec.rb +1 -1
- data/spec/models/{generic_error_errors_inner_spec.rb → rate_limit_error_spec.rb} +9 -9
- data/spec/models/{filter_expressions_spec.rb → segment_data_spec.rb} +24 -20
- data/spec/models/segment_notification_target_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/{inline_response201_spec.rb → subscription_body_spec.rb} +7 -7
- data/spec/models/{player_notification_target_spec.rb → subscription_notification_target_spec.rb} +8 -14
- data/spec/models/{subscription_object_spec.rb → subscription_spec.rb} +7 -7
- data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
- data/spec/models/update_live_activity_request_spec.rb +32 -6
- data/spec/models/update_live_activity_success_response_spec.rb +2 -8
- data/spec/models/update_user_request_spec.rb +1 -1
- data/spec/models/{user_identity_response_spec.rb → user_identity_body_spec.rb} +7 -7
- data/spec/models/user_spec.rb +1 -7
- data/spec/models/{create_player_success_response_spec.rb → web_button_spec.rb} +21 -9
- data/spec/spec_helper.rb +1 -1
- metadata +61 -131
- data/docs/BeginLiveActivityRequest.md +0 -20
- data/docs/CancelNotificationSuccessResponse.md +0 -18
- data/docs/CreatePlayerSuccessResponse.md +0 -20
- data/docs/CreateSubscriptionRequestBody.md +0 -20
- data/docs/DeletePlayerNotFoundResponse.md +0 -18
- data/docs/DeleteSegmentNotFoundResponse.md +0 -18
- data/docs/DeleteSegmentSuccessResponse.md +0 -18
- data/docs/FilterExpressions.md +0 -26
- data/docs/InlineResponse2003.md +0 -18
- data/docs/InlineResponse201.md +0 -18
- data/docs/InvalidIdentifierError.md +0 -20
- data/docs/Player.md +0 -70
- data/docs/PlayerNotificationTarget.md +0 -40
- data/docs/PlayerNotificationTargetIncludeAliases.md +0 -18
- data/docs/PlayerSlice.md +0 -24
- data/docs/UpdatePlayerSuccessResponse.md +0 -18
- data/docs/UpdatePlayerTagsRequestBody.md +0 -18
- data/docs/UpdatePlayerTagsSuccessResponse.md +0 -18
- data/docs/UpdateSubscriptionRequestBody.md +0 -18
- data/docs/UserIdentityRequestBody.md +0 -18
- data/docs/UserIdentityResponse.md +0 -18
- data/docs/UserSubscriptionOptions.md +0 -18
- data/lib/onesignal/models/cancel_notification_success_response.rb +0 -219
- data/lib/onesignal/models/create_subscription_request_body.rb +0 -228
- data/lib/onesignal/models/delete_player_not_found_response.rb +0 -219
- data/lib/onesignal/models/delete_player_success_response.rb +0 -219
- data/lib/onesignal/models/delete_segment_not_found_response.rb +0 -219
- data/lib/onesignal/models/delete_segment_success_response.rb +0 -219
- data/lib/onesignal/models/filter_expressions.rb +0 -336
- data/lib/onesignal/models/generic_error_errors_inner.rb +0 -228
- data/lib/onesignal/models/inline_response2003.rb +0 -221
- data/lib/onesignal/models/invalid_identifier_error.rb +0 -234
- data/lib/onesignal/models/player.rb +0 -494
- data/lib/onesignal/models/player_notification_target_include_aliases.rb +0 -221
- data/lib/onesignal/models/update_player_tags_request_body.rb +0 -220
- data/lib/onesignal/models/update_player_tags_success_response.rb +0 -219
- data/lib/onesignal/models/update_subscription_request_body.rb +0 -219
- data/lib/onesignal/models/user_identity_request_body.rb +0 -221
- data/lib/onesignal/models/user_identity_response.rb +0 -221
- data/lib/onesignal/models/user_subscription_options.rb +0 -219
- data/spec/models/begin_live_activity_request_spec.rb +0 -40
- data/spec/models/cancel_notification_success_response_spec.rb +0 -34
- data/spec/models/create_subscription_request_body_spec.rb +0 -40
- data/spec/models/delete_player_not_found_response_spec.rb +0 -34
- data/spec/models/delete_segment_not_found_response_spec.rb +0 -34
- data/spec/models/delete_segment_success_response_spec.rb +0 -34
- data/spec/models/inline_response2003_spec.rb +0 -34
- data/spec/models/inline_response200_spec.rb +0 -34
- data/spec/models/invalid_identifier_error_spec.rb +0 -40
- data/spec/models/player_notification_target_include_aliases_spec.rb +0 -34
- data/spec/models/player_spec.rb +0 -190
- data/spec/models/rate_limiter_error_spec.rb +0 -34
- data/spec/models/update_player_success_response_spec.rb +0 -34
- data/spec/models/update_player_tags_request_body_spec.rb +0 -34
- data/spec/models/update_player_tags_success_response_spec.rb +0 -34
- data/spec/models/update_subscription_request_body_spec.rb +0 -34
- data/spec/models/user_identity_request_body_spec.rb +0 -34
- data/spec/models/user_subscription_options_spec.rb +0 -34
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -15,15 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module OneSignal
|
17
17
|
class UpdateLiveActivitySuccessResponse
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :errors
|
18
|
+
attr_accessor :id
|
21
19
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
21
|
def self.attribute_map
|
24
22
|
{
|
25
|
-
:'
|
26
|
-
:'errors' => :'errors'
|
23
|
+
:'id' => :'id'
|
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
|
-
:'errors' => :'Notification200Errors'
|
35
|
+
:'id' => :'String'
|
40
36
|
}
|
41
37
|
end
|
42
38
|
|
@@ -61,12 +57,8 @@ module OneSignal
|
|
61
57
|
h[k.to_sym] = v
|
62
58
|
}
|
63
59
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
66
|
-
end
|
67
|
-
|
68
|
-
if attributes.key?(:'errors')
|
69
|
-
self.errors = attributes[:'errors']
|
60
|
+
if attributes.key?(:'id')
|
61
|
+
self.id = attributes[:'id']
|
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
|
-
errors == o.errors
|
83
|
+
id == o.id
|
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
|
+
[id].hash
|
105
96
|
end
|
106
97
|
|
107
98
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -21,15 +21,12 @@ module OneSignal
|
|
21
21
|
|
22
22
|
attr_accessor :subscriptions
|
23
23
|
|
24
|
-
attr_accessor :subscription_options
|
25
|
-
|
26
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
25
|
def self.attribute_map
|
28
26
|
{
|
29
27
|
:'properties' => :'properties',
|
30
28
|
:'identity' => :'identity',
|
31
|
-
:'subscriptions' => :'subscriptions'
|
32
|
-
:'subscription_options' => :'subscription_options'
|
29
|
+
:'subscriptions' => :'subscriptions'
|
33
30
|
}
|
34
31
|
end
|
35
32
|
|
@@ -42,9 +39,8 @@ module OneSignal
|
|
42
39
|
def self.openapi_types
|
43
40
|
{
|
44
41
|
:'properties' => :'PropertiesObject',
|
45
|
-
:'identity' => :'Hash<String,
|
46
|
-
:'subscriptions' => :'Array<
|
47
|
-
:'subscription_options' => :'UserSubscriptionOptions'
|
42
|
+
:'identity' => :'Hash<String, String>',
|
43
|
+
:'subscriptions' => :'Array<Subscription>'
|
48
44
|
}
|
49
45
|
end
|
50
46
|
|
@@ -84,10 +80,6 @@ module OneSignal
|
|
84
80
|
self.subscriptions = value
|
85
81
|
end
|
86
82
|
end
|
87
|
-
|
88
|
-
if attributes.key?(:'subscription_options')
|
89
|
-
self.subscription_options = attributes[:'subscription_options']
|
90
|
-
end
|
91
83
|
end
|
92
84
|
|
93
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,8 +102,7 @@ module OneSignal
|
|
110
102
|
self.class == o.class &&
|
111
103
|
properties == o.properties &&
|
112
104
|
identity == o.identity &&
|
113
|
-
subscriptions == o.subscriptions
|
114
|
-
subscription_options == o.subscription_options
|
105
|
+
subscriptions == o.subscriptions
|
115
106
|
end
|
116
107
|
|
117
108
|
# @see the `==` method
|
@@ -123,7 +114,7 @@ module OneSignal
|
|
123
114
|
# Calculates hash code according to all attributes.
|
124
115
|
# @return [Integer] Hash code
|
125
116
|
def hash
|
126
|
-
[properties, identity, subscriptions
|
117
|
+
[properties, identity, subscriptions].hash
|
127
118
|
end
|
128
119
|
|
129
120
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OneSignal
|
17
|
-
class
|
17
|
+
class UserIdentityBody
|
18
18
|
attr_accessor :identity
|
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
|
-
:'identity' => :'Hash<String,
|
35
|
+
:'identity' => :'Hash<String, 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::UserIdentityBody` 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::UserIdentityBody`. 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
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -14,16 +14,22 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OneSignal
|
17
|
-
class
|
18
|
-
attr_accessor :success
|
19
|
-
|
17
|
+
class WebButton
|
20
18
|
attr_accessor :id
|
21
19
|
|
20
|
+
attr_accessor :text
|
21
|
+
|
22
|
+
attr_accessor :icon
|
23
|
+
|
24
|
+
attr_accessor :url
|
25
|
+
|
22
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
27
|
def self.attribute_map
|
24
28
|
{
|
25
|
-
:'
|
26
|
-
:'
|
29
|
+
:'id' => :'id',
|
30
|
+
:'text' => :'text',
|
31
|
+
:'icon' => :'icon',
|
32
|
+
:'url' => :'url'
|
27
33
|
}
|
28
34
|
end
|
29
35
|
|
@@ -35,8 +41,10 @@ module OneSignal
|
|
35
41
|
# Attribute type mapping.
|
36
42
|
def self.openapi_types
|
37
43
|
{
|
38
|
-
:'
|
39
|
-
:'
|
44
|
+
:'id' => :'String',
|
45
|
+
:'text' => :'String',
|
46
|
+
:'icon' => :'String',
|
47
|
+
:'url' => :'String'
|
40
48
|
}
|
41
49
|
end
|
42
50
|
|
@@ -50,36 +58,49 @@ module OneSignal
|
|
50
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
59
|
def initialize(attributes = {})
|
52
60
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::WebButton` initialize method"
|
54
62
|
end
|
55
63
|
|
56
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
66
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::WebButton`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
68
|
end
|
61
69
|
h[k.to_sym] = v
|
62
70
|
}
|
63
71
|
|
64
|
-
if attributes.key?(:'success')
|
65
|
-
self.success = attributes[:'success']
|
66
|
-
end
|
67
|
-
|
68
72
|
if attributes.key?(:'id')
|
69
73
|
self.id = attributes[:'id']
|
70
74
|
end
|
75
|
+
|
76
|
+
if attributes.key?(:'text')
|
77
|
+
self.text = attributes[:'text']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'icon')
|
81
|
+
self.icon = attributes[:'icon']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'url')
|
85
|
+
self.url = attributes[:'url']
|
86
|
+
end
|
71
87
|
end
|
72
88
|
|
73
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
74
90
|
# @return Array for valid properties with the reasons
|
75
91
|
def list_invalid_properties
|
76
92
|
invalid_properties = Array.new
|
93
|
+
if @id.nil?
|
94
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
95
|
+
end
|
96
|
+
|
77
97
|
invalid_properties
|
78
98
|
end
|
79
99
|
|
80
100
|
# Check to see if the all the properties in the model are valid
|
81
101
|
# @return true if the model is valid
|
82
102
|
def valid?
|
103
|
+
return false if @id.nil?
|
83
104
|
true
|
84
105
|
end
|
85
106
|
|
@@ -88,8 +109,10 @@ module OneSignal
|
|
88
109
|
def ==(o)
|
89
110
|
return true if self.equal?(o)
|
90
111
|
self.class == o.class &&
|
91
|
-
|
92
|
-
|
112
|
+
id == o.id &&
|
113
|
+
text == o.text &&
|
114
|
+
icon == o.icon &&
|
115
|
+
url == o.url
|
93
116
|
end
|
94
117
|
|
95
118
|
# @see the `==` method
|
@@ -101,7 +124,7 @@ module OneSignal
|
|
101
124
|
# Calculates hash code according to all attributes.
|
102
125
|
# @return [Integer] Hash code
|
103
126
|
def hash
|
104
|
-
[
|
127
|
+
[id, text, icon, url].hash
|
105
128
|
end
|
106
129
|
|
107
130
|
# Builds the object from hash
|
data/lib/onesignal/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module OneSignal
|
14
|
-
VERSION = '
|
14
|
+
VERSION = '5.1.0-beta1'
|
15
15
|
end
|
data/lib/onesignal.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 5.1.0
|
7
7
|
Contact: devrel@onesignal.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
@@ -21,37 +21,25 @@ require 'onesignal/models/app'
|
|
21
21
|
require 'onesignal/models/basic_notification'
|
22
22
|
require 'onesignal/models/basic_notification_all_of'
|
23
23
|
require 'onesignal/models/basic_notification_all_of_android_background_layout'
|
24
|
-
require 'onesignal/models/begin_live_activity_request'
|
25
24
|
require 'onesignal/models/button'
|
26
|
-
require 'onesignal/models/cancel_notification_success_response'
|
27
25
|
require 'onesignal/models/create_notification_success_response'
|
28
|
-
require 'onesignal/models/create_player_success_response'
|
29
26
|
require 'onesignal/models/create_segment_conflict_response'
|
30
27
|
require 'onesignal/models/create_segment_success_response'
|
31
|
-
require 'onesignal/models/create_subscription_request_body'
|
32
28
|
require 'onesignal/models/create_user_conflict_response'
|
33
29
|
require 'onesignal/models/create_user_conflict_response_errors_inner'
|
34
30
|
require 'onesignal/models/create_user_conflict_response_errors_items_meta'
|
35
|
-
require 'onesignal/models/delete_player_not_found_response'
|
36
|
-
require 'onesignal/models/delete_player_success_response'
|
37
|
-
require 'onesignal/models/delete_segment_not_found_response'
|
38
|
-
require 'onesignal/models/delete_segment_success_response'
|
39
31
|
require 'onesignal/models/delivery_data'
|
40
32
|
require 'onesignal/models/export_events_success_response'
|
41
|
-
require 'onesignal/models/
|
42
|
-
require 'onesignal/models/
|
33
|
+
require 'onesignal/models/export_subscriptions_request_body'
|
34
|
+
require 'onesignal/models/export_subscriptions_success_response'
|
43
35
|
require 'onesignal/models/filter'
|
44
|
-
require 'onesignal/models/
|
36
|
+
require 'onesignal/models/filter_expression'
|
45
37
|
require 'onesignal/models/generic_error'
|
46
|
-
require 'onesignal/models/
|
47
|
-
require 'onesignal/models/
|
48
|
-
require 'onesignal/models/
|
49
|
-
require 'onesignal/models/
|
50
|
-
require 'onesignal/models/inline_response201'
|
51
|
-
require 'onesignal/models/inline_response202'
|
52
|
-
require 'onesignal/models/invalid_identifier_error'
|
38
|
+
require 'onesignal/models/generic_success_bool_response'
|
39
|
+
require 'onesignal/models/get_notification_history_request_body'
|
40
|
+
require 'onesignal/models/get_segments_success_response'
|
41
|
+
require 'onesignal/models/language_string_map'
|
53
42
|
require 'onesignal/models/notification'
|
54
|
-
require 'onesignal/models/notification200_errors'
|
55
43
|
require 'onesignal/models/notification_all_of'
|
56
44
|
require 'onesignal/models/notification_history_success_response'
|
57
45
|
require 'onesignal/models/notification_slice'
|
@@ -64,30 +52,24 @@ require 'onesignal/models/outcomes_data'
|
|
64
52
|
require 'onesignal/models/platform_delivery_data'
|
65
53
|
require 'onesignal/models/platform_delivery_data_email_all_of'
|
66
54
|
require 'onesignal/models/platform_delivery_data_sms_all_of'
|
67
|
-
require 'onesignal/models/
|
68
|
-
require 'onesignal/models/player_notification_target'
|
69
|
-
require 'onesignal/models/player_notification_target_include_aliases'
|
70
|
-
require 'onesignal/models/player_slice'
|
55
|
+
require 'onesignal/models/properties_body'
|
71
56
|
require 'onesignal/models/properties_deltas'
|
72
57
|
require 'onesignal/models/properties_object'
|
73
58
|
require 'onesignal/models/purchase'
|
74
|
-
require 'onesignal/models/
|
59
|
+
require 'onesignal/models/rate_limit_error'
|
75
60
|
require 'onesignal/models/segment'
|
61
|
+
require 'onesignal/models/segment_data'
|
76
62
|
require 'onesignal/models/segment_notification_target'
|
77
|
-
require 'onesignal/models/
|
78
|
-
require 'onesignal/models/
|
63
|
+
require 'onesignal/models/subscription'
|
64
|
+
require 'onesignal/models/subscription_body'
|
65
|
+
require 'onesignal/models/subscription_notification_target'
|
79
66
|
require 'onesignal/models/transfer_subscription_request_body'
|
80
67
|
require 'onesignal/models/update_live_activity_request'
|
81
68
|
require 'onesignal/models/update_live_activity_success_response'
|
82
|
-
require 'onesignal/models/update_player_success_response'
|
83
|
-
require 'onesignal/models/update_player_tags_request_body'
|
84
|
-
require 'onesignal/models/update_player_tags_success_response'
|
85
|
-
require 'onesignal/models/update_subscription_request_body'
|
86
69
|
require 'onesignal/models/update_user_request'
|
87
70
|
require 'onesignal/models/user'
|
88
|
-
require 'onesignal/models/
|
89
|
-
require 'onesignal/models/
|
90
|
-
require 'onesignal/models/user_subscription_options'
|
71
|
+
require 'onesignal/models/user_identity_body'
|
72
|
+
require 'onesignal/models/web_button'
|
91
73
|
|
92
74
|
# APIs
|
93
75
|
require 'onesignal/api/default_api'
|
data/onesignal.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 1.
|
8
|
+
The version of the OpenAPI document: 5.1.0
|
9
9
|
Contact: devrel@onesignal.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
OpenAPI Generator version: 6.0.0-SNAPSHOT
|