fastcomments 0.3.0 → 1.0.0

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 (374) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -4
  3. data/client/README.md +185 -4
  4. data/client/docs/APIDomainConfiguration.md +46 -0
  5. data/client/docs/APITenant.md +72 -0
  6. data/client/docs/APITenantDailyUsage.md +54 -0
  7. data/client/docs/AddHashTag200Response.md +34 -0
  8. data/client/docs/AddHashTagsBulk200Response.md +34 -0
  9. data/client/docs/BillingInfo.md +32 -0
  10. data/client/docs/BulkCreateHashTagsBody.md +20 -0
  11. data/client/docs/BulkCreateHashTagsBodyTagsInner.md +20 -0
  12. data/client/docs/BulkCreateHashTagsResponse.md +20 -0
  13. data/client/docs/CommentLogData.md +7 -1
  14. data/client/docs/CreateEmailTemplate200Response.md +34 -0
  15. data/client/docs/CreateEmailTemplateBody.md +28 -0
  16. data/client/docs/CreateEmailTemplateResponse.md +20 -0
  17. data/client/docs/CreateHashTagBody.md +22 -0
  18. data/client/docs/CreateHashTagResponse.md +20 -0
  19. data/client/docs/CreateModerator200Response.md +34 -0
  20. data/client/docs/CreateModeratorBody.md +24 -0
  21. data/client/docs/CreateModeratorResponse.md +20 -0
  22. data/client/docs/CreateQuestionConfig200Response.md +34 -0
  23. data/client/docs/CreateQuestionConfigBody.md +44 -0
  24. data/client/docs/CreateQuestionConfigResponse.md +20 -0
  25. data/client/docs/CreateQuestionResult200Response.md +34 -0
  26. data/client/docs/CreateQuestionResultBody.md +30 -0
  27. data/client/docs/CreateQuestionResultResponse.md +20 -0
  28. data/client/docs/CreateTenant200Response.md +34 -0
  29. data/client/docs/CreateTenantBody.md +62 -0
  30. data/client/docs/CreateTenantPackage200Response.md +34 -0
  31. data/client/docs/CreateTenantPackageBody.md +112 -0
  32. data/client/docs/CreateTenantPackageResponse.md +20 -0
  33. data/client/docs/CreateTenantResponse.md +20 -0
  34. data/client/docs/CreateTenantUser200Response.md +34 -0
  35. data/client/docs/CreateTenantUserBody.md +64 -0
  36. data/client/docs/CreateTenantUserResponse.md +20 -0
  37. data/client/docs/CreateVote200Response.md +32 -0
  38. data/client/docs/CreateVoteResponse.md +18 -0
  39. data/client/docs/CustomEmailTemplate.md +38 -0
  40. data/client/docs/DefaultApi.md +5229 -591
  41. data/client/docs/DeleteHashTagRequest.md +18 -0
  42. data/client/docs/DeleteVote200Response.md +32 -0
  43. data/client/docs/DeleteVoteResponse.md +18 -0
  44. data/client/docs/DigestEmailFrequency.md +15 -0
  45. data/client/docs/EmailTemplateDefinition.md +24 -0
  46. data/client/docs/EmailTemplateRenderErrorResponse.md +30 -0
  47. data/client/docs/GetCachedNotificationCount200Response.md +34 -0
  48. data/client/docs/GetCachedNotificationCountResponse.md +20 -0
  49. data/client/docs/GetEmailTemplate200Response.md +34 -0
  50. data/client/docs/GetEmailTemplateDefinitions200Response.md +34 -0
  51. data/client/docs/GetEmailTemplateDefinitionsResponse.md +20 -0
  52. data/client/docs/GetEmailTemplateRenderErrors200Response.md +34 -0
  53. data/client/docs/GetEmailTemplateRenderErrorsResponse.md +20 -0
  54. data/client/docs/GetEmailTemplateResponse.md +20 -0
  55. data/client/docs/GetEmailTemplates200Response.md +34 -0
  56. data/client/docs/GetEmailTemplatesResponse.md +20 -0
  57. data/client/docs/GetHashTags200Response.md +34 -0
  58. data/client/docs/GetHashTagsResponse.md +20 -0
  59. data/client/docs/GetModerator200Response.md +34 -0
  60. data/client/docs/GetModeratorResponse.md +20 -0
  61. data/client/docs/GetModerators200Response.md +34 -0
  62. data/client/docs/GetModeratorsResponse.md +20 -0
  63. data/client/docs/GetNotificationCount200Response.md +34 -0
  64. data/client/docs/GetNotificationCountResponse.md +20 -0
  65. data/client/docs/GetNotifications200Response.md +34 -0
  66. data/client/docs/GetNotificationsResponse.md +20 -0
  67. data/client/docs/GetPendingWebhookEventCount200Response.md +34 -0
  68. data/client/docs/GetPendingWebhookEventCountResponse.md +20 -0
  69. data/client/docs/GetPendingWebhookEvents200Response.md +34 -0
  70. data/client/docs/GetPendingWebhookEventsResponse.md +20 -0
  71. data/client/docs/GetQuestionConfig200Response.md +34 -0
  72. data/client/docs/GetQuestionConfigResponse.md +20 -0
  73. data/client/docs/GetQuestionConfigs200Response.md +34 -0
  74. data/client/docs/GetQuestionConfigsResponse.md +20 -0
  75. data/client/docs/GetQuestionResult200Response.md +34 -0
  76. data/client/docs/GetQuestionResultResponse.md +20 -0
  77. data/client/docs/GetQuestionResults200Response.md +34 -0
  78. data/client/docs/GetQuestionResultsResponse.md +20 -0
  79. data/client/docs/GetTenant200Response.md +34 -0
  80. data/client/docs/GetTenantDailyUsages200Response.md +34 -0
  81. data/client/docs/GetTenantDailyUsagesResponse.md +20 -0
  82. data/client/docs/GetTenantPackage200Response.md +34 -0
  83. data/client/docs/GetTenantPackageResponse.md +20 -0
  84. data/client/docs/GetTenantPackages200Response.md +34 -0
  85. data/client/docs/GetTenantPackagesResponse.md +20 -0
  86. data/client/docs/GetTenantResponse.md +20 -0
  87. data/client/docs/GetTenantUser200Response.md +34 -0
  88. data/client/docs/GetTenantUserResponse.md +20 -0
  89. data/client/docs/GetTenantUsers200Response.md +34 -0
  90. data/client/docs/GetTenantUsersResponse.md +20 -0
  91. data/client/docs/GetTenants200Response.md +34 -0
  92. data/client/docs/GetTenantsResponse.md +20 -0
  93. data/client/docs/GetUser200Response.md +34 -0
  94. data/client/docs/GetUserResponse.md +20 -0
  95. data/client/docs/GetVotes200Response.md +38 -0
  96. data/client/docs/GetVotesForUser200Response.md +38 -0
  97. data/client/docs/GetVotesForUserResponse.md +24 -0
  98. data/client/docs/GetVotesResponse.md +24 -0
  99. data/client/docs/ImportedSiteType.md +15 -0
  100. data/client/docs/Moderator.md +52 -0
  101. data/client/docs/PatchHashTag200Response.md +34 -0
  102. data/client/docs/PendingCommentToSyncOutbound.md +42 -0
  103. data/client/docs/PublicApi.md +6 -6
  104. data/client/docs/PublicVote.md +28 -0
  105. data/client/docs/QuestionConfig.md +58 -0
  106. data/client/docs/QuestionConfigCustomOptionsInner.md +20 -0
  107. data/client/docs/RenderEmailTemplate200Response.md +34 -0
  108. data/client/docs/RenderEmailTemplateBody.md +24 -0
  109. data/client/docs/RenderEmailTemplateResponse.md +20 -0
  110. data/client/docs/ReplaceTenantPackageBody.md +76 -0
  111. data/client/docs/ReplaceTenantUserBody.md +72 -0
  112. data/client/docs/TenantHashTag.md +26 -0
  113. data/client/docs/TenantPackage.md +120 -0
  114. data/client/docs/UpdateEmailTemplateBody.md +28 -0
  115. data/client/docs/UpdateHashTagBody.md +22 -0
  116. data/client/docs/UpdateHashTagResponse.md +20 -0
  117. data/client/docs/UpdateModeratorBody.md +24 -0
  118. data/client/docs/UpdateNotificationBody.md +20 -0
  119. data/client/docs/UpdateQuestionConfigBody.md +44 -0
  120. data/client/docs/UpdateQuestionResultBody.md +30 -0
  121. data/client/docs/UpdateTenantBody.md +64 -0
  122. data/client/docs/UpdateTenantPackageBody.md +78 -0
  123. data/client/docs/UpdateTenantUserBody.md +64 -0
  124. data/client/docs/User.md +118 -0
  125. data/client/docs/UserNotificationCount.md +24 -0
  126. data/client/lib/fastcomments-client/api/default_api.rb +5133 -776
  127. data/client/lib/fastcomments-client/api/public_api.rb +6 -10
  128. data/client/lib/fastcomments-client/models/add_hash_tag200_response.rb +103 -0
  129. data/client/lib/fastcomments-client/models/add_hash_tags_bulk200_response.rb +103 -0
  130. data/client/lib/fastcomments-client/models/api_domain_configuration.rb +355 -0
  131. data/client/lib/fastcomments-client/models/api_tenant.rb +583 -0
  132. data/client/lib/fastcomments-client/models/api_tenant_daily_usage.rb +632 -0
  133. data/client/lib/fastcomments-client/models/billing_info.rb +315 -0
  134. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body.rb +175 -0
  135. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_body_tags_inner.rb +173 -0
  136. data/client/lib/fastcomments-client/models/bulk_create_hash_tags_response.rb +214 -0
  137. data/client/lib/fastcomments-client/models/comment_log_data.rb +31 -4
  138. data/client/lib/fastcomments-client/models/comment_log_type.rb +2 -1
  139. data/client/lib/fastcomments-client/models/create_email_template200_response.rb +103 -0
  140. data/client/lib/fastcomments-client/models/create_email_template_body.rb +249 -0
  141. data/client/lib/fastcomments-client/models/create_email_template_response.rb +212 -0
  142. data/client/lib/fastcomments-client/models/create_hash_tag_body.rb +182 -0
  143. data/client/lib/fastcomments-client/models/create_hash_tag_response.rb +212 -0
  144. data/client/lib/fastcomments-client/models/create_moderator200_response.rb +103 -0
  145. data/client/lib/fastcomments-client/models/create_moderator_body.rb +210 -0
  146. data/client/lib/fastcomments-client/models/create_moderator_response.rb +212 -0
  147. data/client/lib/fastcomments-client/models/create_question_config200_response.rb +103 -0
  148. data/client/lib/fastcomments-client/models/create_question_config_body.rb +336 -0
  149. data/client/lib/fastcomments-client/models/create_question_config_response.rb +212 -0
  150. data/client/lib/fastcomments-client/models/create_question_result200_response.rb +103 -0
  151. data/client/lib/fastcomments-client/models/create_question_result_body.rb +255 -0
  152. data/client/lib/fastcomments-client/models/create_question_result_response.rb +212 -0
  153. data/client/lib/fastcomments-client/models/create_tenant200_response.rb +103 -0
  154. data/client/lib/fastcomments-client/models/create_tenant_body.rb +384 -0
  155. data/client/lib/fastcomments-client/models/create_tenant_package200_response.rb +103 -0
  156. data/client/lib/fastcomments-client/models/create_tenant_package_body.rb +797 -0
  157. data/client/lib/fastcomments-client/models/create_tenant_package_response.rb +212 -0
  158. data/client/lib/fastcomments-client/models/create_tenant_response.rb +212 -0
  159. data/client/lib/fastcomments-client/models/create_tenant_user200_response.rb +103 -0
  160. data/client/lib/fastcomments-client/models/create_tenant_user_body.rb +390 -0
  161. data/client/lib/fastcomments-client/models/create_tenant_user_response.rb +212 -0
  162. data/client/lib/fastcomments-client/models/create_vote200_response.rb +103 -0
  163. data/client/lib/fastcomments-client/models/create_vote_response.rb +186 -0
  164. data/client/lib/fastcomments-client/models/custom_email_template.rb +369 -0
  165. data/client/lib/fastcomments-client/models/delete_hash_tag_request.rb +147 -0
  166. data/client/lib/fastcomments-client/models/delete_vote200_response.rb +103 -0
  167. data/client/lib/fastcomments-client/models/delete_vote_response.rb +186 -0
  168. data/client/lib/fastcomments-client/models/digest_email_frequency.rb +42 -0
  169. data/client/lib/fastcomments-client/models/email_template_definition.rb +248 -0
  170. data/client/lib/fastcomments-client/models/email_template_render_error_response.rb +320 -0
  171. data/client/lib/fastcomments-client/models/get_cached_notification_count200_response.rb +103 -0
  172. data/client/lib/fastcomments-client/models/get_cached_notification_count_response.rb +212 -0
  173. data/client/lib/fastcomments-client/models/get_email_template200_response.rb +103 -0
  174. data/client/lib/fastcomments-client/models/get_email_template_definitions200_response.rb +103 -0
  175. data/client/lib/fastcomments-client/models/get_email_template_definitions_response.rb +214 -0
  176. data/client/lib/fastcomments-client/models/get_email_template_render_errors200_response.rb +103 -0
  177. data/client/lib/fastcomments-client/models/get_email_template_render_errors_response.rb +214 -0
  178. data/client/lib/fastcomments-client/models/get_email_template_response.rb +212 -0
  179. data/client/lib/fastcomments-client/models/get_email_templates200_response.rb +103 -0
  180. data/client/lib/fastcomments-client/models/get_email_templates_response.rb +214 -0
  181. data/client/lib/fastcomments-client/models/get_hash_tags200_response.rb +103 -0
  182. data/client/lib/fastcomments-client/models/get_hash_tags_response.rb +214 -0
  183. data/client/lib/fastcomments-client/models/get_moderator200_response.rb +103 -0
  184. data/client/lib/fastcomments-client/models/get_moderator_response.rb +212 -0
  185. data/client/lib/fastcomments-client/models/get_moderators200_response.rb +103 -0
  186. data/client/lib/fastcomments-client/models/get_moderators_response.rb +214 -0
  187. data/client/lib/fastcomments-client/models/get_notification_count200_response.rb +103 -0
  188. data/client/lib/fastcomments-client/models/get_notification_count_response.rb +212 -0
  189. data/client/lib/fastcomments-client/models/get_notifications200_response.rb +103 -0
  190. data/client/lib/fastcomments-client/models/get_notifications_response.rb +214 -0
  191. data/client/lib/fastcomments-client/models/get_pending_webhook_event_count200_response.rb +103 -0
  192. data/client/lib/fastcomments-client/models/get_pending_webhook_event_count_response.rb +212 -0
  193. data/client/lib/fastcomments-client/models/get_pending_webhook_events200_response.rb +103 -0
  194. data/client/lib/fastcomments-client/models/get_pending_webhook_events_response.rb +214 -0
  195. data/client/lib/fastcomments-client/models/get_question_config200_response.rb +103 -0
  196. data/client/lib/fastcomments-client/models/get_question_config_response.rb +212 -0
  197. data/client/lib/fastcomments-client/models/get_question_configs200_response.rb +103 -0
  198. data/client/lib/fastcomments-client/models/get_question_configs_response.rb +214 -0
  199. data/client/lib/fastcomments-client/models/get_question_result200_response.rb +103 -0
  200. data/client/lib/fastcomments-client/models/get_question_result_response.rb +212 -0
  201. data/client/lib/fastcomments-client/models/get_question_results200_response.rb +103 -0
  202. data/client/lib/fastcomments-client/models/get_question_results_response.rb +214 -0
  203. data/client/lib/fastcomments-client/models/get_tenant200_response.rb +103 -0
  204. data/client/lib/fastcomments-client/models/get_tenant_daily_usages200_response.rb +103 -0
  205. data/client/lib/fastcomments-client/models/get_tenant_daily_usages_response.rb +214 -0
  206. data/client/lib/fastcomments-client/models/get_tenant_package200_response.rb +103 -0
  207. data/client/lib/fastcomments-client/models/get_tenant_package_response.rb +212 -0
  208. data/client/lib/fastcomments-client/models/get_tenant_packages200_response.rb +103 -0
  209. data/client/lib/fastcomments-client/models/get_tenant_packages_response.rb +214 -0
  210. data/client/lib/fastcomments-client/models/get_tenant_response.rb +212 -0
  211. data/client/lib/fastcomments-client/models/get_tenant_user200_response.rb +103 -0
  212. data/client/lib/fastcomments-client/models/get_tenant_user_response.rb +212 -0
  213. data/client/lib/fastcomments-client/models/get_tenant_users200_response.rb +103 -0
  214. data/client/lib/fastcomments-client/models/get_tenant_users_response.rb +214 -0
  215. data/client/lib/fastcomments-client/models/get_tenants200_response.rb +103 -0
  216. data/client/lib/fastcomments-client/models/get_tenants_response.rb +214 -0
  217. data/client/lib/fastcomments-client/models/get_user200_response.rb +103 -0
  218. data/client/lib/fastcomments-client/models/get_user_response.rb +212 -0
  219. data/client/lib/fastcomments-client/models/get_votes200_response.rb +103 -0
  220. data/client/lib/fastcomments-client/models/get_votes_for_user200_response.rb +103 -0
  221. data/client/lib/fastcomments-client/models/get_votes_for_user_response.rb +270 -0
  222. data/client/lib/fastcomments-client/models/get_votes_response.rb +270 -0
  223. data/client/lib/fastcomments-client/models/imported_site_type.rb +40 -0
  224. data/client/lib/fastcomments-client/models/moderator.rb +538 -0
  225. data/client/lib/fastcomments-client/models/patch_hash_tag200_response.rb +103 -0
  226. data/client/lib/fastcomments-client/models/pending_comment_to_sync_outbound.rb +428 -0
  227. data/client/lib/fastcomments-client/models/public_vote.rb +294 -0
  228. data/client/lib/fastcomments-client/models/question_config.rb +671 -0
  229. data/client/lib/fastcomments-client/models/question_config_custom_options_inner.rb +190 -0
  230. data/client/lib/fastcomments-client/models/render_email_template200_response.rb +103 -0
  231. data/client/lib/fastcomments-client/models/render_email_template_body.rb +214 -0
  232. data/client/lib/fastcomments-client/models/render_email_template_response.rb +212 -0
  233. data/client/lib/fastcomments-client/models/replace_tenant_package_body.rb +665 -0
  234. data/client/lib/fastcomments-client/models/replace_tenant_user_body.rb +426 -0
  235. data/client/lib/fastcomments-client/models/tenant_hash_tag.rb +251 -0
  236. data/client/lib/fastcomments-client/models/tenant_package.rb +994 -0
  237. data/client/lib/fastcomments-client/models/update_email_template_body.rb +198 -0
  238. data/client/lib/fastcomments-client/models/update_hash_tag_body.rb +165 -0
  239. data/client/lib/fastcomments-client/models/update_hash_tag_response.rb +212 -0
  240. data/client/lib/fastcomments-client/models/update_moderator_body.rb +176 -0
  241. data/client/lib/fastcomments-client/models/update_notification_body.rb +156 -0
  242. data/client/lib/fastcomments-client/models/update_question_config_body.rb +268 -0
  243. data/client/lib/fastcomments-client/models/update_question_result_body.rb +204 -0
  244. data/client/lib/fastcomments-client/models/update_tenant_body.rb +359 -0
  245. data/client/lib/fastcomments-client/models/update_tenant_package_body.rb +419 -0
  246. data/client/lib/fastcomments-client/models/update_tenant_user_body.rb +356 -0
  247. data/client/lib/fastcomments-client/models/user.rb +753 -0
  248. data/client/lib/fastcomments-client/models/user_notification_count.rb +242 -0
  249. data/client/lib/fastcomments-client/version.rb +1 -1
  250. data/client/lib/fastcomments-client.rb +119 -0
  251. data/client/spec/api/default_api_spec.rb +740 -0
  252. data/client/spec/api/public_api_spec.rb +1 -1
  253. data/client/spec/models/add_hash_tag200_response_spec.rb +21 -0
  254. data/client/spec/models/add_hash_tags_bulk200_response_spec.rb +21 -0
  255. data/client/spec/models/api_domain_configuration_spec.rb +120 -0
  256. data/client/spec/models/api_tenant_daily_usage_spec.rb +144 -0
  257. data/client/spec/models/api_tenant_spec.rb +198 -0
  258. data/client/spec/models/billing_info_spec.rb +78 -0
  259. data/client/spec/models/bulk_create_hash_tags_body_spec.rb +42 -0
  260. data/client/spec/models/bulk_create_hash_tags_body_tags_inner_spec.rb +42 -0
  261. data/client/spec/models/bulk_create_hash_tags_response_spec.rb +42 -0
  262. data/client/spec/models/comment_log_data_spec.rb +18 -0
  263. data/client/spec/models/create_email_template200_response_spec.rb +21 -0
  264. data/client/spec/models/create_email_template_body_spec.rb +66 -0
  265. data/client/spec/models/create_email_template_response_spec.rb +42 -0
  266. data/client/spec/models/create_hash_tag_body_spec.rb +48 -0
  267. data/client/spec/models/create_hash_tag_response_spec.rb +42 -0
  268. data/client/spec/models/create_moderator200_response_spec.rb +21 -0
  269. data/client/spec/models/create_moderator_body_spec.rb +54 -0
  270. data/client/spec/models/create_moderator_response_spec.rb +42 -0
  271. data/client/spec/models/create_question_config200_response_spec.rb +21 -0
  272. data/client/spec/models/create_question_config_body_spec.rb +114 -0
  273. data/client/spec/models/create_question_config_response_spec.rb +42 -0
  274. data/client/spec/models/create_question_result200_response_spec.rb +21 -0
  275. data/client/spec/models/create_question_result_body_spec.rb +72 -0
  276. data/client/spec/models/create_question_result_response_spec.rb +42 -0
  277. data/client/spec/models/create_tenant200_response_spec.rb +21 -0
  278. data/client/spec/models/create_tenant_body_spec.rb +168 -0
  279. data/client/spec/models/create_tenant_package200_response_spec.rb +21 -0
  280. data/client/spec/models/create_tenant_package_body_spec.rb +318 -0
  281. data/client/spec/models/create_tenant_package_response_spec.rb +42 -0
  282. data/client/spec/models/create_tenant_response_spec.rb +42 -0
  283. data/client/spec/models/create_tenant_user200_response_spec.rb +21 -0
  284. data/client/spec/models/create_tenant_user_body_spec.rb +174 -0
  285. data/client/spec/models/create_tenant_user_response_spec.rb +42 -0
  286. data/client/spec/models/create_vote200_response_spec.rb +21 -0
  287. data/client/spec/models/create_vote_response_spec.rb +36 -0
  288. data/client/spec/models/custom_email_template_spec.rb +96 -0
  289. data/client/spec/models/delete_hash_tag_request_spec.rb +36 -0
  290. data/client/spec/models/delete_vote200_response_spec.rb +21 -0
  291. data/client/spec/models/delete_vote_response_spec.rb +36 -0
  292. data/client/spec/models/digest_email_frequency_spec.rb +30 -0
  293. data/client/spec/models/email_template_definition_spec.rb +54 -0
  294. data/client/spec/models/email_template_render_error_response_spec.rb +72 -0
  295. data/client/spec/models/get_cached_notification_count200_response_spec.rb +21 -0
  296. data/client/spec/models/get_cached_notification_count_response_spec.rb +42 -0
  297. data/client/spec/models/get_email_template200_response_spec.rb +21 -0
  298. data/client/spec/models/get_email_template_definitions200_response_spec.rb +21 -0
  299. data/client/spec/models/get_email_template_definitions_response_spec.rb +42 -0
  300. data/client/spec/models/get_email_template_render_errors200_response_spec.rb +21 -0
  301. data/client/spec/models/get_email_template_render_errors_response_spec.rb +42 -0
  302. data/client/spec/models/get_email_template_response_spec.rb +42 -0
  303. data/client/spec/models/get_email_templates200_response_spec.rb +21 -0
  304. data/client/spec/models/get_email_templates_response_spec.rb +42 -0
  305. data/client/spec/models/get_hash_tags200_response_spec.rb +21 -0
  306. data/client/spec/models/get_hash_tags_response_spec.rb +42 -0
  307. data/client/spec/models/get_moderator200_response_spec.rb +21 -0
  308. data/client/spec/models/get_moderator_response_spec.rb +42 -0
  309. data/client/spec/models/get_moderators200_response_spec.rb +21 -0
  310. data/client/spec/models/get_moderators_response_spec.rb +42 -0
  311. data/client/spec/models/get_notification_count200_response_spec.rb +21 -0
  312. data/client/spec/models/get_notification_count_response_spec.rb +42 -0
  313. data/client/spec/models/get_notifications200_response_spec.rb +21 -0
  314. data/client/spec/models/get_notifications_response_spec.rb +42 -0
  315. data/client/spec/models/get_pending_webhook_event_count200_response_spec.rb +21 -0
  316. data/client/spec/models/get_pending_webhook_event_count_response_spec.rb +42 -0
  317. data/client/spec/models/get_pending_webhook_events200_response_spec.rb +21 -0
  318. data/client/spec/models/get_pending_webhook_events_response_spec.rb +42 -0
  319. data/client/spec/models/get_question_config200_response_spec.rb +21 -0
  320. data/client/spec/models/get_question_config_response_spec.rb +42 -0
  321. data/client/spec/models/get_question_configs200_response_spec.rb +21 -0
  322. data/client/spec/models/get_question_configs_response_spec.rb +42 -0
  323. data/client/spec/models/get_question_result200_response_spec.rb +21 -0
  324. data/client/spec/models/get_question_result_response_spec.rb +42 -0
  325. data/client/spec/models/get_question_results200_response_spec.rb +21 -0
  326. data/client/spec/models/get_question_results_response_spec.rb +42 -0
  327. data/client/spec/models/get_tenant200_response_spec.rb +21 -0
  328. data/client/spec/models/get_tenant_daily_usages200_response_spec.rb +21 -0
  329. data/client/spec/models/get_tenant_daily_usages_response_spec.rb +42 -0
  330. data/client/spec/models/get_tenant_package200_response_spec.rb +21 -0
  331. data/client/spec/models/get_tenant_package_response_spec.rb +42 -0
  332. data/client/spec/models/get_tenant_packages200_response_spec.rb +21 -0
  333. data/client/spec/models/get_tenant_packages_response_spec.rb +42 -0
  334. data/client/spec/models/get_tenant_response_spec.rb +42 -0
  335. data/client/spec/models/get_tenant_user200_response_spec.rb +21 -0
  336. data/client/spec/models/get_tenant_user_response_spec.rb +42 -0
  337. data/client/spec/models/get_tenant_users200_response_spec.rb +21 -0
  338. data/client/spec/models/get_tenant_users_response_spec.rb +42 -0
  339. data/client/spec/models/get_tenants200_response_spec.rb +21 -0
  340. data/client/spec/models/get_tenants_response_spec.rb +42 -0
  341. data/client/spec/models/get_user200_response_spec.rb +21 -0
  342. data/client/spec/models/get_user_response_spec.rb +42 -0
  343. data/client/spec/models/get_votes200_response_spec.rb +21 -0
  344. data/client/spec/models/get_votes_for_user200_response_spec.rb +21 -0
  345. data/client/spec/models/get_votes_for_user_response_spec.rb +54 -0
  346. data/client/spec/models/get_votes_response_spec.rb +54 -0
  347. data/client/spec/models/imported_site_type_spec.rb +30 -0
  348. data/client/spec/models/moderator_spec.rb +138 -0
  349. data/client/spec/models/patch_hash_tag200_response_spec.rb +21 -0
  350. data/client/spec/models/pending_comment_to_sync_outbound_spec.rb +108 -0
  351. data/client/spec/models/public_vote_spec.rb +66 -0
  352. data/client/spec/models/question_config_custom_options_inner_spec.rb +42 -0
  353. data/client/spec/models/question_config_spec.rb +156 -0
  354. data/client/spec/models/render_email_template200_response_spec.rb +21 -0
  355. data/client/spec/models/render_email_template_body_spec.rb +54 -0
  356. data/client/spec/models/render_email_template_response_spec.rb +42 -0
  357. data/client/spec/models/replace_tenant_package_body_spec.rb +210 -0
  358. data/client/spec/models/replace_tenant_user_body_spec.rb +198 -0
  359. data/client/spec/models/tenant_hash_tag_spec.rb +60 -0
  360. data/client/spec/models/tenant_package_spec.rb +342 -0
  361. data/client/spec/models/update_email_template_body_spec.rb +66 -0
  362. data/client/spec/models/update_hash_tag_body_spec.rb +48 -0
  363. data/client/spec/models/update_hash_tag_response_spec.rb +42 -0
  364. data/client/spec/models/update_moderator_body_spec.rb +54 -0
  365. data/client/spec/models/update_notification_body_spec.rb +42 -0
  366. data/client/spec/models/update_question_config_body_spec.rb +114 -0
  367. data/client/spec/models/update_question_result_body_spec.rb +72 -0
  368. data/client/spec/models/update_tenant_body_spec.rb +174 -0
  369. data/client/spec/models/update_tenant_package_body_spec.rb +216 -0
  370. data/client/spec/models/update_tenant_user_body_spec.rb +174 -0
  371. data/client/spec/models/user_notification_count_spec.rb +54 -0
  372. data/client/spec/models/user_spec.rb +336 -0
  373. data/lib/fastcomments.rb +2 -1
  374. metadata +359 -2
