fastcomments 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/client/README.md +27 -0
- data/client/docs/APIComment.md +1 -1
- data/client/docs/APICommentBase.md +1 -1
- data/client/docs/APICommentBaseMeta.md +20 -0
- data/client/docs/APITicket.md +34 -0
- data/client/docs/APITicketDetail.md +42 -0
- data/client/docs/APITicketFile.md +36 -0
- data/client/docs/APIUserSubscription.md +2 -0
- data/client/docs/ChangeTicketState200Response.md +34 -0
- data/client/docs/ChangeTicketStateBody.md +18 -0
- data/client/docs/ChangeTicketStateResponse.md +20 -0
- data/client/docs/CommentData.md +3 -1
- data/client/docs/CreateAPIUserSubscriptionData.md +2 -0
- data/client/docs/CreateCommentParams.md +2 -0
- data/client/docs/CreateTenantPackageBody.md +2 -0
- data/client/docs/CreateTicket200Response.md +34 -0
- data/client/docs/CreateTicketBody.md +18 -0
- data/client/docs/CreateTicketResponse.md +20 -0
- data/client/docs/CustomConfigParameters.md +21 -1
- data/client/docs/DefaultApi.md +384 -0
- data/client/docs/FComment.md +3 -1
- data/client/docs/FCommentMeta.md +2 -0
- data/client/docs/GetTicket200Response.md +36 -0
- data/client/docs/GetTicketResponse.md +22 -0
- data/client/docs/GetTickets200Response.md +34 -0
- data/client/docs/GetTicketsResponse.md +20 -0
- data/client/docs/HeaderAccountNotification.md +34 -0
- data/client/docs/HeaderState.md +3 -1
- data/client/docs/MentionAutoCompleteMode.md +15 -0
- data/client/docs/Moderator.md +3 -1
- data/client/docs/PublicApi.md +3 -1
- data/client/docs/ReplaceTenantPackageBody.md +2 -0
- data/client/docs/SearchUsers200Response.md +2 -0
- data/client/docs/SearchUsersSectionedResponse.md +20 -0
- data/client/docs/TOSConfig.md +22 -0
- data/client/docs/TenantPackage.md +4 -0
- data/client/docs/UpdatableCommentParams.md +1 -1
- data/client/docs/UpdateAPIUserSubscriptionData.md +18 -0
- data/client/docs/UpdateSubscriptionAPIResponse.md +24 -0
- data/client/docs/UpdateTenantPackageBody.md +2 -0
- data/client/docs/User.md +17 -1
- data/client/docs/UserBadge.md +3 -1
- data/client/docs/UserBadgeProgress.md +3 -1
- data/client/docs/UserSearchSection.md +15 -0
- data/client/docs/UserSearchSectionResult.md +20 -0
- data/client/docs/UserSessionInfo.md +2 -0
- data/client/lib/fastcomments-client/api/default_api.rb +383 -0
- data/client/lib/fastcomments-client/api/public_api.rb +7 -0
- data/client/lib/fastcomments-client/models/api_comment.rb +1 -1
- data/client/lib/fastcomments-client/models/api_comment_base.rb +1 -1
- data/client/lib/fastcomments-client/models/api_comment_base_meta.rb +156 -0
- data/client/lib/fastcomments-client/models/api_ticket.rb +374 -0
- data/client/lib/fastcomments-client/models/api_ticket_detail.rb +432 -0
- data/client/lib/fastcomments-client/models/api_ticket_file.rb +381 -0
- data/client/lib/fastcomments-client/models/api_user_subscription.rb +10 -1
- data/client/lib/fastcomments-client/models/change_ticket_state200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/change_ticket_state_body.rb +164 -0
- data/client/lib/fastcomments-client/models/change_ticket_state_response.rb +212 -0
- data/client/lib/fastcomments-client/models/comment_data.rb +13 -4
- data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +10 -1
- data/client/lib/fastcomments-client/models/create_comment_params.rb +10 -1
- data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +10 -1
- data/client/lib/fastcomments-client/models/create_ticket200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/create_ticket_body.rb +164 -0
- data/client/lib/fastcomments-client/models/create_ticket_response.rb +212 -0
- data/client/lib/fastcomments-client/models/custom_config_parameters.rb +97 -4
- data/client/lib/fastcomments-client/models/f_comment.rb +13 -4
- data/client/lib/fastcomments-client/models/f_comment_meta.rb +10 -1
- data/client/lib/fastcomments-client/models/get_ticket200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_ticket_response.rb +240 -0
- data/client/lib/fastcomments-client/models/get_tickets200_response.rb +103 -0
- data/client/lib/fastcomments-client/models/get_tickets_response.rb +214 -0
- data/client/lib/fastcomments-client/models/header_account_notification.rb +322 -0
- data/client/lib/fastcomments-client/models/header_state.rb +32 -4
- data/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb +41 -0
- data/client/lib/fastcomments-client/models/moderator.rb +14 -5
- data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +10 -1
- data/client/lib/fastcomments-client/models/search_users200_response.rb +2 -1
- data/client/lib/fastcomments-client/models/search_users_sectioned_response.rb +214 -0
- data/client/lib/fastcomments-client/models/tenant_package.rb +36 -1
- data/client/lib/fastcomments-client/models/tos_config.rb +168 -0
- data/client/lib/fastcomments-client/models/updatable_comment_params.rb +1 -1
- data/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb +147 -0
- data/client/lib/fastcomments-client/models/update_subscription_api_response.rb +191 -0
- data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +10 -1
- data/client/lib/fastcomments-client/models/user.rb +76 -4
- data/client/lib/fastcomments-client/models/user_badge.rb +14 -4
- data/client/lib/fastcomments-client/models/user_badge_progress.rb +13 -4
- data/client/lib/fastcomments-client/models/user_search_section.rb +41 -0
- data/client/lib/fastcomments-client/models/user_search_section_result.rb +214 -0
- data/client/lib/fastcomments-client/models/user_session_info.rb +10 -1
- data/client/lib/fastcomments-client.rb +22 -0
- data/client/spec/api/default_api_spec.rb +64 -0
- data/client/spec/api/public_api_spec.rb +1 -0
- data/client/spec/models/api_comment_base_meta_spec.rb +42 -0
- data/client/spec/models/api_ticket_detail_spec.rb +108 -0
- data/client/spec/models/api_ticket_file_spec.rb +90 -0
- data/client/spec/models/api_ticket_spec.rb +84 -0
- data/client/spec/models/api_user_subscription_spec.rb +6 -0
- data/client/spec/models/change_ticket_state200_response_spec.rb +21 -0
- data/client/spec/models/change_ticket_state_body_spec.rb +36 -0
- data/client/spec/models/change_ticket_state_response_spec.rb +42 -0
- data/client/spec/models/comment_data_spec.rb +6 -0
- data/client/spec/models/create_api_user_subscription_data_spec.rb +6 -0
- data/client/spec/models/create_comment_params_spec.rb +6 -0
- data/client/spec/models/create_tenant_package_body_spec.rb +6 -0
- data/client/spec/models/create_ticket200_response_spec.rb +21 -0
- data/client/spec/models/create_ticket_body_spec.rb +36 -0
- data/client/spec/models/create_ticket_response_spec.rb +42 -0
- data/client/spec/models/custom_config_parameters_spec.rb +60 -0
- data/client/spec/models/f_comment_meta_spec.rb +6 -0
- data/client/spec/models/f_comment_spec.rb +6 -0
- data/client/spec/models/get_ticket200_response_spec.rb +21 -0
- data/client/spec/models/get_ticket_response_spec.rb +48 -0
- data/client/spec/models/get_tickets200_response_spec.rb +21 -0
- data/client/spec/models/get_tickets_response_spec.rb +42 -0
- data/client/spec/models/header_account_notification_spec.rb +84 -0
- data/client/spec/models/header_state_spec.rb +6 -0
- data/client/spec/models/mention_auto_complete_mode_spec.rb +30 -0
- data/client/spec/models/moderator_spec.rb +6 -0
- data/client/spec/models/replace_tenant_package_body_spec.rb +6 -0
- data/client/spec/models/search_users_sectioned_response_spec.rb +42 -0
- data/client/spec/models/tenant_package_spec.rb +12 -0
- data/client/spec/models/tos_config_spec.rb +48 -0
- data/client/spec/models/update_api_user_subscription_data_spec.rb +36 -0
- data/client/spec/models/update_subscription_api_response_spec.rb +54 -0
- data/client/spec/models/update_tenant_package_body_spec.rb +6 -0
- data/client/spec/models/user_badge_progress_spec.rb +6 -0
- data/client/spec/models/user_badge_spec.rb +6 -0
- data/client/spec/models/user_search_section_result_spec.rb +42 -0
- data/client/spec/models/user_search_section_spec.rb +30 -0
- data/client/spec/models/user_session_info_spec.rb +6 -0
- data/client/spec/models/user_spec.rb +48 -0
- data/lib/fastcomments.rb +1 -1
- metadata +68 -2
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#fastcomments
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FastCommentsClient
|
|
17
|
+
class HeaderAccountNotification < ApiModelBase
|
|
18
|
+
attr_accessor :_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :title
|
|
21
|
+
|
|
22
|
+
attr_accessor :message
|
|
23
|
+
|
|
24
|
+
# Construct a type with a set of properties K of type T
|
|
25
|
+
attr_accessor :messages_by_locale
|
|
26
|
+
|
|
27
|
+
# Construct a type with a set of properties K of type T
|
|
28
|
+
attr_accessor :dates
|
|
29
|
+
|
|
30
|
+
attr_accessor :severity
|
|
31
|
+
|
|
32
|
+
attr_accessor :link_url
|
|
33
|
+
|
|
34
|
+
attr_accessor :link_text
|
|
35
|
+
|
|
36
|
+
attr_accessor :created_at
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
def self.attribute_map
|
|
40
|
+
{
|
|
41
|
+
:'_id' => :'_id',
|
|
42
|
+
:'title' => :'title',
|
|
43
|
+
:'message' => :'message',
|
|
44
|
+
:'messages_by_locale' => :'messagesByLocale',
|
|
45
|
+
:'dates' => :'dates',
|
|
46
|
+
:'severity' => :'severity',
|
|
47
|
+
:'link_url' => :'linkUrl',
|
|
48
|
+
:'link_text' => :'linkText',
|
|
49
|
+
:'created_at' => :'createdAt'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns attribute mapping this model knows about
|
|
54
|
+
def self.acceptable_attribute_map
|
|
55
|
+
attribute_map
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns all the JSON keys this model knows about
|
|
59
|
+
def self.acceptable_attributes
|
|
60
|
+
acceptable_attribute_map.values
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Attribute type mapping.
|
|
64
|
+
def self.openapi_types
|
|
65
|
+
{
|
|
66
|
+
:'_id' => :'String',
|
|
67
|
+
:'title' => :'String',
|
|
68
|
+
:'message' => :'String',
|
|
69
|
+
:'messages_by_locale' => :'Hash<String, String>',
|
|
70
|
+
:'dates' => :'Hash<String, String>',
|
|
71
|
+
:'severity' => :'String',
|
|
72
|
+
:'link_url' => :'String',
|
|
73
|
+
:'link_text' => :'String',
|
|
74
|
+
:'created_at' => :'Time'
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# List of attributes with nullable: true
|
|
79
|
+
def self.openapi_nullable
|
|
80
|
+
Set.new([
|
|
81
|
+
:'messages_by_locale',
|
|
82
|
+
:'dates',
|
|
83
|
+
:'link_url',
|
|
84
|
+
:'link_text',
|
|
85
|
+
])
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Initializes the object
|
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
|
+
def initialize(attributes = {})
|
|
91
|
+
if (!attributes.is_a?(Hash))
|
|
92
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::HeaderAccountNotification` initialize method"
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
96
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
97
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
98
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::HeaderAccountNotification`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
100
|
+
end
|
|
101
|
+
h[k.to_sym] = v
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'_id')
|
|
105
|
+
self._id = attributes[:'_id']
|
|
106
|
+
else
|
|
107
|
+
self._id = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'title')
|
|
111
|
+
self.title = attributes[:'title']
|
|
112
|
+
else
|
|
113
|
+
self.title = nil
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'message')
|
|
117
|
+
self.message = attributes[:'message']
|
|
118
|
+
else
|
|
119
|
+
self.message = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'messages_by_locale')
|
|
123
|
+
if (value = attributes[:'messages_by_locale']).is_a?(Hash)
|
|
124
|
+
self.messages_by_locale = value
|
|
125
|
+
end
|
|
126
|
+
else
|
|
127
|
+
self.messages_by_locale = nil
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'dates')
|
|
131
|
+
if (value = attributes[:'dates']).is_a?(Hash)
|
|
132
|
+
self.dates = value
|
|
133
|
+
end
|
|
134
|
+
else
|
|
135
|
+
self.dates = nil
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'severity')
|
|
139
|
+
self.severity = attributes[:'severity']
|
|
140
|
+
else
|
|
141
|
+
self.severity = nil
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'link_url')
|
|
145
|
+
self.link_url = attributes[:'link_url']
|
|
146
|
+
else
|
|
147
|
+
self.link_url = nil
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'link_text')
|
|
151
|
+
self.link_text = attributes[:'link_text']
|
|
152
|
+
else
|
|
153
|
+
self.link_text = nil
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'created_at')
|
|
157
|
+
self.created_at = attributes[:'created_at']
|
|
158
|
+
else
|
|
159
|
+
self.created_at = nil
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
164
|
+
# @return Array for valid properties with the reasons
|
|
165
|
+
def list_invalid_properties
|
|
166
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
167
|
+
invalid_properties = Array.new
|
|
168
|
+
if @_id.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "_id", _id cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if @title.nil?
|
|
173
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if @message.nil?
|
|
177
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if @severity.nil?
|
|
181
|
+
invalid_properties.push('invalid value for "severity", severity cannot be nil.')
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if @created_at.nil?
|
|
185
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
invalid_properties
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Check to see if the all the properties in the model are valid
|
|
192
|
+
# @return true if the model is valid
|
|
193
|
+
def valid?
|
|
194
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
195
|
+
return false if @_id.nil?
|
|
196
|
+
return false if @title.nil?
|
|
197
|
+
return false if @message.nil?
|
|
198
|
+
return false if @severity.nil?
|
|
199
|
+
return false if @created_at.nil?
|
|
200
|
+
true
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Custom attribute writer method with validation
|
|
204
|
+
# @param [Object] _id Value to be assigned
|
|
205
|
+
def _id=(_id)
|
|
206
|
+
if _id.nil?
|
|
207
|
+
fail ArgumentError, '_id cannot be nil'
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
@_id = _id
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Custom attribute writer method with validation
|
|
214
|
+
# @param [Object] title Value to be assigned
|
|
215
|
+
def title=(title)
|
|
216
|
+
if title.nil?
|
|
217
|
+
fail ArgumentError, 'title cannot be nil'
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
@title = title
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Custom attribute writer method with validation
|
|
224
|
+
# @param [Object] message Value to be assigned
|
|
225
|
+
def message=(message)
|
|
226
|
+
if message.nil?
|
|
227
|
+
fail ArgumentError, 'message cannot be nil'
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
@message = message
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Custom attribute writer method with validation
|
|
234
|
+
# @param [Object] severity Value to be assigned
|
|
235
|
+
def severity=(severity)
|
|
236
|
+
if severity.nil?
|
|
237
|
+
fail ArgumentError, 'severity cannot be nil'
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
@severity = severity
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Custom attribute writer method with validation
|
|
244
|
+
# @param [Object] created_at Value to be assigned
|
|
245
|
+
def created_at=(created_at)
|
|
246
|
+
if created_at.nil?
|
|
247
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
@created_at = created_at
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Checks equality by comparing each attribute.
|
|
254
|
+
# @param [Object] Object to be compared
|
|
255
|
+
def ==(o)
|
|
256
|
+
return true if self.equal?(o)
|
|
257
|
+
self.class == o.class &&
|
|
258
|
+
_id == o._id &&
|
|
259
|
+
title == o.title &&
|
|
260
|
+
message == o.message &&
|
|
261
|
+
messages_by_locale == o.messages_by_locale &&
|
|
262
|
+
dates == o.dates &&
|
|
263
|
+
severity == o.severity &&
|
|
264
|
+
link_url == o.link_url &&
|
|
265
|
+
link_text == o.link_text &&
|
|
266
|
+
created_at == o.created_at
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# @see the `==` method
|
|
270
|
+
# @param [Object] Object to be compared
|
|
271
|
+
def eql?(o)
|
|
272
|
+
self == o
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Calculates hash code according to all attributes.
|
|
276
|
+
# @return [Integer] Hash code
|
|
277
|
+
def hash
|
|
278
|
+
[_id, title, message, messages_by_locale, dates, severity, link_url, link_text, created_at].hash
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Builds the object from hash
|
|
282
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
283
|
+
# @return [Object] Returns the model itself
|
|
284
|
+
def self.build_from_hash(attributes)
|
|
285
|
+
return nil unless attributes.is_a?(Hash)
|
|
286
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
287
|
+
transformed_hash = {}
|
|
288
|
+
openapi_types.each_pair do |key, type|
|
|
289
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
290
|
+
transformed_hash["#{key}"] = nil
|
|
291
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
292
|
+
# check to ensure the input is an array given that the attribute
|
|
293
|
+
# is documented as an array but the input is not
|
|
294
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
295
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
296
|
+
end
|
|
297
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
298
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
new(transformed_hash)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Returns the object in the form of hash
|
|
305
|
+
# @return [Hash] Returns the object in the form of hash
|
|
306
|
+
def to_hash
|
|
307
|
+
hash = {}
|
|
308
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
309
|
+
value = self.send(attr)
|
|
310
|
+
if value.nil?
|
|
311
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
312
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
hash[param] = _to_hash(value)
|
|
316
|
+
end
|
|
317
|
+
hash
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
end
|
|
@@ -25,6 +25,8 @@ module FastCommentsClient
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :notification_counts
|
|
27
27
|
|
|
28
|
+
attr_accessor :account_notifications
|
|
29
|
+
|
|
28
30
|
class EnumAttributeValidator
|
|
29
31
|
attr_reader :datatype
|
|
30
32
|
attr_reader :allowable_values
|
|
@@ -54,7 +56,8 @@ module FastCommentsClient
|
|
|
54
56
|
:'notification_type' => :'NotificationType',
|
|
55
57
|
:'user_id' => :'userId',
|
|
56
58
|
:'user_id_ws' => :'userIdWS',
|
|
57
|
-
:'notification_counts' => :'notificationCounts'
|
|
59
|
+
:'notification_counts' => :'notificationCounts',
|
|
60
|
+
:'account_notifications' => :'accountNotifications'
|
|
58
61
|
}
|
|
59
62
|
end
|
|
60
63
|
|
|
@@ -75,7 +78,8 @@ module FastCommentsClient
|
|
|
75
78
|
:'notification_type' => :'Object',
|
|
76
79
|
:'user_id' => :'String',
|
|
77
80
|
:'user_id_ws' => :'String',
|
|
78
|
-
:'notification_counts' => :'Array<NotificationAndCount>'
|
|
81
|
+
:'notification_counts' => :'Array<NotificationAndCount>',
|
|
82
|
+
:'account_notifications' => :'Array<HeaderAccountNotification>'
|
|
79
83
|
}
|
|
80
84
|
end
|
|
81
85
|
|
|
@@ -132,6 +136,14 @@ module FastCommentsClient
|
|
|
132
136
|
else
|
|
133
137
|
self.notification_counts = nil
|
|
134
138
|
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'account_notifications')
|
|
141
|
+
if (value = attributes[:'account_notifications']).is_a?(Array)
|
|
142
|
+
self.account_notifications = value
|
|
143
|
+
end
|
|
144
|
+
else
|
|
145
|
+
self.account_notifications = nil
|
|
146
|
+
end
|
|
135
147
|
end
|
|
136
148
|
|
|
137
149
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -159,6 +171,10 @@ module FastCommentsClient
|
|
|
159
171
|
invalid_properties.push('invalid value for "notification_counts", notification_counts cannot be nil.')
|
|
160
172
|
end
|
|
161
173
|
|
|
174
|
+
if @account_notifications.nil?
|
|
175
|
+
invalid_properties.push('invalid value for "account_notifications", account_notifications cannot be nil.')
|
|
176
|
+
end
|
|
177
|
+
|
|
162
178
|
invalid_properties
|
|
163
179
|
end
|
|
164
180
|
|
|
@@ -171,6 +187,7 @@ module FastCommentsClient
|
|
|
171
187
|
return false if @user_id.nil?
|
|
172
188
|
return false if @user_id_ws.nil?
|
|
173
189
|
return false if @notification_counts.nil?
|
|
190
|
+
return false if @account_notifications.nil?
|
|
174
191
|
true
|
|
175
192
|
end
|
|
176
193
|
|
|
@@ -224,6 +241,16 @@ module FastCommentsClient
|
|
|
224
241
|
@notification_counts = notification_counts
|
|
225
242
|
end
|
|
226
243
|
|
|
244
|
+
# Custom attribute writer method with validation
|
|
245
|
+
# @param [Object] account_notifications Value to be assigned
|
|
246
|
+
def account_notifications=(account_notifications)
|
|
247
|
+
if account_notifications.nil?
|
|
248
|
+
fail ArgumentError, 'account_notifications cannot be nil'
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
@account_notifications = account_notifications
|
|
252
|
+
end
|
|
253
|
+
|
|
227
254
|
# Checks equality by comparing each attribute.
|
|
228
255
|
# @param [Object] Object to be compared
|
|
229
256
|
def ==(o)
|
|
@@ -233,7 +260,8 @@ module FastCommentsClient
|
|
|
233
260
|
notification_type == o.notification_type &&
|
|
234
261
|
user_id == o.user_id &&
|
|
235
262
|
user_id_ws == o.user_id_ws &&
|
|
236
|
-
notification_counts == o.notification_counts
|
|
263
|
+
notification_counts == o.notification_counts &&
|
|
264
|
+
account_notifications == o.account_notifications
|
|
237
265
|
end
|
|
238
266
|
|
|
239
267
|
# @see the `==` method
|
|
@@ -245,7 +273,7 @@ module FastCommentsClient
|
|
|
245
273
|
# Calculates hash code according to all attributes.
|
|
246
274
|
# @return [Integer] Hash code
|
|
247
275
|
def hash
|
|
248
|
-
[status, notification_type, user_id, user_id_ws, notification_counts].hash
|
|
276
|
+
[status, notification_type, user_id, user_id_ws, notification_counts, account_notifications].hash
|
|
249
277
|
end
|
|
250
278
|
|
|
251
279
|
# Builds the object from hash
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#fastcomments
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FastCommentsClient
|
|
17
|
+
class MentionAutoCompleteMode
|
|
18
|
+
N0 = 0.freeze
|
|
19
|
+
N1 = 1.freeze
|
|
20
|
+
N2 = 2.freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [N0, N1, N2].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
new.build_from_hash(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
return value if MentionAutoCompleteMode.all_vars.include?(value)
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #MentionAutoCompleteMode"
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -51,6 +51,8 @@ module FastCommentsClient
|
|
|
51
51
|
|
|
52
52
|
attr_accessor :moderation_group_ids
|
|
53
53
|
|
|
54
|
+
attr_accessor :is_email_suppressed
|
|
55
|
+
|
|
54
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
57
|
def self.attribute_map
|
|
56
58
|
{
|
|
@@ -71,7 +73,8 @@ module FastCommentsClient
|
|
|
71
73
|
:'un_flagged_count' => :'unFlaggedCount',
|
|
72
74
|
:'verification_id' => :'verificationId',
|
|
73
75
|
:'created_at' => :'createdAt',
|
|
74
|
-
:'moderation_group_ids' => :'moderationGroupIds'
|
|
76
|
+
:'moderation_group_ids' => :'moderationGroupIds',
|
|
77
|
+
:'is_email_suppressed' => :'isEmailSuppressed'
|
|
75
78
|
}
|
|
76
79
|
end
|
|
77
80
|
|
|
@@ -105,7 +108,8 @@ module FastCommentsClient
|
|
|
105
108
|
:'un_flagged_count' => :'Float',
|
|
106
109
|
:'verification_id' => :'String',
|
|
107
110
|
:'created_at' => :'Time',
|
|
108
|
-
:'moderation_group_ids' => :'Array<String>'
|
|
111
|
+
:'moderation_group_ids' => :'Array<String>',
|
|
112
|
+
:'is_email_suppressed' => :'Boolean'
|
|
109
113
|
}
|
|
110
114
|
end
|
|
111
115
|
|
|
@@ -116,7 +120,7 @@ module FastCommentsClient
|
|
|
116
120
|
:'user_id',
|
|
117
121
|
:'email',
|
|
118
122
|
:'verification_id',
|
|
119
|
-
:'moderation_group_ids'
|
|
123
|
+
:'moderation_group_ids',
|
|
120
124
|
])
|
|
121
125
|
end
|
|
122
126
|
|
|
@@ -245,6 +249,10 @@ module FastCommentsClient
|
|
|
245
249
|
else
|
|
246
250
|
self.moderation_group_ids = nil
|
|
247
251
|
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'is_email_suppressed')
|
|
254
|
+
self.is_email_suppressed = attributes[:'is_email_suppressed']
|
|
255
|
+
end
|
|
248
256
|
end
|
|
249
257
|
|
|
250
258
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -479,7 +487,8 @@ module FastCommentsClient
|
|
|
479
487
|
un_flagged_count == o.un_flagged_count &&
|
|
480
488
|
verification_id == o.verification_id &&
|
|
481
489
|
created_at == o.created_at &&
|
|
482
|
-
moderation_group_ids == o.moderation_group_ids
|
|
490
|
+
moderation_group_ids == o.moderation_group_ids &&
|
|
491
|
+
is_email_suppressed == o.is_email_suppressed
|
|
483
492
|
end
|
|
484
493
|
|
|
485
494
|
# @see the `==` method
|
|
@@ -491,7 +500,7 @@ module FastCommentsClient
|
|
|
491
500
|
# Calculates hash code according to all attributes.
|
|
492
501
|
# @return [Integer] Hash code
|
|
493
502
|
def hash
|
|
494
|
-
[_id, tenant_id, name, user_id, accepted_invite, email, mark_reviewed_count, deleted_count, marked_spam_count, marked_not_spam_count, approved_count, un_approved_count, edited_count, banned_count, un_flagged_count, verification_id, created_at, moderation_group_ids].hash
|
|
503
|
+
[_id, tenant_id, name, user_id, accepted_invite, email, mark_reviewed_count, deleted_count, marked_spam_count, marked_not_spam_count, approved_count, un_approved_count, edited_count, banned_count, un_flagged_count, verification_id, created_at, moderation_group_ids, is_email_suppressed].hash
|
|
495
504
|
end
|
|
496
505
|
|
|
497
506
|
# Builds the object from hash
|
|
@@ -37,6 +37,8 @@ module FastCommentsClient
|
|
|
37
37
|
|
|
38
38
|
attr_accessor :max_domains
|
|
39
39
|
|
|
40
|
+
attr_accessor :max_custom_collection_size
|
|
41
|
+
|
|
40
42
|
attr_accessor :has_debranding
|
|
41
43
|
|
|
42
44
|
attr_accessor :for_who_text
|
|
@@ -89,6 +91,7 @@ module FastCommentsClient
|
|
|
89
91
|
:'max_sso_users' => :'maxSSOUsers',
|
|
90
92
|
:'max_moderators' => :'maxModerators',
|
|
91
93
|
:'max_domains' => :'maxDomains',
|
|
94
|
+
:'max_custom_collection_size' => :'maxCustomCollectionSize',
|
|
92
95
|
:'has_debranding' => :'hasDebranding',
|
|
93
96
|
:'for_who_text' => :'forWhoText',
|
|
94
97
|
:'feature_taglines' => :'featureTaglines',
|
|
@@ -135,6 +138,7 @@ module FastCommentsClient
|
|
|
135
138
|
:'max_sso_users' => :'Float',
|
|
136
139
|
:'max_moderators' => :'Float',
|
|
137
140
|
:'max_domains' => :'Float',
|
|
141
|
+
:'max_custom_collection_size' => :'Float',
|
|
138
142
|
:'has_debranding' => :'Boolean',
|
|
139
143
|
:'for_who_text' => :'String',
|
|
140
144
|
:'feature_taglines' => :'Array<String>',
|
|
@@ -245,6 +249,10 @@ module FastCommentsClient
|
|
|
245
249
|
self.max_domains = nil
|
|
246
250
|
end
|
|
247
251
|
|
|
252
|
+
if attributes.key?(:'max_custom_collection_size')
|
|
253
|
+
self.max_custom_collection_size = attributes[:'max_custom_collection_size']
|
|
254
|
+
end
|
|
255
|
+
|
|
248
256
|
if attributes.key?(:'has_debranding')
|
|
249
257
|
self.has_debranding = attributes[:'has_debranding']
|
|
250
258
|
else
|
|
@@ -588,6 +596,7 @@ module FastCommentsClient
|
|
|
588
596
|
max_sso_users == o.max_sso_users &&
|
|
589
597
|
max_moderators == o.max_moderators &&
|
|
590
598
|
max_domains == o.max_domains &&
|
|
599
|
+
max_custom_collection_size == o.max_custom_collection_size &&
|
|
591
600
|
has_debranding == o.has_debranding &&
|
|
592
601
|
for_who_text == o.for_who_text &&
|
|
593
602
|
feature_taglines == o.feature_taglines &&
|
|
@@ -618,7 +627,7 @@ module FastCommentsClient
|
|
|
618
627
|
# Calculates hash code according to all attributes.
|
|
619
628
|
# @return [Integer] Hash code
|
|
620
629
|
def hash
|
|
621
|
-
[name, monthly_cost_usd, yearly_cost_usd, max_monthly_page_loads, max_monthly_api_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, has_debranding, for_who_text, feature_taglines, has_flex_pricing, flex_page_load_cost_cents, flex_page_load_unit, flex_comment_cost_cents, flex_comment_unit, flex_sso_user_cost_cents, flex_sso_user_unit, flex_api_credit_cost_cents, flex_api_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_minimum_cost_cents].hash
|
|
630
|
+
[name, monthly_cost_usd, yearly_cost_usd, max_monthly_page_loads, max_monthly_api_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, max_custom_collection_size, has_debranding, for_who_text, feature_taglines, has_flex_pricing, flex_page_load_cost_cents, flex_page_load_unit, flex_comment_cost_cents, flex_comment_unit, flex_sso_user_cost_cents, flex_sso_user_unit, flex_api_credit_cost_cents, flex_api_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_minimum_cost_cents].hash
|
|
622
631
|
end
|
|
623
632
|
|
|
624
633
|
# Builds the object from hash
|