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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/client/README.md +27 -0
  3. data/client/docs/APIComment.md +1 -1
  4. data/client/docs/APICommentBase.md +1 -1
  5. data/client/docs/APICommentBaseMeta.md +20 -0
  6. data/client/docs/APITicket.md +34 -0
  7. data/client/docs/APITicketDetail.md +42 -0
  8. data/client/docs/APITicketFile.md +36 -0
  9. data/client/docs/APIUserSubscription.md +2 -0
  10. data/client/docs/ChangeTicketState200Response.md +34 -0
  11. data/client/docs/ChangeTicketStateBody.md +18 -0
  12. data/client/docs/ChangeTicketStateResponse.md +20 -0
  13. data/client/docs/CommentData.md +3 -1
  14. data/client/docs/CreateAPIUserSubscriptionData.md +2 -0
  15. data/client/docs/CreateCommentParams.md +2 -0
  16. data/client/docs/CreateTenantPackageBody.md +2 -0
  17. data/client/docs/CreateTicket200Response.md +34 -0
  18. data/client/docs/CreateTicketBody.md +18 -0
  19. data/client/docs/CreateTicketResponse.md +20 -0
  20. data/client/docs/CustomConfigParameters.md +21 -1
  21. data/client/docs/DefaultApi.md +384 -0
  22. data/client/docs/FComment.md +3 -1
  23. data/client/docs/FCommentMeta.md +2 -0
  24. data/client/docs/GetTicket200Response.md +36 -0
  25. data/client/docs/GetTicketResponse.md +22 -0
  26. data/client/docs/GetTickets200Response.md +34 -0
  27. data/client/docs/GetTicketsResponse.md +20 -0
  28. data/client/docs/HeaderAccountNotification.md +34 -0
  29. data/client/docs/HeaderState.md +3 -1
  30. data/client/docs/MentionAutoCompleteMode.md +15 -0
  31. data/client/docs/Moderator.md +3 -1
  32. data/client/docs/PublicApi.md +3 -1
  33. data/client/docs/ReplaceTenantPackageBody.md +2 -0
  34. data/client/docs/SearchUsers200Response.md +2 -0
  35. data/client/docs/SearchUsersSectionedResponse.md +20 -0
  36. data/client/docs/TOSConfig.md +22 -0
  37. data/client/docs/TenantPackage.md +4 -0
  38. data/client/docs/UpdatableCommentParams.md +1 -1
  39. data/client/docs/UpdateAPIUserSubscriptionData.md +18 -0
  40. data/client/docs/UpdateSubscriptionAPIResponse.md +24 -0
  41. data/client/docs/UpdateTenantPackageBody.md +2 -0
  42. data/client/docs/User.md +17 -1
  43. data/client/docs/UserBadge.md +3 -1
  44. data/client/docs/UserBadgeProgress.md +3 -1
  45. data/client/docs/UserSearchSection.md +15 -0
  46. data/client/docs/UserSearchSectionResult.md +20 -0
  47. data/client/docs/UserSessionInfo.md +2 -0
  48. data/client/lib/fastcomments-client/api/default_api.rb +383 -0
  49. data/client/lib/fastcomments-client/api/public_api.rb +7 -0
  50. data/client/lib/fastcomments-client/models/api_comment.rb +1 -1
  51. data/client/lib/fastcomments-client/models/api_comment_base.rb +1 -1
  52. data/client/lib/fastcomments-client/models/api_comment_base_meta.rb +156 -0
  53. data/client/lib/fastcomments-client/models/api_ticket.rb +374 -0
  54. data/client/lib/fastcomments-client/models/api_ticket_detail.rb +432 -0
  55. data/client/lib/fastcomments-client/models/api_ticket_file.rb +381 -0
  56. data/client/lib/fastcomments-client/models/api_user_subscription.rb +10 -1
  57. data/client/lib/fastcomments-client/models/change_ticket_state200_response.rb +103 -0
  58. data/client/lib/fastcomments-client/models/change_ticket_state_body.rb +164 -0
  59. data/client/lib/fastcomments-client/models/change_ticket_state_response.rb +212 -0
  60. data/client/lib/fastcomments-client/models/comment_data.rb +13 -4
  61. data/client/lib/fastcomments-client/models/create_api_user_subscription_data.rb +10 -1
  62. data/client/lib/fastcomments-client/models/create_comment_params.rb +10 -1
  63. data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +10 -1
  64. data/client/lib/fastcomments-client/models/create_ticket200_response.rb +103 -0
  65. data/client/lib/fastcomments-client/models/create_ticket_body.rb +164 -0
  66. data/client/lib/fastcomments-client/models/create_ticket_response.rb +212 -0
  67. data/client/lib/fastcomments-client/models/custom_config_parameters.rb +97 -4
  68. data/client/lib/fastcomments-client/models/f_comment.rb +13 -4
  69. data/client/lib/fastcomments-client/models/f_comment_meta.rb +10 -1
  70. data/client/lib/fastcomments-client/models/get_ticket200_response.rb +103 -0
  71. data/client/lib/fastcomments-client/models/get_ticket_response.rb +240 -0
  72. data/client/lib/fastcomments-client/models/get_tickets200_response.rb +103 -0
  73. data/client/lib/fastcomments-client/models/get_tickets_response.rb +214 -0
  74. data/client/lib/fastcomments-client/models/header_account_notification.rb +322 -0
  75. data/client/lib/fastcomments-client/models/header_state.rb +32 -4
  76. data/client/lib/fastcomments-client/models/mention_auto_complete_mode.rb +41 -0
  77. data/client/lib/fastcomments-client/models/moderator.rb +14 -5
  78. data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +10 -1
  79. data/client/lib/fastcomments-client/models/search_users200_response.rb +2 -1
  80. data/client/lib/fastcomments-client/models/search_users_sectioned_response.rb +214 -0
  81. data/client/lib/fastcomments-client/models/tenant_package.rb +36 -1
  82. data/client/lib/fastcomments-client/models/tos_config.rb +168 -0
  83. data/client/lib/fastcomments-client/models/updatable_comment_params.rb +1 -1
  84. data/client/lib/fastcomments-client/models/update_api_user_subscription_data.rb +147 -0
  85. data/client/lib/fastcomments-client/models/update_subscription_api_response.rb +191 -0
  86. data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +10 -1
  87. data/client/lib/fastcomments-client/models/user.rb +76 -4
  88. data/client/lib/fastcomments-client/models/user_badge.rb +14 -4
  89. data/client/lib/fastcomments-client/models/user_badge_progress.rb +13 -4
  90. data/client/lib/fastcomments-client/models/user_search_section.rb +41 -0
  91. data/client/lib/fastcomments-client/models/user_search_section_result.rb +214 -0
  92. data/client/lib/fastcomments-client/models/user_session_info.rb +10 -1
  93. data/client/lib/fastcomments-client.rb +22 -0
  94. data/client/spec/api/default_api_spec.rb +64 -0
  95. data/client/spec/api/public_api_spec.rb +1 -0
  96. data/client/spec/models/api_comment_base_meta_spec.rb +42 -0
  97. data/client/spec/models/api_ticket_detail_spec.rb +108 -0
  98. data/client/spec/models/api_ticket_file_spec.rb +90 -0
  99. data/client/spec/models/api_ticket_spec.rb +84 -0
  100. data/client/spec/models/api_user_subscription_spec.rb +6 -0
  101. data/client/spec/models/change_ticket_state200_response_spec.rb +21 -0
  102. data/client/spec/models/change_ticket_state_body_spec.rb +36 -0
  103. data/client/spec/models/change_ticket_state_response_spec.rb +42 -0
  104. data/client/spec/models/comment_data_spec.rb +6 -0
  105. data/client/spec/models/create_api_user_subscription_data_spec.rb +6 -0
  106. data/client/spec/models/create_comment_params_spec.rb +6 -0
  107. data/client/spec/models/create_tenant_package_body_spec.rb +6 -0
  108. data/client/spec/models/create_ticket200_response_spec.rb +21 -0
  109. data/client/spec/models/create_ticket_body_spec.rb +36 -0
  110. data/client/spec/models/create_ticket_response_spec.rb +42 -0
  111. data/client/spec/models/custom_config_parameters_spec.rb +60 -0
  112. data/client/spec/models/f_comment_meta_spec.rb +6 -0
  113. data/client/spec/models/f_comment_spec.rb +6 -0
  114. data/client/spec/models/get_ticket200_response_spec.rb +21 -0
  115. data/client/spec/models/get_ticket_response_spec.rb +48 -0
  116. data/client/spec/models/get_tickets200_response_spec.rb +21 -0
  117. data/client/spec/models/get_tickets_response_spec.rb +42 -0
  118. data/client/spec/models/header_account_notification_spec.rb +84 -0
  119. data/client/spec/models/header_state_spec.rb +6 -0
  120. data/client/spec/models/mention_auto_complete_mode_spec.rb +30 -0
  121. data/client/spec/models/moderator_spec.rb +6 -0
  122. data/client/spec/models/replace_tenant_package_body_spec.rb +6 -0
  123. data/client/spec/models/search_users_sectioned_response_spec.rb +42 -0
  124. data/client/spec/models/tenant_package_spec.rb +12 -0
  125. data/client/spec/models/tos_config_spec.rb +48 -0
  126. data/client/spec/models/update_api_user_subscription_data_spec.rb +36 -0
  127. data/client/spec/models/update_subscription_api_response_spec.rb +54 -0
  128. data/client/spec/models/update_tenant_package_body_spec.rb +6 -0
  129. data/client/spec/models/user_badge_progress_spec.rb +6 -0
  130. data/client/spec/models/user_badge_spec.rb +6 -0
  131. data/client/spec/models/user_search_section_result_spec.rb +42 -0
  132. data/client/spec/models/user_search_section_spec.rb +30 -0
  133. data/client/spec/models/user_session_info_spec.rb +6 -0
  134. data/client/spec/models/user_spec.rb +48 -0
  135. data/lib/fastcomments.rb +1 -1
  136. metadata +68 -2
