notifo-io 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +245 -60
- data/docs/AddContributorDto.md +1 -1
- data/docs/AdminProfileDto.md +7 -0
- data/docs/AppsApi.md +1 -1
- data/docs/ChannelSendInfoDto.md +4 -0
- data/docs/ConfigsApi.md +1 -1
- data/docs/DiagnosticsApi.md +85 -0
- data/docs/EmailTemplatesApi.md +26 -26
- data/docs/EventDto.md +0 -2
- data/docs/EventsApi.md +1 -1
- data/docs/InfoDto.md +7 -0
- data/docs/IntegrationPropertyDto.md +1 -1
- data/docs/LogsApi.md +1 -1
- data/docs/MediaApi.md +154 -4
- data/docs/MessagingTemplatesApi.md +26 -26
- data/docs/MobilePushApi.md +1 -1
- data/docs/MobilePushTokenDto.md +1 -0
- data/docs/MobilePushTokenDto2.md +1 -0
- data/docs/NotificationsApi.md +131 -7
- data/docs/PingApi.md +85 -2
- data/docs/{IntegrationPropertyType.md → PropertyType.md} +1 -1
- data/docs/PublishDto.md +2 -0
- data/docs/RegisterMobileTokenDto.md +1 -0
- data/docs/SendConfiguration.md +6 -0
- data/docs/SmsTemplatesApi.md +26 -26
- data/docs/SystemUsersApi.md +5 -4
- data/docs/TemplatesApi.md +1 -1
- data/docs/TopicsApi.md +6 -6
- data/docs/TrackNotificationDto.md +1 -0
- data/docs/UserApi.md +41 -1
- data/docs/UserDto.md +1 -2
- data/docs/UserNotificationBaseDto.md +1 -0
- data/docs/UserNotificationDetailsDto.md +1 -0
- data/docs/UserNotificationDto.md +1 -0
- data/docs/UsersApi.md +101 -6
- data/docs/WebPushSubscriptionDto.md +7 -0
- data/lib/notifo/api/apps_api.rb +1 -1
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/diagnostics_api.rb +116 -0
- data/lib/notifo/api/email_templates_api.rb +46 -46
- data/lib/notifo/api/events_api.rb +1 -1
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +197 -2
- data/lib/notifo/api/messaging_templates_api.rb +46 -46
- data/lib/notifo/api/mobile_push_api.rb +1 -1
- data/lib/notifo/api/notifications_api.rb +150 -3
- data/lib/notifo/api/ping_api.rb +102 -2
- data/lib/notifo/api/sms_templates_api.rb +46 -46
- data/lib/notifo/api/system_users_api.rb +6 -6
- data/lib/notifo/api/templates_api.rb +1 -1
- data/lib/notifo/api/topics_api.rb +10 -10
- data/lib/notifo/api/user_api.rb +49 -1
- data/lib/notifo/api/users_api.rb +139 -7
- data/lib/notifo/api_client.rb +1 -1
- data/lib/notifo/api_error.rb +1 -1
- data/lib/notifo/configuration.rb +3 -3
- data/lib/notifo/models/add_allowed_topic_dto.rb +1 -1
- data/lib/notifo/models/add_contributor_dto.rb +2 -6
- data/lib/notifo/models/admin_profile_dto.rb +208 -0
- data/lib/notifo/models/app_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_details_dto.rb +1 -1
- data/lib/notifo/models/app_dto.rb +1 -1
- data/lib/notifo/models/app_id_media_body.rb +1 -1
- data/lib/notifo/models/channel_condition.rb +1 -1
- data/lib/notifo/models/channel_send.rb +1 -1
- data/lib/notifo/models/channel_send_info_dto.rb +48 -6
- data/lib/notifo/models/channel_setting_dto.rb +1 -1
- data/lib/notifo/models/channel_template_details_dto_of_email_template_dto.rb +1 -1
- data/lib/notifo/models/channel_template_details_dto_of_messaging_template_dto.rb +1 -1
- data/lib/notifo/models/channel_template_details_dto_of_sms_template_dto.rb +1 -1
- data/lib/notifo/models/channel_template_dto.rb +1 -1
- data/lib/notifo/models/configured_integration_dto.rb +1 -1
- data/lib/notifo/models/configured_integrations_dto.rb +1 -1
- data/lib/notifo/models/confirm_mode.rb +1 -1
- data/lib/notifo/models/create_channel_template_dto.rb +1 -1
- data/lib/notifo/models/create_channel_template_language_dto.rb +1 -1
- data/lib/notifo/models/create_integration_dto.rb +1 -1
- data/lib/notifo/models/create_system_user_dto.rb +1 -1
- data/lib/notifo/models/email_formatting_error.rb +1 -1
- data/lib/notifo/models/email_preview_dto.rb +1 -1
- data/lib/notifo/models/email_preview_request_dto.rb +1 -1
- data/lib/notifo/models/email_preview_type.rb +1 -1
- data/lib/notifo/models/email_template_dto.rb +1 -1
- data/lib/notifo/models/email_template_type.rb +1 -1
- data/lib/notifo/models/error_dto.rb +1 -1
- data/lib/notifo/models/event_dto.rb +2 -24
- data/lib/notifo/models/handled_info_dto.rb +1 -1
- data/lib/notifo/models/info_dto.rb +212 -0
- data/lib/notifo/models/integration_created_dto.rb +1 -1
- data/lib/notifo/models/integration_definition_dto.rb +1 -1
- data/lib/notifo/models/integration_property_dto.rb +1 -1
- data/lib/notifo/models/integration_status.rb +1 -1
- data/lib/notifo/models/iso_day_of_week.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_channel_template_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_mobile_push_token_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_system_user_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_notification_details_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_notification_dto.rb +1 -1
- data/lib/notifo/models/localized_text.rb +1 -1
- data/lib/notifo/models/log_entry_dto.rb +1 -1
- data/lib/notifo/models/media_dto.rb +1 -1
- data/lib/notifo/models/media_metadata.rb +1 -1
- data/lib/notifo/models/media_type.rb +1 -1
- data/lib/notifo/models/messaging_template_dto.rb +1 -1
- data/lib/notifo/models/mobile_device_type.rb +1 -1
- data/lib/notifo/models/mobile_push_token_dto.rb +13 -2
- data/lib/notifo/models/mobile_push_token_dto2.rb +16 -5
- data/lib/notifo/models/notification_formatting_dto.rb +1 -1
- data/lib/notifo/models/notification_properties.rb +1 -1
- data/lib/notifo/models/process_status.rb +1 -1
- data/lib/notifo/models/profile_dto.rb +1 -1
- data/lib/notifo/models/{integration_property_type.rb → property_type.rb} +4 -4
- data/lib/notifo/models/publish_dto.rb +26 -2
- data/lib/notifo/models/publish_many_dto.rb +1 -1
- data/lib/notifo/models/register_mobile_token_dto.rb +16 -5
- data/lib/notifo/models/resize_mode.rb +1 -1
- data/lib/notifo/models/scheduling_dto.rb +1 -1
- data/lib/notifo/models/scheduling_type.rb +1 -1
- data/lib/notifo/models/send_configuration.rb +201 -0
- data/lib/notifo/models/sms_template_dto.rb +1 -1
- data/lib/notifo/models/subscribe_dto.rb +1 -1
- data/lib/notifo/models/subscribe_many_dto.rb +1 -1
- data/lib/notifo/models/subscription_dto.rb +1 -1
- data/lib/notifo/models/system_user_dto.rb +1 -1
- data/lib/notifo/models/template_dto.rb +1 -1
- data/lib/notifo/models/topic_channel.rb +2 -2
- data/lib/notifo/models/topic_dto.rb +1 -1
- data/lib/notifo/models/topic_query_scope.rb +1 -1
- data/lib/notifo/models/track_notification_dto.rb +12 -2
- data/lib/notifo/models/update_channel_template_dto_of_email_template_dto.rb +1 -1
- data/lib/notifo/models/update_channel_template_dto_of_messaging_template_dto.rb +1 -1
- data/lib/notifo/models/update_channel_template_dto_of_sms_template_dto.rb +1 -1
- data/lib/notifo/models/update_integration_dto.rb +1 -1
- data/lib/notifo/models/update_profile_dto.rb +1 -1
- data/lib/notifo/models/update_system_user_dto.rb +1 -1
- data/lib/notifo/models/upsert_app_dto.rb +1 -1
- data/lib/notifo/models/upsert_template_dto.rb +1 -1
- data/lib/notifo/models/upsert_templates_dto.rb +1 -1
- data/lib/notifo/models/upsert_topic_dto.rb +1 -1
- data/lib/notifo/models/upsert_topics_dto.rb +1 -1
- data/lib/notifo/models/upsert_user_dto.rb +1 -1
- data/lib/notifo/models/upsert_users_dto.rb +1 -1
- data/lib/notifo/models/user_dto.rb +19 -32
- data/lib/notifo/models/user_notification_base_dto.rb +13 -2
- data/lib/notifo/models/user_notification_channel_dto.rb +1 -1
- data/lib/notifo/models/user_notification_details_dto.rb +13 -2
- data/lib/notifo/models/user_notification_dto.rb +13 -2
- data/lib/notifo/models/user_property_dto.rb +1 -1
- data/lib/notifo/models/user_topic_dto.rb +1 -1
- data/lib/notifo/models/web_push_subscription_dto.rb +212 -0
- data/lib/notifo/version.rb +1 -1
- data/lib/notifo.rb +7 -2
- data/notifo.gemspec +2 -3
- data/spec/api/apps_api_spec.rb +1 -1
- data/spec/api/configs_api_spec.rb +1 -1
- data/spec/api/diagnostics_api_spec.rb +54 -0
- data/spec/api/email_templates_api_spec.rb +6 -6
- data/spec/api/events_api_spec.rb +1 -1
- data/spec/api/logs_api_spec.rb +1 -1
- data/spec/api/media_api_spec.rb +52 -1
- data/spec/api/messaging_templates_api_spec.rb +6 -6
- data/spec/api/mobile_push_api_spec.rb +1 -1
- data/spec/api/notifications_api_spec.rb +38 -2
- data/spec/api/ping_api_spec.rb +23 -1
- data/spec/api/sms_templates_api_spec.rb +6 -6
- data/spec/api/system_users_api_spec.rb +2 -2
- data/spec/api/templates_api_spec.rb +1 -1
- data/spec/api/topics_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +11 -1
- data/spec/api/users_api_spec.rb +28 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/add_allowed_topic_dto_spec.rb +1 -1
- data/spec/models/add_contributor_dto_spec.rb +1 -1
- data/spec/models/admin_profile_dto_spec.rb +40 -0
- data/spec/models/app_contributor_dto_spec.rb +1 -1
- data/spec/models/app_details_dto_spec.rb +1 -1
- data/spec/models/app_dto_spec.rb +1 -1
- data/spec/models/app_id_media_body_spec.rb +1 -1
- data/spec/models/channel_condition_spec.rb +1 -1
- data/spec/models/channel_send_info_dto_spec.rb +25 -1
- data/spec/models/channel_send_spec.rb +1 -1
- data/spec/models/channel_setting_dto_spec.rb +1 -1
- data/spec/models/channel_template_details_dto_of_email_template_dto_spec.rb +1 -1
- data/spec/models/channel_template_details_dto_of_messaging_template_dto_spec.rb +1 -1
- data/spec/models/channel_template_details_dto_of_sms_template_dto_spec.rb +1 -1
- data/spec/models/channel_template_dto_spec.rb +1 -1
- data/spec/models/configured_integration_dto_spec.rb +1 -1
- data/spec/models/configured_integrations_dto_spec.rb +1 -1
- data/spec/models/confirm_mode_spec.rb +1 -1
- data/spec/models/create_channel_template_dto_spec.rb +1 -1
- data/spec/models/create_channel_template_language_dto_spec.rb +1 -1
- data/spec/models/create_integration_dto_spec.rb +1 -1
- data/spec/models/create_system_user_dto_spec.rb +1 -1
- data/spec/models/email_formatting_error_spec.rb +1 -1
- data/spec/models/email_preview_dto_spec.rb +1 -1
- data/spec/models/email_preview_request_dto_spec.rb +1 -1
- data/spec/models/email_preview_type_spec.rb +1 -1
- data/spec/models/email_template_dto_spec.rb +1 -1
- data/spec/models/email_template_type_spec.rb +1 -1
- data/spec/models/error_dto_spec.rb +1 -1
- data/spec/models/event_dto_spec.rb +1 -13
- data/spec/models/handled_info_dto_spec.rb +1 -1
- data/spec/models/info_dto_spec.rb +40 -0
- data/spec/models/integration_created_dto_spec.rb +1 -1
- data/spec/models/integration_definition_dto_spec.rb +1 -1
- data/spec/models/integration_property_dto_spec.rb +1 -1
- data/spec/models/integration_status_spec.rb +1 -1
- data/spec/models/iso_day_of_week_spec.rb +1 -1
- data/spec/models/list_response_dto_of_channel_template_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_event_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_media_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_mobile_push_token_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_subscription_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_system_user_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_template_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_topic_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_user_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_user_notification_details_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_user_notification_dto_spec.rb +1 -1
- data/spec/models/localized_text_spec.rb +1 -1
- data/spec/models/log_entry_dto_spec.rb +1 -1
- data/spec/models/media_dto_spec.rb +1 -1
- data/spec/models/media_metadata_spec.rb +1 -1
- data/spec/models/media_type_spec.rb +1 -1
- data/spec/models/messaging_template_dto_spec.rb +1 -1
- data/spec/models/mobile_device_type_spec.rb +1 -1
- data/spec/models/mobile_push_token_dto2_spec.rb +7 -1
- data/spec/models/mobile_push_token_dto_spec.rb +7 -1
- data/spec/models/notification_formatting_dto_spec.rb +1 -1
- data/spec/models/notification_properties_spec.rb +1 -1
- data/spec/models/process_status_spec.rb +1 -1
- data/spec/models/profile_dto_spec.rb +1 -1
- data/spec/models/{integration_property_type_spec.rb → property_type_spec.rb} +7 -7
- data/spec/models/publish_dto_spec.rb +13 -1
- data/spec/models/publish_many_dto_spec.rb +1 -1
- data/spec/models/register_mobile_token_dto_spec.rb +7 -1
- data/spec/models/resize_mode_spec.rb +1 -1
- data/spec/models/scheduling_dto_spec.rb +1 -1
- data/spec/models/scheduling_type_spec.rb +1 -1
- data/spec/models/send_configuration_spec.rb +34 -0
- data/spec/models/sms_template_dto_spec.rb +1 -1
- data/spec/models/subscribe_dto_spec.rb +1 -1
- data/spec/models/subscribe_many_dto_spec.rb +1 -1
- data/spec/models/subscription_dto_spec.rb +1 -1
- data/spec/models/system_user_dto_spec.rb +1 -1
- data/spec/models/template_dto_spec.rb +1 -1
- data/spec/models/topic_channel_spec.rb +1 -1
- data/spec/models/topic_dto_spec.rb +1 -1
- data/spec/models/topic_query_scope_spec.rb +1 -1
- data/spec/models/track_notification_dto_spec.rb +7 -1
- data/spec/models/update_channel_template_dto_of_email_template_dto_spec.rb +1 -1
- data/spec/models/update_channel_template_dto_of_messaging_template_dto_spec.rb +1 -1
- data/spec/models/update_channel_template_dto_of_sms_template_dto_spec.rb +1 -1
- data/spec/models/update_integration_dto_spec.rb +1 -1
- data/spec/models/update_profile_dto_spec.rb +1 -1
- data/spec/models/update_system_user_dto_spec.rb +1 -1
- data/spec/models/upsert_app_dto_spec.rb +1 -1
- data/spec/models/upsert_template_dto_spec.rb +1 -1
- data/spec/models/upsert_templates_dto_spec.rb +1 -1
- data/spec/models/upsert_topic_dto_spec.rb +1 -1
- data/spec/models/upsert_topics_dto_spec.rb +1 -1
- data/spec/models/upsert_user_dto_spec.rb +1 -1
- data/spec/models/upsert_users_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +7 -13
- data/spec/models/user_notification_base_dto_spec.rb +7 -1
- data/spec/models/user_notification_channel_dto_spec.rb +1 -1
- data/spec/models/user_notification_details_dto_spec.rb +7 -1
- data/spec/models/user_notification_dto_spec.rb +7 -1
- data/spec/models/user_property_dto_spec.rb +1 -1
- data/spec/models/user_topic_dto_spec.rb +1 -1
- data/spec/models/web_push_subscription_dto_spec.rb +40 -0
- data/spec/spec_helper.rb +1 -1
- metadata +27 -7
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -22,6 +22,9 @@ module Notifo
|
|
22
22
|
# The channel name.
|
23
23
|
attr_accessor :channel
|
24
24
|
|
25
|
+
# The configuration ID.
|
26
|
+
attr_accessor :configuration_id
|
27
|
+
|
25
28
|
# The device identifier.
|
26
29
|
attr_accessor :device_identifier
|
27
30
|
|
@@ -31,6 +34,7 @@ module Notifo
|
|
31
34
|
:'confirmed' => :'confirmed',
|
32
35
|
:'seen' => :'seen',
|
33
36
|
:'channel' => :'channel',
|
37
|
+
:'configuration_id' => :'configurationId',
|
34
38
|
:'device_identifier' => :'deviceIdentifier'
|
35
39
|
}
|
36
40
|
end
|
@@ -41,6 +45,7 @@ module Notifo
|
|
41
45
|
:'confirmed' => :'Object',
|
42
46
|
:'seen' => :'Object',
|
43
47
|
:'channel' => :'Object',
|
48
|
+
:'configuration_id' => :'Object',
|
44
49
|
:'device_identifier' => :'Object'
|
45
50
|
}
|
46
51
|
end
|
@@ -84,6 +89,10 @@ module Notifo
|
|
84
89
|
self.channel = attributes[:'channel']
|
85
90
|
end
|
86
91
|
|
92
|
+
if attributes.key?(:'configuration_id')
|
93
|
+
self.configuration_id = attributes[:'configuration_id']
|
94
|
+
end
|
95
|
+
|
87
96
|
if attributes.key?(:'device_identifier')
|
88
97
|
self.device_identifier = attributes[:'device_identifier']
|
89
98
|
end
|
@@ -110,6 +119,7 @@ module Notifo
|
|
110
119
|
confirmed == o.confirmed &&
|
111
120
|
seen == o.seen &&
|
112
121
|
channel == o.channel &&
|
122
|
+
configuration_id == o.configuration_id &&
|
113
123
|
device_identifier == o.device_identifier
|
114
124
|
end
|
115
125
|
|
@@ -122,7 +132,7 @@ module Notifo
|
|
122
132
|
# Calculates hash code according to all attributes.
|
123
133
|
# @return [Integer] Hash code
|
124
134
|
def hash
|
125
|
-
[confirmed, seen, channel, device_identifier].hash
|
135
|
+
[confirmed, seen, channel, configuration_id, device_identifier].hash
|
126
136
|
end
|
127
137
|
|
128
138
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -43,12 +43,6 @@ module Notifo
|
|
43
43
|
# The date time (ISO 8601) when the user has been received the last notification.
|
44
44
|
attr_accessor :last_notification
|
45
45
|
|
46
|
-
# The number of web hook tokens.
|
47
|
-
attr_accessor :number_of_web_push_tokens
|
48
|
-
|
49
|
-
# The number of web hook tokens.
|
50
|
-
attr_accessor :number_of_mobile_push_tokens
|
51
|
-
|
52
46
|
# True when only whitelisted topic are allowed.
|
53
47
|
attr_accessor :requires_whitelisted_topics
|
54
48
|
|
@@ -64,6 +58,9 @@ module Notifo
|
|
64
58
|
# The mobile push tokens.
|
65
59
|
attr_accessor :mobile_push_tokens
|
66
60
|
|
61
|
+
# The web push subscriptions.
|
62
|
+
attr_accessor :web_push_subscriptions
|
63
|
+
|
67
64
|
# The supported user properties.
|
68
65
|
attr_accessor :user_properties
|
69
66
|
|
@@ -80,13 +77,12 @@ module Notifo
|
|
80
77
|
:'created' => :'created',
|
81
78
|
:'last_update' => :'lastUpdate',
|
82
79
|
:'last_notification' => :'lastNotification',
|
83
|
-
:'number_of_web_push_tokens' => :'numberOfWebPushTokens',
|
84
|
-
:'number_of_mobile_push_tokens' => :'numberOfMobilePushTokens',
|
85
80
|
:'requires_whitelisted_topics' => :'requiresWhitelistedTopics',
|
86
81
|
:'properties' => :'properties',
|
87
82
|
:'settings' => :'settings',
|
88
83
|
:'counters' => :'counters',
|
89
84
|
:'mobile_push_tokens' => :'mobilePushTokens',
|
85
|
+
:'web_push_subscriptions' => :'webPushSubscriptions',
|
90
86
|
:'user_properties' => :'userProperties'
|
91
87
|
}
|
92
88
|
end
|
@@ -104,13 +100,12 @@ module Notifo
|
|
104
100
|
:'created' => :'Object',
|
105
101
|
:'last_update' => :'Object',
|
106
102
|
:'last_notification' => :'Object',
|
107
|
-
:'number_of_web_push_tokens' => :'Object',
|
108
|
-
:'number_of_mobile_push_tokens' => :'Object',
|
109
103
|
:'requires_whitelisted_topics' => :'Object',
|
110
104
|
:'properties' => :'Object',
|
111
105
|
:'settings' => :'Object',
|
112
106
|
:'counters' => :'Object',
|
113
107
|
:'mobile_push_tokens' => :'Object',
|
108
|
+
:'web_push_subscriptions' => :'Object',
|
114
109
|
:'user_properties' => :'Object'
|
115
110
|
}
|
116
111
|
end
|
@@ -184,14 +179,6 @@ module Notifo
|
|
184
179
|
self.last_notification = attributes[:'last_notification']
|
185
180
|
end
|
186
181
|
|
187
|
-
if attributes.key?(:'number_of_web_push_tokens')
|
188
|
-
self.number_of_web_push_tokens = attributes[:'number_of_web_push_tokens']
|
189
|
-
end
|
190
|
-
|
191
|
-
if attributes.key?(:'number_of_mobile_push_tokens')
|
192
|
-
self.number_of_mobile_push_tokens = attributes[:'number_of_mobile_push_tokens']
|
193
|
-
end
|
194
|
-
|
195
182
|
if attributes.key?(:'requires_whitelisted_topics')
|
196
183
|
self.requires_whitelisted_topics = attributes[:'requires_whitelisted_topics']
|
197
184
|
end
|
@@ -220,6 +207,12 @@ module Notifo
|
|
220
207
|
end
|
221
208
|
end
|
222
209
|
|
210
|
+
if attributes.key?(:'web_push_subscriptions')
|
211
|
+
if (value = attributes[:'web_push_subscriptions']).is_a?(Array)
|
212
|
+
self.web_push_subscriptions = value
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
223
216
|
if attributes.key?(:'user_properties')
|
224
217
|
if (value = attributes[:'user_properties']).is_a?(Array)
|
225
218
|
self.user_properties = value
|
@@ -247,14 +240,6 @@ module Notifo
|
|
247
240
|
invalid_properties.push('invalid value for "last_update", last_update cannot be nil.')
|
248
241
|
end
|
249
242
|
|
250
|
-
if @number_of_web_push_tokens.nil?
|
251
|
-
invalid_properties.push('invalid value for "number_of_web_push_tokens", number_of_web_push_tokens cannot be nil.')
|
252
|
-
end
|
253
|
-
|
254
|
-
if @number_of_mobile_push_tokens.nil?
|
255
|
-
invalid_properties.push('invalid value for "number_of_mobile_push_tokens", number_of_mobile_push_tokens cannot be nil.')
|
256
|
-
end
|
257
|
-
|
258
243
|
if @requires_whitelisted_topics.nil?
|
259
244
|
invalid_properties.push('invalid value for "requires_whitelisted_topics", requires_whitelisted_topics cannot be nil.')
|
260
245
|
end
|
@@ -271,6 +256,10 @@ module Notifo
|
|
271
256
|
invalid_properties.push('invalid value for "mobile_push_tokens", mobile_push_tokens cannot be nil.')
|
272
257
|
end
|
273
258
|
|
259
|
+
if @web_push_subscriptions.nil?
|
260
|
+
invalid_properties.push('invalid value for "web_push_subscriptions", web_push_subscriptions cannot be nil.')
|
261
|
+
end
|
262
|
+
|
274
263
|
invalid_properties
|
275
264
|
end
|
276
265
|
|
@@ -281,12 +270,11 @@ module Notifo
|
|
281
270
|
return false if @api_key.nil?
|
282
271
|
return false if @created.nil?
|
283
272
|
return false if @last_update.nil?
|
284
|
-
return false if @number_of_web_push_tokens.nil?
|
285
|
-
return false if @number_of_mobile_push_tokens.nil?
|
286
273
|
return false if @requires_whitelisted_topics.nil?
|
287
274
|
return false if @settings.nil?
|
288
275
|
return false if @counters.nil?
|
289
276
|
return false if @mobile_push_tokens.nil?
|
277
|
+
return false if @web_push_subscriptions.nil?
|
290
278
|
true
|
291
279
|
end
|
292
280
|
|
@@ -305,13 +293,12 @@ module Notifo
|
|
305
293
|
created == o.created &&
|
306
294
|
last_update == o.last_update &&
|
307
295
|
last_notification == o.last_notification &&
|
308
|
-
number_of_web_push_tokens == o.number_of_web_push_tokens &&
|
309
|
-
number_of_mobile_push_tokens == o.number_of_mobile_push_tokens &&
|
310
296
|
requires_whitelisted_topics == o.requires_whitelisted_topics &&
|
311
297
|
properties == o.properties &&
|
312
298
|
settings == o.settings &&
|
313
299
|
counters == o.counters &&
|
314
300
|
mobile_push_tokens == o.mobile_push_tokens &&
|
301
|
+
web_push_subscriptions == o.web_push_subscriptions &&
|
315
302
|
user_properties == o.user_properties
|
316
303
|
end
|
317
304
|
|
@@ -324,7 +311,7 @@ module Notifo
|
|
324
311
|
# Calculates hash code according to all attributes.
|
325
312
|
# @return [Integer] Hash code
|
326
313
|
def hash
|
327
|
-
[id, api_key, full_name, email_address, phone_number, preferred_language, preferred_timezone, created, last_update, last_notification,
|
314
|
+
[id, api_key, full_name, email_address, phone_number, preferred_language, preferred_timezone, created, last_update, last_notification, requires_whitelisted_topics, properties, settings, counters, mobile_push_tokens, web_push_subscriptions, user_properties].hash
|
328
315
|
end
|
329
316
|
|
330
317
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -58,6 +58,9 @@ module Notifo
|
|
58
58
|
# The tracking url that needs to be invoked to mark the notification as confirmed.
|
59
59
|
attr_accessor :confirm_url
|
60
60
|
|
61
|
+
# The correlation ID, that can be used to query notifications.
|
62
|
+
attr_accessor :correlation_id
|
63
|
+
|
61
64
|
# Optional data, usually a json object.
|
62
65
|
attr_accessor :data
|
63
66
|
|
@@ -81,6 +84,7 @@ module Notifo
|
|
81
84
|
:'link_text' => :'linkText',
|
82
85
|
:'confirm_text' => :'confirmText',
|
83
86
|
:'confirm_url' => :'confirmUrl',
|
87
|
+
:'correlation_id' => :'correlationId',
|
84
88
|
:'data' => :'data',
|
85
89
|
:'properties' => :'properties'
|
86
90
|
}
|
@@ -104,6 +108,7 @@ module Notifo
|
|
104
108
|
:'link_text' => :'Object',
|
105
109
|
:'confirm_text' => :'Object',
|
106
110
|
:'confirm_url' => :'Object',
|
111
|
+
:'correlation_id' => :'Object',
|
107
112
|
:'data' => :'Object',
|
108
113
|
:'properties' => :'Object'
|
109
114
|
}
|
@@ -122,6 +127,7 @@ module Notifo
|
|
122
127
|
:'link_text',
|
123
128
|
:'confirm_text',
|
124
129
|
:'confirm_url',
|
130
|
+
:'correlation_id',
|
125
131
|
:'data',
|
126
132
|
])
|
127
133
|
end
|
@@ -201,6 +207,10 @@ module Notifo
|
|
201
207
|
self.confirm_url = attributes[:'confirm_url']
|
202
208
|
end
|
203
209
|
|
210
|
+
if attributes.key?(:'correlation_id')
|
211
|
+
self.correlation_id = attributes[:'correlation_id']
|
212
|
+
end
|
213
|
+
|
204
214
|
if attributes.key?(:'data')
|
205
215
|
self.data = attributes[:'data']
|
206
216
|
end
|
@@ -268,6 +278,7 @@ module Notifo
|
|
268
278
|
link_text == o.link_text &&
|
269
279
|
confirm_text == o.confirm_text &&
|
270
280
|
confirm_url == o.confirm_url &&
|
281
|
+
correlation_id == o.correlation_id &&
|
271
282
|
data == o.data &&
|
272
283
|
properties == o.properties
|
273
284
|
end
|
@@ -281,7 +292,7 @@ module Notifo
|
|
281
292
|
# Calculates hash code according to all attributes.
|
282
293
|
# @return [Integer] Hash code
|
283
294
|
def hash
|
284
|
-
[id, subject, silent, created, updated, tracking_token, body, image_small, image_large, track_seen_url, track_delivered_url, link_url, link_text, confirm_text, confirm_url, data, properties].hash
|
295
|
+
[id, subject, silent, created, updated, tracking_token, body, image_small, image_large, track_seen_url, track_delivered_url, link_url, link_text, confirm_text, confirm_url, correlation_id, data, properties].hash
|
285
296
|
end
|
286
297
|
|
287
298
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -58,6 +58,9 @@ module Notifo
|
|
58
58
|
# The tracking url that needs to be invoked to mark the notification as confirmed.
|
59
59
|
attr_accessor :confirm_url
|
60
60
|
|
61
|
+
# The correlation ID, that can be used to query notifications.
|
62
|
+
attr_accessor :correlation_id
|
63
|
+
|
61
64
|
# Optional data, usually a json object.
|
62
65
|
attr_accessor :data
|
63
66
|
|
@@ -90,6 +93,7 @@ module Notifo
|
|
90
93
|
:'link_text' => :'linkText',
|
91
94
|
:'confirm_text' => :'confirmText',
|
92
95
|
:'confirm_url' => :'confirmUrl',
|
96
|
+
:'correlation_id' => :'correlationId',
|
93
97
|
:'data' => :'data',
|
94
98
|
:'properties' => :'properties',
|
95
99
|
:'channels' => :'channels',
|
@@ -117,6 +121,7 @@ module Notifo
|
|
117
121
|
:'link_text' => :'',
|
118
122
|
:'confirm_text' => :'',
|
119
123
|
:'confirm_url' => :'',
|
124
|
+
:'correlation_id' => :'',
|
120
125
|
:'data' => :'',
|
121
126
|
:'properties' => :'',
|
122
127
|
:'channels' => :'',
|
@@ -139,6 +144,7 @@ module Notifo
|
|
139
144
|
:'link_text',
|
140
145
|
:'confirm_text',
|
141
146
|
:'confirm_url',
|
147
|
+
:'correlation_id',
|
142
148
|
:'data',
|
143
149
|
])
|
144
150
|
end
|
@@ -221,6 +227,10 @@ module Notifo
|
|
221
227
|
self.confirm_url = attributes[:'confirm_url']
|
222
228
|
end
|
223
229
|
|
230
|
+
if attributes.key?(:'correlation_id')
|
231
|
+
self.correlation_id = attributes[:'correlation_id']
|
232
|
+
end
|
233
|
+
|
224
234
|
if attributes.key?(:'data')
|
225
235
|
self.data = attributes[:'data']
|
226
236
|
end
|
@@ -311,6 +321,7 @@ module Notifo
|
|
311
321
|
link_text == o.link_text &&
|
312
322
|
confirm_text == o.confirm_text &&
|
313
323
|
confirm_url == o.confirm_url &&
|
324
|
+
correlation_id == o.correlation_id &&
|
314
325
|
data == o.data &&
|
315
326
|
properties == o.properties &&
|
316
327
|
channels == o.channels &&
|
@@ -328,7 +339,7 @@ module Notifo
|
|
328
339
|
# Calculates hash code according to all attributes.
|
329
340
|
# @return [Integer] Hash code
|
330
341
|
def hash
|
331
|
-
[id, subject, silent, created, updated, tracking_token, body, image_small, image_large, track_seen_url, track_delivered_url, link_url, link_text, confirm_text, confirm_url, data, properties, channels, first_delivered, first_seen, first_confirmed].hash
|
342
|
+
[id, subject, silent, created, updated, tracking_token, body, image_small, image_large, track_seen_url, track_delivered_url, link_url, link_text, confirm_text, confirm_url, correlation_id, data, properties, channels, first_delivered, first_seen, first_confirmed].hash
|
332
343
|
end
|
333
344
|
|
334
345
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -58,6 +58,9 @@ module Notifo
|
|
58
58
|
# The tracking url that needs to be invoked to mark the notification as confirmed.
|
59
59
|
attr_accessor :confirm_url
|
60
60
|
|
61
|
+
# The correlation ID, that can be used to query notifications.
|
62
|
+
attr_accessor :correlation_id
|
63
|
+
|
61
64
|
# Optional data, usually a json object.
|
62
65
|
attr_accessor :data
|
63
66
|
|
@@ -87,6 +90,7 @@ module Notifo
|
|
87
90
|
:'link_text' => :'linkText',
|
88
91
|
:'confirm_text' => :'confirmText',
|
89
92
|
:'confirm_url' => :'confirmUrl',
|
93
|
+
:'correlation_id' => :'correlationId',
|
90
94
|
:'data' => :'data',
|
91
95
|
:'properties' => :'properties',
|
92
96
|
:'is_seen' => :'isSeen',
|
@@ -112,6 +116,7 @@ module Notifo
|
|
112
116
|
:'link_text' => :'',
|
113
117
|
:'confirm_text' => :'',
|
114
118
|
:'confirm_url' => :'',
|
119
|
+
:'correlation_id' => :'',
|
115
120
|
:'data' => :'',
|
116
121
|
:'properties' => :'',
|
117
122
|
:'is_seen' => :'',
|
@@ -132,6 +137,7 @@ module Notifo
|
|
132
137
|
:'link_text',
|
133
138
|
:'confirm_text',
|
134
139
|
:'confirm_url',
|
140
|
+
:'correlation_id',
|
135
141
|
:'data',
|
136
142
|
])
|
137
143
|
end
|
@@ -214,6 +220,10 @@ module Notifo
|
|
214
220
|
self.confirm_url = attributes[:'confirm_url']
|
215
221
|
end
|
216
222
|
|
223
|
+
if attributes.key?(:'correlation_id')
|
224
|
+
self.correlation_id = attributes[:'correlation_id']
|
225
|
+
end
|
226
|
+
|
217
227
|
if attributes.key?(:'data')
|
218
228
|
self.data = attributes[:'data']
|
219
229
|
end
|
@@ -299,6 +309,7 @@ module Notifo
|
|
299
309
|
link_text == o.link_text &&
|
300
310
|
confirm_text == o.confirm_text &&
|
301
311
|
confirm_url == o.confirm_url &&
|
312
|
+
correlation_id == o.correlation_id &&
|
302
313
|
data == o.data &&
|
303
314
|
properties == o.properties &&
|
304
315
|
is_seen == o.is_seen &&
|
@@ -314,7 +325,7 @@ module Notifo
|
|
314
325
|
# Calculates hash code according to all attributes.
|
315
326
|
# @return [Integer] Hash code
|
316
327
|
def hash
|
317
|
-
[id, subject, silent, created, updated, tracking_token, body, image_small, image_large, track_seen_url, track_delivered_url, link_url, link_text, confirm_text, confirm_url, data, properties, is_seen, is_confirmed].hash
|
328
|
+
[id, subject, silent, created, updated, tracking_token, body, image_small, image_large, track_seen_url, track_delivered_url, link_url, link_text, confirm_text, confirm_url, correlation_id, data, properties, is_seen, is_confirmed].hash
|
318
329
|
end
|
319
330
|
|
320
331
|
# Builds the object from hash
|