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,797 @@
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 CreateTenantPackageBody < ApiModelBase
18
+ attr_accessor :name
19
+
20
+ attr_accessor :monthly_cost_usd
21
+
22
+ attr_accessor :yearly_cost_usd
23
+
24
+ attr_accessor :monthly_stripe_plan_id
25
+
26
+ attr_accessor :yearly_stripe_plan_id
27
+
28
+ attr_accessor :max_monthly_page_loads
29
+
30
+ attr_accessor :max_monthly_api_credits
31
+
32
+ attr_accessor :max_monthly_small_widgets_credits
33
+
34
+ attr_accessor :max_monthly_comments
35
+
36
+ attr_accessor :max_concurrent_users
37
+
38
+ attr_accessor :max_tenant_users
39
+
40
+ attr_accessor :max_sso_users
41
+
42
+ attr_accessor :max_moderators
43
+
44
+ attr_accessor :max_domains
45
+
46
+ attr_accessor :max_white_labeled_tenants
47
+
48
+ attr_accessor :max_monthly_event_log_requests
49
+
50
+ attr_accessor :has_white_labeling
51
+
52
+ attr_accessor :has_debranding
53
+
54
+ attr_accessor :has_llm_spam_detection
55
+
56
+ attr_accessor :for_who_text
57
+
58
+ attr_accessor :feature_taglines
59
+
60
+ attr_accessor :has_auditing
61
+
62
+ attr_accessor :has_flex_pricing
63
+
64
+ attr_accessor :enable_saml
65
+
66
+ attr_accessor :flex_page_load_cost_cents
67
+
68
+ attr_accessor :flex_page_load_unit
69
+
70
+ attr_accessor :flex_comment_cost_cents
71
+
72
+ attr_accessor :flex_comment_unit
73
+
74
+ attr_accessor :flex_sso_user_cost_cents
75
+
76
+ attr_accessor :flex_sso_user_unit
77
+
78
+ attr_accessor :flex_api_credit_cost_cents
79
+
80
+ attr_accessor :flex_api_credit_unit
81
+
82
+ attr_accessor :flex_small_widgets_credit_cost_cents
83
+
84
+ attr_accessor :flex_small_widgets_credit_unit
85
+
86
+ attr_accessor :flex_moderator_cost_cents
87
+
88
+ attr_accessor :flex_moderator_unit
89
+
90
+ attr_accessor :flex_admin_cost_cents
91
+
92
+ attr_accessor :flex_admin_unit
93
+
94
+ attr_accessor :flex_domain_cost_cents
95
+
96
+ attr_accessor :flex_domain_unit
97
+
98
+ attr_accessor :flex_chat_gpt_cost_cents
99
+
100
+ attr_accessor :flex_chat_gpt_unit
101
+
102
+ attr_accessor :flex_minimum_cost_cents
103
+
104
+ attr_accessor :flex_managed_tenant_cost_cents
105
+
106
+ attr_accessor :flex_sso_admin_cost_cents
107
+
108
+ attr_accessor :flex_sso_admin_unit
109
+
110
+ attr_accessor :flex_sso_moderator_cost_cents
111
+
112
+ attr_accessor :flex_sso_moderator_unit
113
+
114
+ # Attribute mapping from ruby-style variable name to JSON key.
115
+ def self.attribute_map
116
+ {
117
+ :'name' => :'name',
118
+ :'monthly_cost_usd' => :'monthlyCostUSD',
119
+ :'yearly_cost_usd' => :'yearlyCostUSD',
120
+ :'monthly_stripe_plan_id' => :'monthlyStripePlanId',
121
+ :'yearly_stripe_plan_id' => :'yearlyStripePlanId',
122
+ :'max_monthly_page_loads' => :'maxMonthlyPageLoads',
123
+ :'max_monthly_api_credits' => :'maxMonthlyAPICredits',
124
+ :'max_monthly_small_widgets_credits' => :'maxMonthlySmallWidgetsCredits',
125
+ :'max_monthly_comments' => :'maxMonthlyComments',
126
+ :'max_concurrent_users' => :'maxConcurrentUsers',
127
+ :'max_tenant_users' => :'maxTenantUsers',
128
+ :'max_sso_users' => :'maxSSOUsers',
129
+ :'max_moderators' => :'maxModerators',
130
+ :'max_domains' => :'maxDomains',
131
+ :'max_white_labeled_tenants' => :'maxWhiteLabeledTenants',
132
+ :'max_monthly_event_log_requests' => :'maxMonthlyEventLogRequests',
133
+ :'has_white_labeling' => :'hasWhiteLabeling',
134
+ :'has_debranding' => :'hasDebranding',
135
+ :'has_llm_spam_detection' => :'hasLLMSpamDetection',
136
+ :'for_who_text' => :'forWhoText',
137
+ :'feature_taglines' => :'featureTaglines',
138
+ :'has_auditing' => :'hasAuditing',
139
+ :'has_flex_pricing' => :'hasFlexPricing',
140
+ :'enable_saml' => :'enableSAML',
141
+ :'flex_page_load_cost_cents' => :'flexPageLoadCostCents',
142
+ :'flex_page_load_unit' => :'flexPageLoadUnit',
143
+ :'flex_comment_cost_cents' => :'flexCommentCostCents',
144
+ :'flex_comment_unit' => :'flexCommentUnit',
145
+ :'flex_sso_user_cost_cents' => :'flexSSOUserCostCents',
146
+ :'flex_sso_user_unit' => :'flexSSOUserUnit',
147
+ :'flex_api_credit_cost_cents' => :'flexAPICreditCostCents',
148
+ :'flex_api_credit_unit' => :'flexAPICreditUnit',
149
+ :'flex_small_widgets_credit_cost_cents' => :'flexSmallWidgetsCreditCostCents',
150
+ :'flex_small_widgets_credit_unit' => :'flexSmallWidgetsCreditUnit',
151
+ :'flex_moderator_cost_cents' => :'flexModeratorCostCents',
152
+ :'flex_moderator_unit' => :'flexModeratorUnit',
153
+ :'flex_admin_cost_cents' => :'flexAdminCostCents',
154
+ :'flex_admin_unit' => :'flexAdminUnit',
155
+ :'flex_domain_cost_cents' => :'flexDomainCostCents',
156
+ :'flex_domain_unit' => :'flexDomainUnit',
157
+ :'flex_chat_gpt_cost_cents' => :'flexChatGPTCostCents',
158
+ :'flex_chat_gpt_unit' => :'flexChatGPTUnit',
159
+ :'flex_minimum_cost_cents' => :'flexMinimumCostCents',
160
+ :'flex_managed_tenant_cost_cents' => :'flexManagedTenantCostCents',
161
+ :'flex_sso_admin_cost_cents' => :'flexSSOAdminCostCents',
162
+ :'flex_sso_admin_unit' => :'flexSSOAdminUnit',
163
+ :'flex_sso_moderator_cost_cents' => :'flexSSOModeratorCostCents',
164
+ :'flex_sso_moderator_unit' => :'flexSSOModeratorUnit'
165
+ }
166
+ end
167
+
168
+ # Returns attribute mapping this model knows about
169
+ def self.acceptable_attribute_map
170
+ attribute_map
171
+ end
172
+
173
+ # Returns all the JSON keys this model knows about
174
+ def self.acceptable_attributes
175
+ acceptable_attribute_map.values
176
+ end
177
+
178
+ # Attribute type mapping.
179
+ def self.openapi_types
180
+ {
181
+ :'name' => :'String',
182
+ :'monthly_cost_usd' => :'Float',
183
+ :'yearly_cost_usd' => :'Float',
184
+ :'monthly_stripe_plan_id' => :'String',
185
+ :'yearly_stripe_plan_id' => :'String',
186
+ :'max_monthly_page_loads' => :'Float',
187
+ :'max_monthly_api_credits' => :'Float',
188
+ :'max_monthly_small_widgets_credits' => :'Float',
189
+ :'max_monthly_comments' => :'Float',
190
+ :'max_concurrent_users' => :'Float',
191
+ :'max_tenant_users' => :'Float',
192
+ :'max_sso_users' => :'Float',
193
+ :'max_moderators' => :'Float',
194
+ :'max_domains' => :'Float',
195
+ :'max_white_labeled_tenants' => :'Float',
196
+ :'max_monthly_event_log_requests' => :'Float',
197
+ :'has_white_labeling' => :'Boolean',
198
+ :'has_debranding' => :'Boolean',
199
+ :'has_llm_spam_detection' => :'Boolean',
200
+ :'for_who_text' => :'String',
201
+ :'feature_taglines' => :'Array<String>',
202
+ :'has_auditing' => :'Boolean',
203
+ :'has_flex_pricing' => :'Boolean',
204
+ :'enable_saml' => :'Boolean',
205
+ :'flex_page_load_cost_cents' => :'Float',
206
+ :'flex_page_load_unit' => :'Float',
207
+ :'flex_comment_cost_cents' => :'Float',
208
+ :'flex_comment_unit' => :'Float',
209
+ :'flex_sso_user_cost_cents' => :'Float',
210
+ :'flex_sso_user_unit' => :'Float',
211
+ :'flex_api_credit_cost_cents' => :'Float',
212
+ :'flex_api_credit_unit' => :'Float',
213
+ :'flex_small_widgets_credit_cost_cents' => :'Float',
214
+ :'flex_small_widgets_credit_unit' => :'Float',
215
+ :'flex_moderator_cost_cents' => :'Float',
216
+ :'flex_moderator_unit' => :'Float',
217
+ :'flex_admin_cost_cents' => :'Float',
218
+ :'flex_admin_unit' => :'Float',
219
+ :'flex_domain_cost_cents' => :'Float',
220
+ :'flex_domain_unit' => :'Float',
221
+ :'flex_chat_gpt_cost_cents' => :'Float',
222
+ :'flex_chat_gpt_unit' => :'Float',
223
+ :'flex_minimum_cost_cents' => :'Float',
224
+ :'flex_managed_tenant_cost_cents' => :'Float',
225
+ :'flex_sso_admin_cost_cents' => :'Float',
226
+ :'flex_sso_admin_unit' => :'Float',
227
+ :'flex_sso_moderator_cost_cents' => :'Float',
228
+ :'flex_sso_moderator_unit' => :'Float'
229
+ }
230
+ end
231
+
232
+ # List of attributes with nullable: true
233
+ def self.openapi_nullable
234
+ Set.new([
235
+ :'monthly_cost_usd',
236
+ :'yearly_cost_usd',
237
+ :'monthly_stripe_plan_id',
238
+ :'yearly_stripe_plan_id',
239
+ ])
240
+ end
241
+
242
+ # Initializes the object
243
+ # @param [Hash] attributes Model attributes in the form of hash
244
+ def initialize(attributes = {})
245
+ if (!attributes.is_a?(Hash))
246
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FastCommentsClient::CreateTenantPackageBody` initialize method"
247
+ end
248
+
249
+ # check to see if the attribute exists and convert string to symbol for hash key
250
+ acceptable_attribute_map = self.class.acceptable_attribute_map
251
+ attributes = attributes.each_with_object({}) { |(k, v), h|
252
+ if (!acceptable_attribute_map.key?(k.to_sym))
253
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FastCommentsClient::CreateTenantPackageBody`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
254
+ end
255
+ h[k.to_sym] = v
256
+ }
257
+
258
+ if attributes.key?(:'name')
259
+ self.name = attributes[:'name']
260
+ else
261
+ self.name = nil
262
+ end
263
+
264
+ if attributes.key?(:'monthly_cost_usd')
265
+ self.monthly_cost_usd = attributes[:'monthly_cost_usd']
266
+ end
267
+
268
+ if attributes.key?(:'yearly_cost_usd')
269
+ self.yearly_cost_usd = attributes[:'yearly_cost_usd']
270
+ end
271
+
272
+ if attributes.key?(:'monthly_stripe_plan_id')
273
+ self.monthly_stripe_plan_id = attributes[:'monthly_stripe_plan_id']
274
+ end
275
+
276
+ if attributes.key?(:'yearly_stripe_plan_id')
277
+ self.yearly_stripe_plan_id = attributes[:'yearly_stripe_plan_id']
278
+ end
279
+
280
+ if attributes.key?(:'max_monthly_page_loads')
281
+ self.max_monthly_page_loads = attributes[:'max_monthly_page_loads']
282
+ else
283
+ self.max_monthly_page_loads = nil
284
+ end
285
+
286
+ if attributes.key?(:'max_monthly_api_credits')
287
+ self.max_monthly_api_credits = attributes[:'max_monthly_api_credits']
288
+ else
289
+ self.max_monthly_api_credits = nil
290
+ end
291
+
292
+ if attributes.key?(:'max_monthly_small_widgets_credits')
293
+ self.max_monthly_small_widgets_credits = attributes[:'max_monthly_small_widgets_credits']
294
+ end
295
+
296
+ if attributes.key?(:'max_monthly_comments')
297
+ self.max_monthly_comments = attributes[:'max_monthly_comments']
298
+ else
299
+ self.max_monthly_comments = nil
300
+ end
301
+
302
+ if attributes.key?(:'max_concurrent_users')
303
+ self.max_concurrent_users = attributes[:'max_concurrent_users']
304
+ else
305
+ self.max_concurrent_users = nil
306
+ end
307
+
308
+ if attributes.key?(:'max_tenant_users')
309
+ self.max_tenant_users = attributes[:'max_tenant_users']
310
+ else
311
+ self.max_tenant_users = nil
312
+ end
313
+
314
+ if attributes.key?(:'max_sso_users')
315
+ self.max_sso_users = attributes[:'max_sso_users']
316
+ else
317
+ self.max_sso_users = nil
318
+ end
319
+
320
+ if attributes.key?(:'max_moderators')
321
+ self.max_moderators = attributes[:'max_moderators']
322
+ else
323
+ self.max_moderators = nil
324
+ end
325
+
326
+ if attributes.key?(:'max_domains')
327
+ self.max_domains = attributes[:'max_domains']
328
+ else
329
+ self.max_domains = nil
330
+ end
331
+
332
+ if attributes.key?(:'max_white_labeled_tenants')
333
+ self.max_white_labeled_tenants = attributes[:'max_white_labeled_tenants']
334
+ end
335
+
336
+ if attributes.key?(:'max_monthly_event_log_requests')
337
+ self.max_monthly_event_log_requests = attributes[:'max_monthly_event_log_requests']
338
+ end
339
+
340
+ if attributes.key?(:'has_white_labeling')
341
+ self.has_white_labeling = attributes[:'has_white_labeling']
342
+ end
343
+
344
+ if attributes.key?(:'has_debranding')
345
+ self.has_debranding = attributes[:'has_debranding']
346
+ else
347
+ self.has_debranding = nil
348
+ end
349
+
350
+ if attributes.key?(:'has_llm_spam_detection')
351
+ self.has_llm_spam_detection = attributes[:'has_llm_spam_detection']
352
+ end
353
+
354
+ if attributes.key?(:'for_who_text')
355
+ self.for_who_text = attributes[:'for_who_text']
356
+ else
357
+ self.for_who_text = nil
358
+ end
359
+
360
+ if attributes.key?(:'feature_taglines')
361
+ if (value = attributes[:'feature_taglines']).is_a?(Array)
362
+ self.feature_taglines = value
363
+ end
364
+ else
365
+ self.feature_taglines = nil
366
+ end
367
+
368
+ if attributes.key?(:'has_auditing')
369
+ self.has_auditing = attributes[:'has_auditing']
370
+ end
371
+
372
+ if attributes.key?(:'has_flex_pricing')
373
+ self.has_flex_pricing = attributes[:'has_flex_pricing']
374
+ else
375
+ self.has_flex_pricing = nil
376
+ end
377
+
378
+ if attributes.key?(:'enable_saml')
379
+ self.enable_saml = attributes[:'enable_saml']
380
+ end
381
+
382
+ if attributes.key?(:'flex_page_load_cost_cents')
383
+ self.flex_page_load_cost_cents = attributes[:'flex_page_load_cost_cents']
384
+ end
385
+
386
+ if attributes.key?(:'flex_page_load_unit')
387
+ self.flex_page_load_unit = attributes[:'flex_page_load_unit']
388
+ end
389
+
390
+ if attributes.key?(:'flex_comment_cost_cents')
391
+ self.flex_comment_cost_cents = attributes[:'flex_comment_cost_cents']
392
+ end
393
+
394
+ if attributes.key?(:'flex_comment_unit')
395
+ self.flex_comment_unit = attributes[:'flex_comment_unit']
396
+ end
397
+
398
+ if attributes.key?(:'flex_sso_user_cost_cents')
399
+ self.flex_sso_user_cost_cents = attributes[:'flex_sso_user_cost_cents']
400
+ end
401
+
402
+ if attributes.key?(:'flex_sso_user_unit')
403
+ self.flex_sso_user_unit = attributes[:'flex_sso_user_unit']
404
+ end
405
+
406
+ if attributes.key?(:'flex_api_credit_cost_cents')
407
+ self.flex_api_credit_cost_cents = attributes[:'flex_api_credit_cost_cents']
408
+ end
409
+
410
+ if attributes.key?(:'flex_api_credit_unit')
411
+ self.flex_api_credit_unit = attributes[:'flex_api_credit_unit']
412
+ end
413
+
414
+ if attributes.key?(:'flex_small_widgets_credit_cost_cents')
415
+ self.flex_small_widgets_credit_cost_cents = attributes[:'flex_small_widgets_credit_cost_cents']
416
+ end
417
+
418
+ if attributes.key?(:'flex_small_widgets_credit_unit')
419
+ self.flex_small_widgets_credit_unit = attributes[:'flex_small_widgets_credit_unit']
420
+ end
421
+
422
+ if attributes.key?(:'flex_moderator_cost_cents')
423
+ self.flex_moderator_cost_cents = attributes[:'flex_moderator_cost_cents']
424
+ end
425
+
426
+ if attributes.key?(:'flex_moderator_unit')
427
+ self.flex_moderator_unit = attributes[:'flex_moderator_unit']
428
+ end
429
+
430
+ if attributes.key?(:'flex_admin_cost_cents')
431
+ self.flex_admin_cost_cents = attributes[:'flex_admin_cost_cents']
432
+ end
433
+
434
+ if attributes.key?(:'flex_admin_unit')
435
+ self.flex_admin_unit = attributes[:'flex_admin_unit']
436
+ end
437
+
438
+ if attributes.key?(:'flex_domain_cost_cents')
439
+ self.flex_domain_cost_cents = attributes[:'flex_domain_cost_cents']
440
+ end
441
+
442
+ if attributes.key?(:'flex_domain_unit')
443
+ self.flex_domain_unit = attributes[:'flex_domain_unit']
444
+ end
445
+
446
+ if attributes.key?(:'flex_chat_gpt_cost_cents')
447
+ self.flex_chat_gpt_cost_cents = attributes[:'flex_chat_gpt_cost_cents']
448
+ end
449
+
450
+ if attributes.key?(:'flex_chat_gpt_unit')
451
+ self.flex_chat_gpt_unit = attributes[:'flex_chat_gpt_unit']
452
+ end
453
+
454
+ if attributes.key?(:'flex_minimum_cost_cents')
455
+ self.flex_minimum_cost_cents = attributes[:'flex_minimum_cost_cents']
456
+ end
457
+
458
+ if attributes.key?(:'flex_managed_tenant_cost_cents')
459
+ self.flex_managed_tenant_cost_cents = attributes[:'flex_managed_tenant_cost_cents']
460
+ end
461
+
462
+ if attributes.key?(:'flex_sso_admin_cost_cents')
463
+ self.flex_sso_admin_cost_cents = attributes[:'flex_sso_admin_cost_cents']
464
+ end
465
+
466
+ if attributes.key?(:'flex_sso_admin_unit')
467
+ self.flex_sso_admin_unit = attributes[:'flex_sso_admin_unit']
468
+ end
469
+
470
+ if attributes.key?(:'flex_sso_moderator_cost_cents')
471
+ self.flex_sso_moderator_cost_cents = attributes[:'flex_sso_moderator_cost_cents']
472
+ end
473
+
474
+ if attributes.key?(:'flex_sso_moderator_unit')
475
+ self.flex_sso_moderator_unit = attributes[:'flex_sso_moderator_unit']
476
+ end
477
+ end
478
+
479
+ # Show invalid properties with the reasons. Usually used together with valid?
480
+ # @return Array for valid properties with the reasons
481
+ def list_invalid_properties
482
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
483
+ invalid_properties = Array.new
484
+ if @name.nil?
485
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
486
+ end
487
+
488
+ if @max_monthly_page_loads.nil?
489
+ invalid_properties.push('invalid value for "max_monthly_page_loads", max_monthly_page_loads cannot be nil.')
490
+ end
491
+
492
+ if @max_monthly_api_credits.nil?
493
+ invalid_properties.push('invalid value for "max_monthly_api_credits", max_monthly_api_credits cannot be nil.')
494
+ end
495
+
496
+ if @max_monthly_comments.nil?
497
+ invalid_properties.push('invalid value for "max_monthly_comments", max_monthly_comments cannot be nil.')
498
+ end
499
+
500
+ if @max_concurrent_users.nil?
501
+ invalid_properties.push('invalid value for "max_concurrent_users", max_concurrent_users cannot be nil.')
502
+ end
503
+
504
+ if @max_tenant_users.nil?
505
+ invalid_properties.push('invalid value for "max_tenant_users", max_tenant_users cannot be nil.')
506
+ end
507
+
508
+ if @max_sso_users.nil?
509
+ invalid_properties.push('invalid value for "max_sso_users", max_sso_users cannot be nil.')
510
+ end
511
+
512
+ if @max_moderators.nil?
513
+ invalid_properties.push('invalid value for "max_moderators", max_moderators cannot be nil.')
514
+ end
515
+
516
+ if @max_domains.nil?
517
+ invalid_properties.push('invalid value for "max_domains", max_domains cannot be nil.')
518
+ end
519
+
520
+ if @has_debranding.nil?
521
+ invalid_properties.push('invalid value for "has_debranding", has_debranding cannot be nil.')
522
+ end
523
+
524
+ if @for_who_text.nil?
525
+ invalid_properties.push('invalid value for "for_who_text", for_who_text cannot be nil.')
526
+ end
527
+
528
+ if @feature_taglines.nil?
529
+ invalid_properties.push('invalid value for "feature_taglines", feature_taglines cannot be nil.')
530
+ end
531
+
532
+ if @has_flex_pricing.nil?
533
+ invalid_properties.push('invalid value for "has_flex_pricing", has_flex_pricing cannot be nil.')
534
+ end
535
+
536
+ invalid_properties
537
+ end
538
+
539
+ # Check to see if the all the properties in the model are valid
540
+ # @return true if the model is valid
541
+ def valid?
542
+ warn '[DEPRECATED] the `valid?` method is obsolete'
543
+ return false if @name.nil?
544
+ return false if @max_monthly_page_loads.nil?
545
+ return false if @max_monthly_api_credits.nil?
546
+ return false if @max_monthly_comments.nil?
547
+ return false if @max_concurrent_users.nil?
548
+ return false if @max_tenant_users.nil?
549
+ return false if @max_sso_users.nil?
550
+ return false if @max_moderators.nil?
551
+ return false if @max_domains.nil?
552
+ return false if @has_debranding.nil?
553
+ return false if @for_who_text.nil?
554
+ return false if @feature_taglines.nil?
555
+ return false if @has_flex_pricing.nil?
556
+ true
557
+ end
558
+
559
+ # Custom attribute writer method with validation
560
+ # @param [Object] name Value to be assigned
561
+ def name=(name)
562
+ if name.nil?
563
+ fail ArgumentError, 'name cannot be nil'
564
+ end
565
+
566
+ @name = name
567
+ end
568
+
569
+ # Custom attribute writer method with validation
570
+ # @param [Object] max_monthly_page_loads Value to be assigned
571
+ def max_monthly_page_loads=(max_monthly_page_loads)
572
+ if max_monthly_page_loads.nil?
573
+ fail ArgumentError, 'max_monthly_page_loads cannot be nil'
574
+ end
575
+
576
+ @max_monthly_page_loads = max_monthly_page_loads
577
+ end
578
+
579
+ # Custom attribute writer method with validation
580
+ # @param [Object] max_monthly_api_credits Value to be assigned
581
+ def max_monthly_api_credits=(max_monthly_api_credits)
582
+ if max_monthly_api_credits.nil?
583
+ fail ArgumentError, 'max_monthly_api_credits cannot be nil'
584
+ end
585
+
586
+ @max_monthly_api_credits = max_monthly_api_credits
587
+ end
588
+
589
+ # Custom attribute writer method with validation
590
+ # @param [Object] max_monthly_comments Value to be assigned
591
+ def max_monthly_comments=(max_monthly_comments)
592
+ if max_monthly_comments.nil?
593
+ fail ArgumentError, 'max_monthly_comments cannot be nil'
594
+ end
595
+
596
+ @max_monthly_comments = max_monthly_comments
597
+ end
598
+
599
+ # Custom attribute writer method with validation
600
+ # @param [Object] max_concurrent_users Value to be assigned
601
+ def max_concurrent_users=(max_concurrent_users)
602
+ if max_concurrent_users.nil?
603
+ fail ArgumentError, 'max_concurrent_users cannot be nil'
604
+ end
605
+
606
+ @max_concurrent_users = max_concurrent_users
607
+ end
608
+
609
+ # Custom attribute writer method with validation
610
+ # @param [Object] max_tenant_users Value to be assigned
611
+ def max_tenant_users=(max_tenant_users)
612
+ if max_tenant_users.nil?
613
+ fail ArgumentError, 'max_tenant_users cannot be nil'
614
+ end
615
+
616
+ @max_tenant_users = max_tenant_users
617
+ end
618
+
619
+ # Custom attribute writer method with validation
620
+ # @param [Object] max_sso_users Value to be assigned
621
+ def max_sso_users=(max_sso_users)
622
+ if max_sso_users.nil?
623
+ fail ArgumentError, 'max_sso_users cannot be nil'
624
+ end
625
+
626
+ @max_sso_users = max_sso_users
627
+ end
628
+
629
+ # Custom attribute writer method with validation
630
+ # @param [Object] max_moderators Value to be assigned
631
+ def max_moderators=(max_moderators)
632
+ if max_moderators.nil?
633
+ fail ArgumentError, 'max_moderators cannot be nil'
634
+ end
635
+
636
+ @max_moderators = max_moderators
637
+ end
638
+
639
+ # Custom attribute writer method with validation
640
+ # @param [Object] max_domains Value to be assigned
641
+ def max_domains=(max_domains)
642
+ if max_domains.nil?
643
+ fail ArgumentError, 'max_domains cannot be nil'
644
+ end
645
+
646
+ @max_domains = max_domains
647
+ end
648
+
649
+ # Custom attribute writer method with validation
650
+ # @param [Object] has_debranding Value to be assigned
651
+ def has_debranding=(has_debranding)
652
+ if has_debranding.nil?
653
+ fail ArgumentError, 'has_debranding cannot be nil'
654
+ end
655
+
656
+ @has_debranding = has_debranding
657
+ end
658
+
659
+ # Custom attribute writer method with validation
660
+ # @param [Object] for_who_text Value to be assigned
661
+ def for_who_text=(for_who_text)
662
+ if for_who_text.nil?
663
+ fail ArgumentError, 'for_who_text cannot be nil'
664
+ end
665
+
666
+ @for_who_text = for_who_text
667
+ end
668
+
669
+ # Custom attribute writer method with validation
670
+ # @param [Object] feature_taglines Value to be assigned
671
+ def feature_taglines=(feature_taglines)
672
+ if feature_taglines.nil?
673
+ fail ArgumentError, 'feature_taglines cannot be nil'
674
+ end
675
+
676
+ @feature_taglines = feature_taglines
677
+ end
678
+
679
+ # Custom attribute writer method with validation
680
+ # @param [Object] has_flex_pricing Value to be assigned
681
+ def has_flex_pricing=(has_flex_pricing)
682
+ if has_flex_pricing.nil?
683
+ fail ArgumentError, 'has_flex_pricing cannot be nil'
684
+ end
685
+
686
+ @has_flex_pricing = has_flex_pricing
687
+ end
688
+
689
+ # Checks equality by comparing each attribute.
690
+ # @param [Object] Object to be compared
691
+ def ==(o)
692
+ return true if self.equal?(o)
693
+ self.class == o.class &&
694
+ name == o.name &&
695
+ monthly_cost_usd == o.monthly_cost_usd &&
696
+ yearly_cost_usd == o.yearly_cost_usd &&
697
+ monthly_stripe_plan_id == o.monthly_stripe_plan_id &&
698
+ yearly_stripe_plan_id == o.yearly_stripe_plan_id &&
699
+ max_monthly_page_loads == o.max_monthly_page_loads &&
700
+ max_monthly_api_credits == o.max_monthly_api_credits &&
701
+ max_monthly_small_widgets_credits == o.max_monthly_small_widgets_credits &&
702
+ max_monthly_comments == o.max_monthly_comments &&
703
+ max_concurrent_users == o.max_concurrent_users &&
704
+ max_tenant_users == o.max_tenant_users &&
705
+ max_sso_users == o.max_sso_users &&
706
+ max_moderators == o.max_moderators &&
707
+ max_domains == o.max_domains &&
708
+ max_white_labeled_tenants == o.max_white_labeled_tenants &&
709
+ max_monthly_event_log_requests == o.max_monthly_event_log_requests &&
710
+ has_white_labeling == o.has_white_labeling &&
711
+ has_debranding == o.has_debranding &&
712
+ has_llm_spam_detection == o.has_llm_spam_detection &&
713
+ for_who_text == o.for_who_text &&
714
+ feature_taglines == o.feature_taglines &&
715
+ has_auditing == o.has_auditing &&
716
+ has_flex_pricing == o.has_flex_pricing &&
717
+ enable_saml == o.enable_saml &&
718
+ flex_page_load_cost_cents == o.flex_page_load_cost_cents &&
719
+ flex_page_load_unit == o.flex_page_load_unit &&
720
+ flex_comment_cost_cents == o.flex_comment_cost_cents &&
721
+ flex_comment_unit == o.flex_comment_unit &&
722
+ flex_sso_user_cost_cents == o.flex_sso_user_cost_cents &&
723
+ flex_sso_user_unit == o.flex_sso_user_unit &&
724
+ flex_api_credit_cost_cents == o.flex_api_credit_cost_cents &&
725
+ flex_api_credit_unit == o.flex_api_credit_unit &&
726
+ flex_small_widgets_credit_cost_cents == o.flex_small_widgets_credit_cost_cents &&
727
+ flex_small_widgets_credit_unit == o.flex_small_widgets_credit_unit &&
728
+ flex_moderator_cost_cents == o.flex_moderator_cost_cents &&
729
+ flex_moderator_unit == o.flex_moderator_unit &&
730
+ flex_admin_cost_cents == o.flex_admin_cost_cents &&
731
+ flex_admin_unit == o.flex_admin_unit &&
732
+ flex_domain_cost_cents == o.flex_domain_cost_cents &&
733
+ flex_domain_unit == o.flex_domain_unit &&
734
+ flex_chat_gpt_cost_cents == o.flex_chat_gpt_cost_cents &&
735
+ flex_chat_gpt_unit == o.flex_chat_gpt_unit &&
736
+ flex_minimum_cost_cents == o.flex_minimum_cost_cents &&
737
+ flex_managed_tenant_cost_cents == o.flex_managed_tenant_cost_cents &&
738
+ flex_sso_admin_cost_cents == o.flex_sso_admin_cost_cents &&
739
+ flex_sso_admin_unit == o.flex_sso_admin_unit &&
740
+ flex_sso_moderator_cost_cents == o.flex_sso_moderator_cost_cents &&
741
+ flex_sso_moderator_unit == o.flex_sso_moderator_unit
742
+ end
743
+
744
+ # @see the `==` method
745
+ # @param [Object] Object to be compared
746
+ def eql?(o)
747
+ self == o
748
+ end
749
+
750
+ # Calculates hash code according to all attributes.
751
+ # @return [Integer] Hash code
752
+ def hash
753
+ [name, monthly_cost_usd, yearly_cost_usd, monthly_stripe_plan_id, yearly_stripe_plan_id, max_monthly_page_loads, max_monthly_api_credits, max_monthly_small_widgets_credits, max_monthly_comments, max_concurrent_users, max_tenant_users, max_sso_users, max_moderators, max_domains, max_white_labeled_tenants, max_monthly_event_log_requests, has_white_labeling, has_debranding, has_llm_spam_detection, for_who_text, feature_taglines, has_auditing, has_flex_pricing, enable_saml, 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_small_widgets_credit_cost_cents, flex_small_widgets_credit_unit, flex_moderator_cost_cents, flex_moderator_unit, flex_admin_cost_cents, flex_admin_unit, flex_domain_cost_cents, flex_domain_unit, flex_chat_gpt_cost_cents, flex_chat_gpt_unit, flex_minimum_cost_cents, flex_managed_tenant_cost_cents, flex_sso_admin_cost_cents, flex_sso_admin_unit, flex_sso_moderator_cost_cents, flex_sso_moderator_unit].hash
754
+ end
755
+
756
+ # Builds the object from hash
757
+ # @param [Hash] attributes Model attributes in the form of hash
758
+ # @return [Object] Returns the model itself
759
+ def self.build_from_hash(attributes)
760
+ return nil unless attributes.is_a?(Hash)
761
+ attributes = attributes.transform_keys(&:to_sym)
762
+ transformed_hash = {}
763
+ openapi_types.each_pair do |key, type|
764
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
765
+ transformed_hash["#{key}"] = nil
766
+ elsif type =~ /\AArray<(.*)>/i
767
+ # check to ensure the input is an array given that the attribute
768
+ # is documented as an array but the input is not
769
+ if attributes[attribute_map[key]].is_a?(Array)
770
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
771
+ end
772
+ elsif !attributes[attribute_map[key]].nil?
773
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
774
+ end
775
+ end
776
+ new(transformed_hash)
777
+ end
778
+
779
+ # Returns the object in the form of hash
780
+ # @return [Hash] Returns the object in the form of hash
781
+ def to_hash
782
+ hash = {}
783
+ self.class.attribute_map.each_pair do |attr, param|
784
+ value = self.send(attr)
785
+ if value.nil?
786
+ is_nullable = self.class.openapi_nullable.include?(attr)
787
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
788
+ end
789
+
790
+ hash[param] = _to_hash(value)
791
+ end
792
+ hash
793
+ end
794
+
795
+ end
796
+
797
+ end