@@ -0,0 +1,191 @@
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 UpdateSubscriptionAPIResponse < ApiModelBase
18
+ attr_accessor :reason
19
+
20
+ attr_accessor :code
21
+
22
+ attr_accessor :subscription
23
+
24
+ attr_accessor :status
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'reason' => :'reason',
30
+ :'code' => :'code',
31
+ :'subscription' => :'subscription',
32
+ :'status' => :'status'
33
+ }
34
+ end
35
+
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ acceptable_attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'reason' => :'String',
50
+ :'code' => :'String',
51
+ :'subscription' => :'APIUserSubscription',
52
+ :'status' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::UpdateSubscriptionAPIResponse` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::UpdateSubscriptionAPIResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'reason')
79
+ self.reason = attributes[:'reason']
80
+ end
81
+
82
+ if attributes.key?(:'code')
83
+ self.code = attributes[:'code']
84
+ end
85
+
86
+ if attributes.key?(:'subscription')
87
+ self.subscription = attributes[:'subscription']
88
+ end
89
+
90
+ if attributes.key?(:'status')
91
+ self.status = attributes[:'status']
92
+ else
93
+ self.status = nil
94
+ end
95
+ end
96
+
97
+ # Show invalid properties with the reasons. Usually used together with valid?
98
+ # @return Array for valid properties with the reasons
99
+ def list_invalid_properties
100
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
101
+ invalid_properties = Array.new
102
+ if @status.nil?
103
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
104
+ end
105
+
106
+ invalid_properties
107
+ end
108
+
109
+ # Check to see if the all the properties in the model are valid
110
+ # @return true if the model is valid
111
+ def valid?
112
+ warn '[DEPRECATED] the `valid?` method is obsolete'
113
+ return false if @status.nil?
114
+ true
115
+ end
116
+
117
+ # Custom attribute writer method with validation
118
+ # @param [Object] status Value to be assigned
119
+ def status=(status)
120
+ if status.nil?
121
+ fail ArgumentError, 'status cannot be nil'
122
+ end
123
+
124
+ @status = status
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ reason == o.reason &&
133
+ code == o.code &&
134
+ subscription == o.subscription &&
135
+ status == o.status
136
+ end
137
+
138
+ # @see the `==` method
139
+ # @param [Object] Object to be compared
140
+ def eql?(o)
141
+ self == o
142
+ end
143
+
144
+ # Calculates hash code according to all attributes.
145
+ # @return [Integer] Hash code
146
+ def hash
147
+ [reason, code, subscription, status].hash
148
+ end
149
+
150
+ # Builds the object from hash
151
+ # @param [Hash] attributes Model attributes in the form of hash
152
+ # @return [Object] Returns the model itself
153
+ def self.build_from_hash(attributes)
154
+ return nil unless attributes.is_a?(Hash)
155
+ attributes = attributes.transform_keys(&:to_sym)
156
+ transformed_hash = {}
157
+ openapi_types.each_pair do |key, type|
158
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
159
+ transformed_hash["#{key}"] = nil
160
+ elsif type =~ /\AArray<(.*)>/i
161
+ # check to ensure the input is an array given that the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[attribute_map[key]].is_a?(Array)
164
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
165
+ end
166
+ elsif !attributes[attribute_map[key]].nil?
167
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
168
+ end
169
+ end
170
+ new(transformed_hash)
171
+ end
172
+
173
+ # Returns the object in the form of hash
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ if value.nil?
180
+ is_nullable = self.class.openapi_nullable.include?(attr)
181
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
182
+ end
183
+
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ end
190
+
191
+ end
@@ -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 :has_white_labeling
@@ -91,6 +93,7 @@ module FastCommentsClient
91
93
  :'max_sso_users' => :'maxSSOUsers',
92
94
  :'max_moderators' => :'maxModerators',
93
95
  :'max_domains' => :'maxDomains',
96
+ :'max_custom_collection_size' => :'maxCustomCollectionSize',
94
97
  :'has_debranding' => :'hasDebranding',
95
98
  :'has_white_labeling' => :'hasWhiteLabeling',
96
99
  :'for_who_text' => :'forWhoText',
@@ -138,6 +141,7 @@ module FastCommentsClient
138
141
  :'max_sso_users' => :'Float',
139
142
  :'max_moderators' => :'Float',
140
143
  :'max_domains' => :'Float',
144
+ :'max_custom_collection_size' => :'Float',
141
145
  :'has_debranding' => :'Boolean',
142
146
  :'has_white_labeling' => :'Boolean',
143
147
  :'for_who_text' => :'String',
@@ -227,6 +231,10 @@ module FastCommentsClient
227
231
  self.max_domains = attributes[:'max_domains']
228
232
  end
229
233
 
234
+ if attributes.key?(:'max_custom_collection_size')
235
+ self.max_custom_collection_size = attributes[:'max_custom_collection_size']
236
+ end
237
+
230
238
  if attributes.key?(:'has_debranding')
231
239
  self.has_debranding = attributes[:'has_debranding']
232
240
  end
@@ -341,6 +349,7 @@ module FastCommentsClient
341
349
  max_sso_users == o.max_sso_users &&
342
350
  max_moderators == o.max_moderators &&
343
351
  max_domains == o.max_domains &&
352
+ max_custom_collection_size == o.max_custom_collection_size &&
344
353
  has_debranding == o.has_debranding &&
345
354
  has_white_labeling == o.has_white_labeling &&
346
355
  for_who_text == o.for_who_text &&
@@ -372,7 +381,7 @@ module FastCommentsClient
372
381
  # Calculates hash code according to all attributes.
373
382
  # @return [Integer] Hash code
374
383
  def hash
375
- [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, has_white_labeling, 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
384
+ [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, has_white_labeling, 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
376
385
  end
377
386
 
378
387
  # Builds the object from hash
@@ -29,6 +29,10 @@ module FastCommentsClient
29
29
 
30
30
  attr_accessor :pending_email
31
31
 
32
+ attr_accessor :backup_email
33
+
34
+ attr_accessor :pending_backup_email
35
+
32
36
  attr_accessor :sign_up_date
33
37
 
34
38
  attr_accessor :created_from_url_id
@@ -73,6 +77,8 @@ module FastCommentsClient
73
77
 
74
78
  attr_accessor :is_api_admin
75
79
 
80
+ attr_accessor :is_site_admin
81
+
76
82
  attr_accessor :moderator_ids
77
83
 
78
84
  attr_accessor :is_impersonator
@@ -83,6 +89,14 @@ module FastCommentsClient
83
89
 
84
90
  attr_accessor :digest_email_frequency
85
91
 
92
+ attr_accessor :notification_frequency
93
+
94
+ attr_accessor :admin_notification_frequency
95
+
96
+ attr_accessor :last_tenant_notification_sent_date
97
+
98
+ attr_accessor :last_reply_notification_sent_date
99
+
86
100
  attr_accessor :ignored_add_to_my_site_messages
87
101
 
88
102
  attr_accessor :last_login_date
@@ -117,6 +131,8 @@ module FastCommentsClient
117
131
 
118
132
  attr_accessor :has_two_factor
119
133
 
134
+ attr_accessor :is_email_suppressed
135
+
120
136
  class EnumAttributeValidator
121
137
  attr_reader :datatype
122
138
  attr_reader :allowable_values
@@ -149,6 +165,8 @@ module FastCommentsClient
149
165
  :'website_url' => :'websiteUrl',
150
166
  :'email' => :'email',
151
167
  :'pending_email' => :'pendingEmail',
168
+ :'backup_email' => :'backupEmail',
169
+ :'pending_backup_email' => :'pendingBackupEmail',
152
170
  :'sign_up_date' => :'signUpDate',
153
171
  :'created_from_url_id' => :'createdFromUrlId',
154
172
  :'created_from_tenant_id' => :'createdFromTenantId',
@@ -171,11 +189,16 @@ module FastCommentsClient
171
189
  :'is_manage_data_admin' => :'isManageDataAdmin',
172
190
  :'is_comment_moderator_admin' => :'isCommentModeratorAdmin',
173
191
  :'is_api_admin' => :'isAPIAdmin',
192
+ :'is_site_admin' => :'isSiteAdmin',
174
193
  :'moderator_ids' => :'moderatorIds',
175
194
  :'is_impersonator' => :'isImpersonator',
176
195
  :'is_coupon_manager' => :'isCouponManager',
177
196
  :'locale' => :'locale',
178
197
  :'digest_email_frequency' => :'digestEmailFrequency',
198
+ :'notification_frequency' => :'notificationFrequency',
199
+ :'admin_notification_frequency' => :'adminNotificationFrequency',
200
+ :'last_tenant_notification_sent_date' => :'lastTenantNotificationSentDate',
201
+ :'last_reply_notification_sent_date' => :'lastReplyNotificationSentDate',
179
202
  :'ignored_add_to_my_site_messages' => :'ignoredAddToMySiteMessages',
180
203
  :'last_login_date' => :'lastLoginDate',
181
204
  :'display_label' => :'displayLabel',
@@ -192,7 +215,8 @@ module FastCommentsClient
192
215
  :'country_code' => :'countryCode',
193
216
  :'country_flag' => :'countryFlag',
194
217
  :'social_links' => :'socialLinks',
195
- :'has_two_factor' => :'hasTwoFactor'
218
+ :'has_two_factor' => :'hasTwoFactor',
219
+ :'is_email_suppressed' => :'isEmailSuppressed'
196
220
  }
197
221
  end
198
222
 
@@ -216,6 +240,8 @@ module FastCommentsClient
216
240
  :'website_url' => :'String',
217
241
  :'email' => :'String',
218
242
  :'pending_email' => :'String',
243
+ :'backup_email' => :'String',
244
+ :'pending_backup_email' => :'String',
219
245
  :'sign_up_date' => :'Integer',
220
246
  :'created_from_url_id' => :'String',
221
247
  :'created_from_tenant_id' => :'String',
@@ -238,11 +264,16 @@ module FastCommentsClient
238
264
  :'is_manage_data_admin' => :'Boolean',
239
265
  :'is_comment_moderator_admin' => :'Boolean',
240
266
  :'is_api_admin' => :'Boolean',
267
+ :'is_site_admin' => :'Boolean',
241
268
  :'moderator_ids' => :'Array<String>',
242
269
  :'is_impersonator' => :'Boolean',
243
270
  :'is_coupon_manager' => :'Boolean',
244
271
  :'locale' => :'String',
245
272
  :'digest_email_frequency' => :'DigestEmailFrequency',
273
+ :'notification_frequency' => :'Float',
274
+ :'admin_notification_frequency' => :'Float',
275
+ :'last_tenant_notification_sent_date' => :'Time',
276
+ :'last_reply_notification_sent_date' => :'Time',
246
277
  :'ignored_add_to_my_site_messages' => :'Boolean',
247
278
  :'last_login_date' => :'Time',
248
279
  :'display_label' => :'String',
@@ -259,7 +290,8 @@ module FastCommentsClient
259
290
  :'country_code' => :'String',
260
291
  :'country_flag' => :'String',
261
292
  :'social_links' => :'Array<String>',
262
- :'has_two_factor' => :'Boolean'
293
+ :'has_two_factor' => :'Boolean',
294
+ :'is_email_suppressed' => :'Boolean'
263
295
  }
264
296
  end
265
297
 
@@ -326,6 +358,14 @@ module FastCommentsClient
326
358
  self.pending_email = attributes[:'pending_email']
327
359
  end
328
360
 
361
+ if attributes.key?(:'backup_email')
362
+ self.backup_email = attributes[:'backup_email']
363
+ end
364
+
365
+ if attributes.key?(:'pending_backup_email')
366
+ self.pending_backup_email = attributes[:'pending_backup_email']
367
+ end
368
+
329
369
  if attributes.key?(:'sign_up_date')
330
370
  self.sign_up_date = attributes[:'sign_up_date']
331
371
  else
@@ -426,6 +466,10 @@ module FastCommentsClient
426
466
  self.is_api_admin = attributes[:'is_api_admin']
427
467
  end
428
468
 
469
+ if attributes.key?(:'is_site_admin')
470
+ self.is_site_admin = attributes[:'is_site_admin']
471
+ end
472
+
429
473
  if attributes.key?(:'moderator_ids')
430
474
  if (value = attributes[:'moderator_ids']).is_a?(Array)
431
475
  self.moderator_ids = value
@@ -448,6 +492,22 @@ module FastCommentsClient
448
492
  self.digest_email_frequency = attributes[:'digest_email_frequency']
449
493
  end
450
494
 
495
+ if attributes.key?(:'notification_frequency')
496
+ self.notification_frequency = attributes[:'notification_frequency']
497
+ end
498
+
499
+ if attributes.key?(:'admin_notification_frequency')
500
+ self.admin_notification_frequency = attributes[:'admin_notification_frequency']
501
+ end
502
+
503
+ if attributes.key?(:'last_tenant_notification_sent_date')
504
+ self.last_tenant_notification_sent_date = attributes[:'last_tenant_notification_sent_date']
505
+ end
506
+
507
+ if attributes.key?(:'last_reply_notification_sent_date')
508
+ self.last_reply_notification_sent_date = attributes[:'last_reply_notification_sent_date']
509
+ end
510
+
451
511
  if attributes.key?(:'ignored_add_to_my_site_messages')
452
512
  self.ignored_add_to_my_site_messages = attributes[:'ignored_add_to_my_site_messages']
453
513
  end
@@ -517,6 +577,10 @@ module FastCommentsClient
517
577
  if attributes.key?(:'has_two_factor')
518
578
  self.has_two_factor = attributes[:'has_two_factor']
519
579
  end
580
+
581
+ if attributes.key?(:'is_email_suppressed')
582
+ self.is_email_suppressed = attributes[:'is_email_suppressed']
583
+ end
520
584
  end
521
585
 
522
586
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -651,6 +715,8 @@ module FastCommentsClient
651
715
  website_url == o.website_url &&
652
716
  email == o.email &&
653
717
  pending_email == o.pending_email &&
718
+ backup_email == o.backup_email &&
719
+ pending_backup_email == o.pending_backup_email &&
654
720
  sign_up_date == o.sign_up_date &&
655
721
  created_from_url_id == o.created_from_url_id &&
656
722
  created_from_tenant_id == o.created_from_tenant_id &&
@@ -673,11 +739,16 @@ module FastCommentsClient
673
739
  is_manage_data_admin == o.is_manage_data_admin &&
674
740
  is_comment_moderator_admin == o.is_comment_moderator_admin &&
675
741
  is_api_admin == o.is_api_admin &&
742
+ is_site_admin == o.is_site_admin &&
676
743
  moderator_ids == o.moderator_ids &&
677
744
  is_impersonator == o.is_impersonator &&
678
745
  is_coupon_manager == o.is_coupon_manager &&
679
746
  locale == o.locale &&
680
747
  digest_email_frequency == o.digest_email_frequency &&
748
+ notification_frequency == o.notification_frequency &&
749
+ admin_notification_frequency == o.admin_notification_frequency &&
750
+ last_tenant_notification_sent_date == o.last_tenant_notification_sent_date &&
751
+ last_reply_notification_sent_date == o.last_reply_notification_sent_date &&
681
752
  ignored_add_to_my_site_messages == o.ignored_add_to_my_site_messages &&
682
753
  last_login_date == o.last_login_date &&
683
754
  display_label == o.display_label &&
@@ -694,7 +765,8 @@ module FastCommentsClient
694
765
  country_code == o.country_code &&
695
766
  country_flag == o.country_flag &&
696
767
  social_links == o.social_links &&
697
- has_two_factor == o.has_two_factor
768
+ has_two_factor == o.has_two_factor &&
769
+ is_email_suppressed == o.is_email_suppressed
698
770
  end
699
771
 
700
772
  # @see the `==` method
@@ -706,7 +778,7 @@ module FastCommentsClient
706
778
  # Calculates hash code according to all attributes.
707
779
  # @return [Integer] Hash code
708
780
  def hash
709
- [_id, tenant_id, username, display_name, website_url, email, pending_email, sign_up_date, created_from_url_id, created_from_tenant_id, created_from_ip_hashed, verified, login_id, login_id_date, login_count, opted_in_notifications, opted_in_tenant_notifications, hide_account_code, avatar_src, is_fast_comments_help_request_admin, is_help_request_admin, is_account_owner, is_admin_admin, is_billing_admin, is_analytics_admin, is_customization_admin, is_manage_data_admin, is_comment_moderator_admin, is_api_admin, moderator_ids, is_impersonator, is_coupon_manager, locale, digest_email_frequency, ignored_add_to_my_site_messages, last_login_date, display_label, is_profile_activity_private, is_profile_comments_private, is_profile_dm_disabled, profile_comment_approval_mode, karma, password_hash, average_ticket_ack_time_ms, has_blocked_users, bio, header_background_src, country_code, country_flag, social_links, has_two_factor].hash
781
+ [_id, tenant_id, username, display_name, website_url, email, pending_email, backup_email, pending_backup_email, sign_up_date, created_from_url_id, created_from_tenant_id, created_from_ip_hashed, verified, login_id, login_id_date, login_count, opted_in_notifications, opted_in_tenant_notifications, hide_account_code, avatar_src, is_fast_comments_help_request_admin, is_help_request_admin, is_account_owner, is_admin_admin, is_billing_admin, is_analytics_admin, is_customization_admin, is_manage_data_admin, is_comment_moderator_admin, is_api_admin, is_site_admin, moderator_ids, is_impersonator, is_coupon_manager, locale, digest_email_frequency, notification_frequency, admin_notification_frequency, last_tenant_notification_sent_date, last_reply_notification_sent_date, ignored_add_to_my_site_messages, last_login_date, display_label, is_profile_activity_private, is_profile_comments_private, is_profile_dm_disabled, profile_comment_approval_mode, karma, password_hash, average_ticket_ack_time_ms, has_blocked_users, bio, header_background_src, country_code, country_flag, social_links, has_two_factor, is_email_suppressed].hash
710
782
  end
711
783
 
712
784
  # Builds the object from hash
@@ -51,6 +51,8 @@ module FastCommentsClient
51
51
 
52
52
  attr_accessor :order
53
53
 
54
+ attr_accessor :url_id
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
  :'veteran_user_threshold_millis' => :'veteranUserThresholdMillis',
72
74
  :'displayed_on_comments' => :'displayedOnComments',
73
75
  :'received_at' => :'receivedAt',
74
- :'order' => :'order'
76
+ :'order' => :'order',
77
+ :'url_id' => :'urlId'
75
78
  }
76
79
  end
77
80
 
@@ -105,7 +108,8 @@ module FastCommentsClient
105
108
  :'veteran_user_threshold_millis' => :'Integer',
106
109
  :'displayed_on_comments' => :'Boolean',
107
110
  :'received_at' => :'Time',
108
- :'order' => :'Integer'
111
+ :'order' => :'Integer',
112
+ :'url_id' => :'String'
109
113
  }
110
114
  end
111
115
 
@@ -117,6 +121,7 @@ module FastCommentsClient
117
121
  :'border_color',
118
122
  :'text_color',
119
123
  :'css_class',
124
+ :'url_id'
120
125
  ])
121
126
  end
122
127
 
@@ -231,6 +236,10 @@ module FastCommentsClient
231
236
  if attributes.key?(:'order')
232
237
  self.order = attributes[:'order']
233
238
  end
239
+
240
+ if attributes.key?(:'url_id')
241
+ self.url_id = attributes[:'url_id']
242
+ end
234
243
  end
235
244
 
236
245
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -450,7 +459,8 @@ module FastCommentsClient
450
459
  veteran_user_threshold_millis == o.veteran_user_threshold_millis &&
451
460
  displayed_on_comments == o.displayed_on_comments &&
452
461
  received_at == o.received_at &&
453
- order == o.order
462
+ order == o.order &&
463
+ url_id == o.url_id
454
464
  end
455
465
 
456
466
  # @see the `==` method
@@ -462,7 +472,7 @@ module FastCommentsClient
462
472
  # Calculates hash code according to all attributes.
463
473
  # @return [Integer] Hash code
464
474
  def hash
465
- [_id, user_id, badge_id, from_tenant_id, created_at, type, threshold, description, display_label, display_src, background_color, border_color, text_color, css_class, veteran_user_threshold_millis, displayed_on_comments, received_at, order].hash
475
+ [_id, user_id, badge_id, from_tenant_id, created_at, type, threshold, description, display_label, display_src, background_color, border_color, text_color, css_class, veteran_user_threshold_millis, displayed_on_comments, received_at, order, url_id].hash
466
476
  end
467
477
 
468
478
  # Builds the object from hash
@@ -32,6 +32,8 @@ module FastCommentsClient
32
32
  # Construct a type with a set of properties K of type T
33
33
  attr_accessor :progress
34
34
 
35
+ attr_accessor :tos_accepted_at
36
+
35
37
  # Attribute mapping from ruby-style variable name to JSON key.
36
38
  def self.attribute_map
37
39
  {
@@ -42,7 +44,8 @@ module FastCommentsClient
42
44
  :'first_comment_date' => :'firstCommentDate',
43
45
  :'auto_trust_factor' => :'autoTrustFactor',
44
46
  :'manual_trust_factor' => :'manualTrustFactor',
45
- :'progress' => :'progress'
47
+ :'progress' => :'progress',
48
+ :'tos_accepted_at' => :'tosAcceptedAt'
46
49
  }
47
50
  end
48
51
 
@@ -66,7 +69,8 @@ module FastCommentsClient
66
69
  :'first_comment_date' => :'Time',
67
70
  :'auto_trust_factor' => :'Float',
68
71
  :'manual_trust_factor' => :'Float',
69
- :'progress' => :'Hash<String, Float>'
72
+ :'progress' => :'Hash<String, Float>',
73
+ :'tos_accepted_at' => :'Time'
70
74
  }
71
75
  end
72
76
 
@@ -137,6 +141,10 @@ module FastCommentsClient
137
141
  else
138
142
  self.progress = nil
139
143
  end
144
+
145
+ if attributes.key?(:'tos_accepted_at')
146
+ self.tos_accepted_at = attributes[:'tos_accepted_at']
147
+ end
140
148
  end
141
149
 
142
150
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -256,7 +264,8 @@ module FastCommentsClient
256
264
  first_comment_date == o.first_comment_date &&
257
265
  auto_trust_factor == o.auto_trust_factor &&
258
266
  manual_trust_factor == o.manual_trust_factor &&
259
- progress == o.progress
267
+ progress == o.progress &&
268
+ tos_accepted_at == o.tos_accepted_at
260
269
  end
261
270
 
262
271
  # @see the `==` method
@@ -268,7 +277,7 @@ module FastCommentsClient
268
277
  # Calculates hash code according to all attributes.
269
278
  # @return [Integer] Hash code
270
279
  def hash
271
- [_id, tenant_id, user_id, first_comment_id, first_comment_date, auto_trust_factor, manual_trust_factor, progress].hash
280
+ [_id, tenant_id, user_id, first_comment_id, first_comment_date, auto_trust_factor, manual_trust_factor, progress, tos_accepted_at].hash
272
281
  end
273
282
 
274
283
  # 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 UserSearchSection
18
+ MODERATORS = "moderators".freeze
19
+ ON_THIS_PAGE = "onThisPage".freeze
20
+ ON_THIS_SITE = "onThisSite".freeze
21
+
22
+ def self.all_vars
23
+ @all_vars ||= [MODERATORS, ON_THIS_PAGE, ON_THIS_SITE].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 UserSearchSection.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #UserSearchSection"
39
+ end
40
+ end
41
+ end