notifo-io 1.0.1.1 → 1.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +205 -4
- data/docs/AppDetailsDto.md +0 -8
- data/docs/AppIdMediaBody.md +7 -0
- data/docs/AppsApi.md +188 -2
- data/docs/AuthorizationApi.md +121 -0
- data/docs/ConfigsApi.md +1 -1
- data/docs/ConfiguredIntegrationDto.md +12 -0
- data/docs/ConfiguredIntegrationsDto.md +8 -0
- data/docs/CreateIntegrationDto.md +11 -0
- data/docs/EventDto.md +1 -0
- data/docs/EventsApi.md +45 -1
- data/docs/IntegrationCreatedDto.md +8 -0
- data/docs/IntegrationDefinitionDto.md +11 -0
- data/docs/IntegrationProperties.md +6 -0
- data/docs/IntegrationPropertyDto.md +17 -0
- data/docs/IntegrationPropertyType.md +6 -0
- data/docs/IntegrationStatus.md +6 -0
- data/docs/ListResponseDtoOfMobilePushTokenDto.md +8 -0
- data/docs/ListResponseDtoOfNotificationDto.md +8 -0
- data/docs/LogsApi.md +1 -1
- data/docs/MediaApi.md +1 -1
- data/docs/MobileDeviceType.md +6 -0
- data/docs/MobilePushApi.md +135 -0
- data/docs/MobilePushTokenDto.md +8 -0
- data/docs/NotificationDto.md +21 -0
- data/docs/NotificationsApi.md +141 -0
- data/docs/PublishDto.md +2 -0
- data/docs/RegisterMobileTokenDto.md +8 -0
- data/docs/TemplatesApi.md +1 -1
- data/docs/TopicsApi.md +1 -1
- data/docs/TrackNotificationDto.md +10 -0
- data/docs/UpdateIntegrationDto.md +10 -0
- data/docs/UpsertUserDto.md +1 -0
- data/docs/UserApi.md +1 -1
- data/docs/UserDto.md +3 -0
- data/docs/UserInfoApi.md +83 -0
- data/docs/UsersApi.md +1 -1
- data/lib/notifo.rb +23 -3
- data/lib/notifo/api/apps_api.rb +246 -2
- data/lib/notifo/api/authorization_api.rb +158 -0
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/events_api.rb +57 -1
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +1 -1
- data/lib/notifo/api/mobile_push_api.rb +178 -0
- data/lib/notifo/api/notifications_api.rb +181 -0
- data/lib/notifo/api/templates_api.rb +1 -1
- data/lib/notifo/api/topics_api.rb +1 -1
- data/lib/notifo/api/user_api.rb +1 -1
- data/lib/notifo/api/user_info_api.rb +112 -0
- data/lib/notifo/api/users_api.rb +1 -1
- 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 +1 -1
- data/lib/notifo/models/app_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_details_dto.rb +3 -96
- data/lib/notifo/models/app_dto.rb +1 -1
- data/lib/notifo/models/app_id_media_body.rb +207 -0
- data/lib/notifo/models/configured_integration_dto.rb +271 -0
- data/lib/notifo/models/configured_integrations_dto.rb +231 -0
- data/lib/notifo/models/confirm_mode.rb +1 -1
- data/lib/notifo/models/create_email_template_dto.rb +1 -1
- data/lib/notifo/models/create_integration_dto.rb +257 -0
- data/lib/notifo/models/email_template_dto.rb +2 -1
- data/lib/notifo/models/email_templates_dto.rb +1 -1
- data/lib/notifo/models/error_dto.rb +5 -1
- data/lib/notifo/models/event_dto.rb +18 -5
- data/lib/notifo/models/event_properties.rb +1 -1
- data/lib/notifo/models/integration_created_dto.rb +226 -0
- data/lib/notifo/models/integration_definition_dto.rb +272 -0
- data/lib/notifo/models/integration_properties.rb +201 -0
- data/lib/notifo/models/integration_property_dto.rb +319 -0
- data/lib/notifo/models/integration_property_type.rb +31 -0
- data/lib/notifo/models/integration_status.rb +29 -0
- data/lib/notifo/models/iso_day_of_week.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 +229 -0
- data/lib/notifo/models/list_response_dto_of_notification_dto.rb +229 -0
- data/lib/notifo/models/list_response_dto_of_subscription_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/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/mobile_device_type.rb +29 -0
- data/lib/notifo/models/mobile_push_token_dto.rb +221 -0
- data/lib/notifo/models/notification_dto.rb +386 -0
- data/lib/notifo/models/notification_formatting_dto.rb +1 -1
- data/lib/notifo/models/notification_send.rb +1 -1
- data/lib/notifo/models/notification_setting_dto.rb +2 -1
- data/lib/notifo/models/profile_dto.rb +4 -1
- data/lib/notifo/models/publish_dto.rb +30 -5
- data/lib/notifo/models/publish_many_dto.rb +1 -1
- data/lib/notifo/models/register_mobile_token_dto.rb +221 -0
- data/lib/notifo/models/resize_mode.rb +1 -1
- data/lib/notifo/models/scheduling_dto.rb +2 -1
- data/lib/notifo/models/scheduling_type.rb +1 -1
- data/lib/notifo/models/subscription_dto.rb +2 -1
- data/lib/notifo/models/template_dto.rb +1 -1
- data/lib/notifo/models/topic_dto.rb +1 -1
- data/lib/notifo/models/track_notification_dto.rb +243 -0
- data/lib/notifo/models/update_integration_dto.rb +242 -0
- data/lib/notifo/models/update_profile_dto.rb +7 -1
- data/lib/notifo/models/upsert_app_dto.rb +11 -1
- data/lib/notifo/models/upsert_template_dto.rb +2 -1
- data/lib/notifo/models/upsert_templates_dto.rb +1 -1
- data/lib/notifo/models/upsert_user_dto.rb +21 -2
- data/lib/notifo/models/upsert_users_dto.rb +1 -1
- data/lib/notifo/models/user_dto.rb +48 -2
- data/lib/notifo/version.rb +1 -1
- data/notifo-io-1.0.1.1.gem +0 -0
- data/notifo.gemspec +2 -2
- data/spec/api/authorization_api_spec.rb +61 -0
- data/spec/api/mobile_push_api_spec.rb +66 -0
- data/spec/api/notifications_api_spec.rb +68 -0
- data/spec/api/user_info_api_spec.rb +52 -0
- data/spec/models/app_id_media_body_spec.rb +40 -0
- data/spec/models/configured_integration_dto_spec.rb +70 -0
- data/spec/models/configured_integrations_dto_spec.rb +46 -0
- data/spec/models/create_integration_dto_spec.rb +64 -0
- data/spec/models/integration_created_dto_spec.rb +46 -0
- data/spec/models/integration_definition_dto_spec.rb +64 -0
- data/spec/models/integration_properties_spec.rb +34 -0
- data/spec/models/integration_property_dto_spec.rb +100 -0
- data/spec/models/integration_property_type_spec.rb +34 -0
- data/spec/models/integration_status_spec.rb +34 -0
- data/spec/models/list_response_dto_of_mobile_push_token_dto_spec.rb +46 -0
- data/spec/models/list_response_dto_of_notification_dto_spec.rb +46 -0
- data/spec/models/mobile_device_type_spec.rb +34 -0
- data/spec/models/mobile_push_token_dto_spec.rb +46 -0
- data/spec/models/notification_dto_spec.rb +124 -0
- data/spec/models/register_mobile_token_dto_spec.rb +46 -0
- data/spec/models/track_notification_dto_spec.rb +58 -0
- data/spec/models/update_integration_dto_spec.rb +58 -0
- metadata +91 -2
@@ -0,0 +1,242 @@
|
|
1
|
+
=begin
|
2
|
+
#Notifo API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.26
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module Notifo
|
15
|
+
class UpdateIntegrationDto
|
16
|
+
attr_accessor :properties
|
17
|
+
|
18
|
+
# True when enabled.
|
19
|
+
attr_accessor :enabled
|
20
|
+
|
21
|
+
# True when used for test events.
|
22
|
+
attr_accessor :test
|
23
|
+
|
24
|
+
# The priority in which order the integrations must run.
|
25
|
+
attr_accessor :priority
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'properties' => :'properties',
|
31
|
+
:'enabled' => :'enabled',
|
32
|
+
:'test' => :'test',
|
33
|
+
:'priority' => :'priority'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'properties' => :'Object',
|
41
|
+
:'enabled' => :'Object',
|
42
|
+
:'test' => :'Object',
|
43
|
+
:'priority' => :'Object'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
:'test',
|
51
|
+
])
|
52
|
+
end
|
53
|
+
|
54
|
+
# Initializes the object
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
56
|
+
def initialize(attributes = {})
|
57
|
+
if (!attributes.is_a?(Hash))
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Notifo::UpdateIntegrationDto` initialize method"
|
59
|
+
end
|
60
|
+
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Notifo::UpdateIntegrationDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
|
+
end
|
66
|
+
h[k.to_sym] = v
|
67
|
+
}
|
68
|
+
|
69
|
+
if attributes.key?(:'properties')
|
70
|
+
self.properties = attributes[:'properties']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'enabled')
|
74
|
+
self.enabled = attributes[:'enabled']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'test')
|
78
|
+
self.test = attributes[:'test']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'priority')
|
82
|
+
self.priority = attributes[:'priority']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
+
# @return Array for valid properties with the reasons
|
88
|
+
def list_invalid_properties
|
89
|
+
invalid_properties = Array.new
|
90
|
+
if @properties.nil?
|
91
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
92
|
+
end
|
93
|
+
|
94
|
+
invalid_properties
|
95
|
+
end
|
96
|
+
|
97
|
+
# Check to see if the all the properties in the model are valid
|
98
|
+
# @return true if the model is valid
|
99
|
+
def valid?
|
100
|
+
return false if @properties.nil?
|
101
|
+
true
|
102
|
+
end
|
103
|
+
|
104
|
+
# Checks equality by comparing each attribute.
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def ==(o)
|
107
|
+
return true if self.equal?(o)
|
108
|
+
self.class == o.class &&
|
109
|
+
properties == o.properties &&
|
110
|
+
enabled == o.enabled &&
|
111
|
+
test == o.test &&
|
112
|
+
priority == o.priority
|
113
|
+
end
|
114
|
+
|
115
|
+
# @see the `==` method
|
116
|
+
# @param [Object] Object to be compared
|
117
|
+
def eql?(o)
|
118
|
+
self == o
|
119
|
+
end
|
120
|
+
|
121
|
+
# Calculates hash code according to all attributes.
|
122
|
+
# @return [Integer] Hash code
|
123
|
+
def hash
|
124
|
+
[properties, enabled, test, priority].hash
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the object from hash
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
# @return [Object] Returns the model itself
|
130
|
+
def self.build_from_hash(attributes)
|
131
|
+
new.build_from_hash(attributes)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
self.class.openapi_types.each_pair do |key, type|
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
144
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
145
|
+
end
|
146
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
148
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
149
|
+
self.send("#{key}=", nil)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
self
|
154
|
+
end
|
155
|
+
|
156
|
+
# Deserializes the data based on type
|
157
|
+
# @param string type Data type
|
158
|
+
# @param string value Value to be deserialized
|
159
|
+
# @return [Object] Deserialized data
|
160
|
+
def _deserialize(type, value)
|
161
|
+
case type.to_sym
|
162
|
+
when :DateTime
|
163
|
+
DateTime.parse(value)
|
164
|
+
when :Date
|
165
|
+
Date.parse(value)
|
166
|
+
when :String
|
167
|
+
value.to_s
|
168
|
+
when :Integer
|
169
|
+
value.to_i
|
170
|
+
when :Float
|
171
|
+
value.to_f
|
172
|
+
when :Boolean
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
174
|
+
true
|
175
|
+
else
|
176
|
+
false
|
177
|
+
end
|
178
|
+
when :Object
|
179
|
+
# generic object (usually a Hash), return directly
|
180
|
+
value
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
187
|
+
{}.tap do |hash|
|
188
|
+
value.each do |k, v|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
else # model
|
193
|
+
Notifo.const_get(type).build_from_hash(value)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# Returns the string representation of the object
|
198
|
+
# @return [String] String presentation of the object
|
199
|
+
def to_s
|
200
|
+
to_hash.to_s
|
201
|
+
end
|
202
|
+
|
203
|
+
# to_body is an alias to to_hash (backward compatibility)
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
205
|
+
def to_body
|
206
|
+
to_hash
|
207
|
+
end
|
208
|
+
|
209
|
+
# Returns the object in the form of hash
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
211
|
+
def to_hash
|
212
|
+
hash = {}
|
213
|
+
self.class.attribute_map.each_pair do |attr, param|
|
214
|
+
value = self.send(attr)
|
215
|
+
if value.nil?
|
216
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
217
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
218
|
+
end
|
219
|
+
|
220
|
+
hash[param] = _to_hash(value)
|
221
|
+
end
|
222
|
+
hash
|
223
|
+
end
|
224
|
+
|
225
|
+
# Outputs non-array value in the form of hash
|
226
|
+
# For object, use to_hash. Otherwise, just return the value
|
227
|
+
# @param [Object] value Any valid value
|
228
|
+
# @return [Hash] Returns the value in the form of hash
|
229
|
+
def _to_hash(value)
|
230
|
+
if value.is_a?(Array)
|
231
|
+
value.compact.map { |v| _to_hash(v) }
|
232
|
+
elsif value.is_a?(Hash)
|
233
|
+
{}.tap do |hash|
|
234
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
235
|
+
end
|
236
|
+
elsif value.respond_to? :to_hash
|
237
|
+
value.to_hash
|
238
|
+
else
|
239
|
+
value
|
240
|
+
end
|
241
|
+
end end
|
242
|
+
end
|
@@ -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.26
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -58,6 +58,12 @@ module Notifo
|
|
58
58
|
# List of attributes with nullable: true
|
59
59
|
def self.openapi_nullable
|
60
60
|
Set.new([
|
61
|
+
:'full_name',
|
62
|
+
:'email_address',
|
63
|
+
:'phone_number',
|
64
|
+
:'preferred_language',
|
65
|
+
:'preferred_timezone',
|
66
|
+
:'settings'
|
61
67
|
])
|
62
68
|
end
|
63
69
|
|
@@ -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.26
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -78,6 +78,16 @@ module Notifo
|
|
78
78
|
# List of attributes with nullable: true
|
79
79
|
def self.openapi_nullable
|
80
80
|
Set.new([
|
81
|
+
:'name',
|
82
|
+
:'languages',
|
83
|
+
:'email_address',
|
84
|
+
:'email_name',
|
85
|
+
:'firebase_project',
|
86
|
+
:'firebase_credential',
|
87
|
+
:'webhook_url',
|
88
|
+
:'confirm_url',
|
89
|
+
:'allow_email',
|
90
|
+
:'allow_sms'
|
81
91
|
])
|
82
92
|
end
|
83
93
|
|
@@ -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.26
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -42,6 +42,7 @@ module Notifo
|
|
42
42
|
# List of attributes with nullable: true
|
43
43
|
def self.openapi_nullable
|
44
44
|
Set.new([
|
45
|
+
:'settings'
|
45
46
|
])
|
46
47
|
end
|
47
48
|
|
@@ -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.26
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -25,6 +25,9 @@ module Notifo
|
|
25
25
|
# The phone number.
|
26
26
|
attr_accessor :phone_number
|
27
27
|
|
28
|
+
# The threema id.
|
29
|
+
attr_accessor :threema_id
|
30
|
+
|
28
31
|
# The preferred language of the user.
|
29
32
|
attr_accessor :preferred_language
|
30
33
|
|
@@ -44,6 +47,7 @@ module Notifo
|
|
44
47
|
:'full_name' => :'fullName',
|
45
48
|
:'email_address' => :'emailAddress',
|
46
49
|
:'phone_number' => :'phoneNumber',
|
50
|
+
:'threema_id' => :'threemaId',
|
47
51
|
:'preferred_language' => :'preferredLanguage',
|
48
52
|
:'preferred_timezone' => :'preferredTimezone',
|
49
53
|
:'requires_whitelisted_topics' => :'requiresWhitelistedTopics',
|
@@ -58,6 +62,7 @@ module Notifo
|
|
58
62
|
:'full_name' => :'Object',
|
59
63
|
:'email_address' => :'Object',
|
60
64
|
:'phone_number' => :'Object',
|
65
|
+
:'threema_id' => :'Object',
|
61
66
|
:'preferred_language' => :'Object',
|
62
67
|
:'preferred_timezone' => :'Object',
|
63
68
|
:'requires_whitelisted_topics' => :'Object',
|
@@ -68,6 +73,15 @@ module Notifo
|
|
68
73
|
# List of attributes with nullable: true
|
69
74
|
def self.openapi_nullable
|
70
75
|
Set.new([
|
76
|
+
:'id',
|
77
|
+
:'full_name',
|
78
|
+
:'email_address',
|
79
|
+
:'phone_number',
|
80
|
+
:'threema_id',
|
81
|
+
:'preferred_language',
|
82
|
+
:'preferred_timezone',
|
83
|
+
:'requires_whitelisted_topics',
|
84
|
+
:'settings'
|
71
85
|
])
|
72
86
|
end
|
73
87
|
|
@@ -102,6 +116,10 @@ module Notifo
|
|
102
116
|
self.phone_number = attributes[:'phone_number']
|
103
117
|
end
|
104
118
|
|
119
|
+
if attributes.key?(:'threema_id')
|
120
|
+
self.threema_id = attributes[:'threema_id']
|
121
|
+
end
|
122
|
+
|
105
123
|
if attributes.key?(:'preferred_language')
|
106
124
|
self.preferred_language = attributes[:'preferred_language']
|
107
125
|
end
|
@@ -143,6 +161,7 @@ module Notifo
|
|
143
161
|
full_name == o.full_name &&
|
144
162
|
email_address == o.email_address &&
|
145
163
|
phone_number == o.phone_number &&
|
164
|
+
threema_id == o.threema_id &&
|
146
165
|
preferred_language == o.preferred_language &&
|
147
166
|
preferred_timezone == o.preferred_timezone &&
|
148
167
|
requires_whitelisted_topics == o.requires_whitelisted_topics &&
|
@@ -158,7 +177,7 @@ module Notifo
|
|
158
177
|
# Calculates hash code according to all attributes.
|
159
178
|
# @return [Integer] Hash code
|
160
179
|
def hash
|
161
|
-
[id, full_name, email_address, phone_number, preferred_language, preferred_timezone, requires_whitelisted_topics, settings].hash
|
180
|
+
[id, full_name, email_address, phone_number, threema_id, preferred_language, preferred_timezone, requires_whitelisted_topics, settings].hash
|
162
181
|
end
|
163
182
|
|
164
183
|
# 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.26
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
@@ -28,12 +28,21 @@ module Notifo
|
|
28
28
|
# The phone number.
|
29
29
|
attr_accessor :phone_number
|
30
30
|
|
31
|
+
# The threema id.
|
32
|
+
attr_accessor :threema_id
|
33
|
+
|
31
34
|
# The preferred language of the user.
|
32
35
|
attr_accessor :preferred_language
|
33
36
|
|
34
37
|
# The timezone of the user.
|
35
38
|
attr_accessor :preferred_timezone
|
36
39
|
|
40
|
+
# The number of web hook tokens.
|
41
|
+
attr_accessor :number_of_web_push_tokens
|
42
|
+
|
43
|
+
# The number of web hook tokens.
|
44
|
+
attr_accessor :number_of_mobile_push_tokens
|
45
|
+
|
37
46
|
# True when only whitelisted topic are allowed.
|
38
47
|
attr_accessor :requires_whitelisted_topics
|
39
48
|
|
@@ -51,8 +60,11 @@ module Notifo
|
|
51
60
|
:'full_name' => :'fullName',
|
52
61
|
:'email_address' => :'emailAddress',
|
53
62
|
:'phone_number' => :'phoneNumber',
|
63
|
+
:'threema_id' => :'threemaId',
|
54
64
|
:'preferred_language' => :'preferredLanguage',
|
55
65
|
:'preferred_timezone' => :'preferredTimezone',
|
66
|
+
:'number_of_web_push_tokens' => :'numberOfWebPushTokens',
|
67
|
+
:'number_of_mobile_push_tokens' => :'numberOfMobilePushTokens',
|
56
68
|
:'requires_whitelisted_topics' => :'requiresWhitelistedTopics',
|
57
69
|
:'settings' => :'settings',
|
58
70
|
:'counters' => :'counters'
|
@@ -67,8 +79,11 @@ module Notifo
|
|
67
79
|
:'full_name' => :'Object',
|
68
80
|
:'email_address' => :'Object',
|
69
81
|
:'phone_number' => :'Object',
|
82
|
+
:'threema_id' => :'Object',
|
70
83
|
:'preferred_language' => :'Object',
|
71
84
|
:'preferred_timezone' => :'Object',
|
85
|
+
:'number_of_web_push_tokens' => :'Object',
|
86
|
+
:'number_of_mobile_push_tokens' => :'Object',
|
72
87
|
:'requires_whitelisted_topics' => :'Object',
|
73
88
|
:'settings' => :'Object',
|
74
89
|
:'counters' => :'Object'
|
@@ -78,6 +93,12 @@ module Notifo
|
|
78
93
|
# List of attributes with nullable: true
|
79
94
|
def self.openapi_nullable
|
80
95
|
Set.new([
|
96
|
+
:'full_name',
|
97
|
+
:'email_address',
|
98
|
+
:'phone_number',
|
99
|
+
:'threema_id',
|
100
|
+
:'preferred_language',
|
101
|
+
:'preferred_timezone',
|
81
102
|
])
|
82
103
|
end
|
83
104
|
|
@@ -116,6 +137,10 @@ module Notifo
|
|
116
137
|
self.phone_number = attributes[:'phone_number']
|
117
138
|
end
|
118
139
|
|
140
|
+
if attributes.key?(:'threema_id')
|
141
|
+
self.threema_id = attributes[:'threema_id']
|
142
|
+
end
|
143
|
+
|
119
144
|
if attributes.key?(:'preferred_language')
|
120
145
|
self.preferred_language = attributes[:'preferred_language']
|
121
146
|
end
|
@@ -124,6 +149,14 @@ module Notifo
|
|
124
149
|
self.preferred_timezone = attributes[:'preferred_timezone']
|
125
150
|
end
|
126
151
|
|
152
|
+
if attributes.key?(:'number_of_web_push_tokens')
|
153
|
+
self.number_of_web_push_tokens = attributes[:'number_of_web_push_tokens']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'number_of_mobile_push_tokens')
|
157
|
+
self.number_of_mobile_push_tokens = attributes[:'number_of_mobile_push_tokens']
|
158
|
+
end
|
159
|
+
|
127
160
|
if attributes.key?(:'requires_whitelisted_topics')
|
128
161
|
self.requires_whitelisted_topics = attributes[:'requires_whitelisted_topics']
|
129
162
|
end
|
@@ -153,6 +186,14 @@ module Notifo
|
|
153
186
|
invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
|
154
187
|
end
|
155
188
|
|
189
|
+
if @number_of_web_push_tokens.nil?
|
190
|
+
invalid_properties.push('invalid value for "number_of_web_push_tokens", number_of_web_push_tokens cannot be nil.')
|
191
|
+
end
|
192
|
+
|
193
|
+
if @number_of_mobile_push_tokens.nil?
|
194
|
+
invalid_properties.push('invalid value for "number_of_mobile_push_tokens", number_of_mobile_push_tokens cannot be nil.')
|
195
|
+
end
|
196
|
+
|
156
197
|
if @requires_whitelisted_topics.nil?
|
157
198
|
invalid_properties.push('invalid value for "requires_whitelisted_topics", requires_whitelisted_topics cannot be nil.')
|
158
199
|
end
|
@@ -173,6 +214,8 @@ module Notifo
|
|
173
214
|
def valid?
|
174
215
|
return false if @id.nil?
|
175
216
|
return false if @api_key.nil?
|
217
|
+
return false if @number_of_web_push_tokens.nil?
|
218
|
+
return false if @number_of_mobile_push_tokens.nil?
|
176
219
|
return false if @requires_whitelisted_topics.nil?
|
177
220
|
return false if @settings.nil?
|
178
221
|
return false if @counters.nil?
|
@@ -189,8 +232,11 @@ module Notifo
|
|
189
232
|
full_name == o.full_name &&
|
190
233
|
email_address == o.email_address &&
|
191
234
|
phone_number == o.phone_number &&
|
235
|
+
threema_id == o.threema_id &&
|
192
236
|
preferred_language == o.preferred_language &&
|
193
237
|
preferred_timezone == o.preferred_timezone &&
|
238
|
+
number_of_web_push_tokens == o.number_of_web_push_tokens &&
|
239
|
+
number_of_mobile_push_tokens == o.number_of_mobile_push_tokens &&
|
194
240
|
requires_whitelisted_topics == o.requires_whitelisted_topics &&
|
195
241
|
settings == o.settings &&
|
196
242
|
counters == o.counters
|
@@ -205,7 +251,7 @@ module Notifo
|
|
205
251
|
# Calculates hash code according to all attributes.
|
206
252
|
# @return [Integer] Hash code
|
207
253
|
def hash
|
208
|
-
[id, api_key, full_name, email_address, phone_number, preferred_language, preferred_timezone, requires_whitelisted_topics, settings, counters].hash
|
254
|
+
[id, api_key, full_name, email_address, phone_number, threema_id, preferred_language, preferred_timezone, number_of_web_push_tokens, number_of_mobile_push_tokens, requires_whitelisted_topics, settings, counters].hash
|
209
255
|
end
|
210
256
|
|
211
257
|
# Builds the object from hash
|