onesignal 2.2.0 → 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 -65
- data/docs/BasicNotification.md +18 -18
- data/docs/BasicNotificationAllOf.md +9 -7
- data/docs/CreateNotificationSuccessResponse.md +1 -3
- data/docs/DefaultApi.md +364 -874
- 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} +7 -7
- 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} +9 -9
- 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 +97 -171
- data/Gemfile.lock +0 -74
- 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
|
@@ -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
|
data/lib/onesignal/models/{export_players_request_body.rb → export_subscriptions_request_body.rb}
RENAMED
@@ -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 ExportSubscriptionsRequestBody
|
18
18
|
# Additional fields that you wish to include. Currently supports location, country, rooted, notification_types, ip, external_user_id, web_auth, and web_p256.
|
19
19
|
attr_accessor :extra_fields
|
20
20
|
|
@@ -57,13 +57,13 @@ module OneSignal
|
|
57
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
58
58
|
def initialize(attributes = {})
|
59
59
|
if (!attributes.is_a?(Hash))
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::ExportSubscriptionsRequestBody` initialize method"
|
61
61
|
end
|
62
62
|
|
63
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
64
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
65
|
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::ExportSubscriptionsRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
67
|
end
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
@@ -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 ExportSubscriptionsSuccessResponse
|
18
18
|
attr_accessor :csv_file_url
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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::ExportSubscriptionsSuccessResponse` 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::ExportSubscriptionsSuccessResponse`. 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
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module OneSignal
|
17
17
|
class Filter
|
18
|
-
# Name of the field to use as the first operand in the filter expression.
|
18
|
+
# Required. Name of the field to use as the first operand in the filter expression.
|
19
19
|
attr_accessor :field
|
20
20
|
|
21
21
|
# If `field` is `tag`, this field is *required* to specify `key` inside the tags.
|
@@ -24,7 +24,19 @@ module OneSignal
|
|
24
24
|
# Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
|
25
25
|
attr_accessor :value
|
26
26
|
|
27
|
-
#
|
27
|
+
# If `field` is session-related, this is *required* to specify the number of hours before or after the user's session.
|
28
|
+
attr_accessor :hours_ago
|
29
|
+
|
30
|
+
# If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.
|
31
|
+
attr_accessor :radius
|
32
|
+
|
33
|
+
# If `field` is `location`, this is *required* to specify the user's latitude.
|
34
|
+
attr_accessor :lat
|
35
|
+
|
36
|
+
# If `field` is `location`, this is *required* to specify the user's longitude.
|
37
|
+
attr_accessor :long
|
38
|
+
|
39
|
+
# Required. Operator of a filter expression.
|
28
40
|
attr_accessor :relation
|
29
41
|
|
30
42
|
class EnumAttributeValidator
|
@@ -55,6 +67,10 @@ module OneSignal
|
|
55
67
|
:'field' => :'field',
|
56
68
|
:'key' => :'key',
|
57
69
|
:'value' => :'value',
|
70
|
+
:'hours_ago' => :'hours_ago',
|
71
|
+
:'radius' => :'radius',
|
72
|
+
:'lat' => :'lat',
|
73
|
+
:'long' => :'long',
|
58
74
|
:'relation' => :'relation'
|
59
75
|
}
|
60
76
|
end
|
@@ -70,6 +86,10 @@ module OneSignal
|
|
70
86
|
:'field' => :'String',
|
71
87
|
:'key' => :'String',
|
72
88
|
:'value' => :'String',
|
89
|
+
:'hours_ago' => :'String',
|
90
|
+
:'radius' => :'Float',
|
91
|
+
:'lat' => :'Float',
|
92
|
+
:'long' => :'Float',
|
73
93
|
:'relation' => :'String'
|
74
94
|
}
|
75
95
|
end
|
@@ -107,6 +127,22 @@ module OneSignal
|
|
107
127
|
self.value = attributes[:'value']
|
108
128
|
end
|
109
129
|
|
130
|
+
if attributes.key?(:'hours_ago')
|
131
|
+
self.hours_ago = attributes[:'hours_ago']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'radius')
|
135
|
+
self.radius = attributes[:'radius']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'lat')
|
139
|
+
self.lat = attributes[:'lat']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'long')
|
143
|
+
self.long = attributes[:'long']
|
144
|
+
end
|
145
|
+
|
110
146
|
if attributes.key?(:'relation')
|
111
147
|
self.relation = attributes[:'relation']
|
112
148
|
end
|
@@ -116,22 +152,12 @@ module OneSignal
|
|
116
152
|
# @return Array for valid properties with the reasons
|
117
153
|
def list_invalid_properties
|
118
154
|
invalid_properties = Array.new
|
119
|
-
if @field.nil?
|
120
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
121
|
-
end
|
122
|
-
|
123
|
-
if @relation.nil?
|
124
|
-
invalid_properties.push('invalid value for "relation", relation cannot be nil.')
|
125
|
-
end
|
126
|
-
|
127
155
|
invalid_properties
|
128
156
|
end
|
129
157
|
|
130
158
|
# Check to see if the all the properties in the model are valid
|
131
159
|
# @return true if the model is valid
|
132
160
|
def valid?
|
133
|
-
return false if @field.nil?
|
134
|
-
return false if @relation.nil?
|
135
161
|
relation_validator = EnumAttributeValidator.new('String', [">", "<", "=", "!=", "exists", "not_exists", "time_elapsed_gt", "time_elapsed_lt"])
|
136
162
|
return false unless relation_validator.valid?(@relation)
|
137
163
|
true
|
@@ -155,6 +181,10 @@ module OneSignal
|
|
155
181
|
field == o.field &&
|
156
182
|
key == o.key &&
|
157
183
|
value == o.value &&
|
184
|
+
hours_ago == o.hours_ago &&
|
185
|
+
radius == o.radius &&
|
186
|
+
lat == o.lat &&
|
187
|
+
long == o.long &&
|
158
188
|
relation == o.relation
|
159
189
|
end
|
160
190
|
|
@@ -167,7 +197,7 @@ module OneSignal
|
|
167
197
|
# Calculates hash code according to all attributes.
|
168
198
|
# @return [Integer] Hash code
|
169
199
|
def hash
|
170
|
-
[field, key, value, relation].hash
|
200
|
+
[field, key, value, hours_ago, radius, lat, long, relation].hash
|
171
201
|
end
|
172
202
|
|
173
203
|
# 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,13 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OneSignal
|
17
|
-
module
|
17
|
+
module FilterExpression
|
18
18
|
class << self
|
19
19
|
# List of class defined in oneOf (OpenAPI v3)
|
20
20
|
def openapi_one_of
|
21
21
|
[
|
22
|
-
:'
|
23
|
-
:'
|
22
|
+
:'Filter',
|
23
|
+
:'Operator'
|
24
24
|
]
|
25
25
|
end
|
26
26
|
|
@@ -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
|
@@ -17,10 +17,16 @@ module OneSignal
|
|
17
17
|
class GenericError
|
18
18
|
attr_accessor :errors
|
19
19
|
|
20
|
+
attr_accessor :success
|
21
|
+
|
22
|
+
attr_accessor :reference
|
23
|
+
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'errors' => :'errors'
|
27
|
+
:'errors' => :'errors',
|
28
|
+
:'success' => :'success',
|
29
|
+
:'reference' => :'reference'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,13 +38,17 @@ module OneSignal
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'errors' => :'
|
41
|
+
:'errors' => :'Object',
|
42
|
+
:'success' => :'Boolean',
|
43
|
+
:'reference' => :'Object'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
39
47
|
# List of attributes with nullable: true
|
40
48
|
def self.openapi_nullable
|
41
49
|
Set.new([
|
50
|
+
:'errors',
|
51
|
+
:'reference'
|
42
52
|
])
|
43
53
|
end
|
44
54
|
|
@@ -58,9 +68,15 @@ module OneSignal
|
|
58
68
|
}
|
59
69
|
|
60
70
|
if attributes.key?(:'errors')
|
61
|
-
|
62
|
-
|
63
|
-
|
71
|
+
self.errors = attributes[:'errors']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'success')
|
75
|
+
self.success = attributes[:'success']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'reference')
|
79
|
+
self.reference = attributes[:'reference']
|
64
80
|
end
|
65
81
|
end
|
66
82
|
|
@@ -82,7 +98,9 @@ module OneSignal
|
|
82
98
|
def ==(o)
|
83
99
|
return true if self.equal?(o)
|
84
100
|
self.class == o.class &&
|
85
|
-
errors == o.errors
|
101
|
+
errors == o.errors &&
|
102
|
+
success == o.success &&
|
103
|
+
reference == o.reference
|
86
104
|
end
|
87
105
|
|
88
106
|
# @see the `==` method
|
@@ -94,7 +112,7 @@ module OneSignal
|
|
94
112
|
# Calculates hash code according to all attributes.
|
95
113
|
# @return [Integer] Hash code
|
96
114
|
def hash
|
97
|
-
[errors].hash
|
115
|
+
[errors, success, reference].hash
|
98
116
|
end
|
99
117
|
|
100
118
|
# Builds the object from hash
|
data/lib/onesignal/models/{update_player_success_response.rb → generic_success_bool_response.rb}
RENAMED
@@ -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 GenericSuccessBoolResponse
|
18
18
|
attr_accessor :success
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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::GenericSuccessBoolResponse` 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::GenericSuccessBoolResponse`. 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,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OneSignal
|
17
|
-
class
|
17
|
+
class GetNotificationHistoryRequestBody
|
18
18
|
# -> \"sent\" - All the devices by player_id that were sent the specified notification_id. Notifications targeting under 1000 recipients will not have \"sent\" events recorded, but will show \"clicked\" events. \"clicked\" - All the devices by `player_id` that clicked the specified notification_id.
|
19
19
|
attr_accessor :events
|
20
20
|
|
@@ -78,13 +78,13 @@ module OneSignal
|
|
78
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
79
|
def initialize(attributes = {})
|
80
80
|
if (!attributes.is_a?(Hash))
|
81
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::GetNotificationHistoryRequestBody` initialize method"
|
82
82
|
end
|
83
83
|
|
84
84
|
# check to see if the attribute exists and convert string to symbol for hash key
|
85
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
86
|
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::GetNotificationHistoryRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
88
|
end
|
89
89
|
h[k.to_sym] = v
|
90
90
|
}
|
@@ -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,14 +14,18 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module OneSignal
|
17
|
-
class
|
17
|
+
class GetSegmentsSuccessResponse
|
18
|
+
# The number of Segments in the response.
|
18
19
|
attr_accessor :total_count
|
19
20
|
|
21
|
+
# Set with the offset query parameter. Default 0.
|
20
22
|
attr_accessor :offset
|
21
23
|
|
24
|
+
# Maximum number of Segments returned. Default 300.
|
22
25
|
attr_accessor :limit
|
23
26
|
|
24
|
-
|
27
|
+
# An array containing the Segment information.
|
28
|
+
attr_accessor :segments
|
25
29
|
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
31
|
def self.attribute_map
|
@@ -29,7 +33,7 @@ module OneSignal
|
|
29
33
|
:'total_count' => :'total_count',
|
30
34
|
:'offset' => :'offset',
|
31
35
|
:'limit' => :'limit',
|
32
|
-
:'
|
36
|
+
:'segments' => :'segments'
|
33
37
|
}
|
34
38
|
end
|
35
39
|
|
@@ -44,7 +48,7 @@ module OneSignal
|
|
44
48
|
:'total_count' => :'Integer',
|
45
49
|
:'offset' => :'Integer',
|
46
50
|
:'limit' => :'Integer',
|
47
|
-
:'
|
51
|
+
:'segments' => :'Array<SegmentData>'
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
@@ -58,13 +62,13 @@ module OneSignal
|
|
58
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
63
|
def initialize(attributes = {})
|
60
64
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::GetSegmentsSuccessResponse` initialize method"
|
62
66
|
end
|
63
67
|
|
64
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::GetSegmentsSuccessResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
72
|
end
|
69
73
|
h[k.to_sym] = v
|
70
74
|
}
|
@@ -81,9 +85,9 @@ module OneSignal
|
|
81
85
|
self.limit = attributes[:'limit']
|
82
86
|
end
|
83
87
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
if (value = attributes[:'
|
86
|
-
self.
|
88
|
+
if attributes.key?(:'segments')
|
89
|
+
if (value = attributes[:'segments']).is_a?(Array)
|
90
|
+
self.segments = value
|
87
91
|
end
|
88
92
|
end
|
89
93
|
end
|
@@ -109,7 +113,7 @@ module OneSignal
|
|
109
113
|
total_count == o.total_count &&
|
110
114
|
offset == o.offset &&
|
111
115
|
limit == o.limit &&
|
112
|
-
|
116
|
+
segments == o.segments
|
113
117
|
end
|
114
118
|
|
115
119
|
# @see the `==` method
|
@@ -121,7 +125,7 @@ module OneSignal
|
|
121
125
|
# Calculates hash code according to all attributes.
|
122
126
|
# @return [Integer] Hash code
|
123
127
|
def hash
|
124
|
-
[total_count, offset, limit,
|
128
|
+
[total_count, offset, limit, segments].hash
|
125
129
|
end
|
126
130
|
|
127
131
|
# 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 LanguageStringMap
|
18
18
|
# Text in English. Will be used as a fallback
|
19
19
|
attr_accessor :en
|
20
20
|
|
@@ -257,13 +257,13 @@ module OneSignal
|
|
257
257
|
# @param [Hash] attributes Model attributes in the form of hash
|
258
258
|
def initialize(attributes = {})
|
259
259
|
if (!attributes.is_a?(Hash))
|
260
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::
|
260
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OneSignal::LanguageStringMap` initialize method"
|
261
261
|
end
|
262
262
|
|
263
263
|
# check to see if the attribute exists and convert string to symbol for hash key
|
264
264
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
265
265
|
if (!self.class.attribute_map.key?(k.to_sym))
|
266
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::
|
266
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OneSignal::LanguageStringMap`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
267
267
|
end
|
268
268
|
h[k.to_sym] = v
|
269
269
|
}
|