@@ -0,0 +1,753 @@
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.18.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FastCommentsClient
17
+ class User < ApiModelBase
18
+ attr_accessor :_id
19
+
20
+ attr_accessor :tenant_id
21
+
22
+ attr_accessor :username
23
+
24
+ attr_accessor :display_name
25
+
26
+ attr_accessor :website_url
27
+
28
+ attr_accessor :email
29
+
30
+ attr_accessor :pending_email
31
+
32
+ attr_accessor :sign_up_date
33
+
34
+ attr_accessor :created_from_url_id
35
+
36
+ attr_accessor :created_from_tenant_id
37
+
38
+ attr_accessor :created_from_ip_hashed
39
+
40
+ attr_accessor :verified
41
+
42
+ attr_accessor :login_id
43
+
44
+ attr_accessor :login_id_date
45
+
46
+ attr_accessor :login_count
47
+
48
+ attr_accessor :opted_in_notifications
49
+
50
+ attr_accessor :opted_in_tenant_notifications
51
+
52
+ attr_accessor :hide_account_code
53
+
54
+ attr_accessor :avatar_src
55
+
56
+ attr_accessor :is_fast_comments_help_request_admin
57
+
58
+ attr_accessor :is_help_request_admin
59
+
60
+ attr_accessor :is_account_owner
61
+
62
+ attr_accessor :is_admin_admin
63
+
64
+ attr_accessor :is_billing_admin
65
+
66
+ attr_accessor :is_analytics_admin
67
+
68
+ attr_accessor :is_customization_admin
69
+
70
+ attr_accessor :is_manage_data_admin
71
+
72
+ attr_accessor :is_comment_moderator_admin
73
+
74
+ attr_accessor :is_api_admin
75
+
76
+ attr_accessor :moderator_ids
77
+
78
+ attr_accessor :is_impersonator
79
+
80
+ attr_accessor :is_coupon_manager
81
+
82
+ attr_accessor :locale
83
+
84
+ attr_accessor :digest_email_frequency
85
+
86
+ attr_accessor :ignored_add_to_my_site_messages
87
+
88
+ attr_accessor :last_login_date
89
+
90
+ attr_accessor :display_label
91
+
92
+ attr_accessor :is_profile_activity_private
93
+
94
+ attr_accessor :is_profile_comments_private
95
+
96
+ attr_accessor :is_profile_dm_disabled
97
+
98
+ attr_accessor :profile_comment_approval_mode
99
+
100
+ attr_accessor :karma
101
+
102
+ attr_accessor :password_hash
103
+
104
+ attr_accessor :average_ticket_ack_time_ms
105
+
106
+ attr_accessor :has_blocked_users
107
+
108
+ attr_accessor :bio
109
+
110
+ attr_accessor :header_background_src
111
+
112
+ attr_accessor :country_code
113
+
114
+ attr_accessor :country_flag
115
+
116
+ attr_accessor :social_links
117
+
118
+ attr_accessor :has_two_factor
119
+
120
+ class EnumAttributeValidator
121
+ attr_reader :datatype
122
+ attr_reader :allowable_values
123
+
124
+ def initialize(datatype, allowable_values)
125
+ @allowable_values = allowable_values.map do |value|
126
+ case datatype.to_s
127
+ when /Integer/i
128
+ value.to_i
129
+ when /Float/i
130
+ value.to_f
131
+ else
132
+ value
133
+ end
134
+ end
135
+ end
136
+
137
+ def valid?(value)
138
+ !value || allowable_values.include?(value)
139
+ end
140
+ end
141
+
142
+ # Attribute mapping from ruby-style variable name to JSON key.
143
+ def self.attribute_map
144
+ {
145
+ :'_id' => :'_id',
146
+ :'tenant_id' => :'tenantId',
147
+ :'username' => :'username',
148
+ :'display_name' => :'displayName',
149
+ :'website_url' => :'websiteUrl',
150
+ :'email' => :'email',
151
+ :'pending_email' => :'pendingEmail',
152
+ :'sign_up_date' => :'signUpDate',
153
+ :'created_from_url_id' => :'createdFromUrlId',
154
+ :'created_from_tenant_id' => :'createdFromTenantId',
155
+ :'created_from_ip_hashed' => :'createdFromIpHashed',
156
+ :'verified' => :'verified',
157
+ :'login_id' => :'loginId',
158
+ :'login_id_date' => :'loginIdDate',
159
+ :'login_count' => :'loginCount',
160
+ :'opted_in_notifications' => :'optedInNotifications',
161
+ :'opted_in_tenant_notifications' => :'optedInTenantNotifications',
162
+ :'hide_account_code' => :'hideAccountCode',
163
+ :'avatar_src' => :'avatarSrc',
164
+ :'is_fast_comments_help_request_admin' => :'isFastCommentsHelpRequestAdmin',
165
+ :'is_help_request_admin' => :'isHelpRequestAdmin',
166
+ :'is_account_owner' => :'isAccountOwner',
167
+ :'is_admin_admin' => :'isAdminAdmin',
168
+ :'is_billing_admin' => :'isBillingAdmin',
169
+ :'is_analytics_admin' => :'isAnalyticsAdmin',
170
+ :'is_customization_admin' => :'isCustomizationAdmin',
171
+ :'is_manage_data_admin' => :'isManageDataAdmin',
172
+ :'is_comment_moderator_admin' => :'isCommentModeratorAdmin',
173
+ :'is_api_admin' => :'isAPIAdmin',
174
+ :'moderator_ids' => :'moderatorIds',
175
+ :'is_impersonator' => :'isImpersonator',
176
+ :'is_coupon_manager' => :'isCouponManager',
177
+ :'locale' => :'locale',
178
+ :'digest_email_frequency' => :'digestEmailFrequency',
179
+ :'ignored_add_to_my_site_messages' => :'ignoredAddToMySiteMessages',
180
+ :'last_login_date' => :'lastLoginDate',
181
+ :'display_label' => :'displayLabel',
182
+ :'is_profile_activity_private' => :'isProfileActivityPrivate',
183
+ :'is_profile_comments_private' => :'isProfileCommentsPrivate',
184
+ :'is_profile_dm_disabled' => :'isProfileDMDisabled',
185
+ :'profile_comment_approval_mode' => :'profileCommentApprovalMode',
186
+ :'karma' => :'karma',
187
+ :'password_hash' => :'passwordHash',
188
+ :'average_ticket_ack_time_ms' => :'averageTicketAckTimeMS',
189
+ :'has_blocked_users' => :'hasBlockedUsers',
190
+ :'bio' => :'bio',
191
+ :'header_background_src' => :'headerBackgroundSrc',
192
+ :'country_code' => :'countryCode',
193
+ :'country_flag' => :'countryFlag',
194
+ :'social_links' => :'socialLinks',
195
+ :'has_two_factor' => :'hasTwoFactor'
196
+ }
197
+ end
198
+
199
+ # Returns attribute mapping this model knows about
200
+ def self.acceptable_attribute_map
201
+ attribute_map
202
+ end
203
+
204
+ # Returns all the JSON keys this model knows about
205
+ def self.acceptable_attributes
206
+ acceptable_attribute_map.values
207
+ end
208
+
209
+ # Attribute type mapping.
210
+ def self.openapi_types
211
+ {
212
+ :'_id' => :'String',
213
+ :'tenant_id' => :'String',
214
+ :'username' => :'String',
215
+ :'display_name' => :'String',
216
+ :'website_url' => :'String',
217
+ :'email' => :'String',
218
+ :'pending_email' => :'String',
219
+ :'sign_up_date' => :'Integer',
220
+ :'created_from_url_id' => :'String',
221
+ :'created_from_tenant_id' => :'String',
222
+ :'created_from_ip_hashed' => :'String',
223
+ :'verified' => :'Boolean',
224
+ :'login_id' => :'String',
225
+ :'login_id_date' => :'Integer',
226
+ :'login_count' => :'Integer',
227
+ :'opted_in_notifications' => :'Boolean',
228
+ :'opted_in_tenant_notifications' => :'Boolean',
229
+ :'hide_account_code' => :'Boolean',
230
+ :'avatar_src' => :'String',
231
+ :'is_fast_comments_help_request_admin' => :'Boolean',
232
+ :'is_help_request_admin' => :'Boolean',
233
+ :'is_account_owner' => :'Boolean',
234
+ :'is_admin_admin' => :'Boolean',
235
+ :'is_billing_admin' => :'Boolean',
236
+ :'is_analytics_admin' => :'Boolean',
237
+ :'is_customization_admin' => :'Boolean',
238
+ :'is_manage_data_admin' => :'Boolean',
239
+ :'is_comment_moderator_admin' => :'Boolean',
240
+ :'is_api_admin' => :'Boolean',
241
+ :'moderator_ids' => :'Array<String>',
242
+ :'is_impersonator' => :'Boolean',
243
+ :'is_coupon_manager' => :'Boolean',
244
+ :'locale' => :'String',
245
+ :'digest_email_frequency' => :'DigestEmailFrequency',
246
+ :'ignored_add_to_my_site_messages' => :'Boolean',
247
+ :'last_login_date' => :'Time',
248
+ :'display_label' => :'String',
249
+ :'is_profile_activity_private' => :'Boolean',
250
+ :'is_profile_comments_private' => :'Boolean',
251
+ :'is_profile_dm_disabled' => :'Boolean',
252
+ :'profile_comment_approval_mode' => :'Float',
253
+ :'karma' => :'Float',
254
+ :'password_hash' => :'String',
255
+ :'average_ticket_ack_time_ms' => :'Float',
256
+ :'has_blocked_users' => :'Boolean',
257
+ :'bio' => :'String',
258
+ :'header_background_src' => :'String',
259
+ :'country_code' => :'String',
260
+ :'country_flag' => :'String',
261
+ :'social_links' => :'Array<String>',
262
+ :'has_two_factor' => :'Boolean'
263
+ }
264
+ end
265
+
266
+ # List of attributes with nullable: true
267
+ def self.openapi_nullable
268
+ Set.new([
269
+ :'tenant_id',
270
+ :'website_url',
271
+ :'email',
272
+ :'created_from_url_id',
273
+ :'created_from_tenant_id',
274
+ :'avatar_src',
275
+ :'average_ticket_ack_time_ms',
276
+ ])
277
+ end
278
+
279
+ # Initializes the object
280
+ # @param [Hash] attributes Model attributes in the form of hash
281
+ def initialize(attributes = {})
282
+ if (!attributes.is_a?(Hash))
283
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::User` initialize method"
284
+ end
285
+
286
+ # check to see if the attribute exists and convert string to symbol for hash key
287
+ acceptable_attribute_map = self.class.acceptable_attribute_map
288
+ attributes = attributes.each_with_object({}) { |(k, v), h|
289
+ if (!acceptable_attribute_map.key?(k.to_sym))
290
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::User`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
291
+ end
292
+ h[k.to_sym] = v
293
+ }
294
+
295
+ if attributes.key?(:'_id')
296
+ self._id = attributes[:'_id']
297
+ else
298
+ self._id = nil
299
+ end
300
+
301
+ if attributes.key?(:'tenant_id')
302
+ self.tenant_id = attributes[:'tenant_id']
303
+ end
304
+
305
+ if attributes.key?(:'username')
306
+ self.username = attributes[:'username']
307
+ else
308
+ self.username = nil
309
+ end
310
+
311
+ if attributes.key?(:'display_name')
312
+ self.display_name = attributes[:'display_name']
313
+ end
314
+
315
+ if attributes.key?(:'website_url')
316
+ self.website_url = attributes[:'website_url']
317
+ end
318
+
319
+ if attributes.key?(:'email')
320
+ self.email = attributes[:'email']
321
+ else
322
+ self.email = nil
323
+ end
324
+
325
+ if attributes.key?(:'pending_email')
326
+ self.pending_email = attributes[:'pending_email']
327
+ end
328
+
329
+ if attributes.key?(:'sign_up_date')
330
+ self.sign_up_date = attributes[:'sign_up_date']
331
+ else
332
+ self.sign_up_date = nil
333
+ end
334
+
335
+ if attributes.key?(:'created_from_url_id')
336
+ self.created_from_url_id = attributes[:'created_from_url_id']
337
+ end
338
+
339
+ if attributes.key?(:'created_from_tenant_id')
340
+ self.created_from_tenant_id = attributes[:'created_from_tenant_id']
341
+ else
342
+ self.created_from_tenant_id = nil
343
+ end
344
+
345
+ if attributes.key?(:'created_from_ip_hashed')
346
+ self.created_from_ip_hashed = attributes[:'created_from_ip_hashed']
347
+ else
348
+ self.created_from_ip_hashed = nil
349
+ end
350
+
351
+ if attributes.key?(:'verified')
352
+ self.verified = attributes[:'verified']
353
+ else
354
+ self.verified = nil
355
+ end
356
+
357
+ if attributes.key?(:'login_id')
358
+ self.login_id = attributes[:'login_id']
359
+ else
360
+ self.login_id = nil
361
+ end
362
+
363
+ if attributes.key?(:'login_id_date')
364
+ self.login_id_date = attributes[:'login_id_date']
365
+ else
366
+ self.login_id_date = nil
367
+ end
368
+
369
+ if attributes.key?(:'login_count')
370
+ self.login_count = attributes[:'login_count']
371
+ end
372
+
373
+ if attributes.key?(:'opted_in_notifications')
374
+ self.opted_in_notifications = attributes[:'opted_in_notifications']
375
+ end
376
+
377
+ if attributes.key?(:'opted_in_tenant_notifications')
378
+ self.opted_in_tenant_notifications = attributes[:'opted_in_tenant_notifications']
379
+ end
380
+
381
+ if attributes.key?(:'hide_account_code')
382
+ self.hide_account_code = attributes[:'hide_account_code']
383
+ end
384
+
385
+ if attributes.key?(:'avatar_src')
386
+ self.avatar_src = attributes[:'avatar_src']
387
+ end
388
+
389
+ if attributes.key?(:'is_fast_comments_help_request_admin')
390
+ self.is_fast_comments_help_request_admin = attributes[:'is_fast_comments_help_request_admin']
391
+ end
392
+
393
+ if attributes.key?(:'is_help_request_admin')
394
+ self.is_help_request_admin = attributes[:'is_help_request_admin']
395
+ end
396
+
397
+ if attributes.key?(:'is_account_owner')
398
+ self.is_account_owner = attributes[:'is_account_owner']
399
+ end
400
+
401
+ if attributes.key?(:'is_admin_admin')
402
+ self.is_admin_admin = attributes[:'is_admin_admin']
403
+ end
404
+
405
+ if attributes.key?(:'is_billing_admin')
406
+ self.is_billing_admin = attributes[:'is_billing_admin']
407
+ end
408
+
409
+ if attributes.key?(:'is_analytics_admin')
410
+ self.is_analytics_admin = attributes[:'is_analytics_admin']
411
+ end
412
+
413
+ if attributes.key?(:'is_customization_admin')
414
+ self.is_customization_admin = attributes[:'is_customization_admin']
415
+ end
416
+
417
+ if attributes.key?(:'is_manage_data_admin')
418
+ self.is_manage_data_admin = attributes[:'is_manage_data_admin']
419
+ end
420
+
421
+ if attributes.key?(:'is_comment_moderator_admin')
422
+ self.is_comment_moderator_admin = attributes[:'is_comment_moderator_admin']
423
+ end
424
+
425
+ if attributes.key?(:'is_api_admin')
426
+ self.is_api_admin = attributes[:'is_api_admin']
427
+ end
428
+
429
+ if attributes.key?(:'moderator_ids')
430
+ if (value = attributes[:'moderator_ids']).is_a?(Array)
431
+ self.moderator_ids = value
432
+ end
433
+ end
434
+
435
+ if attributes.key?(:'is_impersonator')
436
+ self.is_impersonator = attributes[:'is_impersonator']
437
+ end
438
+
439
+ if attributes.key?(:'is_coupon_manager')
440
+ self.is_coupon_manager = attributes[:'is_coupon_manager']
441
+ end
442
+
443
+ if attributes.key?(:'locale')
444
+ self.locale = attributes[:'locale']
445
+ end
446
+
447
+ if attributes.key?(:'digest_email_frequency')
448
+ self.digest_email_frequency = attributes[:'digest_email_frequency']
449
+ end
450
+
451
+ if attributes.key?(:'ignored_add_to_my_site_messages')
452
+ self.ignored_add_to_my_site_messages = attributes[:'ignored_add_to_my_site_messages']
453
+ end
454
+
455
+ if attributes.key?(:'last_login_date')
456
+ self.last_login_date = attributes[:'last_login_date']
457
+ end
458
+
459
+ if attributes.key?(:'display_label')
460
+ self.display_label = attributes[:'display_label']
461
+ end
462
+
463
+ if attributes.key?(:'is_profile_activity_private')
464
+ self.is_profile_activity_private = attributes[:'is_profile_activity_private']
465
+ end
466
+
467
+ if attributes.key?(:'is_profile_comments_private')
468
+ self.is_profile_comments_private = attributes[:'is_profile_comments_private']
469
+ end
470
+
471
+ if attributes.key?(:'is_profile_dm_disabled')
472
+ self.is_profile_dm_disabled = attributes[:'is_profile_dm_disabled']
473
+ end
474
+
475
+ if attributes.key?(:'profile_comment_approval_mode')
476
+ self.profile_comment_approval_mode = attributes[:'profile_comment_approval_mode']
477
+ end
478
+
479
+ if attributes.key?(:'karma')
480
+ self.karma = attributes[:'karma']
481
+ end
482
+
483
+ if attributes.key?(:'password_hash')
484
+ self.password_hash = attributes[:'password_hash']
485
+ end
486
+
487
+ if attributes.key?(:'average_ticket_ack_time_ms')
488
+ self.average_ticket_ack_time_ms = attributes[:'average_ticket_ack_time_ms']
489
+ end
490
+
491
+ if attributes.key?(:'has_blocked_users')
492
+ self.has_blocked_users = attributes[:'has_blocked_users']
493
+ end
494
+
495
+ if attributes.key?(:'bio')
496
+ self.bio = attributes[:'bio']
497
+ end
498
+
499
+ if attributes.key?(:'header_background_src')
500
+ self.header_background_src = attributes[:'header_background_src']
501
+ end
502
+
503
+ if attributes.key?(:'country_code')
504
+ self.country_code = attributes[:'country_code']
505
+ end
506
+
507
+ if attributes.key?(:'country_flag')
508
+ self.country_flag = attributes[:'country_flag']
509
+ end
510
+
511
+ if attributes.key?(:'social_links')
512
+ if (value = attributes[:'social_links']).is_a?(Array)
513
+ self.social_links = value
514
+ end
515
+ end
516
+
517
+ if attributes.key?(:'has_two_factor')
518
+ self.has_two_factor = attributes[:'has_two_factor']
519
+ end
520
+ end
521
+
522
+ # Show invalid properties with the reasons. Usually used together with valid?
523
+ # @return Array for valid properties with the reasons
524
+ def list_invalid_properties
525
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
526
+ invalid_properties = Array.new
527
+ if @_id.nil?
528
+ invalid_properties.push('invalid value for "_id", _id cannot be nil.')
529
+ end
530
+
531
+ if @username.nil?
532
+ invalid_properties.push('invalid value for "username", username cannot be nil.')
533
+ end
534
+
535
+ if @sign_up_date.nil?
536
+ invalid_properties.push('invalid value for "sign_up_date", sign_up_date cannot be nil.')
537
+ end
538
+
539
+ if @created_from_ip_hashed.nil?
540
+ invalid_properties.push('invalid value for "created_from_ip_hashed", created_from_ip_hashed cannot be nil.')
541
+ end
542
+
543
+ if @verified.nil?
544
+ invalid_properties.push('invalid value for "verified", verified cannot be nil.')
545
+ end
546
+
547
+ if @login_id.nil?
548
+ invalid_properties.push('invalid value for "login_id", login_id cannot be nil.')
549
+ end
550
+
551
+ if @login_id_date.nil?
552
+ invalid_properties.push('invalid value for "login_id_date", login_id_date cannot be nil.')
553
+ end
554
+
555
+ invalid_properties
556
+ end
557
+
558
+ # Check to see if the all the properties in the model are valid
559
+ # @return true if the model is valid
560
+ def valid?
561
+ warn '[DEPRECATED] the `valid?` method is obsolete'
562
+ return false if @_id.nil?
563
+ return false if @username.nil?
564
+ return false if @sign_up_date.nil?
565
+ return false if @created_from_ip_hashed.nil?
566
+ return false if @verified.nil?
567
+ return false if @login_id.nil?
568
+ return false if @login_id_date.nil?
569
+ true
570
+ end
571
+
572
+ # Custom attribute writer method with validation
573
+ # @param [Object] _id Value to be assigned
574
+ def _id=(_id)
575
+ if _id.nil?
576
+ fail ArgumentError, '_id cannot be nil'
577
+ end
578
+
579
+ @_id = _id
580
+ end
581
+
582
+ # Custom attribute writer method with validation
583
+ # @param [Object] username Value to be assigned
584
+ def username=(username)
585
+ if username.nil?
586
+ fail ArgumentError, 'username cannot be nil'
587
+ end
588
+
589
+ @username = username
590
+ end
591
+
592
+ # Custom attribute writer method with validation
593
+ # @param [Object] sign_up_date Value to be assigned
594
+ def sign_up_date=(sign_up_date)
595
+ if sign_up_date.nil?
596
+ fail ArgumentError, 'sign_up_date cannot be nil'
597
+ end
598
+
599
+ @sign_up_date = sign_up_date
600
+ end
601
+
602
+ # Custom attribute writer method with validation
603
+ # @param [Object] created_from_ip_hashed Value to be assigned
604
+ def created_from_ip_hashed=(created_from_ip_hashed)
605
+ if created_from_ip_hashed.nil?
606
+ fail ArgumentError, 'created_from_ip_hashed cannot be nil'
607
+ end
608
+
609
+ @created_from_ip_hashed = created_from_ip_hashed
610
+ end
611
+
612
+ # Custom attribute writer method with validation
613
+ # @param [Object] verified Value to be assigned
614
+ def verified=(verified)
615
+ if verified.nil?
616
+ fail ArgumentError, 'verified cannot be nil'
617
+ end
618
+
619
+ @verified = verified
620
+ end
621
+
622
+ # Custom attribute writer method with validation
623
+ # @param [Object] login_id Value to be assigned
624
+ def login_id=(login_id)
625
+ if login_id.nil?
626
+ fail ArgumentError, 'login_id cannot be nil'
627
+ end
628
+
629
+ @login_id = login_id
630
+ end
631
+
632
+ # Custom attribute writer method with validation
633
+ # @param [Object] login_id_date Value to be assigned
634
+ def login_id_date=(login_id_date)
635
+ if login_id_date.nil?
636
+ fail ArgumentError, 'login_id_date cannot be nil'
637
+ end
638
+
639
+ @login_id_date = login_id_date
640
+ end
641
+
642
+ # Checks equality by comparing each attribute.
643
+ # @param [Object] Object to be compared
644
+ def ==(o)
645
+ return true if self.equal?(o)
646
+ self.class == o.class &&
647
+ _id == o._id &&
648
+ tenant_id == o.tenant_id &&
649
+ username == o.username &&
650
+ display_name == o.display_name &&
651
+ website_url == o.website_url &&
652
+ email == o.email &&
653
+ pending_email == o.pending_email &&
654
+ sign_up_date == o.sign_up_date &&
655
+ created_from_url_id == o.created_from_url_id &&
656
+ created_from_tenant_id == o.created_from_tenant_id &&
657
+ created_from_ip_hashed == o.created_from_ip_hashed &&
658
+ verified == o.verified &&
659
+ login_id == o.login_id &&
660
+ login_id_date == o.login_id_date &&
661
+ login_count == o.login_count &&
662
+ opted_in_notifications == o.opted_in_notifications &&
663
+ opted_in_tenant_notifications == o.opted_in_tenant_notifications &&
664
+ hide_account_code == o.hide_account_code &&
665
+ avatar_src == o.avatar_src &&
666
+ is_fast_comments_help_request_admin == o.is_fast_comments_help_request_admin &&
667
+ is_help_request_admin == o.is_help_request_admin &&
668
+ is_account_owner == o.is_account_owner &&
669
+ is_admin_admin == o.is_admin_admin &&
670
+ is_billing_admin == o.is_billing_admin &&
671
+ is_analytics_admin == o.is_analytics_admin &&
672
+ is_customization_admin == o.is_customization_admin &&
673
+ is_manage_data_admin == o.is_manage_data_admin &&
674
+ is_comment_moderator_admin == o.is_comment_moderator_admin &&
675
+ is_api_admin == o.is_api_admin &&
676
+ moderator_ids == o.moderator_ids &&
677
+ is_impersonator == o.is_impersonator &&
678
+ is_coupon_manager == o.is_coupon_manager &&
679
+ locale == o.locale &&
680
+ digest_email_frequency == o.digest_email_frequency &&
681
+ ignored_add_to_my_site_messages == o.ignored_add_to_my_site_messages &&
682
+ last_login_date == o.last_login_date &&
683
+ display_label == o.display_label &&
684
+ is_profile_activity_private == o.is_profile_activity_private &&
685
+ is_profile_comments_private == o.is_profile_comments_private &&
686
+ is_profile_dm_disabled == o.is_profile_dm_disabled &&
687
+ profile_comment_approval_mode == o.profile_comment_approval_mode &&
688
+ karma == o.karma &&
689
+ password_hash == o.password_hash &&
690
+ average_ticket_ack_time_ms == o.average_ticket_ack_time_ms &&
691
+ has_blocked_users == o.has_blocked_users &&
692
+ bio == o.bio &&
693
+ header_background_src == o.header_background_src &&
694
+ country_code == o.country_code &&
695
+ country_flag == o.country_flag &&
696
+ social_links == o.social_links &&
697
+ has_two_factor == o.has_two_factor
698
+ end
699
+
700
+ # @see the `==` method
701
+ # @param [Object] Object to be compared
702
+ def eql?(o)
703
+ self == o
704
+ end
705
+
706
+ # Calculates hash code according to all attributes.
707
+ # @return [Integer] Hash code
708
+ 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
710
+ end
711
+
712
+ # Builds the object from hash
713
+ # @param [Hash] attributes Model attributes in the form of hash
714
+ # @return [Object] Returns the model itself
715
+ def self.build_from_hash(attributes)
716
+ return nil unless attributes.is_a?(Hash)
717
+ attributes = attributes.transform_keys(&:to_sym)
718
+ transformed_hash = {}
719
+ openapi_types.each_pair do |key, type|
720
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
721
+ transformed_hash["#{key}"] = nil
722
+ elsif type =~ /\AArray<(.*)>/i
723
+ # check to ensure the input is an array given that the attribute
724
+ # is documented as an array but the input is not
725
+ if attributes[attribute_map[key]].is_a?(Array)
726
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
727
+ end
728
+ elsif !attributes[attribute_map[key]].nil?
729
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
730
+ end
731
+ end
732
+ new(transformed_hash)
733
+ end
734
+
735
+ # Returns the object in the form of hash
736
+ # @return [Hash] Returns the object in the form of hash
737
+ def to_hash
738
+ hash = {}
739
+ self.class.attribute_map.each_pair do |attr, param|
740
+ value = self.send(attr)
741
+ if value.nil?
742
+ is_nullable = self.class.openapi_nullable.include?(attr)
743
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
744
+ end
745
+
746
+ hash[param] = _to_hash(value)
747
+ end
748
+ hash
749
+ end
750
+
751
+ end
752
+
753
+ end