From 35d9572faba945f95802a21a69df9c86f5a2ab7e Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 21 Nov 2025 07:31:25 -0800 Subject: [PATCH] Bump version to 1.0.0 --- .openapi-generator/FILES | 72 +- README.md | 24 +- composer.json | 3 +- docs/Api/DefaultApi.md | 8 +- ...ogTenantAuditLogKeys.md => APIAuditLog.md} | 4 +- docs/Model/APIComment.md | 61 + ...CommentFieldsKeys.md => APICommentBase.md} | 80 +- docs/Model/APICreateUserBadgeResponse.md | 1 + docs/Model/APIEmptyResponse.md | 2 +- docs/Model/APIError.md | 2 +- docs/Model/APIGetCommentResponse.md | 2 +- docs/Model/APIGetCommentsResponse.md | 2 +- .../AggregateQuestionResults200Response.md | 2 +- .../BlockFromCommentPublic200Response.md | 2 +- docs/Model/BlockSuccess.md | 2 +- ...BulkAggregateQuestionResults200Response.md | 2 +- docs/Model/ChangeCommentPinStatusResponse.md | 2 +- docs/Model/CheckBlockedCommentsResponse.md | 2 +- .../CheckedCommentsForBlocked200Response.md | 2 +- ...eCommentsWithQuestionResults200Response.md | 2 +- docs/Model/CommentLogData.md | 51 + ...ntFieldsKeysMeta.md => CommentLogEntry.md} | 7 +- ...edAPIStatusFAILED.md => CommentLogType.md} | 2 +- docs/Model/CreateCommentPublic200Response.md | 2 +- docs/Model/CreateFeedPost200Response.md | 2 +- docs/Model/CreateFeedPostPublic200Response.md | 2 +- docs/Model/CreateUserBadge200Response.md | 3 +- docs/Model/CustomConfigParameters.md | 1 + docs/Model/DeleteComment200Response.md | 2 +- docs/Model/DeleteCommentPublic200Response.md | 4 +- docs/Model/DeleteCommentResult.md | 2 +- docs/Model/DeleteCommentVote200Response.md | 2 +- docs/Model/DeleteFeedPostPublic200Response.md | 2 +- ...erId.md => DeletedCommentResultComment.md} | 8 +- docs/Model/FComment.md | 2 +- docs/Model/FlagComment200Response.md | 2 +- docs/Model/FlagCommentPublic200Response.md | 2 +- docs/Model/GetAuditLogs200Response.md | 4 +- docs/Model/GetAuditLogsResponse.md | 2 +- docs/Model/GetComment200Response.md | 4 +- docs/Model/GetCommentText200Response.md | 2 +- .../GetCommentVoteUserNames200Response.md | 2 +- .../GetCommentVoteUserNamesSuccessResponse.md | 2 +- docs/Model/GetComments200Response.md | 4 +- docs/Model/GetCommentsPublic200Response.md | 2 +- docs/Model/GetEventLog200Response.md | 2 +- docs/Model/GetEventLogResponse.md | 2 +- docs/Model/GetFeedPosts200Response.md | 2 +- docs/Model/GetFeedPostsPublic200Response.md | 2 +- docs/Model/GetFeedPostsStats200Response.md | 2 +- docs/Model/GetMyNotificationsResponse.md | 2 +- docs/Model/GetPublicFeedPostsResponse.md | 2 +- docs/Model/GetUserBadge200Response.md | 2 +- .../GetUserBadgeProgressById200Response.md | 2 +- .../GetUserBadgeProgressList200Response.md | 2 +- docs/Model/GetUserBadges200Response.md | 2 +- .../GetUserNotificationCount200Response.md | 2 +- .../Model/GetUserNotificationCountResponse.md | 2 +- docs/Model/GetUserNotifications200Response.md | 2 +- .../GetUserPresenceStatuses200Response.md | 2 +- docs/Model/GetUserPresenceStatusesResponse.md | 2 +- docs/Model/GetUserReactsPublic200Response.md | 2 +- docs/Model/HeaderState.md | 2 +- docs/Model/IgnoredResponse.md | 2 +- docs/Model/LockComment200Response.md | 2 +- docs/Model/PatchPageAPIResponse.md | 1 + docs/Model/PinComment200Response.md | 2 +- docs/Model/PubSubComment.md | 38 +- ...bSubFieldsKeys.md => PubSubCommentBase.md} | 39 +- docs/Model/PublicAPIDeleteCommentResponse.md | 4 +- docs/Model/PublicAPIGetCommentTextResponse.md | 2 +- docs/Model/PublicAPISetCommentTextResponse.md | 4 +- docs/Model/PublicComment.md | 15 +- ...mentFieldsKeys.md => PublicCommentBase.md} | 17 +- docs/Model/PublicFeedPostsResponse.md | 2 +- docs/Model/ReactFeedPostPublic200Response.md | 2 +- ....md => RepeatCommentCheckIgnoredReason.md} | 2 +- ...CESS.md => RepeatCommentHandlingAction.md} | 2 +- .../ResetUserNotifications200Response.md | 2 +- docs/Model/ResetUserNotificationsResponse.md | 2 +- docs/Model/SaveComment200Response.md | 2 +- docs/Model/SaveCommentResponse.md | 2 +- docs/Model/SaveCommentResponseOptimized.md | 2 +- .../Model/SaveCommentsResponseWithPresence.md | 2 +- docs/Model/SearchUsers200Response.md | 2 +- docs/Model/SearchUsersResponse.md | 2 +- docs/Model/SetCommentText200Response.md | 4 +- ...CommentHTML.md => SetCommentTextResult.md} | 4 +- docs/Model/UnBlockCommentPublic200Response.md | 2 +- docs/Model/UnblockSuccess.md | 2 +- ...entFields.md => UpdatableCommentParams.md} | 20 +- docs/Model/UpdateUserBadge200Response.md | 2 +- ...UpdateUserNotificationStatus200Response.md | 2 +- docs/Model/UserNotificationWriteResponse.md | 2 +- docs/Model/VoteComment200Response.md | 2 +- docs/Model/VoteDeleteResponse.md | 2 +- lib/Api/DefaultApi.php | 40 +- ...TenantAuditLogKeys.php => APIAuditLog.php} | 106 +- lib/Model/APIComment.php | 2393 +++++++++++++++++ ...mmentFieldsKeys.php => APICommentBase.php} | 1797 +++++++------ lib/Model/APICreateUserBadgeResponse.php | 46 +- lib/Model/APIEmptyResponse.php | 6 +- lib/Model/APIError.php | 6 +- lib/Model/APIGetCommentResponse.php | 6 +- lib/Model/APIGetCommentsResponse.php | 6 +- .../AggregateQuestionResults200Response.php | 6 +- .../BlockFromCommentPublic200Response.php | 6 +- lib/Model/BlockSuccess.php | 6 +- ...ulkAggregateQuestionResults200Response.php | 6 +- lib/Model/ChangeCommentPinStatusResponse.php | 6 +- lib/Model/CheckBlockedCommentsResponse.php | 6 +- .../CheckedCommentsForBlocked200Response.php | 6 +- ...CommentsWithQuestionResults200Response.php | 6 +- lib/Model/CommentLogData.php | 1940 +++++++++++++ ...FieldsKeysMeta.php => CommentLogEntry.php} | 116 +- lib/Model/CommentLogType.php | 222 ++ lib/Model/CreateCommentPublic200Response.php | 6 +- lib/Model/CreateFeedPost200Response.php | 6 +- lib/Model/CreateFeedPostPublic200Response.php | 6 +- lib/Model/CreateUserBadge200Response.php | 40 +- lib/Model/CustomConfigParameters.php | 34 + lib/Model/DeleteComment200Response.php | 6 +- lib/Model/DeleteCommentPublic200Response.php | 12 +- lib/Model/DeleteCommentResult.php | 6 +- lib/Model/DeleteCommentVote200Response.php | 6 +- lib/Model/DeleteFeedPostPublic200Response.php | 6 +- ...Id.php => DeletedCommentResultComment.php} | 140 +- lib/Model/FComment.php | 6 +- lib/Model/FlagComment200Response.php | 6 +- lib/Model/FlagCommentPublic200Response.php | 6 +- lib/Model/GetAuditLogs200Response.php | 12 +- lib/Model/GetAuditLogsResponse.php | 6 +- lib/Model/GetComment200Response.php | 12 +- lib/Model/GetCommentText200Response.php | 6 +- .../GetCommentVoteUserNames200Response.php | 6 +- ...GetCommentVoteUserNamesSuccessResponse.php | 6 +- lib/Model/GetComments200Response.php | 12 +- lib/Model/GetCommentsPublic200Response.php | 6 +- lib/Model/GetEventLog200Response.php | 6 +- lib/Model/GetEventLogResponse.php | 6 +- lib/Model/GetFeedPosts200Response.php | 6 +- lib/Model/GetFeedPostsPublic200Response.php | 6 +- lib/Model/GetFeedPostsStats200Response.php | 6 +- lib/Model/GetMyNotificationsResponse.php | 6 +- lib/Model/GetPublicFeedPostsResponse.php | 6 +- lib/Model/GetUserBadge200Response.php | 6 +- .../GetUserBadgeProgressById200Response.php | 6 +- .../GetUserBadgeProgressList200Response.php | 6 +- lib/Model/GetUserBadges200Response.php | 6 +- .../GetUserNotificationCount200Response.php | 6 +- .../GetUserNotificationCountResponse.php | 6 +- lib/Model/GetUserNotifications200Response.php | 6 +- .../GetUserPresenceStatuses200Response.php | 6 +- lib/Model/GetUserPresenceStatusesResponse.php | 6 +- lib/Model/GetUserReactsPublic200Response.php | 6 +- lib/Model/HeaderState.php | 6 +- lib/Model/IgnoredResponse.php | 6 +- lib/Model/LockComment200Response.php | 6 +- lib/Model/PatchPageAPIResponse.php | 34 + lib/Model/PinComment200Response.php | 6 +- lib/Model/PubSubComment.php | 1224 +++++---- ...ubFieldsKeys.php => PubSubCommentBase.php} | 1239 +++++---- lib/Model/PublicAPIDeleteCommentResponse.php | 12 +- lib/Model/PublicAPIGetCommentTextResponse.php | 6 +- lib/Model/PublicAPISetCommentTextResponse.php | 12 +- lib/Model/PublicComment.php | 635 +++-- ...ntFieldsKeys.php => PublicCommentBase.php} | 656 +++-- lib/Model/PublicFeedPostsResponse.php | 6 +- lib/Model/ReactFeedPostPublic200Response.php | 6 +- ...hp => RepeatCommentCheckIgnoredReason.php} | 28 +- ...SS.php => RepeatCommentHandlingAction.php} | 16 +- .../ResetUserNotifications200Response.php | 6 +- lib/Model/ResetUserNotificationsResponse.php | 6 +- lib/Model/SaveComment200Response.php | 6 +- lib/Model/SaveCommentResponse.php | 6 +- lib/Model/SaveCommentResponseOptimized.php | 6 +- .../SaveCommentsResponseWithPresence.php | 6 +- lib/Model/SearchUsers200Response.php | 6 +- lib/Model/SearchUsersResponse.php | 6 +- lib/Model/SetCommentText200Response.php | 12 +- ...mmentHTML.php => SetCommentTextResult.php} | 81 +- lib/Model/UnBlockCommentPublic200Response.php | 6 +- lib/Model/UnblockSuccess.php | 6 +- ...tFields.php => UpdatableCommentParams.php} | 362 ++- lib/Model/UpdateUserBadge200Response.php | 6 +- ...pdateUserNotificationStatus200Response.php | 6 +- lib/Model/UserNotificationWriteResponse.php | 6 +- lib/Model/VoteComment200Response.php | 6 +- lib/Model/VoteDeleteResponse.php | 6 +- lib/Model/VoteDeleteResponseStatus.php | 382 --- openapi.json | 1082 +++++--- phpunit.xml.dist | 5 +- ...ditLogKeysTest.php => APIAuditLogTest.php} | 30 +- ...ldsKeysTest.php => APICommentBaseTest.php} | 220 +- test/Model/APICommentTest.php | 559 ++++ test/Model/APICreateUserBadgeResponseTest.php | 9 + test/Model/CommentLogDataTest.php | 469 ++++ ...ysMetaTest.php => CommentLogEntryTest.php} | 29 +- ...sFAILEDTest.php => CommentLogTypeTest.php} | 12 +- test/Model/CreateUserBadge200ResponseTest.php | 9 + test/Model/CustomConfigParametersTest.php | 9 + ...hp => DeletedCommentResultCommentTest.php} | 28 +- test/Model/PatchPageAPIResponseTest.php | 9 + ...KeysTest.php => PubSubCommentBaseTest.php} | 173 +- test/Model/PubSubCommentTest.php | 164 +- ...KeysTest.php => PublicCommentBaseTest.php} | 109 +- test/Model/PublicCommentTest.php | 97 +- ...> RepeatCommentCheckIgnoredReasonTest.php} | 12 +- ...hp => RepeatCommentHandlingActionTest.php} | 12 +- ...LTest.php => SetCommentTextResultTest.php} | 20 +- ...est.php => UpdatableCommentParamsTest.php} | 30 +- 211 files changed, 11253 insertions(+), 4468 deletions(-) rename docs/Model/{PickTenantAuditLogTenantAuditLogKeys.md => APIAuditLog.md} (95%) create mode 100644 docs/Model/APIComment.md rename docs/Model/{PickFCommentAPICommentFieldsKeys.md => APICommentBase.md} (93%) create mode 100644 docs/Model/CommentLogData.md rename docs/Model/{PickFCommentAPICommentFieldsKeysMeta.md => CommentLogEntry.md} (52%) rename docs/Model/{ImportedAPIStatusFAILED.md => CommentLogType.md} (89%) rename docs/Model/{PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md => DeletedCommentResultComment.md} (86%) rename docs/Model/{PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md => PubSubCommentBase.md} (95%) rename docs/Model/{PickFCommentPublicCommentFieldsKeys.md => PublicCommentBase.md} (95%) rename docs/Model/{VoteDeleteResponseStatus.md => RepeatCommentCheckIgnoredReason.md} (87%) rename docs/Model/{ImportedAPIStatusSUCCESS.md => RepeatCommentHandlingAction.md} (88%) rename docs/Model/{PickFCommentApprovedOrCommentHTML.md => SetCommentTextResult.md} (88%) rename docs/Model/{PickAPICommentUpdatableCommentFields.md => UpdatableCommentParams.md} (78%) rename lib/Model/{PickTenantAuditLogTenantAuditLogKeys.php => APIAuditLog.php} (93%) create mode 100644 lib/Model/APIComment.php rename lib/Model/{PickFCommentAPICommentFieldsKeys.php => APICommentBase.php} (80%) create mode 100644 lib/Model/CommentLogData.php rename lib/Model/{PickFCommentAPICommentFieldsKeysMeta.php => CommentLogEntry.php} (79%) create mode 100644 lib/Model/CommentLogType.php rename lib/Model/{PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.php => DeletedCommentResultComment.php} (91%) rename lib/Model/{PickOmitFCommentDatePublicCommentPubSubFieldsKeys.php => PubSubCommentBase.php} (81%) rename lib/Model/{PickFCommentPublicCommentFieldsKeys.php => PublicCommentBase.php} (79%) rename lib/Model/{ImportedAPIStatusFAILED.php => RepeatCommentCheckIgnoredReason.php} (66%) rename lib/Model/{ImportedAPIStatusSUCCESS.php => RepeatCommentHandlingAction.php} (79%) rename lib/Model/{PickFCommentApprovedOrCommentHTML.php => SetCommentTextResult.php} (92%) rename lib/Model/{PickAPICommentUpdatableCommentFields.php => UpdatableCommentParams.php} (79%) delete mode 100644 lib/Model/VoteDeleteResponseStatus.php rename test/Model/{PickTenantAuditLogTenantAuditLogKeysTest.php => APIAuditLogTest.php} (91%) rename test/Model/{PickFCommentAPICommentFieldsKeysTest.php => APICommentBaseTest.php} (97%) create mode 100644 test/Model/APICommentTest.php create mode 100644 test/Model/CommentLogDataTest.php rename test/Model/{PickFCommentAPICommentFieldsKeysMetaTest.php => CommentLogEntryTest.php} (76%) rename test/Model/{ImportedAPIStatusFAILEDTest.php => CommentLogTypeTest.php} (85%) rename test/Model/{PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserIdTest.php => DeletedCommentResultCommentTest.php} (82%) rename test/Model/{PickOmitFCommentDatePublicCommentPubSubFieldsKeysTest.php => PubSubCommentBaseTest.php} (93%) rename test/Model/{PickFCommentPublicCommentFieldsKeysTest.php => PublicCommentBaseTest.php} (94%) rename test/Model/{VoteDeleteResponseStatusTest.php => RepeatCommentCheckIgnoredReasonTest.php} (82%) rename test/Model/{ImportedAPIStatusSUCCESSTest.php => RepeatCommentHandlingActionTest.php} (83%) rename test/Model/{PickFCommentApprovedOrCommentHTMLTest.php => SetCommentTextResultTest.php} (84%) rename test/Model/{PickAPICommentUpdatableCommentFieldsTest.php => UpdatableCommentParamsTest.php} (96%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 70e65e3..dec6689 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,6 +5,9 @@ README.md composer.json docs/Api/DefaultApi.md docs/Api/PublicApi.md +docs/Model/APIAuditLog.md +docs/Model/APIComment.md +docs/Model/APICommentBase.md docs/Model/APICreateUserBadgeResponse.md docs/Model/APIEmptyResponse.md docs/Model/APIEmptySuccessResponse.md @@ -49,6 +52,9 @@ docs/Model/CombineCommentsWithQuestionResults200Response.md docs/Model/CombineQuestionResultsWithCommentsResponse.md docs/Model/CommentData.md docs/Model/CommentHTMLRenderingMode.md +docs/Model/CommentLogData.md +docs/Model/CommentLogEntry.md +docs/Model/CommentLogType.md docs/Model/CommentQuestionResultsRenderingType.md docs/Model/CommentQuestionsRequired.md docs/Model/CommentTextUpdateRequest.md @@ -82,6 +88,7 @@ docs/Model/DeleteFeedPostPublic200ResponseAnyOf.md docs/Model/DeletePageAPIResponse.md docs/Model/DeleteSSOUserAPIResponse.md docs/Model/DeleteSubscriptionAPIResponse.md +docs/Model/DeletedCommentResultComment.md docs/Model/EventLogEntry.md docs/Model/FComment.md docs/Model/FCommentMeta.md @@ -138,8 +145,6 @@ docs/Model/GifRating.md docs/Model/HeaderState.md docs/Model/IgnoredResponse.md docs/Model/ImageContentProfanityLevel.md -docs/Model/ImportedAPIStatusFAILED.md -docs/Model/ImportedAPIStatusSUCCESS.md docs/Model/LiveEvent.md docs/Model/LiveEventExtraInfo.md docs/Model/LiveEventType.md @@ -152,22 +157,16 @@ docs/Model/NotificationType.md docs/Model/PatchDomainConfigParams.md docs/Model/PatchPageAPIResponse.md docs/Model/PatchSSOUserAPIResponse.md -docs/Model/PickAPICommentUpdatableCommentFields.md -docs/Model/PickFCommentAPICommentFieldsKeys.md -docs/Model/PickFCommentAPICommentFieldsKeysMeta.md -docs/Model/PickFCommentApprovedOrCommentHTML.md -docs/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md -docs/Model/PickFCommentPublicCommentFieldsKeys.md -docs/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md -docs/Model/PickTenantAuditLogTenantAuditLogKeys.md docs/Model/PinComment200Response.md docs/Model/PubSubComment.md +docs/Model/PubSubCommentBase.md docs/Model/PubSubVote.md docs/Model/PublicAPIDeleteCommentResponse.md docs/Model/PublicAPIGetCommentTextResponse.md docs/Model/PublicAPISetCommentTextResponse.md docs/Model/PublicBlockFromCommentParams.md docs/Model/PublicComment.md +docs/Model/PublicCommentBase.md docs/Model/PublicFeedPostsResponse.md docs/Model/PutSSOUserAPIResponse.md docs/Model/QueryPredicate.md @@ -184,6 +183,8 @@ docs/Model/ReactFeedPostResponse.md docs/Model/RecordStringBeforeStringOrNullAfterStringOrNullValue.md docs/Model/RecordStringStringOrNumberValue.md docs/Model/RenderableUserNotification.md +docs/Model/RepeatCommentCheckIgnoredReason.md +docs/Model/RepeatCommentHandlingAction.md docs/Model/ResetUserNotifications200Response.md docs/Model/ResetUserNotificationsResponse.md docs/Model/SORTDIR.md @@ -195,12 +196,14 @@ docs/Model/SaveCommentsResponseWithPresence.md docs/Model/SearchUsers200Response.md docs/Model/SearchUsersResponse.md docs/Model/SetCommentText200Response.md +docs/Model/SetCommentTextResult.md docs/Model/SizePreset.md docs/Model/SortDirections.md docs/Model/SpamRule.md docs/Model/UnBlockCommentPublic200Response.md docs/Model/UnBlockFromCommentParams.md docs/Model/UnblockSuccess.md +docs/Model/UpdatableCommentParams.md docs/Model/UpdateAPIPageData.md docs/Model/UpdateAPISSOUserData.md docs/Model/UpdateDomainConfigParams.md @@ -220,7 +223,6 @@ docs/Model/UserSessionInfo.md docs/Model/VoteBodyParams.md docs/Model/VoteComment200Response.md docs/Model/VoteDeleteResponse.md -docs/Model/VoteDeleteResponseStatus.md docs/Model/VoteResponse.md docs/Model/VoteResponseStatus.md docs/Model/VoteResponseUser.md @@ -231,6 +233,9 @@ lib/Api/PublicApi.php lib/ApiException.php lib/Configuration.php lib/HeaderSelector.php +lib/Model/APIAuditLog.php +lib/Model/APIComment.php +lib/Model/APICommentBase.php lib/Model/APICreateUserBadgeResponse.php lib/Model/APIEmptyResponse.php lib/Model/APIEmptySuccessResponse.php @@ -275,6 +280,9 @@ lib/Model/CombineCommentsWithQuestionResults200Response.php lib/Model/CombineQuestionResultsWithCommentsResponse.php lib/Model/CommentData.php lib/Model/CommentHTMLRenderingMode.php +lib/Model/CommentLogData.php +lib/Model/CommentLogEntry.php +lib/Model/CommentLogType.php lib/Model/CommentQuestionResultsRenderingType.php lib/Model/CommentQuestionsRequired.php lib/Model/CommentTextUpdateRequest.php @@ -308,6 +316,7 @@ lib/Model/DeleteFeedPostPublic200ResponseAnyOf.php lib/Model/DeletePageAPIResponse.php lib/Model/DeleteSSOUserAPIResponse.php lib/Model/DeleteSubscriptionAPIResponse.php +lib/Model/DeletedCommentResultComment.php lib/Model/EventLogEntry.php lib/Model/FComment.php lib/Model/FCommentMeta.php @@ -364,8 +373,6 @@ lib/Model/GifRating.php lib/Model/HeaderState.php lib/Model/IgnoredResponse.php lib/Model/ImageContentProfanityLevel.php -lib/Model/ImportedAPIStatusFAILED.php -lib/Model/ImportedAPIStatusSUCCESS.php lib/Model/LiveEvent.php lib/Model/LiveEventExtraInfo.php lib/Model/LiveEventType.php @@ -379,22 +386,16 @@ lib/Model/NotificationType.php lib/Model/PatchDomainConfigParams.php lib/Model/PatchPageAPIResponse.php lib/Model/PatchSSOUserAPIResponse.php -lib/Model/PickAPICommentUpdatableCommentFields.php -lib/Model/PickFCommentAPICommentFieldsKeys.php -lib/Model/PickFCommentAPICommentFieldsKeysMeta.php -lib/Model/PickFCommentApprovedOrCommentHTML.php -lib/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.php -lib/Model/PickFCommentPublicCommentFieldsKeys.php -lib/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.php -lib/Model/PickTenantAuditLogTenantAuditLogKeys.php lib/Model/PinComment200Response.php lib/Model/PubSubComment.php +lib/Model/PubSubCommentBase.php lib/Model/PubSubVote.php lib/Model/PublicAPIDeleteCommentResponse.php lib/Model/PublicAPIGetCommentTextResponse.php lib/Model/PublicAPISetCommentTextResponse.php lib/Model/PublicBlockFromCommentParams.php lib/Model/PublicComment.php +lib/Model/PublicCommentBase.php lib/Model/PublicFeedPostsResponse.php lib/Model/PutSSOUserAPIResponse.php lib/Model/QueryPredicate.php @@ -411,6 +412,8 @@ lib/Model/ReactFeedPostResponse.php lib/Model/RecordStringBeforeStringOrNullAfterStringOrNullValue.php lib/Model/RecordStringStringOrNumberValue.php lib/Model/RenderableUserNotification.php +lib/Model/RepeatCommentCheckIgnoredReason.php +lib/Model/RepeatCommentHandlingAction.php lib/Model/ResetUserNotifications200Response.php lib/Model/ResetUserNotificationsResponse.php lib/Model/SORTDIR.php @@ -422,12 +425,14 @@ lib/Model/SaveCommentsResponseWithPresence.php lib/Model/SearchUsers200Response.php lib/Model/SearchUsersResponse.php lib/Model/SetCommentText200Response.php +lib/Model/SetCommentTextResult.php lib/Model/SizePreset.php lib/Model/SortDirections.php lib/Model/SpamRule.php lib/Model/UnBlockCommentPublic200Response.php lib/Model/UnBlockFromCommentParams.php lib/Model/UnblockSuccess.php +lib/Model/UpdatableCommentParams.php lib/Model/UpdateAPIPageData.php lib/Model/UpdateAPISSOUserData.php lib/Model/UpdateDomainConfigParams.php @@ -447,7 +452,6 @@ lib/Model/UserSessionInfo.php lib/Model/VoteBodyParams.php lib/Model/VoteComment200Response.php lib/Model/VoteDeleteResponse.php -lib/Model/VoteDeleteResponseStatus.php lib/Model/VoteResponse.php lib/Model/VoteResponseStatus.php lib/Model/VoteResponseUser.php @@ -456,6 +460,9 @@ lib/ObjectSerializer.php phpunit.xml.dist test/Api/DefaultApiTest.php test/Api/PublicApiTest.php +test/Model/APIAuditLogTest.php +test/Model/APICommentBaseTest.php +test/Model/APICommentTest.php test/Model/APICreateUserBadgeResponseTest.php test/Model/APIEmptyResponseTest.php test/Model/APIEmptySuccessResponseTest.php @@ -500,6 +507,9 @@ test/Model/CombineCommentsWithQuestionResults200ResponseTest.php test/Model/CombineQuestionResultsWithCommentsResponseTest.php test/Model/CommentDataTest.php test/Model/CommentHTMLRenderingModeTest.php +test/Model/CommentLogDataTest.php +test/Model/CommentLogEntryTest.php +test/Model/CommentLogTypeTest.php test/Model/CommentQuestionResultsRenderingTypeTest.php test/Model/CommentQuestionsRequiredTest.php test/Model/CommentTextUpdateRequestTest.php @@ -533,6 +543,7 @@ test/Model/DeleteFeedPostPublic200ResponseTest.php test/Model/DeletePageAPIResponseTest.php test/Model/DeleteSSOUserAPIResponseTest.php test/Model/DeleteSubscriptionAPIResponseTest.php +test/Model/DeletedCommentResultCommentTest.php test/Model/EventLogEntryTest.php test/Model/FCommentMetaTest.php test/Model/FCommentTest.php @@ -589,8 +600,6 @@ test/Model/GifRatingTest.php test/Model/HeaderStateTest.php test/Model/IgnoredResponseTest.php test/Model/ImageContentProfanityLevelTest.php -test/Model/ImportedAPIStatusFAILEDTest.php -test/Model/ImportedAPIStatusSUCCESSTest.php test/Model/LiveEventExtraInfoTest.php test/Model/LiveEventTest.php test/Model/LiveEventTypeTest.php @@ -603,21 +612,15 @@ test/Model/NotificationTypeTest.php test/Model/PatchDomainConfigParamsTest.php test/Model/PatchPageAPIResponseTest.php test/Model/PatchSSOUserAPIResponseTest.php -test/Model/PickAPICommentUpdatableCommentFieldsTest.php -test/Model/PickFCommentAPICommentFieldsKeysMetaTest.php -test/Model/PickFCommentAPICommentFieldsKeysTest.php -test/Model/PickFCommentApprovedOrCommentHTMLTest.php -test/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserIdTest.php -test/Model/PickFCommentPublicCommentFieldsKeysTest.php -test/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeysTest.php -test/Model/PickTenantAuditLogTenantAuditLogKeysTest.php test/Model/PinComment200ResponseTest.php +test/Model/PubSubCommentBaseTest.php test/Model/PubSubCommentTest.php test/Model/PubSubVoteTest.php test/Model/PublicAPIDeleteCommentResponseTest.php test/Model/PublicAPIGetCommentTextResponseTest.php test/Model/PublicAPISetCommentTextResponseTest.php test/Model/PublicBlockFromCommentParamsTest.php +test/Model/PublicCommentBaseTest.php test/Model/PublicCommentTest.php test/Model/PublicFeedPostsResponseTest.php test/Model/PutSSOUserAPIResponseTest.php @@ -635,6 +638,8 @@ test/Model/ReactFeedPostResponseTest.php test/Model/RecordStringBeforeStringOrNullAfterStringOrNullValueTest.php test/Model/RecordStringStringOrNumberValueTest.php test/Model/RenderableUserNotificationTest.php +test/Model/RepeatCommentCheckIgnoredReasonTest.php +test/Model/RepeatCommentHandlingActionTest.php test/Model/ResetUserNotifications200ResponseTest.php test/Model/ResetUserNotificationsResponseTest.php test/Model/SORTDIRTest.php @@ -646,12 +651,14 @@ test/Model/SaveCommentsResponseWithPresenceTest.php test/Model/SearchUsers200ResponseTest.php test/Model/SearchUsersResponseTest.php test/Model/SetCommentText200ResponseTest.php +test/Model/SetCommentTextResultTest.php test/Model/SizePresetTest.php test/Model/SortDirectionsTest.php test/Model/SpamRuleTest.php test/Model/UnBlockCommentPublic200ResponseTest.php test/Model/UnBlockFromCommentParamsTest.php test/Model/UnblockSuccessTest.php +test/Model/UpdatableCommentParamsTest.php test/Model/UpdateAPIPageDataTest.php test/Model/UpdateAPISSOUserDataTest.php test/Model/UpdateDomainConfigParamsTest.php @@ -670,7 +677,6 @@ test/Model/UserSearchResultTest.php test/Model/UserSessionInfoTest.php test/Model/VoteBodyParamsTest.php test/Model/VoteComment200ResponseTest.php -test/Model/VoteDeleteResponseStatusTest.php test/Model/VoteDeleteResponseTest.php test/Model/VoteResponseStatusTest.php test/Model/VoteResponseTest.php diff --git a/README.md b/README.md index 2eaa15d..90f06c4 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,9 @@ Class | Method | HTTP request | Description ## Models +- [APIAuditLog](docs/Model/APIAuditLog.md) +- [APIComment](docs/Model/APIComment.md) +- [APICommentBase](docs/Model/APICommentBase.md) - [APICreateUserBadgeResponse](docs/Model/APICreateUserBadgeResponse.md) - [APIEmptyResponse](docs/Model/APIEmptyResponse.md) - [APIEmptySuccessResponse](docs/Model/APIEmptySuccessResponse.md) @@ -208,6 +211,9 @@ Class | Method | HTTP request | Description - [CombineQuestionResultsWithCommentsResponse](docs/Model/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](docs/Model/CommentData.md) - [CommentHTMLRenderingMode](docs/Model/CommentHTMLRenderingMode.md) +- [CommentLogData](docs/Model/CommentLogData.md) +- [CommentLogEntry](docs/Model/CommentLogEntry.md) +- [CommentLogType](docs/Model/CommentLogType.md) - [CommentQuestionResultsRenderingType](docs/Model/CommentQuestionResultsRenderingType.md) - [CommentQuestionsRequired](docs/Model/CommentQuestionsRequired.md) - [CommentTextUpdateRequest](docs/Model/CommentTextUpdateRequest.md) @@ -241,6 +247,7 @@ Class | Method | HTTP request | Description - [DeletePageAPIResponse](docs/Model/DeletePageAPIResponse.md) - [DeleteSSOUserAPIResponse](docs/Model/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](docs/Model/DeleteSubscriptionAPIResponse.md) +- [DeletedCommentResultComment](docs/Model/DeletedCommentResultComment.md) - [EventLogEntry](docs/Model/EventLogEntry.md) - [FComment](docs/Model/FComment.md) - [FCommentMeta](docs/Model/FCommentMeta.md) @@ -297,8 +304,6 @@ Class | Method | HTTP request | Description - [HeaderState](docs/Model/HeaderState.md) - [IgnoredResponse](docs/Model/IgnoredResponse.md) - [ImageContentProfanityLevel](docs/Model/ImageContentProfanityLevel.md) -- [ImportedAPIStatusFAILED](docs/Model/ImportedAPIStatusFAILED.md) -- [ImportedAPIStatusSUCCESS](docs/Model/ImportedAPIStatusSUCCESS.md) - [LiveEvent](docs/Model/LiveEvent.md) - [LiveEventExtraInfo](docs/Model/LiveEventExtraInfo.md) - [LiveEventType](docs/Model/LiveEventType.md) @@ -311,22 +316,16 @@ Class | Method | HTTP request | Description - [PatchDomainConfigParams](docs/Model/PatchDomainConfigParams.md) - [PatchPageAPIResponse](docs/Model/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/Model/PatchSSOUserAPIResponse.md) -- [PickAPICommentUpdatableCommentFields](docs/Model/PickAPICommentUpdatableCommentFields.md) -- [PickFCommentAPICommentFieldsKeys](docs/Model/PickFCommentAPICommentFieldsKeys.md) -- [PickFCommentAPICommentFieldsKeysMeta](docs/Model/PickFCommentAPICommentFieldsKeysMeta.md) -- [PickFCommentApprovedOrCommentHTML](docs/Model/PickFCommentApprovedOrCommentHTML.md) -- [PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId](docs/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md) -- [PickFCommentPublicCommentFieldsKeys](docs/Model/PickFCommentPublicCommentFieldsKeys.md) -- [PickOmitFCommentDatePublicCommentPubSubFieldsKeys](docs/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md) -- [PickTenantAuditLogTenantAuditLogKeys](docs/Model/PickTenantAuditLogTenantAuditLogKeys.md) - [PinComment200Response](docs/Model/PinComment200Response.md) - [PubSubComment](docs/Model/PubSubComment.md) +- [PubSubCommentBase](docs/Model/PubSubCommentBase.md) - [PubSubVote](docs/Model/PubSubVote.md) - [PublicAPIDeleteCommentResponse](docs/Model/PublicAPIDeleteCommentResponse.md) - [PublicAPIGetCommentTextResponse](docs/Model/PublicAPIGetCommentTextResponse.md) - [PublicAPISetCommentTextResponse](docs/Model/PublicAPISetCommentTextResponse.md) - [PublicBlockFromCommentParams](docs/Model/PublicBlockFromCommentParams.md) - [PublicComment](docs/Model/PublicComment.md) +- [PublicCommentBase](docs/Model/PublicCommentBase.md) - [PublicFeedPostsResponse](docs/Model/PublicFeedPostsResponse.md) - [PutSSOUserAPIResponse](docs/Model/PutSSOUserAPIResponse.md) - [QueryPredicate](docs/Model/QueryPredicate.md) @@ -343,6 +342,8 @@ Class | Method | HTTP request | Description - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/Model/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - [RecordStringStringOrNumberValue](docs/Model/RecordStringStringOrNumberValue.md) - [RenderableUserNotification](docs/Model/RenderableUserNotification.md) +- [RepeatCommentCheckIgnoredReason](docs/Model/RepeatCommentCheckIgnoredReason.md) +- [RepeatCommentHandlingAction](docs/Model/RepeatCommentHandlingAction.md) - [ResetUserNotifications200Response](docs/Model/ResetUserNotifications200Response.md) - [ResetUserNotificationsResponse](docs/Model/ResetUserNotificationsResponse.md) - [SORTDIR](docs/Model/SORTDIR.md) @@ -354,12 +355,14 @@ Class | Method | HTTP request | Description - [SearchUsers200Response](docs/Model/SearchUsers200Response.md) - [SearchUsersResponse](docs/Model/SearchUsersResponse.md) - [SetCommentText200Response](docs/Model/SetCommentText200Response.md) +- [SetCommentTextResult](docs/Model/SetCommentTextResult.md) - [SizePreset](docs/Model/SizePreset.md) - [SortDirections](docs/Model/SortDirections.md) - [SpamRule](docs/Model/SpamRule.md) - [UnBlockCommentPublic200Response](docs/Model/UnBlockCommentPublic200Response.md) - [UnBlockFromCommentParams](docs/Model/UnBlockFromCommentParams.md) - [UnblockSuccess](docs/Model/UnblockSuccess.md) +- [UpdatableCommentParams](docs/Model/UpdatableCommentParams.md) - [UpdateAPIPageData](docs/Model/UpdateAPIPageData.md) - [UpdateAPISSOUserData](docs/Model/UpdateAPISSOUserData.md) - [UpdateDomainConfigParams](docs/Model/UpdateDomainConfigParams.md) @@ -379,7 +382,6 @@ Class | Method | HTTP request | Description - [VoteBodyParams](docs/Model/VoteBodyParams.md) - [VoteComment200Response](docs/Model/VoteComment200Response.md) - [VoteDeleteResponse](docs/Model/VoteDeleteResponse.md) -- [VoteDeleteResponseStatus](docs/Model/VoteDeleteResponseStatus.md) - [VoteResponse](docs/Model/VoteResponse.md) - [VoteResponseStatus](docs/Model/VoteResponseStatus.md) - [VoteResponseUser](docs/Model/VoteResponseUser.md) diff --git a/composer.json b/composer.json index abc0e0c..dadd5fe 100644 --- a/composer.json +++ b/composer.json @@ -28,8 +28,7 @@ "ext-json": "*", "ext-mbstring": "*", "guzzlehttp/guzzle": "^7.3", - "guzzlehttp/psr7": "^1.7 || ^2.0", - "fastcomments/sso": "^0.0.1" + "guzzlehttp/psr7": "^1.7 || ^2.0" }, "require-dev": { "phpunit/phpunit": "^8.0 || ^9.0", diff --git a/docs/Api/DefaultApi.md b/docs/Api/DefaultApi.md index 993d924..5929820 100644 --- a/docs/Api/DefaultApi.md +++ b/docs/Api/DefaultApi.md @@ -2936,7 +2936,7 @@ try { ## `updateComment()` ```php -updateComment($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live): \FastComments\Client\Model\FlagCommentPublic200Response +updateComment($tenant_id, $id, $updatable_comment_params, $context_user_id, $do_spam_check, $is_live): \FastComments\Client\Model\FlagCommentPublic200Response ``` @@ -2962,13 +2962,13 @@ $apiInstance = new FastComments\Client\Api\DefaultApi( ); $tenant_id = 'tenant_id_example'; // string $id = 'id_example'; // string -$body = new \FastComments\Client\Model\PickAPICommentUpdatableCommentFields(); // \FastComments\Client\Model\PickAPICommentUpdatableCommentFields +$updatable_comment_params = new \FastComments\Client\Model\UpdatableCommentParams(); // \FastComments\Client\Model\UpdatableCommentParams $context_user_id = 'context_user_id_example'; // string $do_spam_check = True; // bool $is_live = True; // bool try { - $result = $apiInstance->updateComment($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live); + $result = $apiInstance->updateComment($tenant_id, $id, $updatable_comment_params, $context_user_id, $do_spam_check, $is_live); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateComment: ', $e->getMessage(), PHP_EOL; @@ -2981,7 +2981,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **tenant_id** | **string**| | | | **id** | **string**| | | -| **body** | **\FastComments\Client\Model\PickAPICommentUpdatableCommentFields**| | | +| **updatable_comment_params** | [**\FastComments\Client\Model\UpdatableCommentParams**](../Model/UpdatableCommentParams.md)| | | | **context_user_id** | **string**| | [optional] | | **do_spam_check** | **bool**| | [optional] | | **is_live** | **bool**| | [optional] | diff --git a/docs/Model/PickTenantAuditLogTenantAuditLogKeys.md b/docs/Model/APIAuditLog.md similarity index 95% rename from docs/Model/PickTenantAuditLogTenantAuditLogKeys.md rename to docs/Model/APIAuditLog.md index 1b020f1..51e3cf3 100644 --- a/docs/Model/PickTenantAuditLogTenantAuditLogKeys.md +++ b/docs/Model/APIAuditLog.md @@ -1,16 +1,16 @@ -# # PickTenantAuditLogTenantAuditLogKeys +# # APIAuditLog ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_id** | **string** | | -**url** | **string** | | [optional] **user_id** | **string** | | [optional] **username** | **string** | | [optional] **resource_name** | **string** | | **crud_type** | **string** | | **from** | **string** | | [optional] +**url** | **string** | | [optional] **ip** | **string** | | [optional] **when** | **\DateTime** | | [optional] **description** | **string** | | [optional] diff --git a/docs/Model/APIComment.md b/docs/Model/APIComment.md new file mode 100644 index 0000000..d476634 --- /dev/null +++ b/docs/Model/APIComment.md @@ -0,0 +1,61 @@ +# # APIComment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_id** | **string** | | +**ai_determined_spam** | **bool** | | [optional] +**anon_user_id** | **string** | | [optional] +**approved** | **bool** | | +**avatar_src** | **string** | | [optional] +**badges** | [**\FastComments\Client\Model\CommentUserBadgeInfo[]**](CommentUserBadgeInfo.md) | | [optional] +**comment** | **string** | | +**comment_html** | **string** | | +**commenter_email** | **string** | | [optional] +**commenter_link** | **string** | | [optional] +**commenter_name** | **string** | | +**date** | **float** | | +**display_label** | **string** | | [optional] +**domain** | **string** | | [optional] +**external_id** | **string** | | [optional] +**external_parent_id** | **string** | | [optional] +**expire_at** | **\DateTime** | | [optional] +**feedback_ids** | **string[]** | | [optional] +**flag_count** | **int** | | [optional] +**from_product_id** | **int** | | [optional] +**has_code** | **bool** | | [optional] +**has_images** | **bool** | | [optional] +**has_links** | **bool** | | [optional] +**hash_tags** | [**\FastComments\Client\Model\CommentUserHashTagInfo[]**](CommentUserHashTagInfo.md) | | [optional] +**is_by_admin** | **bool** | | [optional] +**is_by_moderator** | **bool** | | [optional] +**is_deleted** | **bool** | | [optional] +**is_deleted_user** | **bool** | | [optional] +**is_pinned** | **bool** | | [optional] +**is_locked** | **bool** | | [optional] +**is_spam** | **bool** | | [optional] +**local_date_hours** | **int** | | [optional] +**local_date_string** | **string** | | [optional] +**locale** | **string** | | +**mentions** | [**\FastComments\Client\Model\CommentUserMentionInfo[]**](CommentUserMentionInfo.md) | | [optional] +**meta** | [**\FastComments\Client\Model\FCommentMeta**](FCommentMeta.md) | | [optional] +**moderation_group_ids** | **string[]** | | [optional] +**notification_sent_for_parent** | **bool** | | [optional] +**notification_sent_for_parent_tenant** | **bool** | | [optional] +**page_title** | **string** | | [optional] +**parent_id** | **string** | | [optional] +**rating** | **float** | | [optional] +**reviewed** | **bool** | | [optional] +**tenant_id** | **string** | | +**url** | **string** | | +**url_id** | **string** | | +**url_id_raw** | **string** | | [optional] +**user_id** | **string** | | [optional] +**verified** | **bool** | | +**verified_date** | **\DateTime** | | [optional] +**votes** | **int** | | [optional] +**votes_down** | **int** | | [optional] +**votes_up** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PickFCommentAPICommentFieldsKeys.md b/docs/Model/APICommentBase.md similarity index 93% rename from docs/Model/PickFCommentAPICommentFieldsKeys.md rename to docs/Model/APICommentBase.md index 2f77277..2738c30 100644 --- a/docs/Model/PickFCommentAPICommentFieldsKeys.md +++ b/docs/Model/APICommentBase.md @@ -1,61 +1,61 @@ -# # PickFCommentAPICommentFieldsKeys +# # APICommentBase ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **\DateTime** | | **_id** | **string** | | -**tenant_id** | **string** | | -**url_id** | **string** | | -**url_id_raw** | **string** | | [optional] -**url** | **string** | | -**page_title** | **string** | | [optional] -**user_id** | **string** | | [optional] +**ai_determined_spam** | **bool** | | [optional] **anon_user_id** | **string** | | [optional] -**commenter_email** | **string** | | [optional] -**commenter_name** | **string** | | -**commenter_link** | **string** | | [optional] +**approved** | **bool** | | +**avatar_src** | **string** | | [optional] +**badges** | [**\FastComments\Client\Model\CommentUserBadgeInfo[]**](CommentUserBadgeInfo.md) | | [optional] **comment** | **string** | | **comment_html** | **string** | | -**parent_id** | **string** | | [optional] -**local_date_string** | **string** | | [optional] -**local_date_hours** | **int** | | [optional] -**votes** | **int** | | [optional] -**votes_up** | **int** | | [optional] -**votes_down** | **int** | | [optional] -**expire_at** | **\DateTime** | | [optional] -**verified** | **bool** | | -**verified_date** | **\DateTime** | | [optional] -**notification_sent_for_parent** | **bool** | | [optional] -**notification_sent_for_parent_tenant** | **bool** | | [optional] -**reviewed** | **bool** | | [optional] +**commenter_email** | **string** | | [optional] +**commenter_link** | **string** | | [optional] +**commenter_name** | **string** | | +**date** | **\DateTime** | | +**display_label** | **string** | | [optional] +**domain** | **string** | | [optional] **external_id** | **string** | | [optional] **external_parent_id** | **string** | | [optional] -**avatar_src** | **string** | | [optional] -**is_spam** | **bool** | | [optional] -**ai_determined_spam** | **bool** | | [optional] +**expire_at** | **\DateTime** | | [optional] +**feedback_ids** | **string[]** | | [optional] +**flag_count** | **int** | | [optional] +**from_product_id** | **int** | | [optional] +**has_code** | **bool** | | [optional] **has_images** | **bool** | | [optional] **has_links** | **bool** | | [optional] -**has_code** | **bool** | | [optional] -**approved** | **bool** | | -**locale** | **string** | | -**is_deleted** | **bool** | | [optional] -**is_deleted_user** | **bool** | | [optional] +**hash_tags** | [**\FastComments\Client\Model\CommentUserHashTagInfo[]**](CommentUserHashTagInfo.md) | | [optional] **is_by_admin** | **bool** | | [optional] **is_by_moderator** | **bool** | | [optional] +**is_deleted** | **bool** | | [optional] +**is_deleted_user** | **bool** | | [optional] **is_pinned** | **bool** | | [optional] **is_locked** | **bool** | | [optional] -**flag_count** | **int** | | [optional] -**rating** | **float** | | [optional] -**display_label** | **string** | | [optional] -**from_product_id** | **int** | | [optional] -**meta** | [**\FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta**](PickFCommentAPICommentFieldsKeysMeta.md) | | [optional] +**is_spam** | **bool** | | [optional] +**local_date_hours** | **int** | | [optional] +**local_date_string** | **string** | | [optional] +**locale** | **string** | | **mentions** | [**\FastComments\Client\Model\CommentUserMentionInfo[]**](CommentUserMentionInfo.md) | | [optional] -**hash_tags** | [**\FastComments\Client\Model\CommentUserHashTagInfo[]**](CommentUserHashTagInfo.md) | | [optional] -**badges** | [**\FastComments\Client\Model\CommentUserBadgeInfo[]**](CommentUserBadgeInfo.md) | | [optional] -**domain** | **string** | | [optional] +**meta** | [**\FastComments\Client\Model\FCommentMeta**](FCommentMeta.md) | | [optional] **moderation_group_ids** | **string[]** | | [optional] -**feedback_ids** | **string[]** | | [optional] +**notification_sent_for_parent** | **bool** | | [optional] +**notification_sent_for_parent_tenant** | **bool** | | [optional] +**page_title** | **string** | | [optional] +**parent_id** | **string** | | [optional] +**rating** | **float** | | [optional] +**reviewed** | **bool** | | [optional] +**tenant_id** | **string** | | +**url** | **string** | | +**url_id** | **string** | | +**url_id_raw** | **string** | | [optional] +**user_id** | **string** | | [optional] +**verified** | **bool** | | +**verified_date** | **\DateTime** | | [optional] +**votes** | **int** | | [optional] +**votes_down** | **int** | | [optional] +**votes_up** | **int** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/APICreateUserBadgeResponse.md b/docs/Model/APICreateUserBadgeResponse.md index fcd6a33..cce0315 100644 --- a/docs/Model/APICreateUserBadgeResponse.md +++ b/docs/Model/APICreateUserBadgeResponse.md @@ -6,5 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_badge** | [**\FastComments\Client\Model\UserBadge**](UserBadge.md) | | +**notes** | **string[]** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/APIEmptyResponse.md b/docs/Model/APIEmptyResponse.md index caedcff..db0861c 100644 --- a/docs/Model/APIEmptyResponse.md +++ b/docs/Model/APIEmptyResponse.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/APIError.md b/docs/Model/APIError.md index 1af3cfa..722d291 100644 --- a/docs/Model/APIError.md +++ b/docs/Model/APIError.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/APIGetCommentResponse.md b/docs/Model/APIGetCommentResponse.md index d129e37..9f3ca30 100644 --- a/docs/Model/APIGetCommentResponse.md +++ b/docs/Model/APIGetCommentResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | -**comment** | [**\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys**](PickFCommentAPICommentFieldsKeys.md) | | +**comment** | [**\FastComments\Client\Model\APIComment**](APIComment.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/APIGetCommentsResponse.md b/docs/Model/APIGetCommentsResponse.md index cdabded..f00c4e1 100644 --- a/docs/Model/APIGetCommentsResponse.md +++ b/docs/Model/APIGetCommentsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | -**comments** | [**\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[]**](PickFCommentAPICommentFieldsKeys.md) | | +**comments** | [**\FastComments\Client\Model\APIComment[]**](APIComment.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/AggregateQuestionResults200Response.md b/docs/Model/AggregateQuestionResults200Response.md index 05a49c0..8f05fad 100644 --- a/docs/Model/AggregateQuestionResults200Response.md +++ b/docs/Model/AggregateQuestionResults200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **data** | [**\FastComments\Client\Model\QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/BlockFromCommentPublic200Response.md b/docs/Model/BlockFromCommentPublic200Response.md index 54cc170..0006184 100644 --- a/docs/Model/BlockFromCommentPublic200Response.md +++ b/docs/Model/BlockFromCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment_statuses** | **array** | Construct a type with a set of properties K of type T | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/BlockSuccess.md b/docs/Model/BlockSuccess.md index dae23da..1b32934 100644 --- a/docs/Model/BlockSuccess.md +++ b/docs/Model/BlockSuccess.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment_statuses** | **array** | Construct a type with a set of properties K of type T | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/BulkAggregateQuestionResults200Response.md b/docs/Model/BulkAggregateQuestionResults200Response.md index a44f486..e4d9ed3 100644 --- a/docs/Model/BulkAggregateQuestionResults200Response.md +++ b/docs/Model/BulkAggregateQuestionResults200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **data** | [**array**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/ChangeCommentPinStatusResponse.md b/docs/Model/ChangeCommentPinStatusResponse.md index 9a67a60..a43d983 100644 --- a/docs/Model/ChangeCommentPinStatusResponse.md +++ b/docs/Model/ChangeCommentPinStatusResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **comment_positions** | [**array**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CheckBlockedCommentsResponse.md b/docs/Model/CheckBlockedCommentsResponse.md index f7a56eb..4b533f4 100644 --- a/docs/Model/CheckBlockedCommentsResponse.md +++ b/docs/Model/CheckBlockedCommentsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **comment_statuses** | **array** | Construct a type with a set of properties K of type T | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CheckedCommentsForBlocked200Response.md b/docs/Model/CheckedCommentsForBlocked200Response.md index 22f309c..3310a4c 100644 --- a/docs/Model/CheckedCommentsForBlocked200Response.md +++ b/docs/Model/CheckedCommentsForBlocked200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **comment_statuses** | **array** | Construct a type with a set of properties K of type T | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/CombineCommentsWithQuestionResults200Response.md b/docs/Model/CombineCommentsWithQuestionResults200Response.md index 4dead54..a428c65 100644 --- a/docs/Model/CombineCommentsWithQuestionResults200Response.md +++ b/docs/Model/CombineCommentsWithQuestionResults200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **data** | [**\FastComments\Client\Model\FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/CommentLogData.md b/docs/Model/CommentLogData.md new file mode 100644 index 0000000..ade669f --- /dev/null +++ b/docs/Model/CommentLogData.md @@ -0,0 +1,51 @@ +# # CommentLogData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clear_content** | **bool** | | [optional] +**is_deleted_user** | **bool** | | [optional] +**phrase** | **string** | | [optional] +**bad_word** | **string** | | [optional] +**word** | **string** | | [optional] +**locale** | **string** | | [optional] +**tenant_badge_id** | **string** | | [optional] +**badge_id** | **string** | | [optional] +**was_logged_in** | **bool** | | [optional] +**found_user** | **bool** | | [optional] +**verified** | **bool** | | [optional] +**engine** | **string** | | [optional] +**engine_response** | **string** | | [optional] +**engine_tokens** | **float** | | [optional] +**trust_factor** | **float** | | [optional] +**rule** | [**\FastComments\Client\Model\SpamRule**](SpamRule.md) | | [optional] +**user_id** | **string** | | [optional] +**subscribers** | **float** | | [optional] +**notification_count** | **float** | | [optional] +**votes_before** | **float** | | [optional] +**votes_up_before** | **float** | | [optional] +**votes_down_before** | **float** | | [optional] +**votes_after** | **float** | | [optional] +**votes_up_after** | **float** | | [optional] +**votes_down_after** | **float** | | [optional] +**repeat_action** | [**\FastComments\Client\Model\RepeatCommentHandlingAction**](RepeatCommentHandlingAction.md) | | [optional] +**reason** | [**\FastComments\Client\Model\RepeatCommentCheckIgnoredReason**](RepeatCommentCheckIgnoredReason.md) | | [optional] +**other_data** | **mixed** | | [optional] +**spam_before** | **bool** | | [optional] +**spam_after** | **bool** | | [optional] +**permanent_flag** | **string** | | [optional] +**approved_before** | **bool** | | [optional] +**approved_after** | **bool** | | [optional] +**reviewed_before** | **bool** | | [optional] +**reviewed_after** | **bool** | | [optional] +**text_before** | **string** | | [optional] +**text_after** | **string** | | [optional] +**expire_before** | **\DateTime** | | [optional] +**expire_after** | **\DateTime** | | [optional] +**flag_count_before** | **float** | | [optional] +**trust_factor_before** | **float** | | [optional] +**trust_factor_after** | **float** | | [optional] +**referenced_comment_id** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PickFCommentAPICommentFieldsKeysMeta.md b/docs/Model/CommentLogEntry.md similarity index 52% rename from docs/Model/PickFCommentAPICommentFieldsKeysMeta.md rename to docs/Model/CommentLogEntry.md index 19007ec..f7a35da 100644 --- a/docs/Model/PickFCommentAPICommentFieldsKeysMeta.md +++ b/docs/Model/CommentLogEntry.md @@ -1,10 +1,11 @@ -# # PickFCommentAPICommentFieldsKeysMeta +# # CommentLogEntry ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**wp_user_id** | **string** | | [optional] -**wp_post_id** | **string** | | [optional] +**d** | **\DateTime** | | +**t** | [**\FastComments\Client\Model\CommentLogType**](CommentLogType.md) | | +**da** | [**\FastComments\Client\Model\CommentLogData**](CommentLogData.md) | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ImportedAPIStatusFAILED.md b/docs/Model/CommentLogType.md similarity index 89% rename from docs/Model/ImportedAPIStatusFAILED.md rename to docs/Model/CommentLogType.md index 414b213..1c6427f 100644 --- a/docs/Model/ImportedAPIStatusFAILED.md +++ b/docs/Model/CommentLogType.md @@ -1,4 +1,4 @@ -# # ImportedAPIStatusFAILED +# # CommentLogType ## Properties diff --git a/docs/Model/CreateCommentPublic200Response.md b/docs/Model/CreateCommentPublic200Response.md index 65f8c03..1b0e2c8 100644 --- a/docs/Model/CreateCommentPublic200Response.md +++ b/docs/Model/CreateCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment** | [**\FastComments\Client\Model\PublicComment**](PublicComment.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | **module_data** | **array** | Construct a type with a set of properties K of type T | [optional] diff --git a/docs/Model/CreateFeedPost200Response.md b/docs/Model/CreateFeedPost200Response.md index 44e5fc4..0efd172 100644 --- a/docs/Model/CreateFeedPost200Response.md +++ b/docs/Model/CreateFeedPost200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **feed_post** | [**\FastComments\Client\Model\FeedPost**](FeedPost.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/CreateFeedPostPublic200Response.md b/docs/Model/CreateFeedPostPublic200Response.md index a06acf4..a24f4ef 100644 --- a/docs/Model/CreateFeedPostPublic200Response.md +++ b/docs/Model/CreateFeedPostPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **feed_post** | [**\FastComments\Client\Model\FeedPost**](FeedPost.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/CreateUserBadge200Response.md b/docs/Model/CreateUserBadge200Response.md index a88a5ab..d9d44ce 100644 --- a/docs/Model/CreateUserBadge200Response.md +++ b/docs/Model/CreateUserBadge200Response.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_badge** | [**\FastComments\Client\Model\UserBadge**](UserBadge.md) | | +**notes** | **string[]** | | [optional] **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/CustomConfigParameters.md b/docs/Model/CustomConfigParameters.md index 872d3d8..a12e8c1 100644 --- a/docs/Model/CustomConfigParameters.md +++ b/docs/Model/CustomConfigParameters.md @@ -56,6 +56,7 @@ Name | Type | Description | Notes **no_styles** | **bool** | | [optional] **page_size** | **int** | | [optional] **readonly** | **bool** | | [optional] +**no_new_root_comments** | **bool** | | [optional] **require_sso** | **bool** | | [optional] **enable_resize_handle** | **bool** | | [optional] **restricted_link_domains** | **string[]** | | [optional] diff --git a/docs/Model/DeleteComment200Response.md b/docs/Model/DeleteComment200Response.md index c1d2662..53ce61b 100644 --- a/docs/Model/DeleteComment200Response.md +++ b/docs/Model/DeleteComment200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**\FastComments\Client\Model\DeleteCommentAction**](DeleteCommentAction.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/DeleteCommentPublic200Response.md b/docs/Model/DeleteCommentPublic200Response.md index c29e651..61ed194 100644 --- a/docs/Model/DeleteCommentPublic200Response.md +++ b/docs/Model/DeleteCommentPublic200Response.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment** | [**\FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId**](PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md) | | [optional] +**comment** | [**\FastComments\Client\Model\DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] **hard_removed** | **bool** | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/DeleteCommentResult.md b/docs/Model/DeleteCommentResult.md index b95a544..3333b22 100644 --- a/docs/Model/DeleteCommentResult.md +++ b/docs/Model/DeleteCommentResult.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**\FastComments\Client\Model\DeleteCommentAction**](DeleteCommentAction.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DeleteCommentVote200Response.md b/docs/Model/DeleteCommentVote200Response.md index 905d4ec..7a3056e 100644 --- a/docs/Model/DeleteCommentVote200Response.md +++ b/docs/Model/DeleteCommentVote200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **was_pending_vote** | **bool** | | [optional] **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/DeleteFeedPostPublic200Response.md b/docs/Model/DeleteFeedPostPublic200Response.md index be0b267..a663062 100644 --- a/docs/Model/DeleteFeedPostPublic200Response.md +++ b/docs/Model/DeleteFeedPostPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md b/docs/Model/DeletedCommentResultComment.md similarity index 86% rename from docs/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md rename to docs/Model/DeletedCommentResultComment.md index 435580e..6bb439a 100644 --- a/docs/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md +++ b/docs/Model/DeletedCommentResultComment.md @@ -1,12 +1,12 @@ -# # PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId +# # DeletedCommentResultComment ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **string** | | [optional] -**commenter_name** | **string** | | -**comment_html** | **string** | | **is_deleted** | **bool** | | [optional] +**comment_html** | **string** | | +**commenter_name** | **string** | | +**user_id** | **string** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/FComment.md b/docs/Model/FComment.md index 7a6d02f..629abda 100644 --- a/docs/Model/FComment.md +++ b/docs/Model/FComment.md @@ -70,7 +70,7 @@ Name | Type | Description | Notes **autoplay_job_id** | **string** | | [optional] **autoplay_delay_ms** | **int** | | [optional] **feedback_ids** | **string[]** | | [optional] -**logs** | **array[]** | | [optional] +**logs** | [**\FastComments\Client\Model\CommentLogEntry[]**](CommentLogEntry.md) | | [optional] **group_ids** | **string[]** | | [optional] **view_count** | **int** | | [optional] **requires_verification** | **bool** | | [optional] diff --git a/docs/Model/FlagComment200Response.md b/docs/Model/FlagComment200Response.md index 17cf52a..f8bc065 100644 --- a/docs/Model/FlagComment200Response.md +++ b/docs/Model/FlagComment200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status_code** | **int** | | [optional] -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **code** | **string** | | **reason** | **string** | | **was_unapproved** | **bool** | | [optional] diff --git a/docs/Model/FlagCommentPublic200Response.md b/docs/Model/FlagCommentPublic200Response.md index 113fb20..a777e9f 100644 --- a/docs/Model/FlagCommentPublic200Response.md +++ b/docs/Model/FlagCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/GetAuditLogs200Response.md b/docs/Model/GetAuditLogs200Response.md index 8c226b8..14b207f 100644 --- a/docs/Model/GetAuditLogs200Response.md +++ b/docs/Model/GetAuditLogs200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | -**audit_logs** | [**\FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[]**](PickTenantAuditLogTenantAuditLogKeys.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | +**audit_logs** | [**\FastComments\Client\Model\APIAuditLog[]**](APIAuditLog.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/GetAuditLogsResponse.md b/docs/Model/GetAuditLogsResponse.md index a67e298..bd9ce8a 100644 --- a/docs/Model/GetAuditLogsResponse.md +++ b/docs/Model/GetAuditLogsResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | -**audit_logs** | [**\FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[]**](PickTenantAuditLogTenantAuditLogKeys.md) | | +**audit_logs** | [**\FastComments\Client\Model\APIAuditLog[]**](APIAuditLog.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetComment200Response.md b/docs/Model/GetComment200Response.md index b5c986e..c2cfafe 100644 --- a/docs/Model/GetComment200Response.md +++ b/docs/Model/GetComment200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | -**comment** | [**\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys**](PickFCommentAPICommentFieldsKeys.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | +**comment** | [**\FastComments\Client\Model\APIComment**](APIComment.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/GetCommentText200Response.md b/docs/Model/GetCommentText200Response.md index 728f2c4..27cf805 100644 --- a/docs/Model/GetCommentText200Response.md +++ b/docs/Model/GetCommentText200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment_text** | **string** | | **sanitized_comment_text** | **string** | | **reason** | **string** | | diff --git a/docs/Model/GetCommentVoteUserNames200Response.md b/docs/Model/GetCommentVoteUserNames200Response.md index 4cd0cbb..7577ef6 100644 --- a/docs/Model/GetCommentVoteUserNames200Response.md +++ b/docs/Model/GetCommentVoteUserNames200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **vote_user_names** | **string[]** | | **has_more** | **bool** | | **reason** | **string** | | diff --git a/docs/Model/GetCommentVoteUserNamesSuccessResponse.md b/docs/Model/GetCommentVoteUserNamesSuccessResponse.md index 29539e4..8a7f1c4 100644 --- a/docs/Model/GetCommentVoteUserNamesSuccessResponse.md +++ b/docs/Model/GetCommentVoteUserNamesSuccessResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **vote_user_names** | **string[]** | | **has_more** | **bool** | | diff --git a/docs/Model/GetComments200Response.md b/docs/Model/GetComments200Response.md index 490710b..82c2b9a 100644 --- a/docs/Model/GetComments200Response.md +++ b/docs/Model/GetComments200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | -**comments** | [**\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[]**](PickFCommentAPICommentFieldsKeys.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | +**comments** | [**\FastComments\Client\Model\APIComment[]**](APIComment.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/GetCommentsPublic200Response.md b/docs/Model/GetCommentsPublic200Response.md index 58268c2..2522320 100644 --- a/docs/Model/GetCommentsPublic200Response.md +++ b/docs/Model/GetCommentsPublic200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status_code** | **int** | | [optional] -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **code** | **string** | | **reason** | **string** | | **translated_warning** | **string** | | [optional] diff --git a/docs/Model/GetEventLog200Response.md b/docs/Model/GetEventLog200Response.md index 50e480e..91764c8 100644 --- a/docs/Model/GetEventLog200Response.md +++ b/docs/Model/GetEventLog200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **events** | [**\FastComments\Client\Model\EventLogEntry[]**](EventLogEntry.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/GetEventLogResponse.md b/docs/Model/GetEventLogResponse.md index 735612a..82136c3 100644 --- a/docs/Model/GetEventLogResponse.md +++ b/docs/Model/GetEventLogResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **events** | [**\FastComments\Client\Model\EventLogEntry[]**](EventLogEntry.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetFeedPosts200Response.md b/docs/Model/GetFeedPosts200Response.md index 9a52f2f..71a6246 100644 --- a/docs/Model/GetFeedPosts200Response.md +++ b/docs/Model/GetFeedPosts200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **feed_posts** | [**\FastComments\Client\Model\FeedPost[]**](FeedPost.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetFeedPostsPublic200Response.md b/docs/Model/GetFeedPostsPublic200Response.md index e946eae..0fef6f1 100644 --- a/docs/Model/GetFeedPostsPublic200Response.md +++ b/docs/Model/GetFeedPostsPublic200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **my_reacts** | **array>** | | [optional] -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **feed_posts** | [**\FastComments\Client\Model\FeedPost[]**](FeedPost.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | [optional] **url_id_ws** | **string** | | [optional] diff --git a/docs/Model/GetFeedPostsStats200Response.md b/docs/Model/GetFeedPostsStats200Response.md index 0278e72..ea41ebb 100644 --- a/docs/Model/GetFeedPostsStats200Response.md +++ b/docs/Model/GetFeedPostsStats200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **stats** | [**array**](FeedPostStats.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetMyNotificationsResponse.md b/docs/Model/GetMyNotificationsResponse.md index 318918d..669a28f 100644 --- a/docs/Model/GetMyNotificationsResponse.md +++ b/docs/Model/GetMyNotificationsResponse.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes **is_subscribed** | **bool** | | **has_more** | **bool** | | **notifications** | [**\FastComments\Client\Model\RenderableUserNotification[]**](RenderableUserNotification.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetPublicFeedPostsResponse.md b/docs/Model/GetPublicFeedPostsResponse.md index 51c4fb4..4734a7c 100644 --- a/docs/Model/GetPublicFeedPostsResponse.md +++ b/docs/Model/GetPublicFeedPostsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **feed_posts** | [**\FastComments\Client\Model\FeedPost[]**](FeedPost.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | [optional] diff --git a/docs/Model/GetUserBadge200Response.md b/docs/Model/GetUserBadge200Response.md index 5c4171d..5e2f9c9 100644 --- a/docs/Model/GetUserBadge200Response.md +++ b/docs/Model/GetUserBadge200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_badge** | [**\FastComments\Client\Model\UserBadge**](UserBadge.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetUserBadgeProgressById200Response.md b/docs/Model/GetUserBadgeProgressById200Response.md index 036c32a..42a0eff 100644 --- a/docs/Model/GetUserBadgeProgressById200Response.md +++ b/docs/Model/GetUserBadgeProgressById200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_badge_progress** | [**\FastComments\Client\Model\UserBadgeProgress**](UserBadgeProgress.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetUserBadgeProgressList200Response.md b/docs/Model/GetUserBadgeProgressList200Response.md index 1f62a04..1022aa2 100644 --- a/docs/Model/GetUserBadgeProgressList200Response.md +++ b/docs/Model/GetUserBadgeProgressList200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_badge_progresses** | [**\FastComments\Client\Model\UserBadgeProgress[]**](UserBadgeProgress.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetUserBadges200Response.md b/docs/Model/GetUserBadges200Response.md index fa9cc07..cc331fc 100644 --- a/docs/Model/GetUserBadges200Response.md +++ b/docs/Model/GetUserBadges200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_badges** | [**\FastComments\Client\Model\UserBadge[]**](UserBadge.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetUserNotificationCount200Response.md b/docs/Model/GetUserNotificationCount200Response.md index 48362af..3d23f89 100644 --- a/docs/Model/GetUserNotificationCount200Response.md +++ b/docs/Model/GetUserNotificationCount200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **count** | **int** | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetUserNotificationCountResponse.md b/docs/Model/GetUserNotificationCountResponse.md index 77c3979..8fa9b42 100644 --- a/docs/Model/GetUserNotificationCountResponse.md +++ b/docs/Model/GetUserNotificationCountResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **count** | **int** | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetUserNotifications200Response.md b/docs/Model/GetUserNotifications200Response.md index 0472aab..d717bfc 100644 --- a/docs/Model/GetUserNotifications200Response.md +++ b/docs/Model/GetUserNotifications200Response.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **is_subscribed** | **bool** | | **has_more** | **bool** | | **notifications** | [**\FastComments\Client\Model\RenderableUserNotification[]**](RenderableUserNotification.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/GetUserPresenceStatuses200Response.md b/docs/Model/GetUserPresenceStatuses200Response.md index 152bebf..fd29283 100644 --- a/docs/Model/GetUserPresenceStatuses200Response.md +++ b/docs/Model/GetUserPresenceStatuses200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_ids_online** | **array** | Construct a type with a set of properties K of type T | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/GetUserPresenceStatusesResponse.md b/docs/Model/GetUserPresenceStatusesResponse.md index 030e460..0c44309 100644 --- a/docs/Model/GetUserPresenceStatusesResponse.md +++ b/docs/Model/GetUserPresenceStatusesResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **user_ids_online** | **array** | Construct a type with a set of properties K of type T | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetUserReactsPublic200Response.md b/docs/Model/GetUserReactsPublic200Response.md index c313431..35dd9df 100644 --- a/docs/Model/GetUserReactsPublic200Response.md +++ b/docs/Model/GetUserReactsPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reacts** | **array>** | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/HeaderState.md b/docs/Model/HeaderState.md index b829862..42585ea 100644 --- a/docs/Model/HeaderState.md +++ b/docs/Model/HeaderState.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **notification_type** | **object** | | **user_id** | **string** | | **user_id_ws** | **string** | | diff --git a/docs/Model/IgnoredResponse.md b/docs/Model/IgnoredResponse.md index 5a3cc0e..9d5c176 100644 --- a/docs/Model/IgnoredResponse.md +++ b/docs/Model/IgnoredResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **note** | **string** | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LockComment200Response.md b/docs/Model/LockComment200Response.md index 63c3d52..a41cd0d 100644 --- a/docs/Model/LockComment200Response.md +++ b/docs/Model/LockComment200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/PatchPageAPIResponse.md b/docs/Model/PatchPageAPIResponse.md index 1ffbb43..a7b5752 100644 --- a/docs/Model/PatchPageAPIResponse.md +++ b/docs/Model/PatchPageAPIResponse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reason** | **string** | | [optional] **code** | **string** | | [optional] +**comments_updated** | **int** | | [optional] **page** | [**\FastComments\Client\Model\APIPage**](APIPage.md) | | [optional] **status** | **string** | | diff --git a/docs/Model/PinComment200Response.md b/docs/Model/PinComment200Response.md index 3826203..667ebd5 100644 --- a/docs/Model/PinComment200Response.md +++ b/docs/Model/PinComment200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **comment_positions** | [**array**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/PubSubComment.md b/docs/Model/PubSubComment.md index ede4d5a..d2f32f8 100644 --- a/docs/Model/PubSubComment.md +++ b/docs/Model/PubSubComment.md @@ -4,48 +4,48 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **string** | | **_id** | **string** | | **tenant_id** | **string** | | -**url_id** | **string** | | -**url** | **string** | | -**page_title** | **string** | | [optional] **user_id** | **string** | | [optional] -**anon_user_id** | **string** | | [optional] +**url_id** | **string** | | **commenter_name** | **string** | | **commenter_link** | **string** | | [optional] -**comment** | **string** | | **comment_html** | **string** | | +**comment** | **string** | | **parent_id** | **string** | | [optional] **votes** | **int** | | [optional] **votes_up** | **int** | | [optional] **votes_down** | **int** | | [optional] -**expire_at** | **\DateTime** | | [optional] **verified** | **bool** | | -**reviewed** | **bool** | | [optional] **avatar_src** | **string** | | [optional] -**is_spam** | **bool** | | [optional] **has_images** | **bool** | | [optional] **has_links** | **bool** | | [optional] -**has_code** | **bool** | | [optional] -**approved** | **bool** | | -**locale** | **string** | | -**is_deleted** | **bool** | | [optional] -**is_deleted_user** | **bool** | | [optional] -**is_banned_user** | **bool** | | [optional] **is_by_admin** | **bool** | | [optional] **is_by_moderator** | **bool** | | [optional] **is_pinned** | **bool** | | [optional] **is_locked** | **bool** | | [optional] -**flag_count** | **int** | | [optional] -**rating** | **float** | | [optional] **display_label** | **string** | | [optional] +**rating** | **float** | | [optional] **badges** | [**\FastComments\Client\Model\CommentUserBadgeInfo[]**](CommentUserBadgeInfo.md) | | [optional] -**domain** | **string** | | [optional] +**view_count** | **int** | | [optional] +**is_deleted** | **bool** | | [optional] +**is_deleted_user** | **bool** | | [optional] +**is_spam** | **bool** | | [optional] +**anon_user_id** | **string** | | [optional] **feedback_ids** | **string[]** | | [optional] +**flag_count** | **int** | | [optional] +**domain** | **string** | | [optional] +**url** | **string** | | +**page_title** | **string** | | [optional] +**expire_at** | **\DateTime** | | [optional] +**reviewed** | **bool** | | [optional] +**has_code** | **bool** | | [optional] +**approved** | **bool** | | +**locale** | **string** | | +**is_banned_user** | **bool** | | [optional] **group_ids** | **string[]** | | [optional] -**view_count** | **int** | | [optional] **is_live** | **bool** | | [optional] **hidden** | **bool** | | [optional] +**date** | **string** | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md b/docs/Model/PubSubCommentBase.md similarity index 95% rename from docs/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md rename to docs/Model/PubSubCommentBase.md index 199f7e7..9ba4bec 100644 --- a/docs/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md +++ b/docs/Model/PubSubCommentBase.md @@ -1,49 +1,48 @@ -# # PickOmitFCommentDatePublicCommentPubSubFieldsKeys +# # PubSubCommentBase ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **mixed** | | **_id** | **string** | | **tenant_id** | **string** | | -**url_id** | **string** | | -**url** | **string** | | -**page_title** | **string** | | [optional] **user_id** | **string** | | [optional] -**anon_user_id** | **string** | | [optional] +**url_id** | **string** | | **commenter_name** | **string** | | **commenter_link** | **string** | | [optional] -**comment** | **string** | | **comment_html** | **string** | | +**comment** | **string** | | **parent_id** | **string** | | [optional] **votes** | **int** | | [optional] **votes_up** | **int** | | [optional] **votes_down** | **int** | | [optional] -**expire_at** | **\DateTime** | | [optional] **verified** | **bool** | | -**reviewed** | **bool** | | [optional] **avatar_src** | **string** | | [optional] -**is_spam** | **bool** | | [optional] **has_images** | **bool** | | [optional] **has_links** | **bool** | | [optional] -**has_code** | **bool** | | [optional] -**approved** | **bool** | | -**locale** | **string** | | -**is_deleted** | **bool** | | [optional] -**is_deleted_user** | **bool** | | [optional] -**is_banned_user** | **bool** | | [optional] **is_by_admin** | **bool** | | [optional] **is_by_moderator** | **bool** | | [optional] **is_pinned** | **bool** | | [optional] **is_locked** | **bool** | | [optional] -**flag_count** | **int** | | [optional] -**rating** | **float** | | [optional] **display_label** | **string** | | [optional] +**rating** | **float** | | [optional] **badges** | [**\FastComments\Client\Model\CommentUserBadgeInfo[]**](CommentUserBadgeInfo.md) | | [optional] -**domain** | **string** | | [optional] +**view_count** | **int** | | [optional] +**is_deleted** | **bool** | | [optional] +**is_deleted_user** | **bool** | | [optional] +**is_spam** | **bool** | | [optional] +**anon_user_id** | **string** | | [optional] **feedback_ids** | **string[]** | | [optional] +**flag_count** | **int** | | [optional] +**domain** | **string** | | [optional] +**url** | **string** | | +**page_title** | **string** | | [optional] +**expire_at** | **\DateTime** | | [optional] +**reviewed** | **bool** | | [optional] +**has_code** | **bool** | | [optional] +**approved** | **bool** | | +**locale** | **string** | | +**is_banned_user** | **bool** | | [optional] **group_ids** | **string[]** | | [optional] -**view_count** | **int** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PublicAPIDeleteCommentResponse.md b/docs/Model/PublicAPIDeleteCommentResponse.md index 8222322..3fa3e2c 100644 --- a/docs/Model/PublicAPIDeleteCommentResponse.md +++ b/docs/Model/PublicAPIDeleteCommentResponse.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment** | [**\FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId**](PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md) | | [optional] +**comment** | [**\FastComments\Client\Model\DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] **hard_removed** | **bool** | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PublicAPIGetCommentTextResponse.md b/docs/Model/PublicAPIGetCommentTextResponse.md index 45aecbf..b184b9b 100644 --- a/docs/Model/PublicAPIGetCommentTextResponse.md +++ b/docs/Model/PublicAPIGetCommentTextResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment_text** | **string** | | **sanitized_comment_text** | **string** | | diff --git a/docs/Model/PublicAPISetCommentTextResponse.md b/docs/Model/PublicAPISetCommentTextResponse.md index d8306e6..ece17f2 100644 --- a/docs/Model/PublicAPISetCommentTextResponse.md +++ b/docs/Model/PublicAPISetCommentTextResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment** | [**\FastComments\Client\Model\PickFCommentApprovedOrCommentHTML**](PickFCommentApprovedOrCommentHTML.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**comment** | [**\FastComments\Client\Model\SetCommentTextResult**](SetCommentTextResult.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PublicComment.md b/docs/Model/PublicComment.md index 2b96b3d..8e57585 100644 --- a/docs/Model/PublicComment.md +++ b/docs/Model/PublicComment.md @@ -4,34 +4,35 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **\DateTime** | | **_id** | **string** | | **user_id** | **string** | | [optional] -**anon_user_id** | **string** | | [optional] **commenter_name** | **string** | | **commenter_link** | **string** | | [optional] **comment_html** | **string** | | **parent_id** | **string** | | [optional] +**date** | **\DateTime** | | **votes** | **int** | | [optional] **votes_up** | **int** | | [optional] **votes_down** | **int** | | [optional] **verified** | **bool** | | **avatar_src** | **string** | | [optional] -**is_spam** | **bool** | | [optional] **has_images** | **bool** | | [optional] -**is_deleted** | **bool** | | [optional] -**is_deleted_user** | **bool** | | [optional] **is_by_admin** | **bool** | | [optional] **is_by_moderator** | **bool** | | [optional] **is_pinned** | **bool** | | [optional] **is_locked** | **bool** | | [optional] -**rating** | **float** | | [optional] **display_label** | **string** | | [optional] +**rating** | **float** | | [optional] **badges** | [**\FastComments\Client\Model\CommentUserBadgeInfo[]**](CommentUserBadgeInfo.md) | | [optional] -**feedback_ids** | **string[]** | | [optional] **view_count** | **int** | | [optional] +**is_deleted** | **bool** | | [optional] +**is_deleted_user** | **bool** | | [optional] +**is_spam** | **bool** | | [optional] +**anon_user_id** | **string** | | [optional] +**feedback_ids** | **string[]** | | [optional] **requires_verification** | **bool** | | [optional] **edit_key** | **string** | | [optional] +**approved** | **bool** | | [optional] **is_unread** | **bool** | | [optional] **my_vote_id** | **string** | | [optional] **is_voted_down** | **bool** | | [optional] diff --git a/docs/Model/PickFCommentPublicCommentFieldsKeys.md b/docs/Model/PublicCommentBase.md similarity index 95% rename from docs/Model/PickFCommentPublicCommentFieldsKeys.md rename to docs/Model/PublicCommentBase.md index b161032..5374717 100644 --- a/docs/Model/PickFCommentPublicCommentFieldsKeys.md +++ b/docs/Model/PublicCommentBase.md @@ -1,36 +1,37 @@ -# # PickFCommentPublicCommentFieldsKeys +# # PublicCommentBase ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **\DateTime** | | **_id** | **string** | | **user_id** | **string** | | [optional] -**anon_user_id** | **string** | | [optional] **commenter_name** | **string** | | **commenter_link** | **string** | | [optional] **comment_html** | **string** | | **parent_id** | **string** | | [optional] +**date** | **\DateTime** | | **votes** | **int** | | [optional] **votes_up** | **int** | | [optional] **votes_down** | **int** | | [optional] **verified** | **bool** | | **avatar_src** | **string** | | [optional] -**is_spam** | **bool** | | [optional] **has_images** | **bool** | | [optional] -**is_deleted** | **bool** | | [optional] -**is_deleted_user** | **bool** | | [optional] **is_by_admin** | **bool** | | [optional] **is_by_moderator** | **bool** | | [optional] **is_pinned** | **bool** | | [optional] **is_locked** | **bool** | | [optional] -**rating** | **float** | | [optional] **display_label** | **string** | | [optional] +**rating** | **float** | | [optional] **badges** | [**\FastComments\Client\Model\CommentUserBadgeInfo[]**](CommentUserBadgeInfo.md) | | [optional] -**feedback_ids** | **string[]** | | [optional] **view_count** | **int** | | [optional] +**is_deleted** | **bool** | | [optional] +**is_deleted_user** | **bool** | | [optional] +**is_spam** | **bool** | | [optional] +**anon_user_id** | **string** | | [optional] +**feedback_ids** | **string[]** | | [optional] **requires_verification** | **bool** | | [optional] **edit_key** | **string** | | [optional] +**approved** | **bool** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PublicFeedPostsResponse.md b/docs/Model/PublicFeedPostsResponse.md index e55c70d..9c2744e 100644 --- a/docs/Model/PublicFeedPostsResponse.md +++ b/docs/Model/PublicFeedPostsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **feed_posts** | [**\FastComments\Client\Model\FeedPost[]**](FeedPost.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | [optional] **url_id_ws** | **string** | | [optional] diff --git a/docs/Model/ReactFeedPostPublic200Response.md b/docs/Model/ReactFeedPostPublic200Response.md index a2a1134..5366561 100644 --- a/docs/Model/ReactFeedPostPublic200Response.md +++ b/docs/Model/ReactFeedPostPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **react_type** | **string** | | **is_undo** | **bool** | | **reason** | **string** | | diff --git a/docs/Model/VoteDeleteResponseStatus.md b/docs/Model/RepeatCommentCheckIgnoredReason.md similarity index 87% rename from docs/Model/VoteDeleteResponseStatus.md rename to docs/Model/RepeatCommentCheckIgnoredReason.md index d558356..4121d78 100644 --- a/docs/Model/VoteDeleteResponseStatus.md +++ b/docs/Model/RepeatCommentCheckIgnoredReason.md @@ -1,4 +1,4 @@ -# # VoteDeleteResponseStatus +# # RepeatCommentCheckIgnoredReason ## Properties diff --git a/docs/Model/ImportedAPIStatusSUCCESS.md b/docs/Model/RepeatCommentHandlingAction.md similarity index 88% rename from docs/Model/ImportedAPIStatusSUCCESS.md rename to docs/Model/RepeatCommentHandlingAction.md index 317a0df..92f98f6 100644 --- a/docs/Model/ImportedAPIStatusSUCCESS.md +++ b/docs/Model/RepeatCommentHandlingAction.md @@ -1,4 +1,4 @@ -# # ImportedAPIStatusSUCCESS +# # RepeatCommentHandlingAction ## Properties diff --git a/docs/Model/ResetUserNotifications200Response.md b/docs/Model/ResetUserNotifications200Response.md index 2a1f621..8bf52a5 100644 --- a/docs/Model/ResetUserNotifications200Response.md +++ b/docs/Model/ResetUserNotifications200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **code** | **string** | | **reason** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/ResetUserNotificationsResponse.md b/docs/Model/ResetUserNotificationsResponse.md index b31ca9c..d0e25f4 100644 --- a/docs/Model/ResetUserNotificationsResponse.md +++ b/docs/Model/ResetUserNotificationsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **code** | **string** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SaveComment200Response.md b/docs/Model/SaveComment200Response.md index 822ad54..af1083e 100644 --- a/docs/Model/SaveComment200Response.md +++ b/docs/Model/SaveComment200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment** | [**\FastComments\Client\Model\FComment**](FComment.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | **module_data** | **array** | Construct a type with a set of properties K of type T | [optional] diff --git a/docs/Model/SaveCommentResponse.md b/docs/Model/SaveCommentResponse.md index 871c295..23e7323 100644 --- a/docs/Model/SaveCommentResponse.md +++ b/docs/Model/SaveCommentResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment** | [**\FastComments\Client\Model\FComment**](FComment.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | **module_data** | **array** | Construct a type with a set of properties K of type T | [optional] diff --git a/docs/Model/SaveCommentResponseOptimized.md b/docs/Model/SaveCommentResponseOptimized.md index 5540930..9a44ceb 100644 --- a/docs/Model/SaveCommentResponseOptimized.md +++ b/docs/Model/SaveCommentResponseOptimized.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment** | [**\FastComments\Client\Model\PublicComment**](PublicComment.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | **module_data** | **array** | Construct a type with a set of properties K of type T | [optional] diff --git a/docs/Model/SaveCommentsResponseWithPresence.md b/docs/Model/SaveCommentsResponseWithPresence.md index e3e182a..24d6fd2 100644 --- a/docs/Model/SaveCommentsResponseWithPresence.md +++ b/docs/Model/SaveCommentsResponseWithPresence.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment** | [**\FastComments\Client\Model\PublicComment**](PublicComment.md) | | **user** | [**\FastComments\Client\Model\UserSessionInfo**](UserSessionInfo.md) | | **module_data** | **array** | Construct a type with a set of properties K of type T | [optional] diff --git a/docs/Model/SearchUsers200Response.md b/docs/Model/SearchUsers200Response.md index c5ea980..6af62a1 100644 --- a/docs/Model/SearchUsers200Response.md +++ b/docs/Model/SearchUsers200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **users** | [**\FastComments\Client\Model\UserSearchResult[]**](UserSearchResult.md) | | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/SearchUsersResponse.md b/docs/Model/SearchUsersResponse.md index 02ad769..45475bb 100644 --- a/docs/Model/SearchUsersResponse.md +++ b/docs/Model/SearchUsersResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **users** | [**\FastComments\Client\Model\UserSearchResult[]**](UserSearchResult.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SetCommentText200Response.md b/docs/Model/SetCommentText200Response.md index 2824462..c2ddafd 100644 --- a/docs/Model/SetCommentText200Response.md +++ b/docs/Model/SetCommentText200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment** | [**\FastComments\Client\Model\PickFCommentApprovedOrCommentHTML**](PickFCommentApprovedOrCommentHTML.md) | | -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**comment** | [**\FastComments\Client\Model\SetCommentTextResult**](SetCommentTextResult.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/PickFCommentApprovedOrCommentHTML.md b/docs/Model/SetCommentTextResult.md similarity index 88% rename from docs/Model/PickFCommentApprovedOrCommentHTML.md rename to docs/Model/SetCommentTextResult.md index f92c81f..0696773 100644 --- a/docs/Model/PickFCommentApprovedOrCommentHTML.md +++ b/docs/Model/SetCommentTextResult.md @@ -1,10 +1,10 @@ -# # PickFCommentApprovedOrCommentHTML +# # SetCommentTextResult ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment_html** | **string** | | **approved** | **bool** | | +**comment_html** | **string** | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UnBlockCommentPublic200Response.md b/docs/Model/UnBlockCommentPublic200Response.md index b9a870b..52d1bc2 100644 --- a/docs/Model/UnBlockCommentPublic200Response.md +++ b/docs/Model/UnBlockCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment_statuses** | **array** | Construct a type with a set of properties K of type T | **reason** | **string** | | **code** | **string** | | diff --git a/docs/Model/UnblockSuccess.md b/docs/Model/UnblockSuccess.md index a434a5f..3100dac 100644 --- a/docs/Model/UnblockSuccess.md +++ b/docs/Model/UnblockSuccess.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **comment_statuses** | **array** | Construct a type with a set of properties K of type T | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PickAPICommentUpdatableCommentFields.md b/docs/Model/UpdatableCommentParams.md similarity index 78% rename from docs/Model/PickAPICommentUpdatableCommentFields.md rename to docs/Model/UpdatableCommentParams.md index 69508f9..5c9891e 100644 --- a/docs/Model/PickAPICommentUpdatableCommentFields.md +++ b/docs/Model/UpdatableCommentParams.md @@ -1,28 +1,28 @@ -# # PickAPICommentUpdatableCommentFields +# # UpdatableCommentParams ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **\DateTime** | | -**url_id** | **string** | | +**url_id** | **string** | | [optional] **url_id_raw** | **string** | | [optional] -**url** | **string** | | +**url** | **string** | | [optional] **page_title** | **string** | | [optional] **user_id** | **string** | | [optional] **commenter_email** | **string** | | [optional] -**commenter_name** | **string** | | +**commenter_name** | **string** | | [optional] **commenter_link** | **string** | | [optional] -**comment** | **string** | | -**comment_html** | **string** | | +**comment** | **string** | | [optional] +**comment_html** | **string** | | [optional] **parent_id** | **string** | | [optional] +**date** | **float** | | [optional] **local_date_string** | **string** | | [optional] **local_date_hours** | **int** | | [optional] **votes** | **int** | | [optional] **votes_up** | **int** | | [optional] **votes_down** | **int** | | [optional] **expire_at** | **\DateTime** | | [optional] -**verified** | **bool** | | +**verified** | **bool** | | [optional] **verified_date** | **\DateTime** | | [optional] **notification_sent_for_parent** | **bool** | | [optional] **notification_sent_for_parent_tenant** | **bool** | | [optional] @@ -31,7 +31,7 @@ Name | Type | Description | Notes **external_parent_id** | **string** | | [optional] **avatar_src** | **string** | | [optional] **is_spam** | **bool** | | [optional] -**approved** | **bool** | | +**approved** | **bool** | | [optional] **is_deleted** | **bool** | | [optional] **is_deleted_user** | **bool** | | [optional] **is_by_admin** | **bool** | | [optional] @@ -40,7 +40,7 @@ Name | Type | Description | Notes **is_locked** | **bool** | | [optional] **flag_count** | **int** | | [optional] **display_label** | **string** | | [optional] -**meta** | [**\FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta**](PickFCommentAPICommentFieldsKeysMeta.md) | | [optional] +**meta** | [**\FastComments\Client\Model\FCommentMeta**](FCommentMeta.md) | | [optional] **moderation_group_ids** | **string[]** | | [optional] **feedback_ids** | **string[]** | | [optional] diff --git a/docs/Model/UpdateUserBadge200Response.md b/docs/Model/UpdateUserBadge200Response.md index 932e643..e36d92d 100644 --- a/docs/Model/UpdateUserBadge200Response.md +++ b/docs/Model/UpdateUserBadge200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **reason** | **string** | | **code** | **string** | | **secondary_code** | **string** | | [optional] diff --git a/docs/Model/UpdateUserNotificationStatus200Response.md b/docs/Model/UpdateUserNotificationStatus200Response.md index f83ff07..a115558 100644 --- a/docs/Model/UpdateUserNotificationStatus200Response.md +++ b/docs/Model/UpdateUserNotificationStatus200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **matched_count** | **int** | | **modified_count** | **int** | | **note** | **string** | | diff --git a/docs/Model/UserNotificationWriteResponse.md b/docs/Model/UserNotificationWriteResponse.md index 23963fe..6ee7126 100644 --- a/docs/Model/UserNotificationWriteResponse.md +++ b/docs/Model/UserNotificationWriteResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **matched_count** | **int** | | **modified_count** | **int** | | diff --git a/docs/Model/VoteComment200Response.md b/docs/Model/VoteComment200Response.md index 3a556d8..31d31b2 100644 --- a/docs/Model/VoteComment200Response.md +++ b/docs/Model/VoteComment200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **vote_id** | **string** | | [optional] **is_verified** | **bool** | | [optional] **user** | [**\FastComments\Client\Model\VoteResponseUser**](VoteResponseUser.md) | | [optional] diff --git a/docs/Model/VoteDeleteResponse.md b/docs/Model/VoteDeleteResponse.md index 727f7d4..4e9eed9 100644 --- a/docs/Model/VoteDeleteResponse.md +++ b/docs/Model/VoteDeleteResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**\FastComments\Client\Model\VoteDeleteResponseStatus**](VoteDeleteResponseStatus.md) | | +**status** | [**\FastComments\Client\Model\APIStatus**](APIStatus.md) | | **was_pending_vote** | **bool** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/lib/Api/DefaultApi.php b/lib/Api/DefaultApi.php index 9876bee..d7ded36 100644 --- a/lib/Api/DefaultApi.php +++ b/lib/Api/DefaultApi.php @@ -16023,7 +16023,7 @@ public function unFlagCommentRequest($tenant_id, $id, $user_id = null, $anon_use * * @param string $tenant_id tenant_id (required) * @param string $id id (required) - * @param \FastComments\Client\Model\PickAPICommentUpdatableCommentFields $body body (required) + * @param \FastComments\Client\Model\UpdatableCommentParams $updatable_comment_params updatable_comment_params (required) * @param string|null $context_user_id context_user_id (optional) * @param bool|null $do_spam_check do_spam_check (optional) * @param bool|null $is_live is_live (optional) @@ -16033,9 +16033,9 @@ public function unFlagCommentRequest($tenant_id, $id, $user_id = null, $anon_use * @throws \InvalidArgumentException * @return \FastComments\Client\Model\FlagCommentPublic200Response */ - public function updateComment($tenant_id, $id, $body, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) + public function updateComment($tenant_id, $id, $updatable_comment_params, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) { - list($response) = $this->updateCommentWithHttpInfo($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live, $contentType); + list($response) = $this->updateCommentWithHttpInfo($tenant_id, $id, $updatable_comment_params, $context_user_id, $do_spam_check, $is_live, $contentType); return $response; } @@ -16046,7 +16046,7 @@ public function updateComment($tenant_id, $id, $body, $context_user_id = null, $ * * @param string $tenant_id (required) * @param string $id (required) - * @param \FastComments\Client\Model\PickAPICommentUpdatableCommentFields $body (required) + * @param \FastComments\Client\Model\UpdatableCommentParams $updatable_comment_params (required) * @param string|null $context_user_id (optional) * @param bool|null $do_spam_check (optional) * @param bool|null $is_live (optional) @@ -16056,9 +16056,9 @@ public function updateComment($tenant_id, $id, $body, $context_user_id = null, $ * @throws \InvalidArgumentException * @return array of \FastComments\Client\Model\FlagCommentPublic200Response, HTTP status code, HTTP response headers (array of strings) */ - public function updateCommentWithHttpInfo($tenant_id, $id, $body, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) + public function updateCommentWithHttpInfo($tenant_id, $id, $updatable_comment_params, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) { - $request = $this->updateCommentRequest($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live, $contentType); + $request = $this->updateCommentRequest($tenant_id, $id, $updatable_comment_params, $context_user_id, $do_spam_check, $is_live, $contentType); try { $options = $this->createHttpClientOption(); @@ -16176,7 +16176,7 @@ public function updateCommentWithHttpInfo($tenant_id, $id, $body, $context_user_ * * @param string $tenant_id (required) * @param string $id (required) - * @param \FastComments\Client\Model\PickAPICommentUpdatableCommentFields $body (required) + * @param \FastComments\Client\Model\UpdatableCommentParams $updatable_comment_params (required) * @param string|null $context_user_id (optional) * @param bool|null $do_spam_check (optional) * @param bool|null $is_live (optional) @@ -16185,9 +16185,9 @@ public function updateCommentWithHttpInfo($tenant_id, $id, $body, $context_user_ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updateCommentAsync($tenant_id, $id, $body, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) + public function updateCommentAsync($tenant_id, $id, $updatable_comment_params, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) { - return $this->updateCommentAsyncWithHttpInfo($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live, $contentType) + return $this->updateCommentAsyncWithHttpInfo($tenant_id, $id, $updatable_comment_params, $context_user_id, $do_spam_check, $is_live, $contentType) ->then( function ($response) { return $response[0]; @@ -16202,7 +16202,7 @@ function ($response) { * * @param string $tenant_id (required) * @param string $id (required) - * @param \FastComments\Client\Model\PickAPICommentUpdatableCommentFields $body (required) + * @param \FastComments\Client\Model\UpdatableCommentParams $updatable_comment_params (required) * @param string|null $context_user_id (optional) * @param bool|null $do_spam_check (optional) * @param bool|null $is_live (optional) @@ -16211,10 +16211,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updateCommentAsyncWithHttpInfo($tenant_id, $id, $body, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) + public function updateCommentAsyncWithHttpInfo($tenant_id, $id, $updatable_comment_params, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) { $returnType = '\FastComments\Client\Model\FlagCommentPublic200Response'; - $request = $this->updateCommentRequest($tenant_id, $id, $body, $context_user_id, $do_spam_check, $is_live, $contentType); + $request = $this->updateCommentRequest($tenant_id, $id, $updatable_comment_params, $context_user_id, $do_spam_check, $is_live, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -16257,7 +16257,7 @@ function ($exception) { * * @param string $tenant_id (required) * @param string $id (required) - * @param \FastComments\Client\Model\PickAPICommentUpdatableCommentFields $body (required) + * @param \FastComments\Client\Model\UpdatableCommentParams $updatable_comment_params (required) * @param string|null $context_user_id (optional) * @param bool|null $do_spam_check (optional) * @param bool|null $is_live (optional) @@ -16266,7 +16266,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function updateCommentRequest($tenant_id, $id, $body, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) + public function updateCommentRequest($tenant_id, $id, $updatable_comment_params, $context_user_id = null, $do_spam_check = null, $is_live = null, string $contentType = self::contentTypes['updateComment'][0]) { // verify the required parameter 'tenant_id' is set @@ -16283,10 +16283,10 @@ public function updateCommentRequest($tenant_id, $id, $body, $context_user_id = ); } - // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { + // verify the required parameter 'updatable_comment_params' is set + if ($updatable_comment_params === null || (is_array($updatable_comment_params) && count($updatable_comment_params) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling updateComment' + 'Missing the required parameter $updatable_comment_params when calling updateComment' ); } @@ -16356,12 +16356,12 @@ public function updateCommentRequest($tenant_id, $id, $body, $context_user_id = ); // for model (json/xml) - if (isset($body)) { + if (isset($updatable_comment_params)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($body)); + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($updatable_comment_params)); } else { - $httpBody = $body; + $httpBody = $updatable_comment_params; } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/lib/Model/PickTenantAuditLogTenantAuditLogKeys.php b/lib/Model/APIAuditLog.php similarity index 93% rename from lib/Model/PickTenantAuditLogTenantAuditLogKeys.php rename to lib/Model/APIAuditLog.php index 7a2b863..9ce8ba3 100644 --- a/lib/Model/PickTenantAuditLogTenantAuditLogKeys.php +++ b/lib/Model/APIAuditLog.php @@ -1,6 +1,6 @@ */ -class PickTenantAuditLogTenantAuditLogKeys implements ModelInterface, ArrayAccess, \JsonSerializable +class APIAuditLog implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +50,7 @@ class PickTenantAuditLogTenantAuditLogKeys implements ModelInterface, ArrayAcces * * @var string */ - protected static $openAPIModelName = 'Pick_TenantAuditLog.TenantAuditLogKeys_'; + protected static $openAPIModelName = 'APIAuditLog'; /** * Array of property to type mappings. Used for (de)serialization @@ -60,12 +59,12 @@ class PickTenantAuditLogTenantAuditLogKeys implements ModelInterface, ArrayAcces */ protected static $openAPITypes = [ '_id' => 'string', - 'url' => 'string', 'user_id' => 'string', 'username' => 'string', 'resource_name' => 'string', 'crud_type' => 'string', 'from' => 'string', + 'url' => 'string', 'ip' => 'string', 'when' => '\DateTime', 'description' => 'string', @@ -82,12 +81,12 @@ class PickTenantAuditLogTenantAuditLogKeys implements ModelInterface, ArrayAcces */ protected static $openAPIFormats = [ '_id' => null, - 'url' => null, 'user_id' => null, 'username' => null, 'resource_name' => null, 'crud_type' => null, 'from' => null, + 'url' => null, 'ip' => null, 'when' => 'date-time', 'description' => null, @@ -102,17 +101,17 @@ class PickTenantAuditLogTenantAuditLogKeys implements ModelInterface, ArrayAcces */ protected static array $openAPINullables = [ '_id' => false, - 'url' => false, 'user_id' => false, 'username' => false, 'resource_name' => false, 'crud_type' => false, 'from' => false, - 'ip' => false, + 'url' => true, + 'ip' => true, 'when' => false, 'description' => false, 'server_start_date' => false, - 'object_details' => false + 'object_details' => true ]; /** @@ -202,12 +201,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ '_id' => '_id', - 'url' => 'url', 'user_id' => 'userId', 'username' => 'username', 'resource_name' => 'resourceName', 'crud_type' => 'crudType', 'from' => 'from', + 'url' => 'url', 'ip' => 'ip', 'when' => 'when', 'description' => 'description', @@ -222,12 +221,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ '_id' => 'setId', - 'url' => 'setUrl', 'user_id' => 'setUserId', 'username' => 'setUsername', 'resource_name' => 'setResourceName', 'crud_type' => 'setCrudType', 'from' => 'setFrom', + 'url' => 'setUrl', 'ip' => 'setIp', 'when' => 'setWhen', 'description' => 'setDescription', @@ -242,12 +241,12 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ '_id' => 'getId', - 'url' => 'getUrl', 'user_id' => 'getUserId', 'username' => 'getUsername', 'resource_name' => 'getResourceName', 'crud_type' => 'getCrudType', 'from' => 'getFrom', + 'url' => 'getUrl', 'ip' => 'getIp', 'when' => 'getWhen', 'description' => 'getDescription', @@ -351,12 +350,12 @@ public function getFromAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('_id', $data ?? [], null); - $this->setIfExists('url', $data ?? [], null); $this->setIfExists('user_id', $data ?? [], null); $this->setIfExists('username', $data ?? [], null); $this->setIfExists('resource_name', $data ?? [], null); $this->setIfExists('crud_type', $data ?? [], null); $this->setIfExists('from', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); $this->setIfExists('ip', $data ?? [], null); $this->setIfExists('when', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); @@ -460,33 +459,6 @@ public function setId($_id) return $this; } - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url url - * - * @return self - */ - public function setUrl($url) - { - if (is_null($url)) { - throw new \InvalidArgumentException('non-nullable url cannot be null'); - } - $this->container['url'] = $url; - - return $this; - } - /** * Gets user_id * @@ -642,6 +614,40 @@ public function setFrom($from) return $this; } + /** + * Gets url + * + * @return string|null + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string|null $url url + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + array_push($this->openAPINullablesSetToNull, 'url'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('url', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['url'] = $url; + + return $this; + } + /** * Gets ip * @@ -662,7 +668,14 @@ public function getIp() public function setIp($ip) { if (is_null($ip)) { - throw new \InvalidArgumentException('non-nullable ip cannot be null'); + array_push($this->openAPINullablesSetToNull, 'ip'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('ip', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['ip'] = $ip; @@ -770,7 +783,14 @@ public function getObjectDetails() public function setObjectDetails($object_details) { if (is_null($object_details)) { - throw new \InvalidArgumentException('non-nullable object_details cannot be null'); + array_push($this->openAPINullablesSetToNull, 'object_details'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('object_details', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['object_details'] = $object_details; diff --git a/lib/Model/APIComment.php b/lib/Model/APIComment.php new file mode 100644 index 0000000..8a6a3bc --- /dev/null +++ b/lib/Model/APIComment.php @@ -0,0 +1,2393 @@ + + */ +class APIComment implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'APIComment'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + '_id' => 'string', + 'ai_determined_spam' => 'bool', + 'anon_user_id' => 'string', + 'approved' => 'bool', + 'avatar_src' => 'string', + 'badges' => '\FastComments\Client\Model\CommentUserBadgeInfo[]', + 'comment' => 'string', + 'comment_html' => 'string', + 'commenter_email' => 'string', + 'commenter_link' => 'string', + 'commenter_name' => 'string', + 'date' => 'float', + 'display_label' => 'string', + 'domain' => 'string', + 'external_id' => 'string', + 'external_parent_id' => 'string', + 'expire_at' => '\DateTime', + 'feedback_ids' => 'string[]', + 'flag_count' => 'int', + 'from_product_id' => 'int', + 'has_code' => 'bool', + 'has_images' => 'bool', + 'has_links' => 'bool', + 'hash_tags' => '\FastComments\Client\Model\CommentUserHashTagInfo[]', + 'is_by_admin' => 'bool', + 'is_by_moderator' => 'bool', + 'is_deleted' => 'bool', + 'is_deleted_user' => 'bool', + 'is_pinned' => 'bool', + 'is_locked' => 'bool', + 'is_spam' => 'bool', + 'local_date_hours' => 'int', + 'local_date_string' => 'string', + 'locale' => 'string', + 'mentions' => '\FastComments\Client\Model\CommentUserMentionInfo[]', + 'meta' => '\FastComments\Client\Model\FCommentMeta', + 'moderation_group_ids' => 'string[]', + 'notification_sent_for_parent' => 'bool', + 'notification_sent_for_parent_tenant' => 'bool', + 'page_title' => 'string', + 'parent_id' => 'string', + 'rating' => 'float', + 'reviewed' => 'bool', + 'tenant_id' => 'string', + 'url' => 'string', + 'url_id' => 'string', + 'url_id_raw' => 'string', + 'user_id' => 'string', + 'verified' => 'bool', + 'verified_date' => '\DateTime', + 'votes' => 'int', + 'votes_down' => 'int', + 'votes_up' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + '_id' => null, + 'ai_determined_spam' => null, + 'anon_user_id' => null, + 'approved' => null, + 'avatar_src' => null, + 'badges' => null, + 'comment' => null, + 'comment_html' => null, + 'commenter_email' => null, + 'commenter_link' => null, + 'commenter_name' => null, + 'date' => 'double', + 'display_label' => null, + 'domain' => null, + 'external_id' => null, + 'external_parent_id' => null, + 'expire_at' => 'date-time', + 'feedback_ids' => null, + 'flag_count' => 'int32', + 'from_product_id' => 'int32', + 'has_code' => null, + 'has_images' => null, + 'has_links' => null, + 'hash_tags' => null, + 'is_by_admin' => null, + 'is_by_moderator' => null, + 'is_deleted' => null, + 'is_deleted_user' => null, + 'is_pinned' => null, + 'is_locked' => null, + 'is_spam' => null, + 'local_date_hours' => 'int32', + 'local_date_string' => null, + 'locale' => null, + 'mentions' => null, + 'meta' => null, + 'moderation_group_ids' => null, + 'notification_sent_for_parent' => null, + 'notification_sent_for_parent_tenant' => null, + 'page_title' => null, + 'parent_id' => null, + 'rating' => 'double', + 'reviewed' => null, + 'tenant_id' => null, + 'url' => null, + 'url_id' => null, + 'url_id_raw' => null, + 'user_id' => null, + 'verified' => null, + 'verified_date' => 'date-time', + 'votes' => 'int32', + 'votes_down' => 'int32', + 'votes_up' => 'int32' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + '_id' => false, + 'ai_determined_spam' => false, + 'anon_user_id' => true, + 'approved' => false, + 'avatar_src' => true, + 'badges' => true, + 'comment' => false, + 'comment_html' => false, + 'commenter_email' => true, + 'commenter_link' => true, + 'commenter_name' => false, + 'date' => true, + 'display_label' => true, + 'domain' => true, + 'external_id' => false, + 'external_parent_id' => true, + 'expire_at' => true, + 'feedback_ids' => false, + 'flag_count' => true, + 'from_product_id' => false, + 'has_code' => false, + 'has_images' => false, + 'has_links' => false, + 'hash_tags' => false, + 'is_by_admin' => false, + 'is_by_moderator' => false, + 'is_deleted' => false, + 'is_deleted_user' => false, + 'is_pinned' => true, + 'is_locked' => true, + 'is_spam' => false, + 'local_date_hours' => true, + 'local_date_string' => true, + 'locale' => true, + 'mentions' => false, + 'meta' => true, + 'moderation_group_ids' => true, + 'notification_sent_for_parent' => false, + 'notification_sent_for_parent_tenant' => false, + 'page_title' => true, + 'parent_id' => true, + 'rating' => true, + 'reviewed' => false, + 'tenant_id' => false, + 'url' => false, + 'url_id' => false, + 'url_id_raw' => false, + 'user_id' => true, + 'verified' => false, + 'verified_date' => true, + 'votes' => true, + 'votes_down' => true, + 'votes_up' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + '_id' => '_id', + 'ai_determined_spam' => 'aiDeterminedSpam', + 'anon_user_id' => 'anonUserId', + 'approved' => 'approved', + 'avatar_src' => 'avatarSrc', + 'badges' => 'badges', + 'comment' => 'comment', + 'comment_html' => 'commentHTML', + 'commenter_email' => 'commenterEmail', + 'commenter_link' => 'commenterLink', + 'commenter_name' => 'commenterName', + 'date' => 'date', + 'display_label' => 'displayLabel', + 'domain' => 'domain', + 'external_id' => 'externalId', + 'external_parent_id' => 'externalParentId', + 'expire_at' => 'expireAt', + 'feedback_ids' => 'feedbackIds', + 'flag_count' => 'flagCount', + 'from_product_id' => 'fromProductId', + 'has_code' => 'hasCode', + 'has_images' => 'hasImages', + 'has_links' => 'hasLinks', + 'hash_tags' => 'hashTags', + 'is_by_admin' => 'isByAdmin', + 'is_by_moderator' => 'isByModerator', + 'is_deleted' => 'isDeleted', + 'is_deleted_user' => 'isDeletedUser', + 'is_pinned' => 'isPinned', + 'is_locked' => 'isLocked', + 'is_spam' => 'isSpam', + 'local_date_hours' => 'localDateHours', + 'local_date_string' => 'localDateString', + 'locale' => 'locale', + 'mentions' => 'mentions', + 'meta' => 'meta', + 'moderation_group_ids' => 'moderationGroupIds', + 'notification_sent_for_parent' => 'notificationSentForParent', + 'notification_sent_for_parent_tenant' => 'notificationSentForParentTenant', + 'page_title' => 'pageTitle', + 'parent_id' => 'parentId', + 'rating' => 'rating', + 'reviewed' => 'reviewed', + 'tenant_id' => 'tenantId', + 'url' => 'url', + 'url_id' => 'urlId', + 'url_id_raw' => 'urlIdRaw', + 'user_id' => 'userId', + 'verified' => 'verified', + 'verified_date' => 'verifiedDate', + 'votes' => 'votes', + 'votes_down' => 'votesDown', + 'votes_up' => 'votesUp' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + '_id' => 'setId', + 'ai_determined_spam' => 'setAiDeterminedSpam', + 'anon_user_id' => 'setAnonUserId', + 'approved' => 'setApproved', + 'avatar_src' => 'setAvatarSrc', + 'badges' => 'setBadges', + 'comment' => 'setComment', + 'comment_html' => 'setCommentHtml', + 'commenter_email' => 'setCommenterEmail', + 'commenter_link' => 'setCommenterLink', + 'commenter_name' => 'setCommenterName', + 'date' => 'setDate', + 'display_label' => 'setDisplayLabel', + 'domain' => 'setDomain', + 'external_id' => 'setExternalId', + 'external_parent_id' => 'setExternalParentId', + 'expire_at' => 'setExpireAt', + 'feedback_ids' => 'setFeedbackIds', + 'flag_count' => 'setFlagCount', + 'from_product_id' => 'setFromProductId', + 'has_code' => 'setHasCode', + 'has_images' => 'setHasImages', + 'has_links' => 'setHasLinks', + 'hash_tags' => 'setHashTags', + 'is_by_admin' => 'setIsByAdmin', + 'is_by_moderator' => 'setIsByModerator', + 'is_deleted' => 'setIsDeleted', + 'is_deleted_user' => 'setIsDeletedUser', + 'is_pinned' => 'setIsPinned', + 'is_locked' => 'setIsLocked', + 'is_spam' => 'setIsSpam', + 'local_date_hours' => 'setLocalDateHours', + 'local_date_string' => 'setLocalDateString', + 'locale' => 'setLocale', + 'mentions' => 'setMentions', + 'meta' => 'setMeta', + 'moderation_group_ids' => 'setModerationGroupIds', + 'notification_sent_for_parent' => 'setNotificationSentForParent', + 'notification_sent_for_parent_tenant' => 'setNotificationSentForParentTenant', + 'page_title' => 'setPageTitle', + 'parent_id' => 'setParentId', + 'rating' => 'setRating', + 'reviewed' => 'setReviewed', + 'tenant_id' => 'setTenantId', + 'url' => 'setUrl', + 'url_id' => 'setUrlId', + 'url_id_raw' => 'setUrlIdRaw', + 'user_id' => 'setUserId', + 'verified' => 'setVerified', + 'verified_date' => 'setVerifiedDate', + 'votes' => 'setVotes', + 'votes_down' => 'setVotesDown', + 'votes_up' => 'setVotesUp' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + '_id' => 'getId', + 'ai_determined_spam' => 'getAiDeterminedSpam', + 'anon_user_id' => 'getAnonUserId', + 'approved' => 'getApproved', + 'avatar_src' => 'getAvatarSrc', + 'badges' => 'getBadges', + 'comment' => 'getComment', + 'comment_html' => 'getCommentHtml', + 'commenter_email' => 'getCommenterEmail', + 'commenter_link' => 'getCommenterLink', + 'commenter_name' => 'getCommenterName', + 'date' => 'getDate', + 'display_label' => 'getDisplayLabel', + 'domain' => 'getDomain', + 'external_id' => 'getExternalId', + 'external_parent_id' => 'getExternalParentId', + 'expire_at' => 'getExpireAt', + 'feedback_ids' => 'getFeedbackIds', + 'flag_count' => 'getFlagCount', + 'from_product_id' => 'getFromProductId', + 'has_code' => 'getHasCode', + 'has_images' => 'getHasImages', + 'has_links' => 'getHasLinks', + 'hash_tags' => 'getHashTags', + 'is_by_admin' => 'getIsByAdmin', + 'is_by_moderator' => 'getIsByModerator', + 'is_deleted' => 'getIsDeleted', + 'is_deleted_user' => 'getIsDeletedUser', + 'is_pinned' => 'getIsPinned', + 'is_locked' => 'getIsLocked', + 'is_spam' => 'getIsSpam', + 'local_date_hours' => 'getLocalDateHours', + 'local_date_string' => 'getLocalDateString', + 'locale' => 'getLocale', + 'mentions' => 'getMentions', + 'meta' => 'getMeta', + 'moderation_group_ids' => 'getModerationGroupIds', + 'notification_sent_for_parent' => 'getNotificationSentForParent', + 'notification_sent_for_parent_tenant' => 'getNotificationSentForParentTenant', + 'page_title' => 'getPageTitle', + 'parent_id' => 'getParentId', + 'rating' => 'getRating', + 'reviewed' => 'getReviewed', + 'tenant_id' => 'getTenantId', + 'url' => 'getUrl', + 'url_id' => 'getUrlId', + 'url_id_raw' => 'getUrlIdRaw', + 'user_id' => 'getUserId', + 'verified' => 'getVerified', + 'verified_date' => 'getVerifiedDate', + 'votes' => 'getVotes', + 'votes_down' => 'getVotesDown', + 'votes_up' => 'getVotesUp' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('_id', $data ?? [], null); + $this->setIfExists('ai_determined_spam', $data ?? [], null); + $this->setIfExists('anon_user_id', $data ?? [], null); + $this->setIfExists('approved', $data ?? [], null); + $this->setIfExists('avatar_src', $data ?? [], null); + $this->setIfExists('badges', $data ?? [], null); + $this->setIfExists('comment', $data ?? [], null); + $this->setIfExists('comment_html', $data ?? [], null); + $this->setIfExists('commenter_email', $data ?? [], null); + $this->setIfExists('commenter_link', $data ?? [], null); + $this->setIfExists('commenter_name', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); + $this->setIfExists('display_label', $data ?? [], null); + $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('external_id', $data ?? [], null); + $this->setIfExists('external_parent_id', $data ?? [], null); + $this->setIfExists('expire_at', $data ?? [], null); + $this->setIfExists('feedback_ids', $data ?? [], null); + $this->setIfExists('flag_count', $data ?? [], null); + $this->setIfExists('from_product_id', $data ?? [], null); + $this->setIfExists('has_code', $data ?? [], null); + $this->setIfExists('has_images', $data ?? [], null); + $this->setIfExists('has_links', $data ?? [], null); + $this->setIfExists('hash_tags', $data ?? [], null); + $this->setIfExists('is_by_admin', $data ?? [], null); + $this->setIfExists('is_by_moderator', $data ?? [], null); + $this->setIfExists('is_deleted', $data ?? [], null); + $this->setIfExists('is_deleted_user', $data ?? [], null); + $this->setIfExists('is_pinned', $data ?? [], null); + $this->setIfExists('is_locked', $data ?? [], null); + $this->setIfExists('is_spam', $data ?? [], null); + $this->setIfExists('local_date_hours', $data ?? [], null); + $this->setIfExists('local_date_string', $data ?? [], null); + $this->setIfExists('locale', $data ?? [], null); + $this->setIfExists('mentions', $data ?? [], null); + $this->setIfExists('meta', $data ?? [], null); + $this->setIfExists('moderation_group_ids', $data ?? [], null); + $this->setIfExists('notification_sent_for_parent', $data ?? [], null); + $this->setIfExists('notification_sent_for_parent_tenant', $data ?? [], null); + $this->setIfExists('page_title', $data ?? [], null); + $this->setIfExists('parent_id', $data ?? [], null); + $this->setIfExists('rating', $data ?? [], null); + $this->setIfExists('reviewed', $data ?? [], null); + $this->setIfExists('tenant_id', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('url_id', $data ?? [], null); + $this->setIfExists('url_id_raw', $data ?? [], null); + $this->setIfExists('user_id', $data ?? [], null); + $this->setIfExists('verified', $data ?? [], null); + $this->setIfExists('verified_date', $data ?? [], null); + $this->setIfExists('votes', $data ?? [], null); + $this->setIfExists('votes_down', $data ?? [], null); + $this->setIfExists('votes_up', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['_id'] === null) { + $invalidProperties[] = "'_id' can't be null"; + } + if ($this->container['approved'] === null) { + $invalidProperties[] = "'approved' can't be null"; + } + if ($this->container['comment'] === null) { + $invalidProperties[] = "'comment' can't be null"; + } + if ($this->container['comment_html'] === null) { + $invalidProperties[] = "'comment_html' can't be null"; + } + if ($this->container['commenter_name'] === null) { + $invalidProperties[] = "'commenter_name' can't be null"; + } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } + if ($this->container['locale'] === null) { + $invalidProperties[] = "'locale' can't be null"; + } + if ($this->container['tenant_id'] === null) { + $invalidProperties[] = "'tenant_id' can't be null"; + } + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' can't be null"; + } + if ($this->container['url_id'] === null) { + $invalidProperties[] = "'url_id' can't be null"; + } + if ($this->container['verified'] === null) { + $invalidProperties[] = "'verified' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets _id + * + * @return string + */ + public function getId() + { + return $this->container['_id']; + } + + /** + * Sets _id + * + * @param string $_id _id + * + * @return self + */ + public function setId($_id) + { + if (is_null($_id)) { + throw new \InvalidArgumentException('non-nullable _id cannot be null'); + } + $this->container['_id'] = $_id; + + return $this; + } + + /** + * Gets ai_determined_spam + * + * @return bool|null + */ + public function getAiDeterminedSpam() + { + return $this->container['ai_determined_spam']; + } + + /** + * Sets ai_determined_spam + * + * @param bool|null $ai_determined_spam ai_determined_spam + * + * @return self + */ + public function setAiDeterminedSpam($ai_determined_spam) + { + if (is_null($ai_determined_spam)) { + throw new \InvalidArgumentException('non-nullable ai_determined_spam cannot be null'); + } + $this->container['ai_determined_spam'] = $ai_determined_spam; + + return $this; + } + + /** + * Gets anon_user_id + * + * @return string|null + */ + public function getAnonUserId() + { + return $this->container['anon_user_id']; + } + + /** + * Sets anon_user_id + * + * @param string|null $anon_user_id anon_user_id + * + * @return self + */ + public function setAnonUserId($anon_user_id) + { + if (is_null($anon_user_id)) { + array_push($this->openAPINullablesSetToNull, 'anon_user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('anon_user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['anon_user_id'] = $anon_user_id; + + return $this; + } + + /** + * Gets approved + * + * @return bool + */ + public function getApproved() + { + return $this->container['approved']; + } + + /** + * Sets approved + * + * @param bool $approved approved + * + * @return self + */ + public function setApproved($approved) + { + if (is_null($approved)) { + throw new \InvalidArgumentException('non-nullable approved cannot be null'); + } + $this->container['approved'] = $approved; + + return $this; + } + + /** + * Gets avatar_src + * + * @return string|null + */ + public function getAvatarSrc() + { + return $this->container['avatar_src']; + } + + /** + * Sets avatar_src + * + * @param string|null $avatar_src avatar_src + * + * @return self + */ + public function setAvatarSrc($avatar_src) + { + if (is_null($avatar_src)) { + array_push($this->openAPINullablesSetToNull, 'avatar_src'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('avatar_src', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['avatar_src'] = $avatar_src; + + return $this; + } + + /** + * Gets badges + * + * @return \FastComments\Client\Model\CommentUserBadgeInfo[]|null + */ + public function getBadges() + { + return $this->container['badges']; + } + + /** + * Sets badges + * + * @param \FastComments\Client\Model\CommentUserBadgeInfo[]|null $badges badges + * + * @return self + */ + public function setBadges($badges) + { + if (is_null($badges)) { + array_push($this->openAPINullablesSetToNull, 'badges'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('badges', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['badges'] = $badges; + + return $this; + } + + /** + * Gets comment + * + * @return string + */ + public function getComment() + { + return $this->container['comment']; + } + + /** + * Sets comment + * + * @param string $comment comment + * + * @return self + */ + public function setComment($comment) + { + if (is_null($comment)) { + throw new \InvalidArgumentException('non-nullable comment cannot be null'); + } + $this->container['comment'] = $comment; + + return $this; + } + + /** + * Gets comment_html + * + * @return string + */ + public function getCommentHtml() + { + return $this->container['comment_html']; + } + + /** + * Sets comment_html + * + * @param string $comment_html comment_html + * + * @return self + */ + public function setCommentHtml($comment_html) + { + if (is_null($comment_html)) { + throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); + } + $this->container['comment_html'] = $comment_html; + + return $this; + } + + /** + * Gets commenter_email + * + * @return string|null + */ + public function getCommenterEmail() + { + return $this->container['commenter_email']; + } + + /** + * Sets commenter_email + * + * @param string|null $commenter_email commenter_email + * + * @return self + */ + public function setCommenterEmail($commenter_email) + { + if (is_null($commenter_email)) { + array_push($this->openAPINullablesSetToNull, 'commenter_email'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_email', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['commenter_email'] = $commenter_email; + + return $this; + } + + /** + * Gets commenter_link + * + * @return string|null + */ + public function getCommenterLink() + { + return $this->container['commenter_link']; + } + + /** + * Sets commenter_link + * + * @param string|null $commenter_link commenter_link + * + * @return self + */ + public function setCommenterLink($commenter_link) + { + if (is_null($commenter_link)) { + array_push($this->openAPINullablesSetToNull, 'commenter_link'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_link', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['commenter_link'] = $commenter_link; + + return $this; + } + + /** + * Gets commenter_name + * + * @return string + */ + public function getCommenterName() + { + return $this->container['commenter_name']; + } + + /** + * Sets commenter_name + * + * @param string $commenter_name commenter_name + * + * @return self + */ + public function setCommenterName($commenter_name) + { + if (is_null($commenter_name)) { + throw new \InvalidArgumentException('non-nullable commenter_name cannot be null'); + } + $this->container['commenter_name'] = $commenter_name; + + return $this; + } + + /** + * Gets date + * + * @return float + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param float $date date + * + * @return self + */ + public function setDate($date) + { + if (is_null($date)) { + array_push($this->openAPINullablesSetToNull, 'date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets display_label + * + * @return string|null + */ + public function getDisplayLabel() + { + return $this->container['display_label']; + } + + /** + * Sets display_label + * + * @param string|null $display_label display_label + * + * @return self + */ + public function setDisplayLabel($display_label) + { + if (is_null($display_label)) { + array_push($this->openAPINullablesSetToNull, 'display_label'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('display_label', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['display_label'] = $display_label; + + return $this; + } + + /** + * Gets domain + * + * @return string|null + */ + public function getDomain() + { + return $this->container['domain']; + } + + /** + * Sets domain + * + * @param string|null $domain domain + * + * @return self + */ + public function setDomain($domain) + { + if (is_null($domain)) { + array_push($this->openAPINullablesSetToNull, 'domain'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('domain', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['domain'] = $domain; + + return $this; + } + + /** + * Gets external_id + * + * @return string|null + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string|null $external_id external_id + * + * @return self + */ + public function setExternalId($external_id) + { + if (is_null($external_id)) { + throw new \InvalidArgumentException('non-nullable external_id cannot be null'); + } + $this->container['external_id'] = $external_id; + + return $this; + } + + /** + * Gets external_parent_id + * + * @return string|null + */ + public function getExternalParentId() + { + return $this->container['external_parent_id']; + } + + /** + * Sets external_parent_id + * + * @param string|null $external_parent_id external_parent_id + * + * @return self + */ + public function setExternalParentId($external_parent_id) + { + if (is_null($external_parent_id)) { + array_push($this->openAPINullablesSetToNull, 'external_parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('external_parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['external_parent_id'] = $external_parent_id; + + return $this; + } + + /** + * Gets expire_at + * + * @return \DateTime|null + */ + public function getExpireAt() + { + return $this->container['expire_at']; + } + + /** + * Sets expire_at + * + * @param \DateTime|null $expire_at expire_at + * + * @return self + */ + public function setExpireAt($expire_at) + { + if (is_null($expire_at)) { + array_push($this->openAPINullablesSetToNull, 'expire_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expire_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['expire_at'] = $expire_at; + + return $this; + } + + /** + * Gets feedback_ids + * + * @return string[]|null + */ + public function getFeedbackIds() + { + return $this->container['feedback_ids']; + } + + /** + * Sets feedback_ids + * + * @param string[]|null $feedback_ids feedback_ids + * + * @return self + */ + public function setFeedbackIds($feedback_ids) + { + if (is_null($feedback_ids)) { + throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + } + $this->container['feedback_ids'] = $feedback_ids; + + return $this; + } + + /** + * Gets flag_count + * + * @return int|null + */ + public function getFlagCount() + { + return $this->container['flag_count']; + } + + /** + * Sets flag_count + * + * @param int|null $flag_count flag_count + * + * @return self + */ + public function setFlagCount($flag_count) + { + if (is_null($flag_count)) { + array_push($this->openAPINullablesSetToNull, 'flag_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('flag_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['flag_count'] = $flag_count; + + return $this; + } + + /** + * Gets from_product_id + * + * @return int|null + */ + public function getFromProductId() + { + return $this->container['from_product_id']; + } + + /** + * Sets from_product_id + * + * @param int|null $from_product_id from_product_id + * + * @return self + */ + public function setFromProductId($from_product_id) + { + if (is_null($from_product_id)) { + throw new \InvalidArgumentException('non-nullable from_product_id cannot be null'); + } + $this->container['from_product_id'] = $from_product_id; + + return $this; + } + + /** + * Gets has_code + * + * @return bool|null + */ + public function getHasCode() + { + return $this->container['has_code']; + } + + /** + * Sets has_code + * + * @param bool|null $has_code has_code + * + * @return self + */ + public function setHasCode($has_code) + { + if (is_null($has_code)) { + throw new \InvalidArgumentException('non-nullable has_code cannot be null'); + } + $this->container['has_code'] = $has_code; + + return $this; + } + + /** + * Gets has_images + * + * @return bool|null + */ + public function getHasImages() + { + return $this->container['has_images']; + } + + /** + * Sets has_images + * + * @param bool|null $has_images has_images + * + * @return self + */ + public function setHasImages($has_images) + { + if (is_null($has_images)) { + throw new \InvalidArgumentException('non-nullable has_images cannot be null'); + } + $this->container['has_images'] = $has_images; + + return $this; + } + + /** + * Gets has_links + * + * @return bool|null + */ + public function getHasLinks() + { + return $this->container['has_links']; + } + + /** + * Sets has_links + * + * @param bool|null $has_links has_links + * + * @return self + */ + public function setHasLinks($has_links) + { + if (is_null($has_links)) { + throw new \InvalidArgumentException('non-nullable has_links cannot be null'); + } + $this->container['has_links'] = $has_links; + + return $this; + } + + /** + * Gets hash_tags + * + * @return \FastComments\Client\Model\CommentUserHashTagInfo[]|null + */ + public function getHashTags() + { + return $this->container['hash_tags']; + } + + /** + * Sets hash_tags + * + * @param \FastComments\Client\Model\CommentUserHashTagInfo[]|null $hash_tags hash_tags + * + * @return self + */ + public function setHashTags($hash_tags) + { + if (is_null($hash_tags)) { + throw new \InvalidArgumentException('non-nullable hash_tags cannot be null'); + } + $this->container['hash_tags'] = $hash_tags; + + return $this; + } + + /** + * Gets is_by_admin + * + * @return bool|null + */ + public function getIsByAdmin() + { + return $this->container['is_by_admin']; + } + + /** + * Sets is_by_admin + * + * @param bool|null $is_by_admin is_by_admin + * + * @return self + */ + public function setIsByAdmin($is_by_admin) + { + if (is_null($is_by_admin)) { + throw new \InvalidArgumentException('non-nullable is_by_admin cannot be null'); + } + $this->container['is_by_admin'] = $is_by_admin; + + return $this; + } + + /** + * Gets is_by_moderator + * + * @return bool|null + */ + public function getIsByModerator() + { + return $this->container['is_by_moderator']; + } + + /** + * Sets is_by_moderator + * + * @param bool|null $is_by_moderator is_by_moderator + * + * @return self + */ + public function setIsByModerator($is_by_moderator) + { + if (is_null($is_by_moderator)) { + throw new \InvalidArgumentException('non-nullable is_by_moderator cannot be null'); + } + $this->container['is_by_moderator'] = $is_by_moderator; + + return $this; + } + + /** + * Gets is_deleted + * + * @return bool|null + */ + public function getIsDeleted() + { + return $this->container['is_deleted']; + } + + /** + * Sets is_deleted + * + * @param bool|null $is_deleted is_deleted + * + * @return self + */ + public function setIsDeleted($is_deleted) + { + if (is_null($is_deleted)) { + throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); + } + $this->container['is_deleted'] = $is_deleted; + + return $this; + } + + /** + * Gets is_deleted_user + * + * @return bool|null + */ + public function getIsDeletedUser() + { + return $this->container['is_deleted_user']; + } + + /** + * Sets is_deleted_user + * + * @param bool|null $is_deleted_user is_deleted_user + * + * @return self + */ + public function setIsDeletedUser($is_deleted_user) + { + if (is_null($is_deleted_user)) { + throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); + } + $this->container['is_deleted_user'] = $is_deleted_user; + + return $this; + } + + /** + * Gets is_pinned + * + * @return bool|null + */ + public function getIsPinned() + { + return $this->container['is_pinned']; + } + + /** + * Sets is_pinned + * + * @param bool|null $is_pinned is_pinned + * + * @return self + */ + public function setIsPinned($is_pinned) + { + if (is_null($is_pinned)) { + array_push($this->openAPINullablesSetToNull, 'is_pinned'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_pinned', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['is_pinned'] = $is_pinned; + + return $this; + } + + /** + * Gets is_locked + * + * @return bool|null + */ + public function getIsLocked() + { + return $this->container['is_locked']; + } + + /** + * Sets is_locked + * + * @param bool|null $is_locked is_locked + * + * @return self + */ + public function setIsLocked($is_locked) + { + if (is_null($is_locked)) { + array_push($this->openAPINullablesSetToNull, 'is_locked'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_locked', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['is_locked'] = $is_locked; + + return $this; + } + + /** + * Gets is_spam + * + * @return bool|null + */ + public function getIsSpam() + { + return $this->container['is_spam']; + } + + /** + * Sets is_spam + * + * @param bool|null $is_spam is_spam + * + * @return self + */ + public function setIsSpam($is_spam) + { + if (is_null($is_spam)) { + throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); + } + $this->container['is_spam'] = $is_spam; + + return $this; + } + + /** + * Gets local_date_hours + * + * @return int|null + */ + public function getLocalDateHours() + { + return $this->container['local_date_hours']; + } + + /** + * Sets local_date_hours + * + * @param int|null $local_date_hours local_date_hours + * + * @return self + */ + public function setLocalDateHours($local_date_hours) + { + if (is_null($local_date_hours)) { + array_push($this->openAPINullablesSetToNull, 'local_date_hours'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('local_date_hours', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['local_date_hours'] = $local_date_hours; + + return $this; + } + + /** + * Gets local_date_string + * + * @return string|null + */ + public function getLocalDateString() + { + return $this->container['local_date_string']; + } + + /** + * Sets local_date_string + * + * @param string|null $local_date_string local_date_string + * + * @return self + */ + public function setLocalDateString($local_date_string) + { + if (is_null($local_date_string)) { + array_push($this->openAPINullablesSetToNull, 'local_date_string'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('local_date_string', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['local_date_string'] = $local_date_string; + + return $this; + } + + /** + * Gets locale + * + * @return string + */ + public function getLocale() + { + return $this->container['locale']; + } + + /** + * Sets locale + * + * @param string $locale locale + * + * @return self + */ + public function setLocale($locale) + { + if (is_null($locale)) { + array_push($this->openAPINullablesSetToNull, 'locale'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('locale', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['locale'] = $locale; + + return $this; + } + + /** + * Gets mentions + * + * @return \FastComments\Client\Model\CommentUserMentionInfo[]|null + */ + public function getMentions() + { + return $this->container['mentions']; + } + + /** + * Sets mentions + * + * @param \FastComments\Client\Model\CommentUserMentionInfo[]|null $mentions mentions + * + * @return self + */ + public function setMentions($mentions) + { + if (is_null($mentions)) { + throw new \InvalidArgumentException('non-nullable mentions cannot be null'); + } + $this->container['mentions'] = $mentions; + + return $this; + } + + /** + * Gets meta + * + * @return \FastComments\Client\Model\FCommentMeta|null + */ + public function getMeta() + { + return $this->container['meta']; + } + + /** + * Sets meta + * + * @param \FastComments\Client\Model\FCommentMeta|null $meta meta + * + * @return self + */ + public function setMeta($meta) + { + if (is_null($meta)) { + array_push($this->openAPINullablesSetToNull, 'meta'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('meta', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['meta'] = $meta; + + return $this; + } + + /** + * Gets moderation_group_ids + * + * @return string[]|null + */ + public function getModerationGroupIds() + { + return $this->container['moderation_group_ids']; + } + + /** + * Sets moderation_group_ids + * + * @param string[]|null $moderation_group_ids moderation_group_ids + * + * @return self + */ + public function setModerationGroupIds($moderation_group_ids) + { + if (is_null($moderation_group_ids)) { + array_push($this->openAPINullablesSetToNull, 'moderation_group_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('moderation_group_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['moderation_group_ids'] = $moderation_group_ids; + + return $this; + } + + /** + * Gets notification_sent_for_parent + * + * @return bool|null + */ + public function getNotificationSentForParent() + { + return $this->container['notification_sent_for_parent']; + } + + /** + * Sets notification_sent_for_parent + * + * @param bool|null $notification_sent_for_parent notification_sent_for_parent + * + * @return self + */ + public function setNotificationSentForParent($notification_sent_for_parent) + { + if (is_null($notification_sent_for_parent)) { + throw new \InvalidArgumentException('non-nullable notification_sent_for_parent cannot be null'); + } + $this->container['notification_sent_for_parent'] = $notification_sent_for_parent; + + return $this; + } + + /** + * Gets notification_sent_for_parent_tenant + * + * @return bool|null + */ + public function getNotificationSentForParentTenant() + { + return $this->container['notification_sent_for_parent_tenant']; + } + + /** + * Sets notification_sent_for_parent_tenant + * + * @param bool|null $notification_sent_for_parent_tenant notification_sent_for_parent_tenant + * + * @return self + */ + public function setNotificationSentForParentTenant($notification_sent_for_parent_tenant) + { + if (is_null($notification_sent_for_parent_tenant)) { + throw new \InvalidArgumentException('non-nullable notification_sent_for_parent_tenant cannot be null'); + } + $this->container['notification_sent_for_parent_tenant'] = $notification_sent_for_parent_tenant; + + return $this; + } + + /** + * Gets page_title + * + * @return string|null + */ + public function getPageTitle() + { + return $this->container['page_title']; + } + + /** + * Sets page_title + * + * @param string|null $page_title page_title + * + * @return self + */ + public function setPageTitle($page_title) + { + if (is_null($page_title)) { + array_push($this->openAPINullablesSetToNull, 'page_title'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('page_title', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['page_title'] = $page_title; + + return $this; + } + + /** + * Gets parent_id + * + * @return string|null + */ + public function getParentId() + { + return $this->container['parent_id']; + } + + /** + * Sets parent_id + * + * @param string|null $parent_id parent_id + * + * @return self + */ + public function setParentId($parent_id) + { + if (is_null($parent_id)) { + array_push($this->openAPINullablesSetToNull, 'parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['parent_id'] = $parent_id; + + return $this; + } + + /** + * Gets rating + * + * @return float|null + */ + public function getRating() + { + return $this->container['rating']; + } + + /** + * Sets rating + * + * @param float|null $rating rating + * + * @return self + */ + public function setRating($rating) + { + if (is_null($rating)) { + array_push($this->openAPINullablesSetToNull, 'rating'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('rating', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['rating'] = $rating; + + return $this; + } + + /** + * Gets reviewed + * + * @return bool|null + */ + public function getReviewed() + { + return $this->container['reviewed']; + } + + /** + * Sets reviewed + * + * @param bool|null $reviewed reviewed + * + * @return self + */ + public function setReviewed($reviewed) + { + if (is_null($reviewed)) { + throw new \InvalidArgumentException('non-nullable reviewed cannot be null'); + } + $this->container['reviewed'] = $reviewed; + + return $this; + } + + /** + * Gets tenant_id + * + * @return string + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param string $tenant_id tenant_id + * + * @return self + */ + public function setTenantId($tenant_id) + { + if (is_null($tenant_id)) { + throw new \InvalidArgumentException('non-nullable tenant_id cannot be null'); + } + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); + } + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets url_id + * + * @return string + */ + public function getUrlId() + { + return $this->container['url_id']; + } + + /** + * Sets url_id + * + * @param string $url_id url_id + * + * @return self + */ + public function setUrlId($url_id) + { + if (is_null($url_id)) { + throw new \InvalidArgumentException('non-nullable url_id cannot be null'); + } + $this->container['url_id'] = $url_id; + + return $this; + } + + /** + * Gets url_id_raw + * + * @return string|null + */ + public function getUrlIdRaw() + { + return $this->container['url_id_raw']; + } + + /** + * Sets url_id_raw + * + * @param string|null $url_id_raw url_id_raw + * + * @return self + */ + public function setUrlIdRaw($url_id_raw) + { + if (is_null($url_id_raw)) { + throw new \InvalidArgumentException('non-nullable url_id_raw cannot be null'); + } + $this->container['url_id_raw'] = $url_id_raw; + + return $this; + } + + /** + * Gets user_id + * + * @return string|null + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string|null $user_id user_id + * + * @return self + */ + public function setUserId($user_id) + { + if (is_null($user_id)) { + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets verified + * + * @return bool + */ + public function getVerified() + { + return $this->container['verified']; + } + + /** + * Sets verified + * + * @param bool $verified verified + * + * @return self + */ + public function setVerified($verified) + { + if (is_null($verified)) { + throw new \InvalidArgumentException('non-nullable verified cannot be null'); + } + $this->container['verified'] = $verified; + + return $this; + } + + /** + * Gets verified_date + * + * @return \DateTime|null + */ + public function getVerifiedDate() + { + return $this->container['verified_date']; + } + + /** + * Sets verified_date + * + * @param \DateTime|null $verified_date verified_date + * + * @return self + */ + public function setVerifiedDate($verified_date) + { + if (is_null($verified_date)) { + array_push($this->openAPINullablesSetToNull, 'verified_date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('verified_date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['verified_date'] = $verified_date; + + return $this; + } + + /** + * Gets votes + * + * @return int|null + */ + public function getVotes() + { + return $this->container['votes']; + } + + /** + * Sets votes + * + * @param int|null $votes votes + * + * @return self + */ + public function setVotes($votes) + { + if (is_null($votes)) { + array_push($this->openAPINullablesSetToNull, 'votes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes'] = $votes; + + return $this; + } + + /** + * Gets votes_down + * + * @return int|null + */ + public function getVotesDown() + { + return $this->container['votes_down']; + } + + /** + * Sets votes_down + * + * @param int|null $votes_down votes_down + * + * @return self + */ + public function setVotesDown($votes_down) + { + if (is_null($votes_down)) { + array_push($this->openAPINullablesSetToNull, 'votes_down'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_down'] = $votes_down; + + return $this; + } + + /** + * Gets votes_up + * + * @return int|null + */ + public function getVotesUp() + { + return $this->container['votes_up']; + } + + /** + * Sets votes_up + * + * @param int|null $votes_up votes_up + * + * @return self + */ + public function setVotesUp($votes_up) + { + if (is_null($votes_up)) { + array_push($this->openAPINullablesSetToNull, 'votes_up'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_up'] = $votes_up; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/PickFCommentAPICommentFieldsKeys.php b/lib/Model/APICommentBase.php similarity index 80% rename from lib/Model/PickFCommentAPICommentFieldsKeys.php rename to lib/Model/APICommentBase.php index f886e5f..366f9e0 100644 --- a/lib/Model/PickFCommentAPICommentFieldsKeys.php +++ b/lib/Model/APICommentBase.php @@ -1,6 +1,6 @@ */ -class PickFCommentAPICommentFieldsKeys implements ModelInterface, ArrayAccess, \JsonSerializable +class APICommentBase implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +50,7 @@ class PickFCommentAPICommentFieldsKeys implements ModelInterface, ArrayAccess, \ * * @var string */ - protected static $openAPIModelName = 'Pick_FComment.APICommentFieldsKeys_'; + protected static $openAPIModelName = 'APICommentBase'; /** * Array of property to type mappings. Used for (de)serialization @@ -59,59 +58,59 @@ class PickFCommentAPICommentFieldsKeys implements ModelInterface, ArrayAccess, \ * @var string[] */ protected static $openAPITypes = [ - 'date' => '\DateTime', '_id' => 'string', - 'tenant_id' => 'string', - 'url_id' => 'string', - 'url_id_raw' => 'string', - 'url' => 'string', - 'page_title' => 'string', - 'user_id' => 'string', + 'ai_determined_spam' => 'bool', 'anon_user_id' => 'string', - 'commenter_email' => 'string', - 'commenter_name' => 'string', - 'commenter_link' => 'string', + 'approved' => 'bool', + 'avatar_src' => 'string', + 'badges' => '\FastComments\Client\Model\CommentUserBadgeInfo[]', 'comment' => 'string', 'comment_html' => 'string', - 'parent_id' => 'string', - 'local_date_string' => 'string', - 'local_date_hours' => 'int', - 'votes' => 'int', - 'votes_up' => 'int', - 'votes_down' => 'int', - 'expire_at' => '\DateTime', - 'verified' => 'bool', - 'verified_date' => '\DateTime', - 'notification_sent_for_parent' => 'bool', - 'notification_sent_for_parent_tenant' => 'bool', - 'reviewed' => 'bool', + 'commenter_email' => 'string', + 'commenter_link' => 'string', + 'commenter_name' => 'string', + 'date' => '\DateTime', + 'display_label' => 'string', + 'domain' => 'string', 'external_id' => 'string', 'external_parent_id' => 'string', - 'avatar_src' => 'string', - 'is_spam' => 'bool', - 'ai_determined_spam' => 'bool', + 'expire_at' => '\DateTime', + 'feedback_ids' => 'string[]', + 'flag_count' => 'int', + 'from_product_id' => 'int', + 'has_code' => 'bool', 'has_images' => 'bool', 'has_links' => 'bool', - 'has_code' => 'bool', - 'approved' => 'bool', - 'locale' => 'string', - 'is_deleted' => 'bool', - 'is_deleted_user' => 'bool', + 'hash_tags' => '\FastComments\Client\Model\CommentUserHashTagInfo[]', 'is_by_admin' => 'bool', 'is_by_moderator' => 'bool', + 'is_deleted' => 'bool', + 'is_deleted_user' => 'bool', 'is_pinned' => 'bool', 'is_locked' => 'bool', - 'flag_count' => 'int', - 'rating' => 'float', - 'display_label' => 'string', - 'from_product_id' => 'int', - 'meta' => '\FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta', + 'is_spam' => 'bool', + 'local_date_hours' => 'int', + 'local_date_string' => 'string', + 'locale' => 'string', 'mentions' => '\FastComments\Client\Model\CommentUserMentionInfo[]', - 'hash_tags' => '\FastComments\Client\Model\CommentUserHashTagInfo[]', - 'badges' => '\FastComments\Client\Model\CommentUserBadgeInfo[]', - 'domain' => 'string', + 'meta' => '\FastComments\Client\Model\FCommentMeta', 'moderation_group_ids' => 'string[]', - 'feedback_ids' => 'string[]' + 'notification_sent_for_parent' => 'bool', + 'notification_sent_for_parent_tenant' => 'bool', + 'page_title' => 'string', + 'parent_id' => 'string', + 'rating' => 'float', + 'reviewed' => 'bool', + 'tenant_id' => 'string', + 'url' => 'string', + 'url_id' => 'string', + 'url_id_raw' => 'string', + 'user_id' => 'string', + 'verified' => 'bool', + 'verified_date' => '\DateTime', + 'votes' => 'int', + 'votes_down' => 'int', + 'votes_up' => 'int' ]; /** @@ -122,59 +121,59 @@ class PickFCommentAPICommentFieldsKeys implements ModelInterface, ArrayAccess, \ * @psalm-var array */ protected static $openAPIFormats = [ - 'date' => 'date-time', '_id' => null, - 'tenant_id' => null, - 'url_id' => null, - 'url_id_raw' => null, - 'url' => null, - 'page_title' => null, - 'user_id' => null, + 'ai_determined_spam' => null, 'anon_user_id' => null, - 'commenter_email' => null, - 'commenter_name' => null, - 'commenter_link' => null, + 'approved' => null, + 'avatar_src' => null, + 'badges' => null, 'comment' => null, 'comment_html' => null, - 'parent_id' => null, - 'local_date_string' => null, - 'local_date_hours' => 'int32', - 'votes' => 'int32', - 'votes_up' => 'int32', - 'votes_down' => 'int32', - 'expire_at' => 'date-time', - 'verified' => null, - 'verified_date' => 'date-time', - 'notification_sent_for_parent' => null, - 'notification_sent_for_parent_tenant' => null, - 'reviewed' => null, + 'commenter_email' => null, + 'commenter_link' => null, + 'commenter_name' => null, + 'date' => 'date-time', + 'display_label' => null, + 'domain' => null, 'external_id' => null, 'external_parent_id' => null, - 'avatar_src' => null, - 'is_spam' => null, - 'ai_determined_spam' => null, + 'expire_at' => 'date-time', + 'feedback_ids' => null, + 'flag_count' => 'int32', + 'from_product_id' => 'int32', + 'has_code' => null, 'has_images' => null, 'has_links' => null, - 'has_code' => null, - 'approved' => null, - 'locale' => null, - 'is_deleted' => null, - 'is_deleted_user' => null, + 'hash_tags' => null, 'is_by_admin' => null, 'is_by_moderator' => null, + 'is_deleted' => null, + 'is_deleted_user' => null, 'is_pinned' => null, 'is_locked' => null, - 'flag_count' => 'int32', - 'rating' => 'double', - 'display_label' => null, - 'from_product_id' => 'int32', - 'meta' => null, + 'is_spam' => null, + 'local_date_hours' => 'int32', + 'local_date_string' => null, + 'locale' => null, 'mentions' => null, - 'hash_tags' => null, - 'badges' => null, - 'domain' => null, + 'meta' => null, 'moderation_group_ids' => null, - 'feedback_ids' => null + 'notification_sent_for_parent' => null, + 'notification_sent_for_parent_tenant' => null, + 'page_title' => null, + 'parent_id' => null, + 'rating' => 'double', + 'reviewed' => null, + 'tenant_id' => null, + 'url' => null, + 'url_id' => null, + 'url_id_raw' => null, + 'user_id' => null, + 'verified' => null, + 'verified_date' => 'date-time', + 'votes' => 'int32', + 'votes_down' => 'int32', + 'votes_up' => 'int32' ]; /** @@ -183,59 +182,59 @@ class PickFCommentAPICommentFieldsKeys implements ModelInterface, ArrayAccess, \ * @var boolean[] */ protected static array $openAPINullables = [ - 'date' => false, '_id' => false, - 'tenant_id' => false, - 'url_id' => false, - 'url_id_raw' => false, - 'url' => false, - 'page_title' => false, - 'user_id' => false, - 'anon_user_id' => false, - 'commenter_email' => false, - 'commenter_name' => false, - 'commenter_link' => false, + 'ai_determined_spam' => false, + 'anon_user_id' => true, + 'approved' => false, + 'avatar_src' => true, + 'badges' => true, 'comment' => false, 'comment_html' => false, - 'parent_id' => false, - 'local_date_string' => false, - 'local_date_hours' => false, - 'votes' => false, - 'votes_up' => false, - 'votes_down' => false, - 'expire_at' => false, - 'verified' => false, - 'verified_date' => false, - 'notification_sent_for_parent' => false, - 'notification_sent_for_parent_tenant' => false, - 'reviewed' => false, + 'commenter_email' => true, + 'commenter_link' => true, + 'commenter_name' => false, + 'date' => true, + 'display_label' => true, + 'domain' => true, 'external_id' => false, - 'external_parent_id' => false, - 'avatar_src' => false, - 'is_spam' => false, - 'ai_determined_spam' => false, + 'external_parent_id' => true, + 'expire_at' => true, + 'feedback_ids' => false, + 'flag_count' => true, + 'from_product_id' => false, + 'has_code' => false, 'has_images' => false, 'has_links' => false, - 'has_code' => false, - 'approved' => false, - 'locale' => false, - 'is_deleted' => false, - 'is_deleted_user' => false, + 'hash_tags' => false, 'is_by_admin' => false, 'is_by_moderator' => false, - 'is_pinned' => false, - 'is_locked' => false, - 'flag_count' => false, - 'rating' => false, - 'display_label' => false, - 'from_product_id' => false, - 'meta' => false, + 'is_deleted' => false, + 'is_deleted_user' => false, + 'is_pinned' => true, + 'is_locked' => true, + 'is_spam' => false, + 'local_date_hours' => true, + 'local_date_string' => true, + 'locale' => true, 'mentions' => false, - 'hash_tags' => false, - 'badges' => false, - 'domain' => false, - 'moderation_group_ids' => false, - 'feedback_ids' => false + 'meta' => true, + 'moderation_group_ids' => true, + 'notification_sent_for_parent' => false, + 'notification_sent_for_parent_tenant' => false, + 'page_title' => true, + 'parent_id' => true, + 'rating' => true, + 'reviewed' => false, + 'tenant_id' => false, + 'url' => false, + 'url_id' => false, + 'url_id_raw' => false, + 'user_id' => true, + 'verified' => false, + 'verified_date' => true, + 'votes' => true, + 'votes_down' => true, + 'votes_up' => true ]; /** @@ -324,59 +323,59 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'date' => 'date', '_id' => '_id', - 'tenant_id' => 'tenantId', - 'url_id' => 'urlId', - 'url_id_raw' => 'urlIdRaw', - 'url' => 'url', - 'page_title' => 'pageTitle', - 'user_id' => 'userId', + 'ai_determined_spam' => 'aiDeterminedSpam', 'anon_user_id' => 'anonUserId', - 'commenter_email' => 'commenterEmail', - 'commenter_name' => 'commenterName', - 'commenter_link' => 'commenterLink', + 'approved' => 'approved', + 'avatar_src' => 'avatarSrc', + 'badges' => 'badges', 'comment' => 'comment', 'comment_html' => 'commentHTML', - 'parent_id' => 'parentId', - 'local_date_string' => 'localDateString', - 'local_date_hours' => 'localDateHours', - 'votes' => 'votes', - 'votes_up' => 'votesUp', - 'votes_down' => 'votesDown', - 'expire_at' => 'expireAt', - 'verified' => 'verified', - 'verified_date' => 'verifiedDate', - 'notification_sent_for_parent' => 'notificationSentForParent', - 'notification_sent_for_parent_tenant' => 'notificationSentForParentTenant', - 'reviewed' => 'reviewed', + 'commenter_email' => 'commenterEmail', + 'commenter_link' => 'commenterLink', + 'commenter_name' => 'commenterName', + 'date' => 'date', + 'display_label' => 'displayLabel', + 'domain' => 'domain', 'external_id' => 'externalId', 'external_parent_id' => 'externalParentId', - 'avatar_src' => 'avatarSrc', - 'is_spam' => 'isSpam', - 'ai_determined_spam' => 'aiDeterminedSpam', + 'expire_at' => 'expireAt', + 'feedback_ids' => 'feedbackIds', + 'flag_count' => 'flagCount', + 'from_product_id' => 'fromProductId', + 'has_code' => 'hasCode', 'has_images' => 'hasImages', 'has_links' => 'hasLinks', - 'has_code' => 'hasCode', - 'approved' => 'approved', - 'locale' => 'locale', - 'is_deleted' => 'isDeleted', - 'is_deleted_user' => 'isDeletedUser', + 'hash_tags' => 'hashTags', 'is_by_admin' => 'isByAdmin', 'is_by_moderator' => 'isByModerator', + 'is_deleted' => 'isDeleted', + 'is_deleted_user' => 'isDeletedUser', 'is_pinned' => 'isPinned', 'is_locked' => 'isLocked', - 'flag_count' => 'flagCount', - 'rating' => 'rating', - 'display_label' => 'displayLabel', - 'from_product_id' => 'fromProductId', - 'meta' => 'meta', + 'is_spam' => 'isSpam', + 'local_date_hours' => 'localDateHours', + 'local_date_string' => 'localDateString', + 'locale' => 'locale', 'mentions' => 'mentions', - 'hash_tags' => 'hashTags', - 'badges' => 'badges', - 'domain' => 'domain', + 'meta' => 'meta', 'moderation_group_ids' => 'moderationGroupIds', - 'feedback_ids' => 'feedbackIds' + 'notification_sent_for_parent' => 'notificationSentForParent', + 'notification_sent_for_parent_tenant' => 'notificationSentForParentTenant', + 'page_title' => 'pageTitle', + 'parent_id' => 'parentId', + 'rating' => 'rating', + 'reviewed' => 'reviewed', + 'tenant_id' => 'tenantId', + 'url' => 'url', + 'url_id' => 'urlId', + 'url_id_raw' => 'urlIdRaw', + 'user_id' => 'userId', + 'verified' => 'verified', + 'verified_date' => 'verifiedDate', + 'votes' => 'votes', + 'votes_down' => 'votesDown', + 'votes_up' => 'votesUp' ]; /** @@ -385,59 +384,59 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'date' => 'setDate', '_id' => 'setId', - 'tenant_id' => 'setTenantId', - 'url_id' => 'setUrlId', - 'url_id_raw' => 'setUrlIdRaw', - 'url' => 'setUrl', - 'page_title' => 'setPageTitle', - 'user_id' => 'setUserId', + 'ai_determined_spam' => 'setAiDeterminedSpam', 'anon_user_id' => 'setAnonUserId', - 'commenter_email' => 'setCommenterEmail', - 'commenter_name' => 'setCommenterName', - 'commenter_link' => 'setCommenterLink', + 'approved' => 'setApproved', + 'avatar_src' => 'setAvatarSrc', + 'badges' => 'setBadges', 'comment' => 'setComment', 'comment_html' => 'setCommentHtml', - 'parent_id' => 'setParentId', - 'local_date_string' => 'setLocalDateString', - 'local_date_hours' => 'setLocalDateHours', - 'votes' => 'setVotes', - 'votes_up' => 'setVotesUp', - 'votes_down' => 'setVotesDown', - 'expire_at' => 'setExpireAt', - 'verified' => 'setVerified', - 'verified_date' => 'setVerifiedDate', - 'notification_sent_for_parent' => 'setNotificationSentForParent', - 'notification_sent_for_parent_tenant' => 'setNotificationSentForParentTenant', - 'reviewed' => 'setReviewed', + 'commenter_email' => 'setCommenterEmail', + 'commenter_link' => 'setCommenterLink', + 'commenter_name' => 'setCommenterName', + 'date' => 'setDate', + 'display_label' => 'setDisplayLabel', + 'domain' => 'setDomain', 'external_id' => 'setExternalId', 'external_parent_id' => 'setExternalParentId', - 'avatar_src' => 'setAvatarSrc', - 'is_spam' => 'setIsSpam', - 'ai_determined_spam' => 'setAiDeterminedSpam', + 'expire_at' => 'setExpireAt', + 'feedback_ids' => 'setFeedbackIds', + 'flag_count' => 'setFlagCount', + 'from_product_id' => 'setFromProductId', + 'has_code' => 'setHasCode', 'has_images' => 'setHasImages', 'has_links' => 'setHasLinks', - 'has_code' => 'setHasCode', - 'approved' => 'setApproved', - 'locale' => 'setLocale', - 'is_deleted' => 'setIsDeleted', - 'is_deleted_user' => 'setIsDeletedUser', + 'hash_tags' => 'setHashTags', 'is_by_admin' => 'setIsByAdmin', 'is_by_moderator' => 'setIsByModerator', + 'is_deleted' => 'setIsDeleted', + 'is_deleted_user' => 'setIsDeletedUser', 'is_pinned' => 'setIsPinned', 'is_locked' => 'setIsLocked', - 'flag_count' => 'setFlagCount', - 'rating' => 'setRating', - 'display_label' => 'setDisplayLabel', - 'from_product_id' => 'setFromProductId', - 'meta' => 'setMeta', + 'is_spam' => 'setIsSpam', + 'local_date_hours' => 'setLocalDateHours', + 'local_date_string' => 'setLocalDateString', + 'locale' => 'setLocale', 'mentions' => 'setMentions', - 'hash_tags' => 'setHashTags', - 'badges' => 'setBadges', - 'domain' => 'setDomain', + 'meta' => 'setMeta', 'moderation_group_ids' => 'setModerationGroupIds', - 'feedback_ids' => 'setFeedbackIds' + 'notification_sent_for_parent' => 'setNotificationSentForParent', + 'notification_sent_for_parent_tenant' => 'setNotificationSentForParentTenant', + 'page_title' => 'setPageTitle', + 'parent_id' => 'setParentId', + 'rating' => 'setRating', + 'reviewed' => 'setReviewed', + 'tenant_id' => 'setTenantId', + 'url' => 'setUrl', + 'url_id' => 'setUrlId', + 'url_id_raw' => 'setUrlIdRaw', + 'user_id' => 'setUserId', + 'verified' => 'setVerified', + 'verified_date' => 'setVerifiedDate', + 'votes' => 'setVotes', + 'votes_down' => 'setVotesDown', + 'votes_up' => 'setVotesUp' ]; /** @@ -446,59 +445,59 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'date' => 'getDate', '_id' => 'getId', - 'tenant_id' => 'getTenantId', - 'url_id' => 'getUrlId', - 'url_id_raw' => 'getUrlIdRaw', - 'url' => 'getUrl', - 'page_title' => 'getPageTitle', - 'user_id' => 'getUserId', + 'ai_determined_spam' => 'getAiDeterminedSpam', 'anon_user_id' => 'getAnonUserId', - 'commenter_email' => 'getCommenterEmail', - 'commenter_name' => 'getCommenterName', - 'commenter_link' => 'getCommenterLink', + 'approved' => 'getApproved', + 'avatar_src' => 'getAvatarSrc', + 'badges' => 'getBadges', 'comment' => 'getComment', 'comment_html' => 'getCommentHtml', - 'parent_id' => 'getParentId', - 'local_date_string' => 'getLocalDateString', - 'local_date_hours' => 'getLocalDateHours', - 'votes' => 'getVotes', - 'votes_up' => 'getVotesUp', - 'votes_down' => 'getVotesDown', - 'expire_at' => 'getExpireAt', - 'verified' => 'getVerified', - 'verified_date' => 'getVerifiedDate', - 'notification_sent_for_parent' => 'getNotificationSentForParent', - 'notification_sent_for_parent_tenant' => 'getNotificationSentForParentTenant', - 'reviewed' => 'getReviewed', + 'commenter_email' => 'getCommenterEmail', + 'commenter_link' => 'getCommenterLink', + 'commenter_name' => 'getCommenterName', + 'date' => 'getDate', + 'display_label' => 'getDisplayLabel', + 'domain' => 'getDomain', 'external_id' => 'getExternalId', 'external_parent_id' => 'getExternalParentId', - 'avatar_src' => 'getAvatarSrc', - 'is_spam' => 'getIsSpam', - 'ai_determined_spam' => 'getAiDeterminedSpam', + 'expire_at' => 'getExpireAt', + 'feedback_ids' => 'getFeedbackIds', + 'flag_count' => 'getFlagCount', + 'from_product_id' => 'getFromProductId', + 'has_code' => 'getHasCode', 'has_images' => 'getHasImages', 'has_links' => 'getHasLinks', - 'has_code' => 'getHasCode', - 'approved' => 'getApproved', - 'locale' => 'getLocale', - 'is_deleted' => 'getIsDeleted', - 'is_deleted_user' => 'getIsDeletedUser', + 'hash_tags' => 'getHashTags', 'is_by_admin' => 'getIsByAdmin', 'is_by_moderator' => 'getIsByModerator', + 'is_deleted' => 'getIsDeleted', + 'is_deleted_user' => 'getIsDeletedUser', 'is_pinned' => 'getIsPinned', 'is_locked' => 'getIsLocked', - 'flag_count' => 'getFlagCount', - 'rating' => 'getRating', - 'display_label' => 'getDisplayLabel', - 'from_product_id' => 'getFromProductId', - 'meta' => 'getMeta', + 'is_spam' => 'getIsSpam', + 'local_date_hours' => 'getLocalDateHours', + 'local_date_string' => 'getLocalDateString', + 'locale' => 'getLocale', 'mentions' => 'getMentions', - 'hash_tags' => 'getHashTags', - 'badges' => 'getBadges', - 'domain' => 'getDomain', + 'meta' => 'getMeta', 'moderation_group_ids' => 'getModerationGroupIds', - 'feedback_ids' => 'getFeedbackIds' + 'notification_sent_for_parent' => 'getNotificationSentForParent', + 'notification_sent_for_parent_tenant' => 'getNotificationSentForParentTenant', + 'page_title' => 'getPageTitle', + 'parent_id' => 'getParentId', + 'rating' => 'getRating', + 'reviewed' => 'getReviewed', + 'tenant_id' => 'getTenantId', + 'url' => 'getUrl', + 'url_id' => 'getUrlId', + 'url_id_raw' => 'getUrlIdRaw', + 'user_id' => 'getUserId', + 'verified' => 'getVerified', + 'verified_date' => 'getVerifiedDate', + 'votes' => 'getVotes', + 'votes_down' => 'getVotesDown', + 'votes_up' => 'getVotesUp' ]; /** @@ -558,59 +557,59 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('date', $data ?? [], null); $this->setIfExists('_id', $data ?? [], null); - $this->setIfExists('tenant_id', $data ?? [], null); - $this->setIfExists('url_id', $data ?? [], null); - $this->setIfExists('url_id_raw', $data ?? [], null); - $this->setIfExists('url', $data ?? [], null); - $this->setIfExists('page_title', $data ?? [], null); - $this->setIfExists('user_id', $data ?? [], null); + $this->setIfExists('ai_determined_spam', $data ?? [], null); $this->setIfExists('anon_user_id', $data ?? [], null); - $this->setIfExists('commenter_email', $data ?? [], null); - $this->setIfExists('commenter_name', $data ?? [], null); - $this->setIfExists('commenter_link', $data ?? [], null); + $this->setIfExists('approved', $data ?? [], null); + $this->setIfExists('avatar_src', $data ?? [], null); + $this->setIfExists('badges', $data ?? [], null); $this->setIfExists('comment', $data ?? [], null); $this->setIfExists('comment_html', $data ?? [], null); - $this->setIfExists('parent_id', $data ?? [], null); - $this->setIfExists('local_date_string', $data ?? [], null); - $this->setIfExists('local_date_hours', $data ?? [], null); - $this->setIfExists('votes', $data ?? [], null); - $this->setIfExists('votes_up', $data ?? [], null); - $this->setIfExists('votes_down', $data ?? [], null); - $this->setIfExists('expire_at', $data ?? [], null); - $this->setIfExists('verified', $data ?? [], null); - $this->setIfExists('verified_date', $data ?? [], null); - $this->setIfExists('notification_sent_for_parent', $data ?? [], null); - $this->setIfExists('notification_sent_for_parent_tenant', $data ?? [], null); - $this->setIfExists('reviewed', $data ?? [], null); + $this->setIfExists('commenter_email', $data ?? [], null); + $this->setIfExists('commenter_link', $data ?? [], null); + $this->setIfExists('commenter_name', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); + $this->setIfExists('display_label', $data ?? [], null); + $this->setIfExists('domain', $data ?? [], null); $this->setIfExists('external_id', $data ?? [], null); $this->setIfExists('external_parent_id', $data ?? [], null); - $this->setIfExists('avatar_src', $data ?? [], null); - $this->setIfExists('is_spam', $data ?? [], null); - $this->setIfExists('ai_determined_spam', $data ?? [], null); + $this->setIfExists('expire_at', $data ?? [], null); + $this->setIfExists('feedback_ids', $data ?? [], null); + $this->setIfExists('flag_count', $data ?? [], null); + $this->setIfExists('from_product_id', $data ?? [], null); + $this->setIfExists('has_code', $data ?? [], null); $this->setIfExists('has_images', $data ?? [], null); $this->setIfExists('has_links', $data ?? [], null); - $this->setIfExists('has_code', $data ?? [], null); - $this->setIfExists('approved', $data ?? [], null); - $this->setIfExists('locale', $data ?? [], null); - $this->setIfExists('is_deleted', $data ?? [], null); - $this->setIfExists('is_deleted_user', $data ?? [], null); + $this->setIfExists('hash_tags', $data ?? [], null); $this->setIfExists('is_by_admin', $data ?? [], null); $this->setIfExists('is_by_moderator', $data ?? [], null); + $this->setIfExists('is_deleted', $data ?? [], null); + $this->setIfExists('is_deleted_user', $data ?? [], null); $this->setIfExists('is_pinned', $data ?? [], null); $this->setIfExists('is_locked', $data ?? [], null); - $this->setIfExists('flag_count', $data ?? [], null); - $this->setIfExists('rating', $data ?? [], null); - $this->setIfExists('display_label', $data ?? [], null); - $this->setIfExists('from_product_id', $data ?? [], null); - $this->setIfExists('meta', $data ?? [], null); + $this->setIfExists('is_spam', $data ?? [], null); + $this->setIfExists('local_date_hours', $data ?? [], null); + $this->setIfExists('local_date_string', $data ?? [], null); + $this->setIfExists('locale', $data ?? [], null); $this->setIfExists('mentions', $data ?? [], null); - $this->setIfExists('hash_tags', $data ?? [], null); - $this->setIfExists('badges', $data ?? [], null); - $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('meta', $data ?? [], null); $this->setIfExists('moderation_group_ids', $data ?? [], null); - $this->setIfExists('feedback_ids', $data ?? [], null); + $this->setIfExists('notification_sent_for_parent', $data ?? [], null); + $this->setIfExists('notification_sent_for_parent_tenant', $data ?? [], null); + $this->setIfExists('page_title', $data ?? [], null); + $this->setIfExists('parent_id', $data ?? [], null); + $this->setIfExists('rating', $data ?? [], null); + $this->setIfExists('reviewed', $data ?? [], null); + $this->setIfExists('tenant_id', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('url_id', $data ?? [], null); + $this->setIfExists('url_id_raw', $data ?? [], null); + $this->setIfExists('user_id', $data ?? [], null); + $this->setIfExists('verified', $data ?? [], null); + $this->setIfExists('verified_date', $data ?? [], null); + $this->setIfExists('votes', $data ?? [], null); + $this->setIfExists('votes_down', $data ?? [], null); + $this->setIfExists('votes_up', $data ?? [], null); } /** @@ -640,23 +639,11 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { - $invalidProperties[] = "'date' can't be null"; - } if ($this->container['_id'] === null) { $invalidProperties[] = "'_id' can't be null"; } - if ($this->container['tenant_id'] === null) { - $invalidProperties[] = "'tenant_id' can't be null"; - } - if ($this->container['url_id'] === null) { - $invalidProperties[] = "'url_id' can't be null"; - } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } - if ($this->container['commenter_name'] === null) { - $invalidProperties[] = "'commenter_name' can't be null"; + if ($this->container['approved'] === null) { + $invalidProperties[] = "'approved' can't be null"; } if ($this->container['comment'] === null) { $invalidProperties[] = "'comment' can't be null"; @@ -664,15 +651,27 @@ public function listInvalidProperties() if ($this->container['comment_html'] === null) { $invalidProperties[] = "'comment_html' can't be null"; } - if ($this->container['verified'] === null) { - $invalidProperties[] = "'verified' can't be null"; + if ($this->container['commenter_name'] === null) { + $invalidProperties[] = "'commenter_name' can't be null"; } - if ($this->container['approved'] === null) { - $invalidProperties[] = "'approved' can't be null"; + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; } if ($this->container['locale'] === null) { $invalidProperties[] = "'locale' can't be null"; } + if ($this->container['tenant_id'] === null) { + $invalidProperties[] = "'tenant_id' can't be null"; + } + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' can't be null"; + } + if ($this->container['url_id'] === null) { + $invalidProperties[] = "'url_id' can't be null"; + } + if ($this->container['verified'] === null) { + $invalidProperties[] = "'verified' can't be null"; + } return $invalidProperties; } @@ -689,271 +688,306 @@ public function valid() /** - * Gets date + * Gets _id * - * @return \DateTime + * @return string */ - public function getDate() + public function getId() { - return $this->container['date']; + return $this->container['_id']; } /** - * Sets date + * Sets _id * - * @param \DateTime $date date + * @param string $_id _id * * @return self */ - public function setDate($date) + public function setId($_id) { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); + if (is_null($_id)) { + throw new \InvalidArgumentException('non-nullable _id cannot be null'); } - $this->container['date'] = $date; + $this->container['_id'] = $_id; return $this; } /** - * Gets _id + * Gets ai_determined_spam * - * @return string + * @return bool|null */ - public function getId() + public function getAiDeterminedSpam() { - return $this->container['_id']; + return $this->container['ai_determined_spam']; } /** - * Sets _id + * Sets ai_determined_spam * - * @param string $_id _id + * @param bool|null $ai_determined_spam ai_determined_spam * * @return self */ - public function setId($_id) + public function setAiDeterminedSpam($ai_determined_spam) { - if (is_null($_id)) { - throw new \InvalidArgumentException('non-nullable _id cannot be null'); + if (is_null($ai_determined_spam)) { + throw new \InvalidArgumentException('non-nullable ai_determined_spam cannot be null'); } - $this->container['_id'] = $_id; + $this->container['ai_determined_spam'] = $ai_determined_spam; return $this; } /** - * Gets tenant_id + * Gets anon_user_id * - * @return string + * @return string|null */ - public function getTenantId() + public function getAnonUserId() { - return $this->container['tenant_id']; + return $this->container['anon_user_id']; } /** - * Sets tenant_id + * Sets anon_user_id * - * @param string $tenant_id tenant_id + * @param string|null $anon_user_id anon_user_id * * @return self */ - public function setTenantId($tenant_id) + public function setAnonUserId($anon_user_id) { - if (is_null($tenant_id)) { - throw new \InvalidArgumentException('non-nullable tenant_id cannot be null'); + if (is_null($anon_user_id)) { + array_push($this->openAPINullablesSetToNull, 'anon_user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('anon_user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['tenant_id'] = $tenant_id; + $this->container['anon_user_id'] = $anon_user_id; return $this; } /** - * Gets url_id + * Gets approved * - * @return string + * @return bool */ - public function getUrlId() + public function getApproved() { - return $this->container['url_id']; + return $this->container['approved']; } /** - * Sets url_id + * Sets approved * - * @param string $url_id url_id + * @param bool $approved approved * * @return self */ - public function setUrlId($url_id) + public function setApproved($approved) { - if (is_null($url_id)) { - throw new \InvalidArgumentException('non-nullable url_id cannot be null'); + if (is_null($approved)) { + throw new \InvalidArgumentException('non-nullable approved cannot be null'); } - $this->container['url_id'] = $url_id; + $this->container['approved'] = $approved; return $this; } /** - * Gets url_id_raw + * Gets avatar_src * * @return string|null */ - public function getUrlIdRaw() + public function getAvatarSrc() { - return $this->container['url_id_raw']; + return $this->container['avatar_src']; } /** - * Sets url_id_raw + * Sets avatar_src * - * @param string|null $url_id_raw url_id_raw + * @param string|null $avatar_src avatar_src * * @return self */ - public function setUrlIdRaw($url_id_raw) + public function setAvatarSrc($avatar_src) { - if (is_null($url_id_raw)) { - throw new \InvalidArgumentException('non-nullable url_id_raw cannot be null'); + if (is_null($avatar_src)) { + array_push($this->openAPINullablesSetToNull, 'avatar_src'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('avatar_src', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['url_id_raw'] = $url_id_raw; + $this->container['avatar_src'] = $avatar_src; return $this; } /** - * Gets url + * Gets badges * - * @return string + * @return \FastComments\Client\Model\CommentUserBadgeInfo[]|null */ - public function getUrl() + public function getBadges() { - return $this->container['url']; + return $this->container['badges']; } /** - * Sets url + * Sets badges * - * @param string $url url + * @param \FastComments\Client\Model\CommentUserBadgeInfo[]|null $badges badges * * @return self */ - public function setUrl($url) + public function setBadges($badges) { - if (is_null($url)) { - throw new \InvalidArgumentException('non-nullable url cannot be null'); + if (is_null($badges)) { + array_push($this->openAPINullablesSetToNull, 'badges'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('badges', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['url'] = $url; + $this->container['badges'] = $badges; return $this; } /** - * Gets page_title + * Gets comment * - * @return string|null + * @return string */ - public function getPageTitle() + public function getComment() { - return $this->container['page_title']; + return $this->container['comment']; } /** - * Sets page_title + * Sets comment * - * @param string|null $page_title page_title + * @param string $comment comment * * @return self */ - public function setPageTitle($page_title) + public function setComment($comment) { - if (is_null($page_title)) { - throw new \InvalidArgumentException('non-nullable page_title cannot be null'); + if (is_null($comment)) { + throw new \InvalidArgumentException('non-nullable comment cannot be null'); } - $this->container['page_title'] = $page_title; + $this->container['comment'] = $comment; return $this; } /** - * Gets user_id + * Gets comment_html * - * @return string|null + * @return string */ - public function getUserId() + public function getCommentHtml() { - return $this->container['user_id']; + return $this->container['comment_html']; } /** - * Sets user_id + * Sets comment_html * - * @param string|null $user_id user_id + * @param string $comment_html comment_html * * @return self */ - public function setUserId($user_id) + public function setCommentHtml($comment_html) { - if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + if (is_null($comment_html)) { + throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); } - $this->container['user_id'] = $user_id; + $this->container['comment_html'] = $comment_html; return $this; } /** - * Gets anon_user_id + * Gets commenter_email * * @return string|null */ - public function getAnonUserId() + public function getCommenterEmail() { - return $this->container['anon_user_id']; + return $this->container['commenter_email']; } /** - * Sets anon_user_id + * Sets commenter_email * - * @param string|null $anon_user_id anon_user_id + * @param string|null $commenter_email commenter_email * * @return self */ - public function setAnonUserId($anon_user_id) + public function setCommenterEmail($commenter_email) { - if (is_null($anon_user_id)) { - throw new \InvalidArgumentException('non-nullable anon_user_id cannot be null'); + if (is_null($commenter_email)) { + array_push($this->openAPINullablesSetToNull, 'commenter_email'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_email', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['anon_user_id'] = $anon_user_id; + $this->container['commenter_email'] = $commenter_email; return $this; } /** - * Gets commenter_email + * Gets commenter_link * * @return string|null */ - public function getCommenterEmail() + public function getCommenterLink() { - return $this->container['commenter_email']; + return $this->container['commenter_link']; } /** - * Sets commenter_email + * Sets commenter_link * - * @param string|null $commenter_email commenter_email + * @param string|null $commenter_link commenter_link * * @return self */ - public function setCommenterEmail($commenter_email) + public function setCommenterLink($commenter_link) { - if (is_null($commenter_email)) { - throw new \InvalidArgumentException('non-nullable commenter_email cannot be null'); + if (is_null($commenter_link)) { + array_push($this->openAPINullablesSetToNull, 'commenter_link'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_link', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['commenter_email'] = $commenter_email; + $this->container['commenter_link'] = $commenter_link; return $this; } @@ -986,1135 +1020,1282 @@ public function setCommenterName($commenter_name) } /** - * Gets commenter_link + * Gets date * - * @return string|null + * @return \DateTime */ - public function getCommenterLink() + public function getDate() { - return $this->container['commenter_link']; + return $this->container['date']; } /** - * Sets commenter_link + * Sets date * - * @param string|null $commenter_link commenter_link + * @param \DateTime $date date * * @return self */ - public function setCommenterLink($commenter_link) + public function setDate($date) { - if (is_null($commenter_link)) { - throw new \InvalidArgumentException('non-nullable commenter_link cannot be null'); + if (is_null($date)) { + array_push($this->openAPINullablesSetToNull, 'date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['commenter_link'] = $commenter_link; + $this->container['date'] = $date; return $this; } /** - * Gets comment + * Gets display_label * - * @return string + * @return string|null */ - public function getComment() + public function getDisplayLabel() { - return $this->container['comment']; + return $this->container['display_label']; } /** - * Sets comment + * Sets display_label * - * @param string $comment comment + * @param string|null $display_label display_label * * @return self */ - public function setComment($comment) + public function setDisplayLabel($display_label) { - if (is_null($comment)) { - throw new \InvalidArgumentException('non-nullable comment cannot be null'); + if (is_null($display_label)) { + array_push($this->openAPINullablesSetToNull, 'display_label'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('display_label', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['comment'] = $comment; + $this->container['display_label'] = $display_label; return $this; } /** - * Gets comment_html + * Gets domain * - * @return string + * @return string|null */ - public function getCommentHtml() + public function getDomain() { - return $this->container['comment_html']; + return $this->container['domain']; } /** - * Sets comment_html + * Sets domain * - * @param string $comment_html comment_html + * @param string|null $domain domain * * @return self */ - public function setCommentHtml($comment_html) + public function setDomain($domain) { - if (is_null($comment_html)) { - throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); + if (is_null($domain)) { + array_push($this->openAPINullablesSetToNull, 'domain'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('domain', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['comment_html'] = $comment_html; + $this->container['domain'] = $domain; return $this; } /** - * Gets parent_id + * Gets external_id * * @return string|null */ - public function getParentId() + public function getExternalId() { - return $this->container['parent_id']; + return $this->container['external_id']; } /** - * Sets parent_id + * Sets external_id * - * @param string|null $parent_id parent_id + * @param string|null $external_id external_id * * @return self */ - public function setParentId($parent_id) + public function setExternalId($external_id) { - if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); + if (is_null($external_id)) { + throw new \InvalidArgumentException('non-nullable external_id cannot be null'); } - $this->container['parent_id'] = $parent_id; + $this->container['external_id'] = $external_id; return $this; } /** - * Gets local_date_string + * Gets external_parent_id * * @return string|null */ - public function getLocalDateString() + public function getExternalParentId() { - return $this->container['local_date_string']; + return $this->container['external_parent_id']; } /** - * Sets local_date_string + * Sets external_parent_id * - * @param string|null $local_date_string local_date_string + * @param string|null $external_parent_id external_parent_id * * @return self */ - public function setLocalDateString($local_date_string) + public function setExternalParentId($external_parent_id) { - if (is_null($local_date_string)) { - throw new \InvalidArgumentException('non-nullable local_date_string cannot be null'); + if (is_null($external_parent_id)) { + array_push($this->openAPINullablesSetToNull, 'external_parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('external_parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['local_date_string'] = $local_date_string; + $this->container['external_parent_id'] = $external_parent_id; return $this; } /** - * Gets local_date_hours + * Gets expire_at * - * @return int|null + * @return \DateTime|null */ - public function getLocalDateHours() + public function getExpireAt() { - return $this->container['local_date_hours']; + return $this->container['expire_at']; } /** - * Sets local_date_hours + * Sets expire_at * - * @param int|null $local_date_hours local_date_hours + * @param \DateTime|null $expire_at expire_at * * @return self */ - public function setLocalDateHours($local_date_hours) + public function setExpireAt($expire_at) { - if (is_null($local_date_hours)) { - throw new \InvalidArgumentException('non-nullable local_date_hours cannot be null'); + if (is_null($expire_at)) { + array_push($this->openAPINullablesSetToNull, 'expire_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expire_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['local_date_hours'] = $local_date_hours; + $this->container['expire_at'] = $expire_at; return $this; } /** - * Gets votes + * Gets feedback_ids * - * @return int|null + * @return string[]|null */ - public function getVotes() + public function getFeedbackIds() { - return $this->container['votes']; + return $this->container['feedback_ids']; } /** - * Sets votes + * Sets feedback_ids * - * @param int|null $votes votes + * @param string[]|null $feedback_ids feedback_ids * * @return self */ - public function setVotes($votes) + public function setFeedbackIds($feedback_ids) { - if (is_null($votes)) { - throw new \InvalidArgumentException('non-nullable votes cannot be null'); + if (is_null($feedback_ids)) { + throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); } - $this->container['votes'] = $votes; + $this->container['feedback_ids'] = $feedback_ids; return $this; } /** - * Gets votes_up + * Gets flag_count * * @return int|null */ - public function getVotesUp() + public function getFlagCount() { - return $this->container['votes_up']; + return $this->container['flag_count']; } /** - * Sets votes_up + * Sets flag_count * - * @param int|null $votes_up votes_up + * @param int|null $flag_count flag_count * * @return self */ - public function setVotesUp($votes_up) + public function setFlagCount($flag_count) { - if (is_null($votes_up)) { - throw new \InvalidArgumentException('non-nullable votes_up cannot be null'); + if (is_null($flag_count)) { + array_push($this->openAPINullablesSetToNull, 'flag_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('flag_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['votes_up'] = $votes_up; + $this->container['flag_count'] = $flag_count; return $this; } /** - * Gets votes_down + * Gets from_product_id * * @return int|null */ - public function getVotesDown() + public function getFromProductId() { - return $this->container['votes_down']; + return $this->container['from_product_id']; } /** - * Sets votes_down + * Sets from_product_id * - * @param int|null $votes_down votes_down + * @param int|null $from_product_id from_product_id * * @return self */ - public function setVotesDown($votes_down) + public function setFromProductId($from_product_id) { - if (is_null($votes_down)) { - throw new \InvalidArgumentException('non-nullable votes_down cannot be null'); + if (is_null($from_product_id)) { + throw new \InvalidArgumentException('non-nullable from_product_id cannot be null'); } - $this->container['votes_down'] = $votes_down; + $this->container['from_product_id'] = $from_product_id; return $this; } /** - * Gets expire_at + * Gets has_code * - * @return \DateTime|null + * @return bool|null */ - public function getExpireAt() + public function getHasCode() { - return $this->container['expire_at']; + return $this->container['has_code']; } /** - * Sets expire_at + * Sets has_code * - * @param \DateTime|null $expire_at expire_at + * @param bool|null $has_code has_code * * @return self */ - public function setExpireAt($expire_at) + public function setHasCode($has_code) { - if (is_null($expire_at)) { - throw new \InvalidArgumentException('non-nullable expire_at cannot be null'); + if (is_null($has_code)) { + throw new \InvalidArgumentException('non-nullable has_code cannot be null'); } - $this->container['expire_at'] = $expire_at; + $this->container['has_code'] = $has_code; return $this; } /** - * Gets verified + * Gets has_images * - * @return bool + * @return bool|null */ - public function getVerified() + public function getHasImages() { - return $this->container['verified']; + return $this->container['has_images']; } /** - * Sets verified + * Sets has_images * - * @param bool $verified verified + * @param bool|null $has_images has_images * * @return self */ - public function setVerified($verified) + public function setHasImages($has_images) { - if (is_null($verified)) { - throw new \InvalidArgumentException('non-nullable verified cannot be null'); + if (is_null($has_images)) { + throw new \InvalidArgumentException('non-nullable has_images cannot be null'); } - $this->container['verified'] = $verified; + $this->container['has_images'] = $has_images; return $this; } /** - * Gets verified_date + * Gets has_links * - * @return \DateTime|null + * @return bool|null */ - public function getVerifiedDate() + public function getHasLinks() { - return $this->container['verified_date']; + return $this->container['has_links']; } /** - * Sets verified_date + * Sets has_links * - * @param \DateTime|null $verified_date verified_date + * @param bool|null $has_links has_links * * @return self */ - public function setVerifiedDate($verified_date) + public function setHasLinks($has_links) { - if (is_null($verified_date)) { - throw new \InvalidArgumentException('non-nullable verified_date cannot be null'); + if (is_null($has_links)) { + throw new \InvalidArgumentException('non-nullable has_links cannot be null'); } - $this->container['verified_date'] = $verified_date; + $this->container['has_links'] = $has_links; return $this; } /** - * Gets notification_sent_for_parent + * Gets hash_tags * - * @return bool|null + * @return \FastComments\Client\Model\CommentUserHashTagInfo[]|null */ - public function getNotificationSentForParent() + public function getHashTags() { - return $this->container['notification_sent_for_parent']; + return $this->container['hash_tags']; } /** - * Sets notification_sent_for_parent + * Sets hash_tags * - * @param bool|null $notification_sent_for_parent notification_sent_for_parent + * @param \FastComments\Client\Model\CommentUserHashTagInfo[]|null $hash_tags hash_tags * * @return self */ - public function setNotificationSentForParent($notification_sent_for_parent) + public function setHashTags($hash_tags) { - if (is_null($notification_sent_for_parent)) { - throw new \InvalidArgumentException('non-nullable notification_sent_for_parent cannot be null'); + if (is_null($hash_tags)) { + throw new \InvalidArgumentException('non-nullable hash_tags cannot be null'); } - $this->container['notification_sent_for_parent'] = $notification_sent_for_parent; + $this->container['hash_tags'] = $hash_tags; return $this; } /** - * Gets notification_sent_for_parent_tenant + * Gets is_by_admin * * @return bool|null */ - public function getNotificationSentForParentTenant() + public function getIsByAdmin() { - return $this->container['notification_sent_for_parent_tenant']; + return $this->container['is_by_admin']; } /** - * Sets notification_sent_for_parent_tenant + * Sets is_by_admin * - * @param bool|null $notification_sent_for_parent_tenant notification_sent_for_parent_tenant + * @param bool|null $is_by_admin is_by_admin * * @return self */ - public function setNotificationSentForParentTenant($notification_sent_for_parent_tenant) + public function setIsByAdmin($is_by_admin) { - if (is_null($notification_sent_for_parent_tenant)) { - throw new \InvalidArgumentException('non-nullable notification_sent_for_parent_tenant cannot be null'); + if (is_null($is_by_admin)) { + throw new \InvalidArgumentException('non-nullable is_by_admin cannot be null'); } - $this->container['notification_sent_for_parent_tenant'] = $notification_sent_for_parent_tenant; + $this->container['is_by_admin'] = $is_by_admin; return $this; } /** - * Gets reviewed + * Gets is_by_moderator * * @return bool|null */ - public function getReviewed() + public function getIsByModerator() { - return $this->container['reviewed']; + return $this->container['is_by_moderator']; } /** - * Sets reviewed + * Sets is_by_moderator * - * @param bool|null $reviewed reviewed + * @param bool|null $is_by_moderator is_by_moderator * * @return self */ - public function setReviewed($reviewed) + public function setIsByModerator($is_by_moderator) { - if (is_null($reviewed)) { - throw new \InvalidArgumentException('non-nullable reviewed cannot be null'); + if (is_null($is_by_moderator)) { + throw new \InvalidArgumentException('non-nullable is_by_moderator cannot be null'); } - $this->container['reviewed'] = $reviewed; + $this->container['is_by_moderator'] = $is_by_moderator; return $this; } /** - * Gets external_id + * Gets is_deleted * - * @return string|null + * @return bool|null */ - public function getExternalId() + public function getIsDeleted() { - return $this->container['external_id']; + return $this->container['is_deleted']; } /** - * Sets external_id + * Sets is_deleted * - * @param string|null $external_id external_id + * @param bool|null $is_deleted is_deleted * * @return self */ - public function setExternalId($external_id) + public function setIsDeleted($is_deleted) { - if (is_null($external_id)) { - throw new \InvalidArgumentException('non-nullable external_id cannot be null'); + if (is_null($is_deleted)) { + throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); } - $this->container['external_id'] = $external_id; + $this->container['is_deleted'] = $is_deleted; return $this; } /** - * Gets external_parent_id + * Gets is_deleted_user * - * @return string|null + * @return bool|null */ - public function getExternalParentId() + public function getIsDeletedUser() { - return $this->container['external_parent_id']; + return $this->container['is_deleted_user']; } /** - * Sets external_parent_id + * Sets is_deleted_user * - * @param string|null $external_parent_id external_parent_id + * @param bool|null $is_deleted_user is_deleted_user * * @return self */ - public function setExternalParentId($external_parent_id) + public function setIsDeletedUser($is_deleted_user) { - if (is_null($external_parent_id)) { - throw new \InvalidArgumentException('non-nullable external_parent_id cannot be null'); + if (is_null($is_deleted_user)) { + throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); } - $this->container['external_parent_id'] = $external_parent_id; + $this->container['is_deleted_user'] = $is_deleted_user; return $this; } /** - * Gets avatar_src + * Gets is_pinned * - * @return string|null + * @return bool|null */ - public function getAvatarSrc() + public function getIsPinned() { - return $this->container['avatar_src']; + return $this->container['is_pinned']; } /** - * Sets avatar_src + * Sets is_pinned * - * @param string|null $avatar_src avatar_src + * @param bool|null $is_pinned is_pinned * * @return self */ - public function setAvatarSrc($avatar_src) + public function setIsPinned($is_pinned) { - if (is_null($avatar_src)) { - throw new \InvalidArgumentException('non-nullable avatar_src cannot be null'); + if (is_null($is_pinned)) { + array_push($this->openAPINullablesSetToNull, 'is_pinned'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_pinned', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['avatar_src'] = $avatar_src; + $this->container['is_pinned'] = $is_pinned; return $this; } /** - * Gets is_spam + * Gets is_locked * * @return bool|null */ - public function getIsSpam() + public function getIsLocked() { - return $this->container['is_spam']; + return $this->container['is_locked']; } /** - * Sets is_spam + * Sets is_locked * - * @param bool|null $is_spam is_spam + * @param bool|null $is_locked is_locked * * @return self */ - public function setIsSpam($is_spam) + public function setIsLocked($is_locked) { - if (is_null($is_spam)) { - throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); + if (is_null($is_locked)) { + array_push($this->openAPINullablesSetToNull, 'is_locked'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_locked', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_spam'] = $is_spam; + $this->container['is_locked'] = $is_locked; return $this; } /** - * Gets ai_determined_spam + * Gets is_spam * * @return bool|null */ - public function getAiDeterminedSpam() + public function getIsSpam() { - return $this->container['ai_determined_spam']; + return $this->container['is_spam']; } /** - * Sets ai_determined_spam + * Sets is_spam * - * @param bool|null $ai_determined_spam ai_determined_spam + * @param bool|null $is_spam is_spam * * @return self */ - public function setAiDeterminedSpam($ai_determined_spam) + public function setIsSpam($is_spam) { - if (is_null($ai_determined_spam)) { - throw new \InvalidArgumentException('non-nullable ai_determined_spam cannot be null'); + if (is_null($is_spam)) { + throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); } - $this->container['ai_determined_spam'] = $ai_determined_spam; + $this->container['is_spam'] = $is_spam; return $this; } /** - * Gets has_images + * Gets local_date_hours * - * @return bool|null + * @return int|null */ - public function getHasImages() + public function getLocalDateHours() { - return $this->container['has_images']; + return $this->container['local_date_hours']; } /** - * Sets has_images + * Sets local_date_hours * - * @param bool|null $has_images has_images + * @param int|null $local_date_hours local_date_hours * * @return self */ - public function setHasImages($has_images) + public function setLocalDateHours($local_date_hours) { - if (is_null($has_images)) { - throw new \InvalidArgumentException('non-nullable has_images cannot be null'); + if (is_null($local_date_hours)) { + array_push($this->openAPINullablesSetToNull, 'local_date_hours'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('local_date_hours', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['has_images'] = $has_images; + $this->container['local_date_hours'] = $local_date_hours; return $this; } /** - * Gets has_links + * Gets local_date_string * - * @return bool|null + * @return string|null */ - public function getHasLinks() + public function getLocalDateString() { - return $this->container['has_links']; + return $this->container['local_date_string']; } /** - * Sets has_links + * Sets local_date_string * - * @param bool|null $has_links has_links + * @param string|null $local_date_string local_date_string * * @return self */ - public function setHasLinks($has_links) + public function setLocalDateString($local_date_string) { - if (is_null($has_links)) { - throw new \InvalidArgumentException('non-nullable has_links cannot be null'); + if (is_null($local_date_string)) { + array_push($this->openAPINullablesSetToNull, 'local_date_string'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('local_date_string', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['has_links'] = $has_links; + $this->container['local_date_string'] = $local_date_string; return $this; } /** - * Gets has_code + * Gets locale * - * @return bool|null + * @return string */ - public function getHasCode() + public function getLocale() { - return $this->container['has_code']; + return $this->container['locale']; } /** - * Sets has_code + * Sets locale * - * @param bool|null $has_code has_code + * @param string $locale locale * * @return self */ - public function setHasCode($has_code) + public function setLocale($locale) { - if (is_null($has_code)) { - throw new \InvalidArgumentException('non-nullable has_code cannot be null'); + if (is_null($locale)) { + array_push($this->openAPINullablesSetToNull, 'locale'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('locale', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['has_code'] = $has_code; + $this->container['locale'] = $locale; return $this; } /** - * Gets approved + * Gets mentions * - * @return bool + * @return \FastComments\Client\Model\CommentUserMentionInfo[]|null */ - public function getApproved() + public function getMentions() { - return $this->container['approved']; + return $this->container['mentions']; } /** - * Sets approved + * Sets mentions * - * @param bool $approved approved + * @param \FastComments\Client\Model\CommentUserMentionInfo[]|null $mentions mentions * * @return self */ - public function setApproved($approved) + public function setMentions($mentions) { - if (is_null($approved)) { - throw new \InvalidArgumentException('non-nullable approved cannot be null'); + if (is_null($mentions)) { + throw new \InvalidArgumentException('non-nullable mentions cannot be null'); } - $this->container['approved'] = $approved; + $this->container['mentions'] = $mentions; return $this; } /** - * Gets locale + * Gets meta * - * @return string + * @return \FastComments\Client\Model\FCommentMeta|null */ - public function getLocale() + public function getMeta() { - return $this->container['locale']; + return $this->container['meta']; } /** - * Sets locale + * Sets meta * - * @param string $locale locale + * @param \FastComments\Client\Model\FCommentMeta|null $meta meta * * @return self */ - public function setLocale($locale) + public function setMeta($meta) { - if (is_null($locale)) { - throw new \InvalidArgumentException('non-nullable locale cannot be null'); + if (is_null($meta)) { + array_push($this->openAPINullablesSetToNull, 'meta'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('meta', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['locale'] = $locale; + $this->container['meta'] = $meta; return $this; } /** - * Gets is_deleted + * Gets moderation_group_ids * - * @return bool|null + * @return string[]|null */ - public function getIsDeleted() + public function getModerationGroupIds() { - return $this->container['is_deleted']; + return $this->container['moderation_group_ids']; } /** - * Sets is_deleted + * Sets moderation_group_ids * - * @param bool|null $is_deleted is_deleted + * @param string[]|null $moderation_group_ids moderation_group_ids * * @return self */ - public function setIsDeleted($is_deleted) + public function setModerationGroupIds($moderation_group_ids) { - if (is_null($is_deleted)) { - throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); + if (is_null($moderation_group_ids)) { + array_push($this->openAPINullablesSetToNull, 'moderation_group_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('moderation_group_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_deleted'] = $is_deleted; + $this->container['moderation_group_ids'] = $moderation_group_ids; return $this; } /** - * Gets is_deleted_user + * Gets notification_sent_for_parent * * @return bool|null */ - public function getIsDeletedUser() + public function getNotificationSentForParent() { - return $this->container['is_deleted_user']; + return $this->container['notification_sent_for_parent']; } /** - * Sets is_deleted_user + * Sets notification_sent_for_parent * - * @param bool|null $is_deleted_user is_deleted_user + * @param bool|null $notification_sent_for_parent notification_sent_for_parent * * @return self */ - public function setIsDeletedUser($is_deleted_user) + public function setNotificationSentForParent($notification_sent_for_parent) { - if (is_null($is_deleted_user)) { - throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); + if (is_null($notification_sent_for_parent)) { + throw new \InvalidArgumentException('non-nullable notification_sent_for_parent cannot be null'); } - $this->container['is_deleted_user'] = $is_deleted_user; + $this->container['notification_sent_for_parent'] = $notification_sent_for_parent; return $this; } /** - * Gets is_by_admin + * Gets notification_sent_for_parent_tenant * * @return bool|null */ - public function getIsByAdmin() + public function getNotificationSentForParentTenant() { - return $this->container['is_by_admin']; + return $this->container['notification_sent_for_parent_tenant']; } /** - * Sets is_by_admin + * Sets notification_sent_for_parent_tenant * - * @param bool|null $is_by_admin is_by_admin + * @param bool|null $notification_sent_for_parent_tenant notification_sent_for_parent_tenant * * @return self */ - public function setIsByAdmin($is_by_admin) + public function setNotificationSentForParentTenant($notification_sent_for_parent_tenant) { - if (is_null($is_by_admin)) { - throw new \InvalidArgumentException('non-nullable is_by_admin cannot be null'); + if (is_null($notification_sent_for_parent_tenant)) { + throw new \InvalidArgumentException('non-nullable notification_sent_for_parent_tenant cannot be null'); } - $this->container['is_by_admin'] = $is_by_admin; + $this->container['notification_sent_for_parent_tenant'] = $notification_sent_for_parent_tenant; return $this; } /** - * Gets is_by_moderator + * Gets page_title * - * @return bool|null + * @return string|null */ - public function getIsByModerator() + public function getPageTitle() { - return $this->container['is_by_moderator']; + return $this->container['page_title']; } /** - * Sets is_by_moderator + * Sets page_title * - * @param bool|null $is_by_moderator is_by_moderator + * @param string|null $page_title page_title * * @return self */ - public function setIsByModerator($is_by_moderator) + public function setPageTitle($page_title) { - if (is_null($is_by_moderator)) { - throw new \InvalidArgumentException('non-nullable is_by_moderator cannot be null'); + if (is_null($page_title)) { + array_push($this->openAPINullablesSetToNull, 'page_title'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('page_title', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_by_moderator'] = $is_by_moderator; + $this->container['page_title'] = $page_title; return $this; } /** - * Gets is_pinned + * Gets parent_id * - * @return bool|null + * @return string|null */ - public function getIsPinned() + public function getParentId() { - return $this->container['is_pinned']; + return $this->container['parent_id']; } /** - * Sets is_pinned + * Sets parent_id * - * @param bool|null $is_pinned is_pinned + * @param string|null $parent_id parent_id * * @return self */ - public function setIsPinned($is_pinned) + public function setParentId($parent_id) { - if (is_null($is_pinned)) { - throw new \InvalidArgumentException('non-nullable is_pinned cannot be null'); + if (is_null($parent_id)) { + array_push($this->openAPINullablesSetToNull, 'parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_pinned'] = $is_pinned; + $this->container['parent_id'] = $parent_id; return $this; } /** - * Gets is_locked + * Gets rating * - * @return bool|null + * @return float|null */ - public function getIsLocked() + public function getRating() { - return $this->container['is_locked']; + return $this->container['rating']; } /** - * Sets is_locked + * Sets rating * - * @param bool|null $is_locked is_locked + * @param float|null $rating rating * * @return self */ - public function setIsLocked($is_locked) + public function setRating($rating) { - if (is_null($is_locked)) { - throw new \InvalidArgumentException('non-nullable is_locked cannot be null'); + if (is_null($rating)) { + array_push($this->openAPINullablesSetToNull, 'rating'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('rating', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_locked'] = $is_locked; + $this->container['rating'] = $rating; return $this; } /** - * Gets flag_count + * Gets reviewed * - * @return int|null + * @return bool|null */ - public function getFlagCount() + public function getReviewed() { - return $this->container['flag_count']; + return $this->container['reviewed']; } /** - * Sets flag_count + * Sets reviewed * - * @param int|null $flag_count flag_count + * @param bool|null $reviewed reviewed * * @return self */ - public function setFlagCount($flag_count) + public function setReviewed($reviewed) { - if (is_null($flag_count)) { - throw new \InvalidArgumentException('non-nullable flag_count cannot be null'); + if (is_null($reviewed)) { + throw new \InvalidArgumentException('non-nullable reviewed cannot be null'); } - $this->container['flag_count'] = $flag_count; + $this->container['reviewed'] = $reviewed; return $this; } /** - * Gets rating + * Gets tenant_id * - * @return float|null + * @return string */ - public function getRating() + public function getTenantId() { - return $this->container['rating']; + return $this->container['tenant_id']; } /** - * Sets rating + * Sets tenant_id * - * @param float|null $rating rating + * @param string $tenant_id tenant_id * * @return self */ - public function setRating($rating) + public function setTenantId($tenant_id) { - if (is_null($rating)) { - throw new \InvalidArgumentException('non-nullable rating cannot be null'); + if (is_null($tenant_id)) { + throw new \InvalidArgumentException('non-nullable tenant_id cannot be null'); } - $this->container['rating'] = $rating; + $this->container['tenant_id'] = $tenant_id; return $this; } /** - * Gets display_label + * Gets url * - * @return string|null + * @return string */ - public function getDisplayLabel() + public function getUrl() { - return $this->container['display_label']; + return $this->container['url']; } /** - * Sets display_label + * Sets url * - * @param string|null $display_label display_label + * @param string $url url * * @return self */ - public function setDisplayLabel($display_label) + public function setUrl($url) { - if (is_null($display_label)) { - throw new \InvalidArgumentException('non-nullable display_label cannot be null'); + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); } - $this->container['display_label'] = $display_label; + $this->container['url'] = $url; return $this; } /** - * Gets from_product_id + * Gets url_id * - * @return int|null + * @return string */ - public function getFromProductId() + public function getUrlId() { - return $this->container['from_product_id']; + return $this->container['url_id']; } /** - * Sets from_product_id + * Sets url_id * - * @param int|null $from_product_id from_product_id + * @param string $url_id url_id * * @return self */ - public function setFromProductId($from_product_id) + public function setUrlId($url_id) { - if (is_null($from_product_id)) { - throw new \InvalidArgumentException('non-nullable from_product_id cannot be null'); + if (is_null($url_id)) { + throw new \InvalidArgumentException('non-nullable url_id cannot be null'); } - $this->container['from_product_id'] = $from_product_id; + $this->container['url_id'] = $url_id; return $this; } /** - * Gets meta + * Gets url_id_raw * - * @return \FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta|null + * @return string|null */ - public function getMeta() + public function getUrlIdRaw() { - return $this->container['meta']; + return $this->container['url_id_raw']; } /** - * Sets meta + * Sets url_id_raw * - * @param \FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta|null $meta meta + * @param string|null $url_id_raw url_id_raw * * @return self */ - public function setMeta($meta) + public function setUrlIdRaw($url_id_raw) { - if (is_null($meta)) { - throw new \InvalidArgumentException('non-nullable meta cannot be null'); + if (is_null($url_id_raw)) { + throw new \InvalidArgumentException('non-nullable url_id_raw cannot be null'); } - $this->container['meta'] = $meta; + $this->container['url_id_raw'] = $url_id_raw; return $this; } /** - * Gets mentions + * Gets user_id * - * @return \FastComments\Client\Model\CommentUserMentionInfo[]|null + * @return string|null */ - public function getMentions() + public function getUserId() { - return $this->container['mentions']; + return $this->container['user_id']; } /** - * Sets mentions + * Sets user_id * - * @param \FastComments\Client\Model\CommentUserMentionInfo[]|null $mentions mentions + * @param string|null $user_id user_id * * @return self */ - public function setMentions($mentions) + public function setUserId($user_id) { - if (is_null($mentions)) { - throw new \InvalidArgumentException('non-nullable mentions cannot be null'); + if (is_null($user_id)) { + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['mentions'] = $mentions; + $this->container['user_id'] = $user_id; return $this; } /** - * Gets hash_tags + * Gets verified * - * @return \FastComments\Client\Model\CommentUserHashTagInfo[]|null + * @return bool */ - public function getHashTags() + public function getVerified() { - return $this->container['hash_tags']; + return $this->container['verified']; } /** - * Sets hash_tags + * Sets verified * - * @param \FastComments\Client\Model\CommentUserHashTagInfo[]|null $hash_tags hash_tags + * @param bool $verified verified * * @return self */ - public function setHashTags($hash_tags) + public function setVerified($verified) { - if (is_null($hash_tags)) { - throw new \InvalidArgumentException('non-nullable hash_tags cannot be null'); + if (is_null($verified)) { + throw new \InvalidArgumentException('non-nullable verified cannot be null'); } - $this->container['hash_tags'] = $hash_tags; + $this->container['verified'] = $verified; return $this; } /** - * Gets badges + * Gets verified_date * - * @return \FastComments\Client\Model\CommentUserBadgeInfo[]|null + * @return \DateTime|null */ - public function getBadges() + public function getVerifiedDate() { - return $this->container['badges']; + return $this->container['verified_date']; } /** - * Sets badges + * Sets verified_date * - * @param \FastComments\Client\Model\CommentUserBadgeInfo[]|null $badges badges + * @param \DateTime|null $verified_date verified_date * * @return self */ - public function setBadges($badges) + public function setVerifiedDate($verified_date) { - if (is_null($badges)) { - throw new \InvalidArgumentException('non-nullable badges cannot be null'); + if (is_null($verified_date)) { + array_push($this->openAPINullablesSetToNull, 'verified_date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('verified_date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['badges'] = $badges; + $this->container['verified_date'] = $verified_date; return $this; } /** - * Gets domain + * Gets votes * - * @return string|null + * @return int|null */ - public function getDomain() + public function getVotes() { - return $this->container['domain']; + return $this->container['votes']; } /** - * Sets domain + * Sets votes * - * @param string|null $domain domain + * @param int|null $votes votes * * @return self */ - public function setDomain($domain) + public function setVotes($votes) { - if (is_null($domain)) { - throw new \InvalidArgumentException('non-nullable domain cannot be null'); + if (is_null($votes)) { + array_push($this->openAPINullablesSetToNull, 'votes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['domain'] = $domain; + $this->container['votes'] = $votes; return $this; } /** - * Gets moderation_group_ids + * Gets votes_down * - * @return string[]|null + * @return int|null */ - public function getModerationGroupIds() + public function getVotesDown() { - return $this->container['moderation_group_ids']; + return $this->container['votes_down']; } /** - * Sets moderation_group_ids + * Sets votes_down * - * @param string[]|null $moderation_group_ids moderation_group_ids + * @param int|null $votes_down votes_down * * @return self */ - public function setModerationGroupIds($moderation_group_ids) + public function setVotesDown($votes_down) { - if (is_null($moderation_group_ids)) { - throw new \InvalidArgumentException('non-nullable moderation_group_ids cannot be null'); + if (is_null($votes_down)) { + array_push($this->openAPINullablesSetToNull, 'votes_down'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['moderation_group_ids'] = $moderation_group_ids; + $this->container['votes_down'] = $votes_down; return $this; } /** - * Gets feedback_ids + * Gets votes_up * - * @return string[]|null + * @return int|null */ - public function getFeedbackIds() + public function getVotesUp() { - return $this->container['feedback_ids']; + return $this->container['votes_up']; } /** - * Sets feedback_ids + * Sets votes_up * - * @param string[]|null $feedback_ids feedback_ids + * @param int|null $votes_up votes_up * * @return self */ - public function setFeedbackIds($feedback_ids) + public function setVotesUp($votes_up) { - if (is_null($feedback_ids)) { - throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + if (is_null($votes_up)) { + array_push($this->openAPINullablesSetToNull, 'votes_up'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['feedback_ids'] = $feedback_ids; + $this->container['votes_up'] = $votes_up; return $this; } diff --git a/lib/Model/APICreateUserBadgeResponse.php b/lib/Model/APICreateUserBadgeResponse.php index f5a1c45..4894aaf 100644 --- a/lib/Model/APICreateUserBadgeResponse.php +++ b/lib/Model/APICreateUserBadgeResponse.php @@ -59,7 +59,8 @@ class APICreateUserBadgeResponse implements ModelInterface, ArrayAccess, \JsonSe */ protected static $openAPITypes = [ 'status' => '\FastComments\Client\Model\APIStatus', - 'user_badge' => '\FastComments\Client\Model\UserBadge' + 'user_badge' => '\FastComments\Client\Model\UserBadge', + 'notes' => 'string[]' ]; /** @@ -71,7 +72,8 @@ class APICreateUserBadgeResponse implements ModelInterface, ArrayAccess, \JsonSe */ protected static $openAPIFormats = [ 'status' => null, - 'user_badge' => null + 'user_badge' => null, + 'notes' => null ]; /** @@ -81,7 +83,8 @@ class APICreateUserBadgeResponse implements ModelInterface, ArrayAccess, \JsonSe */ protected static array $openAPINullables = [ 'status' => false, - 'user_badge' => false + 'user_badge' => false, + 'notes' => false ]; /** @@ -171,7 +174,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'status' => 'status', - 'user_badge' => 'userBadge' + 'user_badge' => 'userBadge', + 'notes' => 'notes' ]; /** @@ -181,7 +185,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'status' => 'setStatus', - 'user_badge' => 'setUserBadge' + 'user_badge' => 'setUserBadge', + 'notes' => 'setNotes' ]; /** @@ -191,7 +196,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'status' => 'getStatus', - 'user_badge' => 'getUserBadge' + 'user_badge' => 'getUserBadge', + 'notes' => 'getNotes' ]; /** @@ -253,6 +259,7 @@ public function __construct(?array $data = null) { $this->setIfExists('status', $data ?? [], null); $this->setIfExists('user_badge', $data ?? [], null); + $this->setIfExists('notes', $data ?? [], null); } /** @@ -356,6 +363,33 @@ public function setUserBadge($user_badge) return $this; } + + /** + * Gets notes + * + * @return string[]|null + */ + public function getNotes() + { + return $this->container['notes']; + } + + /** + * Sets notes + * + * @param string[]|null $notes notes + * + * @return self + */ + public function setNotes($notes) + { + if (is_null($notes)) { + throw new \InvalidArgumentException('non-nullable notes cannot be null'); + } + $this->container['notes'] = $notes; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/APIEmptyResponse.php b/lib/Model/APIEmptyResponse.php index c7c9d71..8437d96 100644 --- a/lib/Model/APIEmptyResponse.php +++ b/lib/Model/APIEmptyResponse.php @@ -58,7 +58,7 @@ class APIEmptyResponse implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -296,7 +296,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -306,7 +306,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/APIError.php b/lib/Model/APIError.php index 621a3db..5797d69 100644 --- a/lib/Model/APIError.php +++ b/lib/Model/APIError.php @@ -58,7 +58,7 @@ class APIError implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -351,7 +351,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -361,7 +361,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/APIGetCommentResponse.php b/lib/Model/APIGetCommentResponse.php index b806f30..0fedbca 100644 --- a/lib/Model/APIGetCommentResponse.php +++ b/lib/Model/APIGetCommentResponse.php @@ -59,7 +59,7 @@ class APIGetCommentResponse implements ModelInterface, ArrayAccess, \JsonSeriali */ protected static $openAPITypes = [ 'status' => '\FastComments\Client\Model\APIStatus', - 'comment' => '\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys' + 'comment' => '\FastComments\Client\Model\APIComment' ]; /** @@ -333,7 +333,7 @@ public function setStatus($status) /** * Gets comment * - * @return \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys + * @return \FastComments\Client\Model\APIComment */ public function getComment() { @@ -343,7 +343,7 @@ public function getComment() /** * Sets comment * - * @param \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys $comment comment + * @param \FastComments\Client\Model\APIComment $comment comment * * @return self */ diff --git a/lib/Model/APIGetCommentsResponse.php b/lib/Model/APIGetCommentsResponse.php index f0cff29..7d17bef 100644 --- a/lib/Model/APIGetCommentsResponse.php +++ b/lib/Model/APIGetCommentsResponse.php @@ -59,7 +59,7 @@ class APIGetCommentsResponse implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPITypes = [ 'status' => '\FastComments\Client\Model\APIStatus', - 'comments' => '\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[]' + 'comments' => '\FastComments\Client\Model\APIComment[]' ]; /** @@ -333,7 +333,7 @@ public function setStatus($status) /** * Gets comments * - * @return \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[] + * @return \FastComments\Client\Model\APIComment[] */ public function getComments() { @@ -343,7 +343,7 @@ public function getComments() /** * Sets comments * - * @param \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[] $comments comments + * @param \FastComments\Client\Model\APIComment[] $comments comments * * @return self */ diff --git a/lib/Model/AggregateQuestionResults200Response.php b/lib/Model/AggregateQuestionResults200Response.php index d7836c9..d836a56 100644 --- a/lib/Model/AggregateQuestionResults200Response.php +++ b/lib/Model/AggregateQuestionResults200Response.php @@ -58,7 +58,7 @@ class AggregateQuestionResults200Response implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'data' => '\FastComments\Client\Model\QuestionResultAggregationOverall', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/BlockFromCommentPublic200Response.php b/lib/Model/BlockFromCommentPublic200Response.php index 9b560c5..b75239d 100644 --- a/lib/Model/BlockFromCommentPublic200Response.php +++ b/lib/Model/BlockFromCommentPublic200Response.php @@ -58,7 +58,7 @@ class BlockFromCommentPublic200Response implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment_statuses' => 'array', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/BlockSuccess.php b/lib/Model/BlockSuccess.php index d6b629b..8c268fc 100644 --- a/lib/Model/BlockSuccess.php +++ b/lib/Model/BlockSuccess.php @@ -58,7 +58,7 @@ class BlockSuccess implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment_statuses' => 'array' ]; @@ -306,7 +306,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -316,7 +316,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/BulkAggregateQuestionResults200Response.php b/lib/Model/BulkAggregateQuestionResults200Response.php index f2fdf8f..d72deff 100644 --- a/lib/Model/BulkAggregateQuestionResults200Response.php +++ b/lib/Model/BulkAggregateQuestionResults200Response.php @@ -58,7 +58,7 @@ class BulkAggregateQuestionResults200Response implements ModelInterface, ArrayAc * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'data' => 'array', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/ChangeCommentPinStatusResponse.php b/lib/Model/ChangeCommentPinStatusResponse.php index 276985f..c46e7d0 100644 --- a/lib/Model/ChangeCommentPinStatusResponse.php +++ b/lib/Model/ChangeCommentPinStatusResponse.php @@ -59,7 +59,7 @@ class ChangeCommentPinStatusResponse implements ModelInterface, ArrayAccess, \Js */ protected static $openAPITypes = [ 'comment_positions' => 'array', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -333,7 +333,7 @@ public function setCommentPositions($comment_positions) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -343,7 +343,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/CheckBlockedCommentsResponse.php b/lib/Model/CheckBlockedCommentsResponse.php index f00c27b..5231f9d 100644 --- a/lib/Model/CheckBlockedCommentsResponse.php +++ b/lib/Model/CheckBlockedCommentsResponse.php @@ -59,7 +59,7 @@ class CheckBlockedCommentsResponse implements ModelInterface, ArrayAccess, \Json */ protected static $openAPITypes = [ 'comment_statuses' => 'array', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -333,7 +333,7 @@ public function setCommentStatuses($comment_statuses) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -343,7 +343,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/CheckedCommentsForBlocked200Response.php b/lib/Model/CheckedCommentsForBlocked200Response.php index 90b6a25..77c701c 100644 --- a/lib/Model/CheckedCommentsForBlocked200Response.php +++ b/lib/Model/CheckedCommentsForBlocked200Response.php @@ -59,7 +59,7 @@ class CheckedCommentsForBlocked200Response implements ModelInterface, ArrayAcces */ protected static $openAPITypes = [ 'comment_statuses' => 'array', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -388,7 +388,7 @@ public function setCommentStatuses($comment_statuses) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -398,7 +398,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/CombineCommentsWithQuestionResults200Response.php b/lib/Model/CombineCommentsWithQuestionResults200Response.php index 18ff0bd..cd4d309 100644 --- a/lib/Model/CombineCommentsWithQuestionResults200Response.php +++ b/lib/Model/CombineCommentsWithQuestionResults200Response.php @@ -58,7 +58,7 @@ class CombineCommentsWithQuestionResults200Response implements ModelInterface, A * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'data' => '\FastComments\Client\Model\FindCommentsByRangeResponse', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/CommentLogData.php b/lib/Model/CommentLogData.php new file mode 100644 index 0000000..587cb0e --- /dev/null +++ b/lib/Model/CommentLogData.php @@ -0,0 +1,1940 @@ + + */ +class CommentLogData implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'CommentLogData'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'clear_content' => 'bool', + 'is_deleted_user' => 'bool', + 'phrase' => 'string', + 'bad_word' => 'string', + 'word' => 'string', + 'locale' => 'string', + 'tenant_badge_id' => 'string', + 'badge_id' => 'string', + 'was_logged_in' => 'bool', + 'found_user' => 'bool', + 'verified' => 'bool', + 'engine' => 'string', + 'engine_response' => 'string', + 'engine_tokens' => 'float', + 'trust_factor' => 'float', + 'rule' => '\FastComments\Client\Model\SpamRule', + 'user_id' => 'string', + 'subscribers' => 'float', + 'notification_count' => 'float', + 'votes_before' => 'float', + 'votes_up_before' => 'float', + 'votes_down_before' => 'float', + 'votes_after' => 'float', + 'votes_up_after' => 'float', + 'votes_down_after' => 'float', + 'repeat_action' => '\FastComments\Client\Model\RepeatCommentHandlingAction', + 'reason' => '\FastComments\Client\Model\RepeatCommentCheckIgnoredReason', + 'other_data' => 'mixed', + 'spam_before' => 'bool', + 'spam_after' => 'bool', + 'permanent_flag' => 'string', + 'approved_before' => 'bool', + 'approved_after' => 'bool', + 'reviewed_before' => 'bool', + 'reviewed_after' => 'bool', + 'text_before' => 'string', + 'text_after' => 'string', + 'expire_before' => '\DateTime', + 'expire_after' => '\DateTime', + 'flag_count_before' => 'float', + 'trust_factor_before' => 'float', + 'trust_factor_after' => 'float', + 'referenced_comment_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'clear_content' => null, + 'is_deleted_user' => null, + 'phrase' => null, + 'bad_word' => null, + 'word' => null, + 'locale' => null, + 'tenant_badge_id' => null, + 'badge_id' => null, + 'was_logged_in' => null, + 'found_user' => null, + 'verified' => null, + 'engine' => null, + 'engine_response' => null, + 'engine_tokens' => 'double', + 'trust_factor' => 'double', + 'rule' => null, + 'user_id' => null, + 'subscribers' => 'double', + 'notification_count' => 'double', + 'votes_before' => 'double', + 'votes_up_before' => 'double', + 'votes_down_before' => 'double', + 'votes_after' => 'double', + 'votes_up_after' => 'double', + 'votes_down_after' => 'double', + 'repeat_action' => null, + 'reason' => null, + 'other_data' => null, + 'spam_before' => null, + 'spam_after' => null, + 'permanent_flag' => null, + 'approved_before' => null, + 'approved_after' => null, + 'reviewed_before' => null, + 'reviewed_after' => null, + 'text_before' => null, + 'text_after' => null, + 'expire_before' => 'date-time', + 'expire_after' => 'date-time', + 'flag_count_before' => 'double', + 'trust_factor_before' => 'double', + 'trust_factor_after' => 'double', + 'referenced_comment_id' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'clear_content' => false, + 'is_deleted_user' => false, + 'phrase' => false, + 'bad_word' => false, + 'word' => false, + 'locale' => false, + 'tenant_badge_id' => false, + 'badge_id' => false, + 'was_logged_in' => false, + 'found_user' => false, + 'verified' => false, + 'engine' => false, + 'engine_response' => false, + 'engine_tokens' => false, + 'trust_factor' => false, + 'rule' => false, + 'user_id' => false, + 'subscribers' => false, + 'notification_count' => false, + 'votes_before' => true, + 'votes_up_before' => true, + 'votes_down_before' => true, + 'votes_after' => true, + 'votes_up_after' => true, + 'votes_down_after' => true, + 'repeat_action' => false, + 'reason' => false, + 'other_data' => true, + 'spam_before' => false, + 'spam_after' => false, + 'permanent_flag' => false, + 'approved_before' => false, + 'approved_after' => false, + 'reviewed_before' => false, + 'reviewed_after' => false, + 'text_before' => false, + 'text_after' => false, + 'expire_before' => true, + 'expire_after' => true, + 'flag_count_before' => true, + 'trust_factor_before' => false, + 'trust_factor_after' => false, + 'referenced_comment_id' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'clear_content' => 'clearContent', + 'is_deleted_user' => 'isDeletedUser', + 'phrase' => 'phrase', + 'bad_word' => 'badWord', + 'word' => 'word', + 'locale' => 'locale', + 'tenant_badge_id' => 'tenantBadgeId', + 'badge_id' => 'badgeId', + 'was_logged_in' => 'wasLoggedIn', + 'found_user' => 'foundUser', + 'verified' => 'verified', + 'engine' => 'engine', + 'engine_response' => 'engineResponse', + 'engine_tokens' => 'engineTokens', + 'trust_factor' => 'trustFactor', + 'rule' => 'rule', + 'user_id' => 'userId', + 'subscribers' => 'subscribers', + 'notification_count' => 'notificationCount', + 'votes_before' => 'votesBefore', + 'votes_up_before' => 'votesUpBefore', + 'votes_down_before' => 'votesDownBefore', + 'votes_after' => 'votesAfter', + 'votes_up_after' => 'votesUpAfter', + 'votes_down_after' => 'votesDownAfter', + 'repeat_action' => 'repeatAction', + 'reason' => 'reason', + 'other_data' => 'otherData', + 'spam_before' => 'spamBefore', + 'spam_after' => 'spamAfter', + 'permanent_flag' => 'permanentFlag', + 'approved_before' => 'approvedBefore', + 'approved_after' => 'approvedAfter', + 'reviewed_before' => 'reviewedBefore', + 'reviewed_after' => 'reviewedAfter', + 'text_before' => 'textBefore', + 'text_after' => 'textAfter', + 'expire_before' => 'expireBefore', + 'expire_after' => 'expireAfter', + 'flag_count_before' => 'flagCountBefore', + 'trust_factor_before' => 'trustFactorBefore', + 'trust_factor_after' => 'trustFactorAfter', + 'referenced_comment_id' => 'referencedCommentId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'clear_content' => 'setClearContent', + 'is_deleted_user' => 'setIsDeletedUser', + 'phrase' => 'setPhrase', + 'bad_word' => 'setBadWord', + 'word' => 'setWord', + 'locale' => 'setLocale', + 'tenant_badge_id' => 'setTenantBadgeId', + 'badge_id' => 'setBadgeId', + 'was_logged_in' => 'setWasLoggedIn', + 'found_user' => 'setFoundUser', + 'verified' => 'setVerified', + 'engine' => 'setEngine', + 'engine_response' => 'setEngineResponse', + 'engine_tokens' => 'setEngineTokens', + 'trust_factor' => 'setTrustFactor', + 'rule' => 'setRule', + 'user_id' => 'setUserId', + 'subscribers' => 'setSubscribers', + 'notification_count' => 'setNotificationCount', + 'votes_before' => 'setVotesBefore', + 'votes_up_before' => 'setVotesUpBefore', + 'votes_down_before' => 'setVotesDownBefore', + 'votes_after' => 'setVotesAfter', + 'votes_up_after' => 'setVotesUpAfter', + 'votes_down_after' => 'setVotesDownAfter', + 'repeat_action' => 'setRepeatAction', + 'reason' => 'setReason', + 'other_data' => 'setOtherData', + 'spam_before' => 'setSpamBefore', + 'spam_after' => 'setSpamAfter', + 'permanent_flag' => 'setPermanentFlag', + 'approved_before' => 'setApprovedBefore', + 'approved_after' => 'setApprovedAfter', + 'reviewed_before' => 'setReviewedBefore', + 'reviewed_after' => 'setReviewedAfter', + 'text_before' => 'setTextBefore', + 'text_after' => 'setTextAfter', + 'expire_before' => 'setExpireBefore', + 'expire_after' => 'setExpireAfter', + 'flag_count_before' => 'setFlagCountBefore', + 'trust_factor_before' => 'setTrustFactorBefore', + 'trust_factor_after' => 'setTrustFactorAfter', + 'referenced_comment_id' => 'setReferencedCommentId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'clear_content' => 'getClearContent', + 'is_deleted_user' => 'getIsDeletedUser', + 'phrase' => 'getPhrase', + 'bad_word' => 'getBadWord', + 'word' => 'getWord', + 'locale' => 'getLocale', + 'tenant_badge_id' => 'getTenantBadgeId', + 'badge_id' => 'getBadgeId', + 'was_logged_in' => 'getWasLoggedIn', + 'found_user' => 'getFoundUser', + 'verified' => 'getVerified', + 'engine' => 'getEngine', + 'engine_response' => 'getEngineResponse', + 'engine_tokens' => 'getEngineTokens', + 'trust_factor' => 'getTrustFactor', + 'rule' => 'getRule', + 'user_id' => 'getUserId', + 'subscribers' => 'getSubscribers', + 'notification_count' => 'getNotificationCount', + 'votes_before' => 'getVotesBefore', + 'votes_up_before' => 'getVotesUpBefore', + 'votes_down_before' => 'getVotesDownBefore', + 'votes_after' => 'getVotesAfter', + 'votes_up_after' => 'getVotesUpAfter', + 'votes_down_after' => 'getVotesDownAfter', + 'repeat_action' => 'getRepeatAction', + 'reason' => 'getReason', + 'other_data' => 'getOtherData', + 'spam_before' => 'getSpamBefore', + 'spam_after' => 'getSpamAfter', + 'permanent_flag' => 'getPermanentFlag', + 'approved_before' => 'getApprovedBefore', + 'approved_after' => 'getApprovedAfter', + 'reviewed_before' => 'getReviewedBefore', + 'reviewed_after' => 'getReviewedAfter', + 'text_before' => 'getTextBefore', + 'text_after' => 'getTextAfter', + 'expire_before' => 'getExpireBefore', + 'expire_after' => 'getExpireAfter', + 'flag_count_before' => 'getFlagCountBefore', + 'trust_factor_before' => 'getTrustFactorBefore', + 'trust_factor_after' => 'getTrustFactorAfter', + 'referenced_comment_id' => 'getReferencedCommentId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const PERMANENT_FLAG_PERMANENT = 'permanent'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPermanentFlagAllowableValues() + { + return [ + self::PERMANENT_FLAG_PERMANENT, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('clear_content', $data ?? [], null); + $this->setIfExists('is_deleted_user', $data ?? [], null); + $this->setIfExists('phrase', $data ?? [], null); + $this->setIfExists('bad_word', $data ?? [], null); + $this->setIfExists('word', $data ?? [], null); + $this->setIfExists('locale', $data ?? [], null); + $this->setIfExists('tenant_badge_id', $data ?? [], null); + $this->setIfExists('badge_id', $data ?? [], null); + $this->setIfExists('was_logged_in', $data ?? [], null); + $this->setIfExists('found_user', $data ?? [], null); + $this->setIfExists('verified', $data ?? [], null); + $this->setIfExists('engine', $data ?? [], null); + $this->setIfExists('engine_response', $data ?? [], null); + $this->setIfExists('engine_tokens', $data ?? [], null); + $this->setIfExists('trust_factor', $data ?? [], null); + $this->setIfExists('rule', $data ?? [], null); + $this->setIfExists('user_id', $data ?? [], null); + $this->setIfExists('subscribers', $data ?? [], null); + $this->setIfExists('notification_count', $data ?? [], null); + $this->setIfExists('votes_before', $data ?? [], null); + $this->setIfExists('votes_up_before', $data ?? [], null); + $this->setIfExists('votes_down_before', $data ?? [], null); + $this->setIfExists('votes_after', $data ?? [], null); + $this->setIfExists('votes_up_after', $data ?? [], null); + $this->setIfExists('votes_down_after', $data ?? [], null); + $this->setIfExists('repeat_action', $data ?? [], null); + $this->setIfExists('reason', $data ?? [], null); + $this->setIfExists('other_data', $data ?? [], null); + $this->setIfExists('spam_before', $data ?? [], null); + $this->setIfExists('spam_after', $data ?? [], null); + $this->setIfExists('permanent_flag', $data ?? [], null); + $this->setIfExists('approved_before', $data ?? [], null); + $this->setIfExists('approved_after', $data ?? [], null); + $this->setIfExists('reviewed_before', $data ?? [], null); + $this->setIfExists('reviewed_after', $data ?? [], null); + $this->setIfExists('text_before', $data ?? [], null); + $this->setIfExists('text_after', $data ?? [], null); + $this->setIfExists('expire_before', $data ?? [], null); + $this->setIfExists('expire_after', $data ?? [], null); + $this->setIfExists('flag_count_before', $data ?? [], null); + $this->setIfExists('trust_factor_before', $data ?? [], null); + $this->setIfExists('trust_factor_after', $data ?? [], null); + $this->setIfExists('referenced_comment_id', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getPermanentFlagAllowableValues(); + if (!is_null($this->container['permanent_flag']) && !in_array($this->container['permanent_flag'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'permanent_flag', must be one of '%s'", + $this->container['permanent_flag'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets clear_content + * + * @return bool|null + */ + public function getClearContent() + { + return $this->container['clear_content']; + } + + /** + * Sets clear_content + * + * @param bool|null $clear_content clear_content + * + * @return self + */ + public function setClearContent($clear_content) + { + if (is_null($clear_content)) { + throw new \InvalidArgumentException('non-nullable clear_content cannot be null'); + } + $this->container['clear_content'] = $clear_content; + + return $this; + } + + /** + * Gets is_deleted_user + * + * @return bool|null + */ + public function getIsDeletedUser() + { + return $this->container['is_deleted_user']; + } + + /** + * Sets is_deleted_user + * + * @param bool|null $is_deleted_user is_deleted_user + * + * @return self + */ + public function setIsDeletedUser($is_deleted_user) + { + if (is_null($is_deleted_user)) { + throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); + } + $this->container['is_deleted_user'] = $is_deleted_user; + + return $this; + } + + /** + * Gets phrase + * + * @return string|null + */ + public function getPhrase() + { + return $this->container['phrase']; + } + + /** + * Sets phrase + * + * @param string|null $phrase phrase + * + * @return self + */ + public function setPhrase($phrase) + { + if (is_null($phrase)) { + throw new \InvalidArgumentException('non-nullable phrase cannot be null'); + } + $this->container['phrase'] = $phrase; + + return $this; + } + + /** + * Gets bad_word + * + * @return string|null + */ + public function getBadWord() + { + return $this->container['bad_word']; + } + + /** + * Sets bad_word + * + * @param string|null $bad_word bad_word + * + * @return self + */ + public function setBadWord($bad_word) + { + if (is_null($bad_word)) { + throw new \InvalidArgumentException('non-nullable bad_word cannot be null'); + } + $this->container['bad_word'] = $bad_word; + + return $this; + } + + /** + * Gets word + * + * @return string|null + */ + public function getWord() + { + return $this->container['word']; + } + + /** + * Sets word + * + * @param string|null $word word + * + * @return self + */ + public function setWord($word) + { + if (is_null($word)) { + throw new \InvalidArgumentException('non-nullable word cannot be null'); + } + $this->container['word'] = $word; + + return $this; + } + + /** + * Gets locale + * + * @return string|null + */ + public function getLocale() + { + return $this->container['locale']; + } + + /** + * Sets locale + * + * @param string|null $locale locale + * + * @return self + */ + public function setLocale($locale) + { + if (is_null($locale)) { + throw new \InvalidArgumentException('non-nullable locale cannot be null'); + } + $this->container['locale'] = $locale; + + return $this; + } + + /** + * Gets tenant_badge_id + * + * @return string|null + */ + public function getTenantBadgeId() + { + return $this->container['tenant_badge_id']; + } + + /** + * Sets tenant_badge_id + * + * @param string|null $tenant_badge_id tenant_badge_id + * + * @return self + */ + public function setTenantBadgeId($tenant_badge_id) + { + if (is_null($tenant_badge_id)) { + throw new \InvalidArgumentException('non-nullable tenant_badge_id cannot be null'); + } + $this->container['tenant_badge_id'] = $tenant_badge_id; + + return $this; + } + + /** + * Gets badge_id + * + * @return string|null + */ + public function getBadgeId() + { + return $this->container['badge_id']; + } + + /** + * Sets badge_id + * + * @param string|null $badge_id badge_id + * + * @return self + */ + public function setBadgeId($badge_id) + { + if (is_null($badge_id)) { + throw new \InvalidArgumentException('non-nullable badge_id cannot be null'); + } + $this->container['badge_id'] = $badge_id; + + return $this; + } + + /** + * Gets was_logged_in + * + * @return bool|null + */ + public function getWasLoggedIn() + { + return $this->container['was_logged_in']; + } + + /** + * Sets was_logged_in + * + * @param bool|null $was_logged_in was_logged_in + * + * @return self + */ + public function setWasLoggedIn($was_logged_in) + { + if (is_null($was_logged_in)) { + throw new \InvalidArgumentException('non-nullable was_logged_in cannot be null'); + } + $this->container['was_logged_in'] = $was_logged_in; + + return $this; + } + + /** + * Gets found_user + * + * @return bool|null + */ + public function getFoundUser() + { + return $this->container['found_user']; + } + + /** + * Sets found_user + * + * @param bool|null $found_user found_user + * + * @return self + */ + public function setFoundUser($found_user) + { + if (is_null($found_user)) { + throw new \InvalidArgumentException('non-nullable found_user cannot be null'); + } + $this->container['found_user'] = $found_user; + + return $this; + } + + /** + * Gets verified + * + * @return bool|null + */ + public function getVerified() + { + return $this->container['verified']; + } + + /** + * Sets verified + * + * @param bool|null $verified verified + * + * @return self + */ + public function setVerified($verified) + { + if (is_null($verified)) { + throw new \InvalidArgumentException('non-nullable verified cannot be null'); + } + $this->container['verified'] = $verified; + + return $this; + } + + /** + * Gets engine + * + * @return string|null + */ + public function getEngine() + { + return $this->container['engine']; + } + + /** + * Sets engine + * + * @param string|null $engine engine + * + * @return self + */ + public function setEngine($engine) + { + if (is_null($engine)) { + throw new \InvalidArgumentException('non-nullable engine cannot be null'); + } + $this->container['engine'] = $engine; + + return $this; + } + + /** + * Gets engine_response + * + * @return string|null + */ + public function getEngineResponse() + { + return $this->container['engine_response']; + } + + /** + * Sets engine_response + * + * @param string|null $engine_response engine_response + * + * @return self + */ + public function setEngineResponse($engine_response) + { + if (is_null($engine_response)) { + throw new \InvalidArgumentException('non-nullable engine_response cannot be null'); + } + $this->container['engine_response'] = $engine_response; + + return $this; + } + + /** + * Gets engine_tokens + * + * @return float|null + */ + public function getEngineTokens() + { + return $this->container['engine_tokens']; + } + + /** + * Sets engine_tokens + * + * @param float|null $engine_tokens engine_tokens + * + * @return self + */ + public function setEngineTokens($engine_tokens) + { + if (is_null($engine_tokens)) { + throw new \InvalidArgumentException('non-nullable engine_tokens cannot be null'); + } + $this->container['engine_tokens'] = $engine_tokens; + + return $this; + } + + /** + * Gets trust_factor + * + * @return float|null + */ + public function getTrustFactor() + { + return $this->container['trust_factor']; + } + + /** + * Sets trust_factor + * + * @param float|null $trust_factor trust_factor + * + * @return self + */ + public function setTrustFactor($trust_factor) + { + if (is_null($trust_factor)) { + throw new \InvalidArgumentException('non-nullable trust_factor cannot be null'); + } + $this->container['trust_factor'] = $trust_factor; + + return $this; + } + + /** + * Gets rule + * + * @return \FastComments\Client\Model\SpamRule|null + */ + public function getRule() + { + return $this->container['rule']; + } + + /** + * Sets rule + * + * @param \FastComments\Client\Model\SpamRule|null $rule rule + * + * @return self + */ + public function setRule($rule) + { + if (is_null($rule)) { + throw new \InvalidArgumentException('non-nullable rule cannot be null'); + } + $this->container['rule'] = $rule; + + return $this; + } + + /** + * Gets user_id + * + * @return string|null + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string|null $user_id user_id + * + * @return self + */ + public function setUserId($user_id) + { + if (is_null($user_id)) { + throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + } + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets subscribers + * + * @return float|null + */ + public function getSubscribers() + { + return $this->container['subscribers']; + } + + /** + * Sets subscribers + * + * @param float|null $subscribers subscribers + * + * @return self + */ + public function setSubscribers($subscribers) + { + if (is_null($subscribers)) { + throw new \InvalidArgumentException('non-nullable subscribers cannot be null'); + } + $this->container['subscribers'] = $subscribers; + + return $this; + } + + /** + * Gets notification_count + * + * @return float|null + */ + public function getNotificationCount() + { + return $this->container['notification_count']; + } + + /** + * Sets notification_count + * + * @param float|null $notification_count notification_count + * + * @return self + */ + public function setNotificationCount($notification_count) + { + if (is_null($notification_count)) { + throw new \InvalidArgumentException('non-nullable notification_count cannot be null'); + } + $this->container['notification_count'] = $notification_count; + + return $this; + } + + /** + * Gets votes_before + * + * @return float|null + */ + public function getVotesBefore() + { + return $this->container['votes_before']; + } + + /** + * Sets votes_before + * + * @param float|null $votes_before votes_before + * + * @return self + */ + public function setVotesBefore($votes_before) + { + if (is_null($votes_before)) { + array_push($this->openAPINullablesSetToNull, 'votes_before'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_before', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_before'] = $votes_before; + + return $this; + } + + /** + * Gets votes_up_before + * + * @return float|null + */ + public function getVotesUpBefore() + { + return $this->container['votes_up_before']; + } + + /** + * Sets votes_up_before + * + * @param float|null $votes_up_before votes_up_before + * + * @return self + */ + public function setVotesUpBefore($votes_up_before) + { + if (is_null($votes_up_before)) { + array_push($this->openAPINullablesSetToNull, 'votes_up_before'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up_before', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_up_before'] = $votes_up_before; + + return $this; + } + + /** + * Gets votes_down_before + * + * @return float|null + */ + public function getVotesDownBefore() + { + return $this->container['votes_down_before']; + } + + /** + * Sets votes_down_before + * + * @param float|null $votes_down_before votes_down_before + * + * @return self + */ + public function setVotesDownBefore($votes_down_before) + { + if (is_null($votes_down_before)) { + array_push($this->openAPINullablesSetToNull, 'votes_down_before'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down_before', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_down_before'] = $votes_down_before; + + return $this; + } + + /** + * Gets votes_after + * + * @return float|null + */ + public function getVotesAfter() + { + return $this->container['votes_after']; + } + + /** + * Sets votes_after + * + * @param float|null $votes_after votes_after + * + * @return self + */ + public function setVotesAfter($votes_after) + { + if (is_null($votes_after)) { + array_push($this->openAPINullablesSetToNull, 'votes_after'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_after', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_after'] = $votes_after; + + return $this; + } + + /** + * Gets votes_up_after + * + * @return float|null + */ + public function getVotesUpAfter() + { + return $this->container['votes_up_after']; + } + + /** + * Sets votes_up_after + * + * @param float|null $votes_up_after votes_up_after + * + * @return self + */ + public function setVotesUpAfter($votes_up_after) + { + if (is_null($votes_up_after)) { + array_push($this->openAPINullablesSetToNull, 'votes_up_after'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up_after', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_up_after'] = $votes_up_after; + + return $this; + } + + /** + * Gets votes_down_after + * + * @return float|null + */ + public function getVotesDownAfter() + { + return $this->container['votes_down_after']; + } + + /** + * Sets votes_down_after + * + * @param float|null $votes_down_after votes_down_after + * + * @return self + */ + public function setVotesDownAfter($votes_down_after) + { + if (is_null($votes_down_after)) { + array_push($this->openAPINullablesSetToNull, 'votes_down_after'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down_after', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['votes_down_after'] = $votes_down_after; + + return $this; + } + + /** + * Gets repeat_action + * + * @return \FastComments\Client\Model\RepeatCommentHandlingAction|null + */ + public function getRepeatAction() + { + return $this->container['repeat_action']; + } + + /** + * Sets repeat_action + * + * @param \FastComments\Client\Model\RepeatCommentHandlingAction|null $repeat_action repeat_action + * + * @return self + */ + public function setRepeatAction($repeat_action) + { + if (is_null($repeat_action)) { + throw new \InvalidArgumentException('non-nullable repeat_action cannot be null'); + } + $this->container['repeat_action'] = $repeat_action; + + return $this; + } + + /** + * Gets reason + * + * @return \FastComments\Client\Model\RepeatCommentCheckIgnoredReason|null + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param \FastComments\Client\Model\RepeatCommentCheckIgnoredReason|null $reason reason + * + * @return self + */ + public function setReason($reason) + { + if (is_null($reason)) { + throw new \InvalidArgumentException('non-nullable reason cannot be null'); + } + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets other_data + * + * @return mixed|null + */ + public function getOtherData() + { + return $this->container['other_data']; + } + + /** + * Sets other_data + * + * @param mixed|null $other_data other_data + * + * @return self + */ + public function setOtherData($other_data) + { + if (is_null($other_data)) { + array_push($this->openAPINullablesSetToNull, 'other_data'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('other_data', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['other_data'] = $other_data; + + return $this; + } + + /** + * Gets spam_before + * + * @return bool|null + */ + public function getSpamBefore() + { + return $this->container['spam_before']; + } + + /** + * Sets spam_before + * + * @param bool|null $spam_before spam_before + * + * @return self + */ + public function setSpamBefore($spam_before) + { + if (is_null($spam_before)) { + throw new \InvalidArgumentException('non-nullable spam_before cannot be null'); + } + $this->container['spam_before'] = $spam_before; + + return $this; + } + + /** + * Gets spam_after + * + * @return bool|null + */ + public function getSpamAfter() + { + return $this->container['spam_after']; + } + + /** + * Sets spam_after + * + * @param bool|null $spam_after spam_after + * + * @return self + */ + public function setSpamAfter($spam_after) + { + if (is_null($spam_after)) { + throw new \InvalidArgumentException('non-nullable spam_after cannot be null'); + } + $this->container['spam_after'] = $spam_after; + + return $this; + } + + /** + * Gets permanent_flag + * + * @return string|null + */ + public function getPermanentFlag() + { + return $this->container['permanent_flag']; + } + + /** + * Sets permanent_flag + * + * @param string|null $permanent_flag permanent_flag + * + * @return self + */ + public function setPermanentFlag($permanent_flag) + { + if (is_null($permanent_flag)) { + throw new \InvalidArgumentException('non-nullable permanent_flag cannot be null'); + } + $allowedValues = $this->getPermanentFlagAllowableValues(); + if (!in_array($permanent_flag, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'permanent_flag', must be one of '%s'", + $permanent_flag, + implode("', '", $allowedValues) + ) + ); + } + $this->container['permanent_flag'] = $permanent_flag; + + return $this; + } + + /** + * Gets approved_before + * + * @return bool|null + */ + public function getApprovedBefore() + { + return $this->container['approved_before']; + } + + /** + * Sets approved_before + * + * @param bool|null $approved_before approved_before + * + * @return self + */ + public function setApprovedBefore($approved_before) + { + if (is_null($approved_before)) { + throw new \InvalidArgumentException('non-nullable approved_before cannot be null'); + } + $this->container['approved_before'] = $approved_before; + + return $this; + } + + /** + * Gets approved_after + * + * @return bool|null + */ + public function getApprovedAfter() + { + return $this->container['approved_after']; + } + + /** + * Sets approved_after + * + * @param bool|null $approved_after approved_after + * + * @return self + */ + public function setApprovedAfter($approved_after) + { + if (is_null($approved_after)) { + throw new \InvalidArgumentException('non-nullable approved_after cannot be null'); + } + $this->container['approved_after'] = $approved_after; + + return $this; + } + + /** + * Gets reviewed_before + * + * @return bool|null + */ + public function getReviewedBefore() + { + return $this->container['reviewed_before']; + } + + /** + * Sets reviewed_before + * + * @param bool|null $reviewed_before reviewed_before + * + * @return self + */ + public function setReviewedBefore($reviewed_before) + { + if (is_null($reviewed_before)) { + throw new \InvalidArgumentException('non-nullable reviewed_before cannot be null'); + } + $this->container['reviewed_before'] = $reviewed_before; + + return $this; + } + + /** + * Gets reviewed_after + * + * @return bool|null + */ + public function getReviewedAfter() + { + return $this->container['reviewed_after']; + } + + /** + * Sets reviewed_after + * + * @param bool|null $reviewed_after reviewed_after + * + * @return self + */ + public function setReviewedAfter($reviewed_after) + { + if (is_null($reviewed_after)) { + throw new \InvalidArgumentException('non-nullable reviewed_after cannot be null'); + } + $this->container['reviewed_after'] = $reviewed_after; + + return $this; + } + + /** + * Gets text_before + * + * @return string|null + */ + public function getTextBefore() + { + return $this->container['text_before']; + } + + /** + * Sets text_before + * + * @param string|null $text_before text_before + * + * @return self + */ + public function setTextBefore($text_before) + { + if (is_null($text_before)) { + throw new \InvalidArgumentException('non-nullable text_before cannot be null'); + } + $this->container['text_before'] = $text_before; + + return $this; + } + + /** + * Gets text_after + * + * @return string|null + */ + public function getTextAfter() + { + return $this->container['text_after']; + } + + /** + * Sets text_after + * + * @param string|null $text_after text_after + * + * @return self + */ + public function setTextAfter($text_after) + { + if (is_null($text_after)) { + throw new \InvalidArgumentException('non-nullable text_after cannot be null'); + } + $this->container['text_after'] = $text_after; + + return $this; + } + + /** + * Gets expire_before + * + * @return \DateTime|null + */ + public function getExpireBefore() + { + return $this->container['expire_before']; + } + + /** + * Sets expire_before + * + * @param \DateTime|null $expire_before expire_before + * + * @return self + */ + public function setExpireBefore($expire_before) + { + if (is_null($expire_before)) { + array_push($this->openAPINullablesSetToNull, 'expire_before'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expire_before', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['expire_before'] = $expire_before; + + return $this; + } + + /** + * Gets expire_after + * + * @return \DateTime|null + */ + public function getExpireAfter() + { + return $this->container['expire_after']; + } + + /** + * Sets expire_after + * + * @param \DateTime|null $expire_after expire_after + * + * @return self + */ + public function setExpireAfter($expire_after) + { + if (is_null($expire_after)) { + array_push($this->openAPINullablesSetToNull, 'expire_after'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expire_after', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['expire_after'] = $expire_after; + + return $this; + } + + /** + * Gets flag_count_before + * + * @return float|null + */ + public function getFlagCountBefore() + { + return $this->container['flag_count_before']; + } + + /** + * Sets flag_count_before + * + * @param float|null $flag_count_before flag_count_before + * + * @return self + */ + public function setFlagCountBefore($flag_count_before) + { + if (is_null($flag_count_before)) { + array_push($this->openAPINullablesSetToNull, 'flag_count_before'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('flag_count_before', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['flag_count_before'] = $flag_count_before; + + return $this; + } + + /** + * Gets trust_factor_before + * + * @return float|null + */ + public function getTrustFactorBefore() + { + return $this->container['trust_factor_before']; + } + + /** + * Sets trust_factor_before + * + * @param float|null $trust_factor_before trust_factor_before + * + * @return self + */ + public function setTrustFactorBefore($trust_factor_before) + { + if (is_null($trust_factor_before)) { + throw new \InvalidArgumentException('non-nullable trust_factor_before cannot be null'); + } + $this->container['trust_factor_before'] = $trust_factor_before; + + return $this; + } + + /** + * Gets trust_factor_after + * + * @return float|null + */ + public function getTrustFactorAfter() + { + return $this->container['trust_factor_after']; + } + + /** + * Sets trust_factor_after + * + * @param float|null $trust_factor_after trust_factor_after + * + * @return self + */ + public function setTrustFactorAfter($trust_factor_after) + { + if (is_null($trust_factor_after)) { + throw new \InvalidArgumentException('non-nullable trust_factor_after cannot be null'); + } + $this->container['trust_factor_after'] = $trust_factor_after; + + return $this; + } + + /** + * Gets referenced_comment_id + * + * @return string|null + */ + public function getReferencedCommentId() + { + return $this->container['referenced_comment_id']; + } + + /** + * Sets referenced_comment_id + * + * @param string|null $referenced_comment_id referenced_comment_id + * + * @return self + */ + public function setReferencedCommentId($referenced_comment_id) + { + if (is_null($referenced_comment_id)) { + throw new \InvalidArgumentException('non-nullable referenced_comment_id cannot be null'); + } + $this->container['referenced_comment_id'] = $referenced_comment_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/PickFCommentAPICommentFieldsKeysMeta.php b/lib/Model/CommentLogEntry.php similarity index 79% rename from lib/Model/PickFCommentAPICommentFieldsKeysMeta.php rename to lib/Model/CommentLogEntry.php index a4ad100..9224c8a 100644 --- a/lib/Model/PickFCommentAPICommentFieldsKeysMeta.php +++ b/lib/Model/CommentLogEntry.php @@ -1,6 +1,6 @@ */ -class PickFCommentAPICommentFieldsKeysMeta implements ModelInterface, ArrayAccess, \JsonSerializable +class CommentLogEntry implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -50,7 +50,7 @@ class PickFCommentAPICommentFieldsKeysMeta implements ModelInterface, ArrayAcces * * @var string */ - protected static $openAPIModelName = 'Pick_FComment_APICommentFieldsKeys__meta'; + protected static $openAPIModelName = 'CommentLogEntry'; /** * Array of property to type mappings. Used for (de)serialization @@ -58,8 +58,9 @@ class PickFCommentAPICommentFieldsKeysMeta implements ModelInterface, ArrayAcces * @var string[] */ protected static $openAPITypes = [ - 'wp_user_id' => 'string', - 'wp_post_id' => 'string' + 'd' => '\DateTime', + 't' => '\FastComments\Client\Model\CommentLogType', + 'da' => '\FastComments\Client\Model\CommentLogData' ]; /** @@ -70,8 +71,9 @@ class PickFCommentAPICommentFieldsKeysMeta implements ModelInterface, ArrayAcces * @psalm-var array */ protected static $openAPIFormats = [ - 'wp_user_id' => null, - 'wp_post_id' => null + 'd' => 'date-time', + 't' => null, + 'da' => null ]; /** @@ -80,8 +82,9 @@ class PickFCommentAPICommentFieldsKeysMeta implements ModelInterface, ArrayAcces * @var boolean[] */ protected static array $openAPINullables = [ - 'wp_user_id' => false, - 'wp_post_id' => false + 'd' => false, + 't' => false, + 'da' => false ]; /** @@ -170,8 +173,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'wp_user_id' => 'wpUserId', - 'wp_post_id' => 'wpPostId' + 'd' => 'd', + 't' => 't', + 'da' => 'da' ]; /** @@ -180,8 +184,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'wp_user_id' => 'setWpUserId', - 'wp_post_id' => 'setWpPostId' + 'd' => 'setD', + 't' => 'setT', + 'da' => 'setDa' ]; /** @@ -190,8 +195,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'wp_user_id' => 'getWpUserId', - 'wp_post_id' => 'getWpPostId' + 'd' => 'getD', + 't' => 'getT', + 'da' => 'getDa' ]; /** @@ -251,8 +257,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('wp_user_id', $data ?? [], null); - $this->setIfExists('wp_post_id', $data ?? [], null); + $this->setIfExists('d', $data ?? [], null); + $this->setIfExists('t', $data ?? [], null); + $this->setIfExists('da', $data ?? [], null); } /** @@ -282,6 +289,12 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['d'] === null) { + $invalidProperties[] = "'d' can't be null"; + } + if ($this->container['t'] === null) { + $invalidProperties[] = "'t' can't be null"; + } return $invalidProperties; } @@ -298,55 +311,82 @@ public function valid() /** - * Gets wp_user_id + * Gets d + * + * @return \DateTime + */ + public function getD() + { + return $this->container['d']; + } + + /** + * Sets d + * + * @param \DateTime $d d + * + * @return self + */ + public function setD($d) + { + if (is_null($d)) { + throw new \InvalidArgumentException('non-nullable d cannot be null'); + } + $this->container['d'] = $d; + + return $this; + } + + /** + * Gets t * - * @return string|null + * @return \FastComments\Client\Model\CommentLogType */ - public function getWpUserId() + public function getT() { - return $this->container['wp_user_id']; + return $this->container['t']; } /** - * Sets wp_user_id + * Sets t * - * @param string|null $wp_user_id wp_user_id + * @param \FastComments\Client\Model\CommentLogType $t t * * @return self */ - public function setWpUserId($wp_user_id) + public function setT($t) { - if (is_null($wp_user_id)) { - throw new \InvalidArgumentException('non-nullable wp_user_id cannot be null'); + if (is_null($t)) { + throw new \InvalidArgumentException('non-nullable t cannot be null'); } - $this->container['wp_user_id'] = $wp_user_id; + $this->container['t'] = $t; return $this; } /** - * Gets wp_post_id + * Gets da * - * @return string|null + * @return \FastComments\Client\Model\CommentLogData|null */ - public function getWpPostId() + public function getDa() { - return $this->container['wp_post_id']; + return $this->container['da']; } /** - * Sets wp_post_id + * Sets da * - * @param string|null $wp_post_id wp_post_id + * @param \FastComments\Client\Model\CommentLogData|null $da da * * @return self */ - public function setWpPostId($wp_post_id) + public function setDa($da) { - if (is_null($wp_post_id)) { - throw new \InvalidArgumentException('non-nullable wp_post_id cannot be null'); + if (is_null($da)) { + throw new \InvalidArgumentException('non-nullable da cannot be null'); } - $this->container['wp_post_id'] = $wp_post_id; + $this->container['da'] = $da; return $this; } diff --git a/lib/Model/CommentLogType.php b/lib/Model/CommentLogType.php new file mode 100644 index 0000000..9a0cad6 --- /dev/null +++ b/lib/Model/CommentLogType.php @@ -0,0 +1,222 @@ + '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment' => '\FastComments\Client\Model\PublicComment', 'user' => '\FastComments\Client\Model\UserSessionInfo', 'module_data' => 'array', @@ -385,7 +385,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -395,7 +395,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/CreateFeedPost200Response.php b/lib/Model/CreateFeedPost200Response.php index 4798006..d8b4e6f 100644 --- a/lib/Model/CreateFeedPost200Response.php +++ b/lib/Model/CreateFeedPost200Response.php @@ -58,7 +58,7 @@ class CreateFeedPost200Response implements ModelInterface, ArrayAccess, \JsonSer * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'feed_post' => '\FastComments\Client\Model\FeedPost', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/CreateFeedPostPublic200Response.php b/lib/Model/CreateFeedPostPublic200Response.php index ef637c6..47f6966 100644 --- a/lib/Model/CreateFeedPostPublic200Response.php +++ b/lib/Model/CreateFeedPostPublic200Response.php @@ -58,7 +58,7 @@ class CreateFeedPostPublic200Response implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'feed_post' => '\FastComments\Client\Model\FeedPost', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/CreateUserBadge200Response.php b/lib/Model/CreateUserBadge200Response.php index 687a63c..3fb827e 100644 --- a/lib/Model/CreateUserBadge200Response.php +++ b/lib/Model/CreateUserBadge200Response.php @@ -58,8 +58,9 @@ class CreateUserBadge200Response implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'user_badge' => '\FastComments\Client\Model\UserBadge', + 'notes' => 'string[]', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -79,6 +80,7 @@ class CreateUserBadge200Response implements ModelInterface, ArrayAccess, \JsonSe protected static $openAPIFormats = [ 'status' => null, 'user_badge' => null, + 'notes' => null, 'reason' => null, 'code' => null, 'secondary_code' => null, @@ -96,6 +98,7 @@ class CreateUserBadge200Response implements ModelInterface, ArrayAccess, \JsonSe protected static array $openAPINullables = [ 'status' => false, 'user_badge' => false, + 'notes' => false, 'reason' => false, 'code' => false, 'secondary_code' => false, @@ -193,6 +196,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'status' => 'status', 'user_badge' => 'userBadge', + 'notes' => 'notes', 'reason' => 'reason', 'code' => 'code', 'secondary_code' => 'secondaryCode', @@ -210,6 +214,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'status' => 'setStatus', 'user_badge' => 'setUserBadge', + 'notes' => 'setNotes', 'reason' => 'setReason', 'code' => 'setCode', 'secondary_code' => 'setSecondaryCode', @@ -227,6 +232,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'status' => 'getStatus', 'user_badge' => 'getUserBadge', + 'notes' => 'getNotes', 'reason' => 'getReason', 'code' => 'getCode', 'secondary_code' => 'getSecondaryCode', @@ -295,6 +301,7 @@ public function __construct(?array $data = null) { $this->setIfExists('status', $data ?? [], null); $this->setIfExists('user_badge', $data ?? [], null); + $this->setIfExists('notes', $data ?? [], null); $this->setIfExists('reason', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); $this->setIfExists('secondary_code', $data ?? [], null); @@ -361,7 +368,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +378,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ @@ -412,6 +419,33 @@ public function setUserBadge($user_badge) return $this; } + /** + * Gets notes + * + * @return string[]|null + */ + public function getNotes() + { + return $this->container['notes']; + } + + /** + * Sets notes + * + * @param string[]|null $notes notes + * + * @return self + */ + public function setNotes($notes) + { + if (is_null($notes)) { + throw new \InvalidArgumentException('non-nullable notes cannot be null'); + } + $this->container['notes'] = $notes; + + return $this; + } + /** * Gets reason * diff --git a/lib/Model/CustomConfigParameters.php b/lib/Model/CustomConfigParameters.php index 564ad16..dbe7416 100644 --- a/lib/Model/CustomConfigParameters.php +++ b/lib/Model/CustomConfigParameters.php @@ -110,6 +110,7 @@ class CustomConfigParameters implements ModelInterface, ArrayAccess, \JsonSerial 'no_styles' => 'bool', 'page_size' => 'int', 'readonly' => 'bool', + 'no_new_root_comments' => 'bool', 'require_sso' => 'bool', 'enable_resize_handle' => 'bool', 'restricted_link_domains' => 'string[]', @@ -192,6 +193,7 @@ class CustomConfigParameters implements ModelInterface, ArrayAccess, \JsonSerial 'no_styles' => null, 'page_size' => 'int32', 'readonly' => null, + 'no_new_root_comments' => null, 'require_sso' => null, 'enable_resize_handle' => null, 'restricted_link_domains' => null, @@ -272,6 +274,7 @@ class CustomConfigParameters implements ModelInterface, ArrayAccess, \JsonSerial 'no_styles' => false, 'page_size' => true, 'readonly' => false, + 'no_new_root_comments' => false, 'require_sso' => false, 'enable_resize_handle' => false, 'restricted_link_domains' => true, @@ -432,6 +435,7 @@ public function isNullableSetToNull(string $property): bool 'no_styles' => 'noStyles', 'page_size' => 'pageSize', 'readonly' => 'readonly', + 'no_new_root_comments' => 'noNewRootComments', 'require_sso' => 'requireSSO', 'enable_resize_handle' => 'enableResizeHandle', 'restricted_link_domains' => 'restrictedLinkDomains', @@ -512,6 +516,7 @@ public function isNullableSetToNull(string $property): bool 'no_styles' => 'setNoStyles', 'page_size' => 'setPageSize', 'readonly' => 'setReadonly', + 'no_new_root_comments' => 'setNoNewRootComments', 'require_sso' => 'setRequireSso', 'enable_resize_handle' => 'setEnableResizeHandle', 'restricted_link_domains' => 'setRestrictedLinkDomains', @@ -592,6 +597,7 @@ public function isNullableSetToNull(string $property): bool 'no_styles' => 'getNoStyles', 'page_size' => 'getPageSize', 'readonly' => 'getReadonly', + 'no_new_root_comments' => 'getNoNewRootComments', 'require_sso' => 'getRequireSso', 'enable_resize_handle' => 'getEnableResizeHandle', 'restricted_link_domains' => 'getRestrictedLinkDomains', @@ -723,6 +729,7 @@ public function __construct(?array $data = null) $this->setIfExists('no_styles', $data ?? [], null); $this->setIfExists('page_size', $data ?? [], null); $this->setIfExists('readonly', $data ?? [], null); + $this->setIfExists('no_new_root_comments', $data ?? [], null); $this->setIfExists('require_sso', $data ?? [], null); $this->setIfExists('enable_resize_handle', $data ?? [], null); $this->setIfExists('restricted_link_domains', $data ?? [], null); @@ -2289,6 +2296,33 @@ public function setReadonly($readonly) return $this; } + /** + * Gets no_new_root_comments + * + * @return bool|null + */ + public function getNoNewRootComments() + { + return $this->container['no_new_root_comments']; + } + + /** + * Sets no_new_root_comments + * + * @param bool|null $no_new_root_comments no_new_root_comments + * + * @return self + */ + public function setNoNewRootComments($no_new_root_comments) + { + if (is_null($no_new_root_comments)) { + throw new \InvalidArgumentException('non-nullable no_new_root_comments cannot be null'); + } + $this->container['no_new_root_comments'] = $no_new_root_comments; + + return $this; + } + /** * Gets require_sso * diff --git a/lib/Model/DeleteComment200Response.php b/lib/Model/DeleteComment200Response.php index 4a403cb..8a6ea1c 100644 --- a/lib/Model/DeleteComment200Response.php +++ b/lib/Model/DeleteComment200Response.php @@ -59,7 +59,7 @@ class DeleteComment200Response implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPITypes = [ 'action' => '\FastComments\Client\Model\DeleteCommentAction', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -388,7 +388,7 @@ public function setAction($action) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -398,7 +398,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/DeleteCommentPublic200Response.php b/lib/Model/DeleteCommentPublic200Response.php index 8cacfc4..472465b 100644 --- a/lib/Model/DeleteCommentPublic200Response.php +++ b/lib/Model/DeleteCommentPublic200Response.php @@ -58,9 +58,9 @@ class DeleteCommentPublic200Response implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ - 'comment' => '\FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId', + 'comment' => '\FastComments\Client\Model\DeletedCommentResultComment', 'hard_removed' => 'bool', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -368,7 +368,7 @@ public function valid() /** * Gets comment * - * @return \FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId|null + * @return \FastComments\Client\Model\DeletedCommentResultComment|null */ public function getComment() { @@ -378,7 +378,7 @@ public function getComment() /** * Sets comment * - * @param \FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId|null $comment comment + * @param \FastComments\Client\Model\DeletedCommentResultComment|null $comment comment * * @return self */ @@ -422,7 +422,7 @@ public function setHardRemoved($hard_removed) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -432,7 +432,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/DeleteCommentResult.php b/lib/Model/DeleteCommentResult.php index 1c58c9e..5221bb4 100644 --- a/lib/Model/DeleteCommentResult.php +++ b/lib/Model/DeleteCommentResult.php @@ -59,7 +59,7 @@ class DeleteCommentResult implements ModelInterface, ArrayAccess, \JsonSerializa */ protected static $openAPITypes = [ 'action' => '\FastComments\Client\Model\DeleteCommentAction', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -333,7 +333,7 @@ public function setAction($action) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -343,7 +343,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/DeleteCommentVote200Response.php b/lib/Model/DeleteCommentVote200Response.php index 86d3521..f45e109 100644 --- a/lib/Model/DeleteCommentVote200Response.php +++ b/lib/Model/DeleteCommentVote200Response.php @@ -58,7 +58,7 @@ class DeleteCommentVote200Response implements ModelInterface, ArrayAccess, \Json * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'was_pending_vote' => 'bool', 'reason' => 'string', 'code' => 'string', @@ -358,7 +358,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -368,7 +368,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/DeleteFeedPostPublic200Response.php b/lib/Model/DeleteFeedPostPublic200Response.php index 3d73439..ece682f 100644 --- a/lib/Model/DeleteFeedPostPublic200Response.php +++ b/lib/Model/DeleteFeedPostPublic200Response.php @@ -58,7 +58,7 @@ class DeleteFeedPostPublic200Response implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -351,7 +351,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -361,7 +361,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.php b/lib/Model/DeletedCommentResultComment.php similarity index 91% rename from lib/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.php rename to lib/Model/DeletedCommentResultComment.php index df09c4f..1674d96 100644 --- a/lib/Model/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.php +++ b/lib/Model/DeletedCommentResultComment.php @@ -1,6 +1,6 @@ */ -class PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId implements ModelInterface, ArrayAccess, \JsonSerializable +class DeletedCommentResultComment implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +50,7 @@ class PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId implements Model * * @var string */ - protected static $openAPIModelName = 'Pick_FComment.isDeleted-or-commentHTML-or-commenterName-or-userId_'; + protected static $openAPIModelName = 'DeletedCommentResultComment'; /** * Array of property to type mappings. Used for (de)serialization @@ -59,10 +58,10 @@ class PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId implements Model * @var string[] */ protected static $openAPITypes = [ - 'user_id' => 'string', - 'commenter_name' => 'string', + 'is_deleted' => 'bool', 'comment_html' => 'string', - 'is_deleted' => 'bool' + 'commenter_name' => 'string', + 'user_id' => 'string' ]; /** @@ -73,10 +72,10 @@ class PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId implements Model * @psalm-var array */ protected static $openAPIFormats = [ - 'user_id' => null, - 'commenter_name' => null, + 'is_deleted' => null, 'comment_html' => null, - 'is_deleted' => null + 'commenter_name' => null, + 'user_id' => null ]; /** @@ -85,10 +84,10 @@ class PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId implements Model * @var boolean[] */ protected static array $openAPINullables = [ - 'user_id' => false, - 'commenter_name' => false, + 'is_deleted' => false, 'comment_html' => false, - 'is_deleted' => false + 'commenter_name' => false, + 'user_id' => true ]; /** @@ -177,10 +176,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'user_id' => 'userId', - 'commenter_name' => 'commenterName', + 'is_deleted' => 'isDeleted', 'comment_html' => 'commentHTML', - 'is_deleted' => 'isDeleted' + 'commenter_name' => 'commenterName', + 'user_id' => 'userId' ]; /** @@ -189,10 +188,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'user_id' => 'setUserId', - 'commenter_name' => 'setCommenterName', + 'is_deleted' => 'setIsDeleted', 'comment_html' => 'setCommentHtml', - 'is_deleted' => 'setIsDeleted' + 'commenter_name' => 'setCommenterName', + 'user_id' => 'setUserId' ]; /** @@ -201,10 +200,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'user_id' => 'getUserId', - 'commenter_name' => 'getCommenterName', + 'is_deleted' => 'getIsDeleted', 'comment_html' => 'getCommentHtml', - 'is_deleted' => 'getIsDeleted' + 'commenter_name' => 'getCommenterName', + 'user_id' => 'getUserId' ]; /** @@ -264,10 +263,10 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('user_id', $data ?? [], null); - $this->setIfExists('commenter_name', $data ?? [], null); - $this->setIfExists('comment_html', $data ?? [], null); $this->setIfExists('is_deleted', $data ?? [], null); + $this->setIfExists('comment_html', $data ?? [], null); + $this->setIfExists('commenter_name', $data ?? [], null); + $this->setIfExists('user_id', $data ?? [], null); } /** @@ -297,12 +296,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['commenter_name'] === null) { - $invalidProperties[] = "'commenter_name' can't be null"; - } if ($this->container['comment_html'] === null) { $invalidProperties[] = "'comment_html' can't be null"; } + if ($this->container['commenter_name'] === null) { + $invalidProperties[] = "'commenter_name' can't be null"; + } return $invalidProperties; } @@ -319,109 +318,116 @@ public function valid() /** - * Gets user_id + * Gets is_deleted * - * @return string|null + * @return bool|null */ - public function getUserId() + public function getIsDeleted() { - return $this->container['user_id']; + return $this->container['is_deleted']; } /** - * Sets user_id + * Sets is_deleted * - * @param string|null $user_id user_id + * @param bool|null $is_deleted is_deleted * * @return self */ - public function setUserId($user_id) + public function setIsDeleted($is_deleted) { - if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + if (is_null($is_deleted)) { + throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); } - $this->container['user_id'] = $user_id; + $this->container['is_deleted'] = $is_deleted; return $this; } /** - * Gets commenter_name + * Gets comment_html * * @return string */ - public function getCommenterName() + public function getCommentHtml() { - return $this->container['commenter_name']; + return $this->container['comment_html']; } /** - * Sets commenter_name + * Sets comment_html * - * @param string $commenter_name commenter_name + * @param string $comment_html comment_html * * @return self */ - public function setCommenterName($commenter_name) + public function setCommentHtml($comment_html) { - if (is_null($commenter_name)) { - throw new \InvalidArgumentException('non-nullable commenter_name cannot be null'); + if (is_null($comment_html)) { + throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); } - $this->container['commenter_name'] = $commenter_name; + $this->container['comment_html'] = $comment_html; return $this; } /** - * Gets comment_html + * Gets commenter_name * * @return string */ - public function getCommentHtml() + public function getCommenterName() { - return $this->container['comment_html']; + return $this->container['commenter_name']; } /** - * Sets comment_html + * Sets commenter_name * - * @param string $comment_html comment_html + * @param string $commenter_name commenter_name * * @return self */ - public function setCommentHtml($comment_html) + public function setCommenterName($commenter_name) { - if (is_null($comment_html)) { - throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); + if (is_null($commenter_name)) { + throw new \InvalidArgumentException('non-nullable commenter_name cannot be null'); } - $this->container['comment_html'] = $comment_html; + $this->container['commenter_name'] = $commenter_name; return $this; } /** - * Gets is_deleted + * Gets user_id * - * @return bool|null + * @return string|null */ - public function getIsDeleted() + public function getUserId() { - return $this->container['is_deleted']; + return $this->container['user_id']; } /** - * Sets is_deleted + * Sets user_id * - * @param bool|null $is_deleted is_deleted + * @param string|null $user_id user_id * * @return self */ - public function setIsDeleted($is_deleted) + public function setUserId($user_id) { - if (is_null($is_deleted)) { - throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); + if (is_null($user_id)) { + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_deleted'] = $is_deleted; + $this->container['user_id'] = $user_id; return $this; } diff --git a/lib/Model/FComment.php b/lib/Model/FComment.php index 4974994..46153e5 100644 --- a/lib/Model/FComment.php +++ b/lib/Model/FComment.php @@ -124,7 +124,7 @@ class FComment implements ModelInterface, ArrayAccess, \JsonSerializable 'autoplay_job_id' => 'string', 'autoplay_delay_ms' => 'int', 'feedback_ids' => 'string[]', - 'logs' => 'array[]', + 'logs' => '\FastComments\Client\Model\CommentLogEntry[]', 'group_ids' => 'string[]', 'view_count' => 'int', 'requires_verification' => 'bool', @@ -2808,7 +2808,7 @@ public function setFeedbackIds($feedback_ids) /** * Gets logs * - * @return array[]|null + * @return \FastComments\Client\Model\CommentLogEntry[]|null */ public function getLogs() { @@ -2818,7 +2818,7 @@ public function getLogs() /** * Sets logs * - * @param array[]|null $logs logs + * @param \FastComments\Client\Model\CommentLogEntry[]|null $logs logs * * @return self */ diff --git a/lib/Model/FlagComment200Response.php b/lib/Model/FlagComment200Response.php index 97ebc12..3b5ab6a 100644 --- a/lib/Model/FlagComment200Response.php +++ b/lib/Model/FlagComment200Response.php @@ -59,7 +59,7 @@ class FlagComment200Response implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPITypes = [ 'status_code' => 'int', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'code' => 'string', 'reason' => 'string', 'was_unapproved' => 'bool', @@ -392,7 +392,7 @@ public function setStatusCode($status_code) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -402,7 +402,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/FlagCommentPublic200Response.php b/lib/Model/FlagCommentPublic200Response.php index 4972c12..c580564 100644 --- a/lib/Model/FlagCommentPublic200Response.php +++ b/lib/Model/FlagCommentPublic200Response.php @@ -58,7 +58,7 @@ class FlagCommentPublic200Response implements ModelInterface, ArrayAccess, \Json * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -351,7 +351,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -361,7 +361,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetAuditLogs200Response.php b/lib/Model/GetAuditLogs200Response.php index 2738d4e..0faebb6 100644 --- a/lib/Model/GetAuditLogs200Response.php +++ b/lib/Model/GetAuditLogs200Response.php @@ -58,8 +58,8 @@ class GetAuditLogs200Response implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', - 'audit_logs' => '\FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[]', + 'status' => '\FastComments\Client\Model\APIStatus', + 'audit_logs' => '\FastComments\Client\Model\APIAuditLog[]', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ @@ -388,7 +388,7 @@ public function setStatus($status) /** * Gets audit_logs * - * @return \FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[] + * @return \FastComments\Client\Model\APIAuditLog[] */ public function getAuditLogs() { @@ -398,7 +398,7 @@ public function getAuditLogs() /** * Sets audit_logs * - * @param \FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[] $audit_logs audit_logs + * @param \FastComments\Client\Model\APIAuditLog[] $audit_logs audit_logs * * @return self */ diff --git a/lib/Model/GetAuditLogsResponse.php b/lib/Model/GetAuditLogsResponse.php index 7bddeec..7e53812 100644 --- a/lib/Model/GetAuditLogsResponse.php +++ b/lib/Model/GetAuditLogsResponse.php @@ -59,7 +59,7 @@ class GetAuditLogsResponse implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPITypes = [ 'status' => '\FastComments\Client\Model\APIStatus', - 'audit_logs' => '\FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[]' + 'audit_logs' => '\FastComments\Client\Model\APIAuditLog[]' ]; /** @@ -333,7 +333,7 @@ public function setStatus($status) /** * Gets audit_logs * - * @return \FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[] + * @return \FastComments\Client\Model\APIAuditLog[] */ public function getAuditLogs() { @@ -343,7 +343,7 @@ public function getAuditLogs() /** * Sets audit_logs * - * @param \FastComments\Client\Model\PickTenantAuditLogTenantAuditLogKeys[] $audit_logs audit_logs + * @param \FastComments\Client\Model\APIAuditLog[] $audit_logs audit_logs * * @return self */ diff --git a/lib/Model/GetComment200Response.php b/lib/Model/GetComment200Response.php index 77f66cc..f97dcca 100644 --- a/lib/Model/GetComment200Response.php +++ b/lib/Model/GetComment200Response.php @@ -58,8 +58,8 @@ class GetComment200Response implements ModelInterface, ArrayAccess, \JsonSeriali * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', - 'comment' => '\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys', + 'status' => '\FastComments\Client\Model\APIStatus', + 'comment' => '\FastComments\Client\Model\APIComment', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ @@ -388,7 +388,7 @@ public function setStatus($status) /** * Gets comment * - * @return \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys + * @return \FastComments\Client\Model\APIComment */ public function getComment() { @@ -398,7 +398,7 @@ public function getComment() /** * Sets comment * - * @param \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys $comment comment + * @param \FastComments\Client\Model\APIComment $comment comment * * @return self */ diff --git a/lib/Model/GetCommentText200Response.php b/lib/Model/GetCommentText200Response.php index 7fc090e..300e085 100644 --- a/lib/Model/GetCommentText200Response.php +++ b/lib/Model/GetCommentText200Response.php @@ -58,7 +58,7 @@ class GetCommentText200Response implements ModelInterface, ArrayAccess, \JsonSer * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment_text' => 'string', 'sanitized_comment_text' => 'string', 'reason' => 'string', @@ -371,7 +371,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -381,7 +381,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetCommentVoteUserNames200Response.php b/lib/Model/GetCommentVoteUserNames200Response.php index abd7f33..0211a6b 100644 --- a/lib/Model/GetCommentVoteUserNames200Response.php +++ b/lib/Model/GetCommentVoteUserNames200Response.php @@ -58,7 +58,7 @@ class GetCommentVoteUserNames200Response implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'vote_user_names' => 'string[]', 'has_more' => 'bool', 'reason' => 'string', @@ -371,7 +371,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -381,7 +381,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetCommentVoteUserNamesSuccessResponse.php b/lib/Model/GetCommentVoteUserNamesSuccessResponse.php index c30452a..0478402 100644 --- a/lib/Model/GetCommentVoteUserNamesSuccessResponse.php +++ b/lib/Model/GetCommentVoteUserNamesSuccessResponse.php @@ -58,7 +58,7 @@ class GetCommentVoteUserNamesSuccessResponse implements ModelInterface, ArrayAcc * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'vote_user_names' => 'string[]', 'has_more' => 'bool' ]; @@ -316,7 +316,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -326,7 +326,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetComments200Response.php b/lib/Model/GetComments200Response.php index 533a660..ce4df53 100644 --- a/lib/Model/GetComments200Response.php +++ b/lib/Model/GetComments200Response.php @@ -58,8 +58,8 @@ class GetComments200Response implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', - 'comments' => '\FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[]', + 'status' => '\FastComments\Client\Model\APIStatus', + 'comments' => '\FastComments\Client\Model\APIComment[]', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ @@ -388,7 +388,7 @@ public function setStatus($status) /** * Gets comments * - * @return \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[] + * @return \FastComments\Client\Model\APIComment[] */ public function getComments() { @@ -398,7 +398,7 @@ public function getComments() /** * Sets comments * - * @param \FastComments\Client\Model\PickFCommentAPICommentFieldsKeys[] $comments comments + * @param \FastComments\Client\Model\APIComment[] $comments comments * * @return self */ diff --git a/lib/Model/GetCommentsPublic200Response.php b/lib/Model/GetCommentsPublic200Response.php index f6bb95c..7f6efa1 100644 --- a/lib/Model/GetCommentsPublic200Response.php +++ b/lib/Model/GetCommentsPublic200Response.php @@ -59,7 +59,7 @@ class GetCommentsPublic200Response implements ModelInterface, ArrayAccess, \Json */ protected static $openAPITypes = [ 'status_code' => 'int', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'code' => 'string', 'reason' => 'string', 'translated_warning' => 'string', @@ -548,7 +548,7 @@ public function setStatusCode($status_code) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -558,7 +558,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetEventLog200Response.php b/lib/Model/GetEventLog200Response.php index 1e70610..72bcb6f 100644 --- a/lib/Model/GetEventLog200Response.php +++ b/lib/Model/GetEventLog200Response.php @@ -59,7 +59,7 @@ class GetEventLog200Response implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPITypes = [ 'events' => '\FastComments\Client\Model\EventLogEntry[]', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -388,7 +388,7 @@ public function setEvents($events) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -398,7 +398,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetEventLogResponse.php b/lib/Model/GetEventLogResponse.php index 96b95dd..ff8cc88 100644 --- a/lib/Model/GetEventLogResponse.php +++ b/lib/Model/GetEventLogResponse.php @@ -59,7 +59,7 @@ class GetEventLogResponse implements ModelInterface, ArrayAccess, \JsonSerializa */ protected static $openAPITypes = [ 'events' => '\FastComments\Client\Model\EventLogEntry[]', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -333,7 +333,7 @@ public function setEvents($events) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -343,7 +343,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetFeedPosts200Response.php b/lib/Model/GetFeedPosts200Response.php index 879f2e5..3ba3275 100644 --- a/lib/Model/GetFeedPosts200Response.php +++ b/lib/Model/GetFeedPosts200Response.php @@ -58,7 +58,7 @@ class GetFeedPosts200Response implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'feed_posts' => '\FastComments\Client\Model\FeedPost[]', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetFeedPostsPublic200Response.php b/lib/Model/GetFeedPostsPublic200Response.php index 4d090a1..53e81a9 100644 --- a/lib/Model/GetFeedPostsPublic200Response.php +++ b/lib/Model/GetFeedPostsPublic200Response.php @@ -59,7 +59,7 @@ class GetFeedPostsPublic200Response implements ModelInterface, ArrayAccess, \Jso */ protected static $openAPITypes = [ 'my_reacts' => 'array>', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'feed_posts' => '\FastComments\Client\Model\FeedPost[]', 'user' => '\FastComments\Client\Model\UserSessionInfo', 'url_id_ws' => 'string', @@ -423,7 +423,7 @@ public function setMyReacts($my_reacts) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -433,7 +433,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetFeedPostsStats200Response.php b/lib/Model/GetFeedPostsStats200Response.php index 4505472..826c68f 100644 --- a/lib/Model/GetFeedPostsStats200Response.php +++ b/lib/Model/GetFeedPostsStats200Response.php @@ -58,7 +58,7 @@ class GetFeedPostsStats200Response implements ModelInterface, ArrayAccess, \Json * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'stats' => 'array', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetMyNotificationsResponse.php b/lib/Model/GetMyNotificationsResponse.php index a32bad4..f5e342d 100644 --- a/lib/Model/GetMyNotificationsResponse.php +++ b/lib/Model/GetMyNotificationsResponse.php @@ -62,7 +62,7 @@ class GetMyNotificationsResponse implements ModelInterface, ArrayAccess, \JsonSe 'is_subscribed' => 'bool', 'has_more' => 'bool', 'notifications' => '\FastComments\Client\Model\RenderableUserNotification[]', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -441,7 +441,7 @@ public function setNotifications($notifications) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -451,7 +451,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetPublicFeedPostsResponse.php b/lib/Model/GetPublicFeedPostsResponse.php index 5922d2a..df16182 100644 --- a/lib/Model/GetPublicFeedPostsResponse.php +++ b/lib/Model/GetPublicFeedPostsResponse.php @@ -58,7 +58,7 @@ class GetPublicFeedPostsResponse implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'feed_posts' => '\FastComments\Client\Model\FeedPost[]', 'user' => '\FastComments\Client\Model\UserSessionInfo' ]; @@ -313,7 +313,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -323,7 +323,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserBadge200Response.php b/lib/Model/GetUserBadge200Response.php index bd3de20..be1bb0b 100644 --- a/lib/Model/GetUserBadge200Response.php +++ b/lib/Model/GetUserBadge200Response.php @@ -58,7 +58,7 @@ class GetUserBadge200Response implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'user_badge' => '\FastComments\Client\Model\UserBadge', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserBadgeProgressById200Response.php b/lib/Model/GetUserBadgeProgressById200Response.php index 9f6f1ad..c5b1b40 100644 --- a/lib/Model/GetUserBadgeProgressById200Response.php +++ b/lib/Model/GetUserBadgeProgressById200Response.php @@ -58,7 +58,7 @@ class GetUserBadgeProgressById200Response implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'user_badge_progress' => '\FastComments\Client\Model\UserBadgeProgress', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserBadgeProgressList200Response.php b/lib/Model/GetUserBadgeProgressList200Response.php index 4b462d0..107b231 100644 --- a/lib/Model/GetUserBadgeProgressList200Response.php +++ b/lib/Model/GetUserBadgeProgressList200Response.php @@ -58,7 +58,7 @@ class GetUserBadgeProgressList200Response implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'user_badge_progresses' => '\FastComments\Client\Model\UserBadgeProgress[]', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserBadges200Response.php b/lib/Model/GetUserBadges200Response.php index d6db887..4dc00c3 100644 --- a/lib/Model/GetUserBadges200Response.php +++ b/lib/Model/GetUserBadges200Response.php @@ -58,7 +58,7 @@ class GetUserBadges200Response implements ModelInterface, ArrayAccess, \JsonSeri * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'user_badges' => '\FastComments\Client\Model\UserBadge[]', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserNotificationCount200Response.php b/lib/Model/GetUserNotificationCount200Response.php index 42b2a82..fca833b 100644 --- a/lib/Model/GetUserNotificationCount200Response.php +++ b/lib/Model/GetUserNotificationCount200Response.php @@ -58,7 +58,7 @@ class GetUserNotificationCount200Response implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'count' => 'int', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserNotificationCountResponse.php b/lib/Model/GetUserNotificationCountResponse.php index 8f7b5cf..ad08eb0 100644 --- a/lib/Model/GetUserNotificationCountResponse.php +++ b/lib/Model/GetUserNotificationCountResponse.php @@ -58,7 +58,7 @@ class GetUserNotificationCountResponse implements ModelInterface, ArrayAccess, \ * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'count' => 'int' ]; @@ -306,7 +306,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -316,7 +316,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserNotifications200Response.php b/lib/Model/GetUserNotifications200Response.php index 88bce81..9cdb5c4 100644 --- a/lib/Model/GetUserNotifications200Response.php +++ b/lib/Model/GetUserNotifications200Response.php @@ -62,7 +62,7 @@ class GetUserNotifications200Response implements ModelInterface, ArrayAccess, \J 'is_subscribed' => 'bool', 'has_more' => 'bool', 'notifications' => '\FastComments\Client\Model\RenderableUserNotification[]', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -496,7 +496,7 @@ public function setNotifications($notifications) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -506,7 +506,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserPresenceStatuses200Response.php b/lib/Model/GetUserPresenceStatuses200Response.php index 6020007..04e3e84 100644 --- a/lib/Model/GetUserPresenceStatuses200Response.php +++ b/lib/Model/GetUserPresenceStatuses200Response.php @@ -58,7 +58,7 @@ class GetUserPresenceStatuses200Response implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'user_ids_online' => 'array', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserPresenceStatusesResponse.php b/lib/Model/GetUserPresenceStatusesResponse.php index 5ef2df9..f112a4b 100644 --- a/lib/Model/GetUserPresenceStatusesResponse.php +++ b/lib/Model/GetUserPresenceStatusesResponse.php @@ -58,7 +58,7 @@ class GetUserPresenceStatusesResponse implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'user_ids_online' => 'array' ]; @@ -306,7 +306,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -316,7 +316,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/GetUserReactsPublic200Response.php b/lib/Model/GetUserReactsPublic200Response.php index 1fea48c..4671ebc 100644 --- a/lib/Model/GetUserReactsPublic200Response.php +++ b/lib/Model/GetUserReactsPublic200Response.php @@ -58,7 +58,7 @@ class GetUserReactsPublic200Response implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reacts' => 'array>', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/HeaderState.php b/lib/Model/HeaderState.php index ce7a2fa..8819fe3 100644 --- a/lib/Model/HeaderState.php +++ b/lib/Model/HeaderState.php @@ -58,7 +58,7 @@ class HeaderState implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'notification_type' => 'object', 'user_id' => 'string', 'user_id_ws' => 'string', @@ -336,7 +336,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -346,7 +346,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/IgnoredResponse.php b/lib/Model/IgnoredResponse.php index e6b94ca..5f7f247 100644 --- a/lib/Model/IgnoredResponse.php +++ b/lib/Model/IgnoredResponse.php @@ -58,7 +58,7 @@ class IgnoredResponse implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'note' => 'string' ]; @@ -330,7 +330,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -340,7 +340,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/LockComment200Response.php b/lib/Model/LockComment200Response.php index feb702d..c9602c5 100644 --- a/lib/Model/LockComment200Response.php +++ b/lib/Model/LockComment200Response.php @@ -58,7 +58,7 @@ class LockComment200Response implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -351,7 +351,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -361,7 +361,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PatchPageAPIResponse.php b/lib/Model/PatchPageAPIResponse.php index 07ccc02..8e5e0ea 100644 --- a/lib/Model/PatchPageAPIResponse.php +++ b/lib/Model/PatchPageAPIResponse.php @@ -60,6 +60,7 @@ class PatchPageAPIResponse implements ModelInterface, ArrayAccess, \JsonSerializ protected static $openAPITypes = [ 'reason' => 'string', 'code' => 'string', + 'comments_updated' => 'int', 'page' => '\FastComments\Client\Model\APIPage', 'status' => 'string' ]; @@ -74,6 +75,7 @@ class PatchPageAPIResponse implements ModelInterface, ArrayAccess, \JsonSerializ protected static $openAPIFormats = [ 'reason' => null, 'code' => null, + 'comments_updated' => 'int64', 'page' => null, 'status' => null ]; @@ -86,6 +88,7 @@ class PatchPageAPIResponse implements ModelInterface, ArrayAccess, \JsonSerializ protected static array $openAPINullables = [ 'reason' => false, 'code' => false, + 'comments_updated' => false, 'page' => false, 'status' => false ]; @@ -178,6 +181,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'reason' => 'reason', 'code' => 'code', + 'comments_updated' => 'commentsUpdated', 'page' => 'page', 'status' => 'status' ]; @@ -190,6 +194,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'reason' => 'setReason', 'code' => 'setCode', + 'comments_updated' => 'setCommentsUpdated', 'page' => 'setPage', 'status' => 'setStatus' ]; @@ -202,6 +207,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'reason' => 'getReason', 'code' => 'getCode', + 'comments_updated' => 'getCommentsUpdated', 'page' => 'getPage', 'status' => 'getStatus' ]; @@ -265,6 +271,7 @@ public function __construct(?array $data = null) { $this->setIfExists('reason', $data ?? [], null); $this->setIfExists('code', $data ?? [], null); + $this->setIfExists('comments_updated', $data ?? [], null); $this->setIfExists('page', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); } @@ -368,6 +375,33 @@ public function setCode($code) return $this; } + /** + * Gets comments_updated + * + * @return int|null + */ + public function getCommentsUpdated() + { + return $this->container['comments_updated']; + } + + /** + * Sets comments_updated + * + * @param int|null $comments_updated comments_updated + * + * @return self + */ + public function setCommentsUpdated($comments_updated) + { + if (is_null($comments_updated)) { + throw new \InvalidArgumentException('non-nullable comments_updated cannot be null'); + } + $this->container['comments_updated'] = $comments_updated; + + return $this; + } + /** * Gets page * diff --git a/lib/Model/PinComment200Response.php b/lib/Model/PinComment200Response.php index 97534e7..e10ebc2 100644 --- a/lib/Model/PinComment200Response.php +++ b/lib/Model/PinComment200Response.php @@ -59,7 +59,7 @@ class PinComment200Response implements ModelInterface, ArrayAccess, \JsonSeriali */ protected static $openAPITypes = [ 'comment_positions' => 'array', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -388,7 +388,7 @@ public function setCommentPositions($comment_positions) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -398,7 +398,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PubSubComment.php b/lib/Model/PubSubComment.php index 0569a3b..4d0f05f 100644 --- a/lib/Model/PubSubComment.php +++ b/lib/Model/PubSubComment.php @@ -58,49 +58,49 @@ class PubSubComment implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'date' => 'string', '_id' => 'string', 'tenant_id' => 'string', - 'url_id' => 'string', - 'url' => 'string', - 'page_title' => 'string', 'user_id' => 'string', - 'anon_user_id' => 'string', + 'url_id' => 'string', 'commenter_name' => 'string', 'commenter_link' => 'string', - 'comment' => 'string', 'comment_html' => 'string', + 'comment' => 'string', 'parent_id' => 'string', 'votes' => 'int', 'votes_up' => 'int', 'votes_down' => 'int', - 'expire_at' => '\DateTime', 'verified' => 'bool', - 'reviewed' => 'bool', 'avatar_src' => 'string', - 'is_spam' => 'bool', 'has_images' => 'bool', 'has_links' => 'bool', - 'has_code' => 'bool', - 'approved' => 'bool', - 'locale' => 'string', - 'is_deleted' => 'bool', - 'is_deleted_user' => 'bool', - 'is_banned_user' => 'bool', 'is_by_admin' => 'bool', 'is_by_moderator' => 'bool', 'is_pinned' => 'bool', 'is_locked' => 'bool', - 'flag_count' => 'int', - 'rating' => 'float', 'display_label' => 'string', + 'rating' => 'float', 'badges' => '\FastComments\Client\Model\CommentUserBadgeInfo[]', - 'domain' => 'string', + 'view_count' => 'int', + 'is_deleted' => 'bool', + 'is_deleted_user' => 'bool', + 'is_spam' => 'bool', + 'anon_user_id' => 'string', 'feedback_ids' => 'string[]', + 'flag_count' => 'int', + 'domain' => 'string', + 'url' => 'string', + 'page_title' => 'string', + 'expire_at' => '\DateTime', + 'reviewed' => 'bool', + 'has_code' => 'bool', + 'approved' => 'bool', + 'locale' => 'string', + 'is_banned_user' => 'bool', 'group_ids' => 'string[]', - 'view_count' => 'int', 'is_live' => 'bool', - 'hidden' => 'bool' + 'hidden' => 'bool', + 'date' => 'string' ]; /** @@ -111,49 +111,49 @@ class PubSubComment implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'date' => null, '_id' => null, 'tenant_id' => null, - 'url_id' => null, - 'url' => null, - 'page_title' => null, 'user_id' => null, - 'anon_user_id' => null, + 'url_id' => null, 'commenter_name' => null, 'commenter_link' => null, - 'comment' => null, 'comment_html' => null, + 'comment' => null, 'parent_id' => null, 'votes' => 'int32', 'votes_up' => 'int32', 'votes_down' => 'int32', - 'expire_at' => 'date-time', 'verified' => null, - 'reviewed' => null, 'avatar_src' => null, - 'is_spam' => null, 'has_images' => null, 'has_links' => null, - 'has_code' => null, - 'approved' => null, - 'locale' => null, - 'is_deleted' => null, - 'is_deleted_user' => null, - 'is_banned_user' => null, 'is_by_admin' => null, 'is_by_moderator' => null, 'is_pinned' => null, 'is_locked' => null, - 'flag_count' => 'int32', - 'rating' => 'double', 'display_label' => null, + 'rating' => 'double', 'badges' => null, - 'domain' => null, + 'view_count' => 'int64', + 'is_deleted' => null, + 'is_deleted_user' => null, + 'is_spam' => null, + 'anon_user_id' => null, 'feedback_ids' => null, + 'flag_count' => 'int32', + 'domain' => null, + 'url' => null, + 'page_title' => null, + 'expire_at' => 'date-time', + 'reviewed' => null, + 'has_code' => null, + 'approved' => null, + 'locale' => null, + 'is_banned_user' => null, 'group_ids' => null, - 'view_count' => 'int64', 'is_live' => null, - 'hidden' => null + 'hidden' => null, + 'date' => null ]; /** @@ -162,49 +162,49 @@ class PubSubComment implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'date' => false, '_id' => false, 'tenant_id' => false, + 'user_id' => true, 'url_id' => false, - 'url' => false, - 'page_title' => false, - 'user_id' => false, - 'anon_user_id' => false, 'commenter_name' => false, - 'commenter_link' => false, - 'comment' => false, + 'commenter_link' => true, 'comment_html' => false, - 'parent_id' => false, - 'votes' => false, - 'votes_up' => false, - 'votes_down' => false, - 'expire_at' => false, + 'comment' => false, + 'parent_id' => true, + 'votes' => true, + 'votes_up' => true, + 'votes_down' => true, 'verified' => false, - 'reviewed' => false, - 'avatar_src' => false, - 'is_spam' => false, + 'avatar_src' => true, 'has_images' => false, 'has_links' => false, - 'has_code' => false, - 'approved' => false, - 'locale' => false, - 'is_deleted' => false, - 'is_deleted_user' => false, - 'is_banned_user' => false, 'is_by_admin' => false, 'is_by_moderator' => false, - 'is_pinned' => false, - 'is_locked' => false, - 'flag_count' => false, - 'rating' => false, - 'display_label' => false, - 'badges' => false, - 'domain' => false, + 'is_pinned' => true, + 'is_locked' => true, + 'display_label' => true, + 'rating' => true, + 'badges' => true, + 'view_count' => true, + 'is_deleted' => false, + 'is_deleted_user' => false, + 'is_spam' => false, + 'anon_user_id' => true, 'feedback_ids' => false, - 'group_ids' => false, - 'view_count' => false, + 'flag_count' => true, + 'domain' => true, + 'url' => false, + 'page_title' => true, + 'expire_at' => true, + 'reviewed' => false, + 'has_code' => false, + 'approved' => false, + 'locale' => true, + 'is_banned_user' => false, + 'group_ids' => true, 'is_live' => false, - 'hidden' => false + 'hidden' => false, + 'date' => false ]; /** @@ -293,49 +293,49 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'date' => 'date', '_id' => '_id', 'tenant_id' => 'tenantId', - 'url_id' => 'urlId', - 'url' => 'url', - 'page_title' => 'pageTitle', 'user_id' => 'userId', - 'anon_user_id' => 'anonUserId', + 'url_id' => 'urlId', 'commenter_name' => 'commenterName', 'commenter_link' => 'commenterLink', - 'comment' => 'comment', 'comment_html' => 'commentHTML', + 'comment' => 'comment', 'parent_id' => 'parentId', 'votes' => 'votes', 'votes_up' => 'votesUp', 'votes_down' => 'votesDown', - 'expire_at' => 'expireAt', 'verified' => 'verified', - 'reviewed' => 'reviewed', 'avatar_src' => 'avatarSrc', - 'is_spam' => 'isSpam', 'has_images' => 'hasImages', 'has_links' => 'hasLinks', - 'has_code' => 'hasCode', - 'approved' => 'approved', - 'locale' => 'locale', - 'is_deleted' => 'isDeleted', - 'is_deleted_user' => 'isDeletedUser', - 'is_banned_user' => 'isBannedUser', 'is_by_admin' => 'isByAdmin', 'is_by_moderator' => 'isByModerator', 'is_pinned' => 'isPinned', 'is_locked' => 'isLocked', - 'flag_count' => 'flagCount', - 'rating' => 'rating', 'display_label' => 'displayLabel', + 'rating' => 'rating', 'badges' => 'badges', - 'domain' => 'domain', + 'view_count' => 'viewCount', + 'is_deleted' => 'isDeleted', + 'is_deleted_user' => 'isDeletedUser', + 'is_spam' => 'isSpam', + 'anon_user_id' => 'anonUserId', 'feedback_ids' => 'feedbackIds', + 'flag_count' => 'flagCount', + 'domain' => 'domain', + 'url' => 'url', + 'page_title' => 'pageTitle', + 'expire_at' => 'expireAt', + 'reviewed' => 'reviewed', + 'has_code' => 'hasCode', + 'approved' => 'approved', + 'locale' => 'locale', + 'is_banned_user' => 'isBannedUser', 'group_ids' => 'groupIds', - 'view_count' => 'viewCount', 'is_live' => 'isLive', - 'hidden' => 'hidden' + 'hidden' => 'hidden', + 'date' => 'date' ]; /** @@ -344,49 +344,49 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'date' => 'setDate', '_id' => 'setId', 'tenant_id' => 'setTenantId', - 'url_id' => 'setUrlId', - 'url' => 'setUrl', - 'page_title' => 'setPageTitle', 'user_id' => 'setUserId', - 'anon_user_id' => 'setAnonUserId', + 'url_id' => 'setUrlId', 'commenter_name' => 'setCommenterName', 'commenter_link' => 'setCommenterLink', - 'comment' => 'setComment', 'comment_html' => 'setCommentHtml', + 'comment' => 'setComment', 'parent_id' => 'setParentId', 'votes' => 'setVotes', 'votes_up' => 'setVotesUp', 'votes_down' => 'setVotesDown', - 'expire_at' => 'setExpireAt', 'verified' => 'setVerified', - 'reviewed' => 'setReviewed', 'avatar_src' => 'setAvatarSrc', - 'is_spam' => 'setIsSpam', 'has_images' => 'setHasImages', 'has_links' => 'setHasLinks', - 'has_code' => 'setHasCode', - 'approved' => 'setApproved', - 'locale' => 'setLocale', - 'is_deleted' => 'setIsDeleted', - 'is_deleted_user' => 'setIsDeletedUser', - 'is_banned_user' => 'setIsBannedUser', 'is_by_admin' => 'setIsByAdmin', 'is_by_moderator' => 'setIsByModerator', 'is_pinned' => 'setIsPinned', 'is_locked' => 'setIsLocked', - 'flag_count' => 'setFlagCount', - 'rating' => 'setRating', 'display_label' => 'setDisplayLabel', + 'rating' => 'setRating', 'badges' => 'setBadges', - 'domain' => 'setDomain', + 'view_count' => 'setViewCount', + 'is_deleted' => 'setIsDeleted', + 'is_deleted_user' => 'setIsDeletedUser', + 'is_spam' => 'setIsSpam', + 'anon_user_id' => 'setAnonUserId', 'feedback_ids' => 'setFeedbackIds', + 'flag_count' => 'setFlagCount', + 'domain' => 'setDomain', + 'url' => 'setUrl', + 'page_title' => 'setPageTitle', + 'expire_at' => 'setExpireAt', + 'reviewed' => 'setReviewed', + 'has_code' => 'setHasCode', + 'approved' => 'setApproved', + 'locale' => 'setLocale', + 'is_banned_user' => 'setIsBannedUser', 'group_ids' => 'setGroupIds', - 'view_count' => 'setViewCount', 'is_live' => 'setIsLive', - 'hidden' => 'setHidden' + 'hidden' => 'setHidden', + 'date' => 'setDate' ]; /** @@ -395,49 +395,49 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'date' => 'getDate', '_id' => 'getId', 'tenant_id' => 'getTenantId', - 'url_id' => 'getUrlId', - 'url' => 'getUrl', - 'page_title' => 'getPageTitle', 'user_id' => 'getUserId', - 'anon_user_id' => 'getAnonUserId', + 'url_id' => 'getUrlId', 'commenter_name' => 'getCommenterName', 'commenter_link' => 'getCommenterLink', - 'comment' => 'getComment', 'comment_html' => 'getCommentHtml', + 'comment' => 'getComment', 'parent_id' => 'getParentId', 'votes' => 'getVotes', 'votes_up' => 'getVotesUp', 'votes_down' => 'getVotesDown', - 'expire_at' => 'getExpireAt', 'verified' => 'getVerified', - 'reviewed' => 'getReviewed', 'avatar_src' => 'getAvatarSrc', - 'is_spam' => 'getIsSpam', 'has_images' => 'getHasImages', 'has_links' => 'getHasLinks', - 'has_code' => 'getHasCode', - 'approved' => 'getApproved', - 'locale' => 'getLocale', - 'is_deleted' => 'getIsDeleted', - 'is_deleted_user' => 'getIsDeletedUser', - 'is_banned_user' => 'getIsBannedUser', 'is_by_admin' => 'getIsByAdmin', 'is_by_moderator' => 'getIsByModerator', 'is_pinned' => 'getIsPinned', 'is_locked' => 'getIsLocked', - 'flag_count' => 'getFlagCount', - 'rating' => 'getRating', 'display_label' => 'getDisplayLabel', + 'rating' => 'getRating', 'badges' => 'getBadges', - 'domain' => 'getDomain', + 'view_count' => 'getViewCount', + 'is_deleted' => 'getIsDeleted', + 'is_deleted_user' => 'getIsDeletedUser', + 'is_spam' => 'getIsSpam', + 'anon_user_id' => 'getAnonUserId', 'feedback_ids' => 'getFeedbackIds', + 'flag_count' => 'getFlagCount', + 'domain' => 'getDomain', + 'url' => 'getUrl', + 'page_title' => 'getPageTitle', + 'expire_at' => 'getExpireAt', + 'reviewed' => 'getReviewed', + 'has_code' => 'getHasCode', + 'approved' => 'getApproved', + 'locale' => 'getLocale', + 'is_banned_user' => 'getIsBannedUser', 'group_ids' => 'getGroupIds', - 'view_count' => 'getViewCount', 'is_live' => 'getIsLive', - 'hidden' => 'getHidden' + 'hidden' => 'getHidden', + 'date' => 'getDate' ]; /** @@ -497,49 +497,49 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('date', $data ?? [], null); $this->setIfExists('_id', $data ?? [], null); $this->setIfExists('tenant_id', $data ?? [], null); - $this->setIfExists('url_id', $data ?? [], null); - $this->setIfExists('url', $data ?? [], null); - $this->setIfExists('page_title', $data ?? [], null); $this->setIfExists('user_id', $data ?? [], null); - $this->setIfExists('anon_user_id', $data ?? [], null); + $this->setIfExists('url_id', $data ?? [], null); $this->setIfExists('commenter_name', $data ?? [], null); $this->setIfExists('commenter_link', $data ?? [], null); - $this->setIfExists('comment', $data ?? [], null); $this->setIfExists('comment_html', $data ?? [], null); + $this->setIfExists('comment', $data ?? [], null); $this->setIfExists('parent_id', $data ?? [], null); $this->setIfExists('votes', $data ?? [], null); $this->setIfExists('votes_up', $data ?? [], null); $this->setIfExists('votes_down', $data ?? [], null); - $this->setIfExists('expire_at', $data ?? [], null); $this->setIfExists('verified', $data ?? [], null); - $this->setIfExists('reviewed', $data ?? [], null); $this->setIfExists('avatar_src', $data ?? [], null); - $this->setIfExists('is_spam', $data ?? [], null); $this->setIfExists('has_images', $data ?? [], null); $this->setIfExists('has_links', $data ?? [], null); - $this->setIfExists('has_code', $data ?? [], null); - $this->setIfExists('approved', $data ?? [], null); - $this->setIfExists('locale', $data ?? [], null); - $this->setIfExists('is_deleted', $data ?? [], null); - $this->setIfExists('is_deleted_user', $data ?? [], null); - $this->setIfExists('is_banned_user', $data ?? [], null); $this->setIfExists('is_by_admin', $data ?? [], null); $this->setIfExists('is_by_moderator', $data ?? [], null); $this->setIfExists('is_pinned', $data ?? [], null); $this->setIfExists('is_locked', $data ?? [], null); - $this->setIfExists('flag_count', $data ?? [], null); - $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('display_label', $data ?? [], null); + $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('badges', $data ?? [], null); - $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('view_count', $data ?? [], null); + $this->setIfExists('is_deleted', $data ?? [], null); + $this->setIfExists('is_deleted_user', $data ?? [], null); + $this->setIfExists('is_spam', $data ?? [], null); + $this->setIfExists('anon_user_id', $data ?? [], null); $this->setIfExists('feedback_ids', $data ?? [], null); + $this->setIfExists('flag_count', $data ?? [], null); + $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('page_title', $data ?? [], null); + $this->setIfExists('expire_at', $data ?? [], null); + $this->setIfExists('reviewed', $data ?? [], null); + $this->setIfExists('has_code', $data ?? [], null); + $this->setIfExists('approved', $data ?? [], null); + $this->setIfExists('locale', $data ?? [], null); + $this->setIfExists('is_banned_user', $data ?? [], null); $this->setIfExists('group_ids', $data ?? [], null); - $this->setIfExists('view_count', $data ?? [], null); $this->setIfExists('is_live', $data ?? [], null); $this->setIfExists('hidden', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); } /** @@ -569,9 +569,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { - $invalidProperties[] = "'date' can't be null"; - } if ($this->container['_id'] === null) { $invalidProperties[] = "'_id' can't be null"; } @@ -581,27 +578,30 @@ public function listInvalidProperties() if ($this->container['url_id'] === null) { $invalidProperties[] = "'url_id' can't be null"; } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } if ($this->container['commenter_name'] === null) { $invalidProperties[] = "'commenter_name' can't be null"; } - if ($this->container['comment'] === null) { - $invalidProperties[] = "'comment' can't be null"; - } if ($this->container['comment_html'] === null) { $invalidProperties[] = "'comment_html' can't be null"; } + if ($this->container['comment'] === null) { + $invalidProperties[] = "'comment' can't be null"; + } if ($this->container['verified'] === null) { $invalidProperties[] = "'verified' can't be null"; } + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' can't be null"; + } if ($this->container['approved'] === null) { $invalidProperties[] = "'approved' can't be null"; } if ($this->container['locale'] === null) { $invalidProperties[] = "'locale' can't be null"; } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } return $invalidProperties; } @@ -618,34 +618,7 @@ public function valid() /** - * Gets date - * - * @return string - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param string $date date - * - * @return self - */ - public function setDate($date) - { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); - } - $this->container['date'] = $date; - - return $this; - } - - /** - * Gets _id + * Gets _id * * @return string */ @@ -698,87 +671,6 @@ public function setTenantId($tenant_id) return $this; } - /** - * Gets url_id - * - * @return string - */ - public function getUrlId() - { - return $this->container['url_id']; - } - - /** - * Sets url_id - * - * @param string $url_id url_id - * - * @return self - */ - public function setUrlId($url_id) - { - if (is_null($url_id)) { - throw new \InvalidArgumentException('non-nullable url_id cannot be null'); - } - $this->container['url_id'] = $url_id; - - return $this; - } - - /** - * Gets url - * - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string $url url - * - * @return self - */ - public function setUrl($url) - { - if (is_null($url)) { - throw new \InvalidArgumentException('non-nullable url cannot be null'); - } - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets page_title - * - * @return string|null - */ - public function getPageTitle() - { - return $this->container['page_title']; - } - - /** - * Sets page_title - * - * @param string|null $page_title page_title - * - * @return self - */ - public function setPageTitle($page_title) - { - if (is_null($page_title)) { - throw new \InvalidArgumentException('non-nullable page_title cannot be null'); - } - $this->container['page_title'] = $page_title; - - return $this; - } - /** * Gets user_id * @@ -799,7 +691,14 @@ public function getUserId() public function setUserId($user_id) { if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['user_id'] = $user_id; @@ -807,28 +706,28 @@ public function setUserId($user_id) } /** - * Gets anon_user_id + * Gets url_id * - * @return string|null + * @return string */ - public function getAnonUserId() + public function getUrlId() { - return $this->container['anon_user_id']; + return $this->container['url_id']; } /** - * Sets anon_user_id + * Sets url_id * - * @param string|null $anon_user_id anon_user_id + * @param string $url_id url_id * * @return self */ - public function setAnonUserId($anon_user_id) + public function setUrlId($url_id) { - if (is_null($anon_user_id)) { - throw new \InvalidArgumentException('non-nullable anon_user_id cannot be null'); + if (is_null($url_id)) { + throw new \InvalidArgumentException('non-nullable url_id cannot be null'); } - $this->container['anon_user_id'] = $anon_user_id; + $this->container['url_id'] = $url_id; return $this; } @@ -880,7 +779,14 @@ public function getCommenterLink() public function setCommenterLink($commenter_link) { if (is_null($commenter_link)) { - throw new \InvalidArgumentException('non-nullable commenter_link cannot be null'); + array_push($this->openAPINullablesSetToNull, 'commenter_link'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_link', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['commenter_link'] = $commenter_link; @@ -888,55 +794,55 @@ public function setCommenterLink($commenter_link) } /** - * Gets comment + * Gets comment_html * * @return string */ - public function getComment() + public function getCommentHtml() { - return $this->container['comment']; + return $this->container['comment_html']; } /** - * Sets comment + * Sets comment_html * - * @param string $comment comment + * @param string $comment_html comment_html * * @return self */ - public function setComment($comment) + public function setCommentHtml($comment_html) { - if (is_null($comment)) { - throw new \InvalidArgumentException('non-nullable comment cannot be null'); + if (is_null($comment_html)) { + throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); } - $this->container['comment'] = $comment; + $this->container['comment_html'] = $comment_html; return $this; } /** - * Gets comment_html + * Gets comment * * @return string */ - public function getCommentHtml() + public function getComment() { - return $this->container['comment_html']; + return $this->container['comment']; } /** - * Sets comment_html + * Sets comment * - * @param string $comment_html comment_html + * @param string $comment comment * * @return self */ - public function setCommentHtml($comment_html) + public function setComment($comment) { - if (is_null($comment_html)) { - throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); + if (is_null($comment)) { + throw new \InvalidArgumentException('non-nullable comment cannot be null'); } - $this->container['comment_html'] = $comment_html; + $this->container['comment'] = $comment; return $this; } @@ -961,7 +867,14 @@ public function getParentId() public function setParentId($parent_id) { if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['parent_id'] = $parent_id; @@ -988,7 +901,14 @@ public function getVotes() public function setVotes($votes) { if (is_null($votes)) { - throw new \InvalidArgumentException('non-nullable votes cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes'] = $votes; @@ -1015,7 +935,14 @@ public function getVotesUp() public function setVotesUp($votes_up) { if (is_null($votes_up)) { - throw new \InvalidArgumentException('non-nullable votes_up cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_up'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_up'] = $votes_up; @@ -1042,40 +969,20 @@ public function getVotesDown() public function setVotesDown($votes_down) { if (is_null($votes_down)) { - throw new \InvalidArgumentException('non-nullable votes_down cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_down'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_down'] = $votes_down; return $this; } - /** - * Gets expire_at - * - * @return \DateTime|null - */ - public function getExpireAt() - { - return $this->container['expire_at']; - } - - /** - * Sets expire_at - * - * @param \DateTime|null $expire_at expire_at - * - * @return self - */ - public function setExpireAt($expire_at) - { - if (is_null($expire_at)) { - throw new \InvalidArgumentException('non-nullable expire_at cannot be null'); - } - $this->container['expire_at'] = $expire_at; - - return $this; - } - /** * Gets verified * @@ -1103,33 +1010,6 @@ public function setVerified($verified) return $this; } - /** - * Gets reviewed - * - * @return bool|null - */ - public function getReviewed() - { - return $this->container['reviewed']; - } - - /** - * Sets reviewed - * - * @param bool|null $reviewed reviewed - * - * @return self - */ - public function setReviewed($reviewed) - { - if (is_null($reviewed)) { - throw new \InvalidArgumentException('non-nullable reviewed cannot be null'); - } - $this->container['reviewed'] = $reviewed; - - return $this; - } - /** * Gets avatar_src * @@ -1150,40 +1030,20 @@ public function getAvatarSrc() public function setAvatarSrc($avatar_src) { if (is_null($avatar_src)) { - throw new \InvalidArgumentException('non-nullable avatar_src cannot be null'); + array_push($this->openAPINullablesSetToNull, 'avatar_src'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('avatar_src', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['avatar_src'] = $avatar_src; return $this; } - /** - * Gets is_spam - * - * @return bool|null - */ - public function getIsSpam() - { - return $this->container['is_spam']; - } - - /** - * Sets is_spam - * - * @param bool|null $is_spam is_spam - * - * @return self - */ - public function setIsSpam($is_spam) - { - if (is_null($is_spam)) { - throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); - } - $this->container['is_spam'] = $is_spam; - - return $this; - } - /** * Gets has_images * @@ -1239,82 +1099,259 @@ public function setHasLinks($has_links) } /** - * Gets has_code + * Gets is_by_admin * * @return bool|null */ - public function getHasCode() + public function getIsByAdmin() { - return $this->container['has_code']; + return $this->container['is_by_admin']; } /** - * Sets has_code + * Sets is_by_admin * - * @param bool|null $has_code has_code + * @param bool|null $is_by_admin is_by_admin * * @return self */ - public function setHasCode($has_code) + public function setIsByAdmin($is_by_admin) { - if (is_null($has_code)) { - throw new \InvalidArgumentException('non-nullable has_code cannot be null'); + if (is_null($is_by_admin)) { + throw new \InvalidArgumentException('non-nullable is_by_admin cannot be null'); } - $this->container['has_code'] = $has_code; + $this->container['is_by_admin'] = $is_by_admin; return $this; } /** - * Gets approved + * Gets is_by_moderator * - * @return bool + * @return bool|null */ - public function getApproved() + public function getIsByModerator() { - return $this->container['approved']; + return $this->container['is_by_moderator']; } /** - * Sets approved + * Sets is_by_moderator * - * @param bool $approved approved + * @param bool|null $is_by_moderator is_by_moderator * * @return self */ - public function setApproved($approved) + public function setIsByModerator($is_by_moderator) { - if (is_null($approved)) { - throw new \InvalidArgumentException('non-nullable approved cannot be null'); + if (is_null($is_by_moderator)) { + throw new \InvalidArgumentException('non-nullable is_by_moderator cannot be null'); } - $this->container['approved'] = $approved; + $this->container['is_by_moderator'] = $is_by_moderator; return $this; } /** - * Gets locale + * Gets is_pinned * - * @return string + * @return bool|null */ - public function getLocale() + public function getIsPinned() { - return $this->container['locale']; + return $this->container['is_pinned']; } /** - * Sets locale + * Sets is_pinned * - * @param string $locale locale + * @param bool|null $is_pinned is_pinned * * @return self */ - public function setLocale($locale) + public function setIsPinned($is_pinned) { - if (is_null($locale)) { - throw new \InvalidArgumentException('non-nullable locale cannot be null'); + if (is_null($is_pinned)) { + array_push($this->openAPINullablesSetToNull, 'is_pinned'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_pinned', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['locale'] = $locale; + $this->container['is_pinned'] = $is_pinned; + + return $this; + } + + /** + * Gets is_locked + * + * @return bool|null + */ + public function getIsLocked() + { + return $this->container['is_locked']; + } + + /** + * Sets is_locked + * + * @param bool|null $is_locked is_locked + * + * @return self + */ + public function setIsLocked($is_locked) + { + if (is_null($is_locked)) { + array_push($this->openAPINullablesSetToNull, 'is_locked'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_locked', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['is_locked'] = $is_locked; + + return $this; + } + + /** + * Gets display_label + * + * @return string|null + */ + public function getDisplayLabel() + { + return $this->container['display_label']; + } + + /** + * Sets display_label + * + * @param string|null $display_label display_label + * + * @return self + */ + public function setDisplayLabel($display_label) + { + if (is_null($display_label)) { + array_push($this->openAPINullablesSetToNull, 'display_label'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('display_label', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['display_label'] = $display_label; + + return $this; + } + + /** + * Gets rating + * + * @return float|null + */ + public function getRating() + { + return $this->container['rating']; + } + + /** + * Sets rating + * + * @param float|null $rating rating + * + * @return self + */ + public function setRating($rating) + { + if (is_null($rating)) { + array_push($this->openAPINullablesSetToNull, 'rating'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('rating', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['rating'] = $rating; + + return $this; + } + + /** + * Gets badges + * + * @return \FastComments\Client\Model\CommentUserBadgeInfo[]|null + */ + public function getBadges() + { + return $this->container['badges']; + } + + /** + * Sets badges + * + * @param \FastComments\Client\Model\CommentUserBadgeInfo[]|null $badges badges + * + * @return self + */ + public function setBadges($badges) + { + if (is_null($badges)) { + array_push($this->openAPINullablesSetToNull, 'badges'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('badges', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['badges'] = $badges; + + return $this; + } + + /** + * Gets view_count + * + * @return int|null + */ + public function getViewCount() + { + return $this->container['view_count']; + } + + /** + * Sets view_count + * + * @param int|null $view_count view_count + * + * @return self + */ + public function setViewCount($view_count) + { + if (is_null($view_count)) { + array_push($this->openAPINullablesSetToNull, 'view_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('view_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['view_count'] = $view_count; return $this; } @@ -1374,352 +1411,428 @@ public function setIsDeletedUser($is_deleted_user) } /** - * Gets is_banned_user + * Gets is_spam * * @return bool|null */ - public function getIsBannedUser() + public function getIsSpam() { - return $this->container['is_banned_user']; + return $this->container['is_spam']; } /** - * Sets is_banned_user + * Sets is_spam * - * @param bool|null $is_banned_user is_banned_user + * @param bool|null $is_spam is_spam * * @return self */ - public function setIsBannedUser($is_banned_user) + public function setIsSpam($is_spam) { - if (is_null($is_banned_user)) { - throw new \InvalidArgumentException('non-nullable is_banned_user cannot be null'); + if (is_null($is_spam)) { + throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); } - $this->container['is_banned_user'] = $is_banned_user; + $this->container['is_spam'] = $is_spam; return $this; } /** - * Gets is_by_admin + * Gets anon_user_id * - * @return bool|null + * @return string|null */ - public function getIsByAdmin() + public function getAnonUserId() { - return $this->container['is_by_admin']; + return $this->container['anon_user_id']; } /** - * Sets is_by_admin + * Sets anon_user_id * - * @param bool|null $is_by_admin is_by_admin + * @param string|null $anon_user_id anon_user_id * * @return self */ - public function setIsByAdmin($is_by_admin) + public function setAnonUserId($anon_user_id) { - if (is_null($is_by_admin)) { - throw new \InvalidArgumentException('non-nullable is_by_admin cannot be null'); + if (is_null($anon_user_id)) { + array_push($this->openAPINullablesSetToNull, 'anon_user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('anon_user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_by_admin'] = $is_by_admin; + $this->container['anon_user_id'] = $anon_user_id; return $this; } /** - * Gets is_by_moderator + * Gets feedback_ids * - * @return bool|null + * @return string[]|null */ - public function getIsByModerator() + public function getFeedbackIds() { - return $this->container['is_by_moderator']; + return $this->container['feedback_ids']; } /** - * Sets is_by_moderator + * Sets feedback_ids * - * @param bool|null $is_by_moderator is_by_moderator + * @param string[]|null $feedback_ids feedback_ids * * @return self */ - public function setIsByModerator($is_by_moderator) + public function setFeedbackIds($feedback_ids) { - if (is_null($is_by_moderator)) { - throw new \InvalidArgumentException('non-nullable is_by_moderator cannot be null'); + if (is_null($feedback_ids)) { + throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); } - $this->container['is_by_moderator'] = $is_by_moderator; + $this->container['feedback_ids'] = $feedback_ids; return $this; } /** - * Gets is_pinned + * Gets flag_count * - * @return bool|null + * @return int|null */ - public function getIsPinned() + public function getFlagCount() { - return $this->container['is_pinned']; + return $this->container['flag_count']; } /** - * Sets is_pinned + * Sets flag_count * - * @param bool|null $is_pinned is_pinned + * @param int|null $flag_count flag_count * * @return self */ - public function setIsPinned($is_pinned) + public function setFlagCount($flag_count) { - if (is_null($is_pinned)) { - throw new \InvalidArgumentException('non-nullable is_pinned cannot be null'); + if (is_null($flag_count)) { + array_push($this->openAPINullablesSetToNull, 'flag_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('flag_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_pinned'] = $is_pinned; + $this->container['flag_count'] = $flag_count; return $this; } /** - * Gets is_locked + * Gets domain * - * @return bool|null + * @return string|null */ - public function getIsLocked() + public function getDomain() { - return $this->container['is_locked']; + return $this->container['domain']; } /** - * Sets is_locked + * Sets domain * - * @param bool|null $is_locked is_locked + * @param string|null $domain domain * * @return self */ - public function setIsLocked($is_locked) + public function setDomain($domain) { - if (is_null($is_locked)) { - throw new \InvalidArgumentException('non-nullable is_locked cannot be null'); + if (is_null($domain)) { + array_push($this->openAPINullablesSetToNull, 'domain'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('domain', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_locked'] = $is_locked; + $this->container['domain'] = $domain; return $this; } /** - * Gets flag_count + * Gets url * - * @return int|null + * @return string */ - public function getFlagCount() + public function getUrl() { - return $this->container['flag_count']; + return $this->container['url']; } /** - * Sets flag_count + * Sets url * - * @param int|null $flag_count flag_count + * @param string $url url * * @return self */ - public function setFlagCount($flag_count) + public function setUrl($url) { - if (is_null($flag_count)) { - throw new \InvalidArgumentException('non-nullable flag_count cannot be null'); + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); } - $this->container['flag_count'] = $flag_count; + $this->container['url'] = $url; return $this; } /** - * Gets rating + * Gets page_title * - * @return float|null + * @return string|null */ - public function getRating() + public function getPageTitle() { - return $this->container['rating']; + return $this->container['page_title']; } /** - * Sets rating + * Sets page_title * - * @param float|null $rating rating + * @param string|null $page_title page_title * * @return self */ - public function setRating($rating) + public function setPageTitle($page_title) { - if (is_null($rating)) { - throw new \InvalidArgumentException('non-nullable rating cannot be null'); + if (is_null($page_title)) { + array_push($this->openAPINullablesSetToNull, 'page_title'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('page_title', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['rating'] = $rating; + $this->container['page_title'] = $page_title; return $this; } /** - * Gets display_label + * Gets expire_at * - * @return string|null + * @return \DateTime|null */ - public function getDisplayLabel() + public function getExpireAt() { - return $this->container['display_label']; + return $this->container['expire_at']; } /** - * Sets display_label + * Sets expire_at * - * @param string|null $display_label display_label + * @param \DateTime|null $expire_at expire_at * * @return self */ - public function setDisplayLabel($display_label) + public function setExpireAt($expire_at) { - if (is_null($display_label)) { - throw new \InvalidArgumentException('non-nullable display_label cannot be null'); + if (is_null($expire_at)) { + array_push($this->openAPINullablesSetToNull, 'expire_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expire_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['display_label'] = $display_label; + $this->container['expire_at'] = $expire_at; return $this; } /** - * Gets badges + * Gets reviewed * - * @return \FastComments\Client\Model\CommentUserBadgeInfo[]|null + * @return bool|null */ - public function getBadges() + public function getReviewed() { - return $this->container['badges']; + return $this->container['reviewed']; } /** - * Sets badges + * Sets reviewed * - * @param \FastComments\Client\Model\CommentUserBadgeInfo[]|null $badges badges + * @param bool|null $reviewed reviewed * * @return self */ - public function setBadges($badges) + public function setReviewed($reviewed) { - if (is_null($badges)) { - throw new \InvalidArgumentException('non-nullable badges cannot be null'); + if (is_null($reviewed)) { + throw new \InvalidArgumentException('non-nullable reviewed cannot be null'); } - $this->container['badges'] = $badges; + $this->container['reviewed'] = $reviewed; return $this; } /** - * Gets domain + * Gets has_code * - * @return string|null + * @return bool|null */ - public function getDomain() + public function getHasCode() { - return $this->container['domain']; + return $this->container['has_code']; } /** - * Sets domain + * Sets has_code * - * @param string|null $domain domain + * @param bool|null $has_code has_code * * @return self */ - public function setDomain($domain) + public function setHasCode($has_code) { - if (is_null($domain)) { - throw new \InvalidArgumentException('non-nullable domain cannot be null'); + if (is_null($has_code)) { + throw new \InvalidArgumentException('non-nullable has_code cannot be null'); } - $this->container['domain'] = $domain; + $this->container['has_code'] = $has_code; return $this; } /** - * Gets feedback_ids + * Gets approved * - * @return string[]|null + * @return bool */ - public function getFeedbackIds() + public function getApproved() { - return $this->container['feedback_ids']; + return $this->container['approved']; } /** - * Sets feedback_ids + * Sets approved * - * @param string[]|null $feedback_ids feedback_ids + * @param bool $approved approved * * @return self */ - public function setFeedbackIds($feedback_ids) + public function setApproved($approved) { - if (is_null($feedback_ids)) { - throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + if (is_null($approved)) { + throw new \InvalidArgumentException('non-nullable approved cannot be null'); } - $this->container['feedback_ids'] = $feedback_ids; + $this->container['approved'] = $approved; return $this; } /** - * Gets group_ids + * Gets locale * - * @return string[]|null + * @return string */ - public function getGroupIds() + public function getLocale() { - return $this->container['group_ids']; + return $this->container['locale']; } /** - * Sets group_ids + * Sets locale * - * @param string[]|null $group_ids group_ids + * @param string $locale locale * * @return self */ - public function setGroupIds($group_ids) + public function setLocale($locale) { - if (is_null($group_ids)) { - throw new \InvalidArgumentException('non-nullable group_ids cannot be null'); + if (is_null($locale)) { + array_push($this->openAPINullablesSetToNull, 'locale'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('locale', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['group_ids'] = $group_ids; + $this->container['locale'] = $locale; return $this; } /** - * Gets view_count + * Gets is_banned_user * - * @return int|null + * @return bool|null */ - public function getViewCount() + public function getIsBannedUser() { - return $this->container['view_count']; + return $this->container['is_banned_user']; } /** - * Sets view_count + * Sets is_banned_user * - * @param int|null $view_count view_count + * @param bool|null $is_banned_user is_banned_user * * @return self */ - public function setViewCount($view_count) + public function setIsBannedUser($is_banned_user) { - if (is_null($view_count)) { - throw new \InvalidArgumentException('non-nullable view_count cannot be null'); + if (is_null($is_banned_user)) { + throw new \InvalidArgumentException('non-nullable is_banned_user cannot be null'); } - $this->container['view_count'] = $view_count; + $this->container['is_banned_user'] = $is_banned_user; + + return $this; + } + + /** + * Gets group_ids + * + * @return string[]|null + */ + public function getGroupIds() + { + return $this->container['group_ids']; + } + + /** + * Sets group_ids + * + * @param string[]|null $group_ids group_ids + * + * @return self + */ + public function setGroupIds($group_ids) + { + if (is_null($group_ids)) { + array_push($this->openAPINullablesSetToNull, 'group_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('group_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['group_ids'] = $group_ids; return $this; } @@ -1777,6 +1890,33 @@ public function setHidden($hidden) return $this; } + + /** + * Gets date + * + * @return string + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param string $date date + * + * @return self + */ + public function setDate($date) + { + if (is_null($date)) { + throw new \InvalidArgumentException('non-nullable date cannot be null'); + } + $this->container['date'] = $date; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.php b/lib/Model/PubSubCommentBase.php similarity index 81% rename from lib/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.php rename to lib/Model/PubSubCommentBase.php index 84045c5..58eabec 100644 --- a/lib/Model/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.php +++ b/lib/Model/PubSubCommentBase.php @@ -1,6 +1,6 @@ */ -class PickOmitFCommentDatePublicCommentPubSubFieldsKeys implements ModelInterface, ArrayAccess, \JsonSerializable +class PubSubCommentBase implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +50,7 @@ class PickOmitFCommentDatePublicCommentPubSubFieldsKeys implements ModelInterfac * * @var string */ - protected static $openAPIModelName = 'Pick_Omit_FComment.date_.PublicCommentPubSubFieldsKeys_'; + protected static $openAPIModelName = 'PubSubCommentBase'; /** * Array of property to type mappings. Used for (de)serialization @@ -59,47 +58,46 @@ class PickOmitFCommentDatePublicCommentPubSubFieldsKeys implements ModelInterfac * @var string[] */ protected static $openAPITypes = [ - 'date' => 'mixed', '_id' => 'string', 'tenant_id' => 'string', - 'url_id' => 'string', - 'url' => 'string', - 'page_title' => 'string', 'user_id' => 'string', - 'anon_user_id' => 'string', + 'url_id' => 'string', 'commenter_name' => 'string', 'commenter_link' => 'string', - 'comment' => 'string', 'comment_html' => 'string', + 'comment' => 'string', 'parent_id' => 'string', 'votes' => 'int', 'votes_up' => 'int', 'votes_down' => 'int', - 'expire_at' => '\DateTime', 'verified' => 'bool', - 'reviewed' => 'bool', 'avatar_src' => 'string', - 'is_spam' => 'bool', 'has_images' => 'bool', 'has_links' => 'bool', - 'has_code' => 'bool', - 'approved' => 'bool', - 'locale' => 'string', - 'is_deleted' => 'bool', - 'is_deleted_user' => 'bool', - 'is_banned_user' => 'bool', 'is_by_admin' => 'bool', 'is_by_moderator' => 'bool', 'is_pinned' => 'bool', 'is_locked' => 'bool', - 'flag_count' => 'int', - 'rating' => 'float', 'display_label' => 'string', + 'rating' => 'float', 'badges' => '\FastComments\Client\Model\CommentUserBadgeInfo[]', - 'domain' => 'string', + 'view_count' => 'int', + 'is_deleted' => 'bool', + 'is_deleted_user' => 'bool', + 'is_spam' => 'bool', + 'anon_user_id' => 'string', 'feedback_ids' => 'string[]', - 'group_ids' => 'string[]', - 'view_count' => 'int' + 'flag_count' => 'int', + 'domain' => 'string', + 'url' => 'string', + 'page_title' => 'string', + 'expire_at' => '\DateTime', + 'reviewed' => 'bool', + 'has_code' => 'bool', + 'approved' => 'bool', + 'locale' => 'string', + 'is_banned_user' => 'bool', + 'group_ids' => 'string[]' ]; /** @@ -110,47 +108,46 @@ class PickOmitFCommentDatePublicCommentPubSubFieldsKeys implements ModelInterfac * @psalm-var array */ protected static $openAPIFormats = [ - 'date' => null, '_id' => null, 'tenant_id' => null, - 'url_id' => null, - 'url' => null, - 'page_title' => null, 'user_id' => null, - 'anon_user_id' => null, + 'url_id' => null, 'commenter_name' => null, 'commenter_link' => null, - 'comment' => null, 'comment_html' => null, + 'comment' => null, 'parent_id' => null, 'votes' => 'int32', 'votes_up' => 'int32', 'votes_down' => 'int32', - 'expire_at' => 'date-time', 'verified' => null, - 'reviewed' => null, 'avatar_src' => null, - 'is_spam' => null, 'has_images' => null, 'has_links' => null, - 'has_code' => null, - 'approved' => null, - 'locale' => null, - 'is_deleted' => null, - 'is_deleted_user' => null, - 'is_banned_user' => null, 'is_by_admin' => null, 'is_by_moderator' => null, 'is_pinned' => null, 'is_locked' => null, - 'flag_count' => 'int32', - 'rating' => 'double', 'display_label' => null, + 'rating' => 'double', 'badges' => null, - 'domain' => null, + 'view_count' => 'int64', + 'is_deleted' => null, + 'is_deleted_user' => null, + 'is_spam' => null, + 'anon_user_id' => null, 'feedback_ids' => null, - 'group_ids' => null, - 'view_count' => 'int64' + 'flag_count' => 'int32', + 'domain' => null, + 'url' => null, + 'page_title' => null, + 'expire_at' => 'date-time', + 'reviewed' => null, + 'has_code' => null, + 'approved' => null, + 'locale' => null, + 'is_banned_user' => null, + 'group_ids' => null ]; /** @@ -159,47 +156,46 @@ class PickOmitFCommentDatePublicCommentPubSubFieldsKeys implements ModelInterfac * @var boolean[] */ protected static array $openAPINullables = [ - 'date' => true, '_id' => false, 'tenant_id' => false, + 'user_id' => true, 'url_id' => false, - 'url' => false, - 'page_title' => false, - 'user_id' => false, - 'anon_user_id' => false, 'commenter_name' => false, - 'commenter_link' => false, - 'comment' => false, + 'commenter_link' => true, 'comment_html' => false, - 'parent_id' => false, - 'votes' => false, - 'votes_up' => false, - 'votes_down' => false, - 'expire_at' => false, + 'comment' => false, + 'parent_id' => true, + 'votes' => true, + 'votes_up' => true, + 'votes_down' => true, 'verified' => false, - 'reviewed' => false, - 'avatar_src' => false, - 'is_spam' => false, + 'avatar_src' => true, 'has_images' => false, 'has_links' => false, - 'has_code' => false, - 'approved' => false, - 'locale' => false, - 'is_deleted' => false, - 'is_deleted_user' => false, - 'is_banned_user' => false, 'is_by_admin' => false, 'is_by_moderator' => false, - 'is_pinned' => false, - 'is_locked' => false, - 'flag_count' => false, - 'rating' => false, - 'display_label' => false, - 'badges' => false, - 'domain' => false, + 'is_pinned' => true, + 'is_locked' => true, + 'display_label' => true, + 'rating' => true, + 'badges' => true, + 'view_count' => true, + 'is_deleted' => false, + 'is_deleted_user' => false, + 'is_spam' => false, + 'anon_user_id' => true, 'feedback_ids' => false, - 'group_ids' => false, - 'view_count' => false + 'flag_count' => true, + 'domain' => true, + 'url' => false, + 'page_title' => true, + 'expire_at' => true, + 'reviewed' => false, + 'has_code' => false, + 'approved' => false, + 'locale' => true, + 'is_banned_user' => false, + 'group_ids' => true ]; /** @@ -288,47 +284,46 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'date' => 'date', '_id' => '_id', 'tenant_id' => 'tenantId', - 'url_id' => 'urlId', - 'url' => 'url', - 'page_title' => 'pageTitle', 'user_id' => 'userId', - 'anon_user_id' => 'anonUserId', + 'url_id' => 'urlId', 'commenter_name' => 'commenterName', 'commenter_link' => 'commenterLink', - 'comment' => 'comment', 'comment_html' => 'commentHTML', + 'comment' => 'comment', 'parent_id' => 'parentId', 'votes' => 'votes', 'votes_up' => 'votesUp', 'votes_down' => 'votesDown', - 'expire_at' => 'expireAt', 'verified' => 'verified', - 'reviewed' => 'reviewed', 'avatar_src' => 'avatarSrc', - 'is_spam' => 'isSpam', 'has_images' => 'hasImages', 'has_links' => 'hasLinks', - 'has_code' => 'hasCode', - 'approved' => 'approved', - 'locale' => 'locale', - 'is_deleted' => 'isDeleted', - 'is_deleted_user' => 'isDeletedUser', - 'is_banned_user' => 'isBannedUser', 'is_by_admin' => 'isByAdmin', 'is_by_moderator' => 'isByModerator', 'is_pinned' => 'isPinned', 'is_locked' => 'isLocked', - 'flag_count' => 'flagCount', - 'rating' => 'rating', 'display_label' => 'displayLabel', + 'rating' => 'rating', 'badges' => 'badges', - 'domain' => 'domain', + 'view_count' => 'viewCount', + 'is_deleted' => 'isDeleted', + 'is_deleted_user' => 'isDeletedUser', + 'is_spam' => 'isSpam', + 'anon_user_id' => 'anonUserId', 'feedback_ids' => 'feedbackIds', - 'group_ids' => 'groupIds', - 'view_count' => 'viewCount' + 'flag_count' => 'flagCount', + 'domain' => 'domain', + 'url' => 'url', + 'page_title' => 'pageTitle', + 'expire_at' => 'expireAt', + 'reviewed' => 'reviewed', + 'has_code' => 'hasCode', + 'approved' => 'approved', + 'locale' => 'locale', + 'is_banned_user' => 'isBannedUser', + 'group_ids' => 'groupIds' ]; /** @@ -337,47 +332,46 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'date' => 'setDate', '_id' => 'setId', 'tenant_id' => 'setTenantId', - 'url_id' => 'setUrlId', - 'url' => 'setUrl', - 'page_title' => 'setPageTitle', 'user_id' => 'setUserId', - 'anon_user_id' => 'setAnonUserId', + 'url_id' => 'setUrlId', 'commenter_name' => 'setCommenterName', 'commenter_link' => 'setCommenterLink', - 'comment' => 'setComment', 'comment_html' => 'setCommentHtml', + 'comment' => 'setComment', 'parent_id' => 'setParentId', 'votes' => 'setVotes', 'votes_up' => 'setVotesUp', 'votes_down' => 'setVotesDown', - 'expire_at' => 'setExpireAt', 'verified' => 'setVerified', - 'reviewed' => 'setReviewed', 'avatar_src' => 'setAvatarSrc', - 'is_spam' => 'setIsSpam', 'has_images' => 'setHasImages', 'has_links' => 'setHasLinks', - 'has_code' => 'setHasCode', - 'approved' => 'setApproved', - 'locale' => 'setLocale', - 'is_deleted' => 'setIsDeleted', - 'is_deleted_user' => 'setIsDeletedUser', - 'is_banned_user' => 'setIsBannedUser', 'is_by_admin' => 'setIsByAdmin', 'is_by_moderator' => 'setIsByModerator', 'is_pinned' => 'setIsPinned', 'is_locked' => 'setIsLocked', - 'flag_count' => 'setFlagCount', - 'rating' => 'setRating', 'display_label' => 'setDisplayLabel', + 'rating' => 'setRating', 'badges' => 'setBadges', - 'domain' => 'setDomain', + 'view_count' => 'setViewCount', + 'is_deleted' => 'setIsDeleted', + 'is_deleted_user' => 'setIsDeletedUser', + 'is_spam' => 'setIsSpam', + 'anon_user_id' => 'setAnonUserId', 'feedback_ids' => 'setFeedbackIds', - 'group_ids' => 'setGroupIds', - 'view_count' => 'setViewCount' + 'flag_count' => 'setFlagCount', + 'domain' => 'setDomain', + 'url' => 'setUrl', + 'page_title' => 'setPageTitle', + 'expire_at' => 'setExpireAt', + 'reviewed' => 'setReviewed', + 'has_code' => 'setHasCode', + 'approved' => 'setApproved', + 'locale' => 'setLocale', + 'is_banned_user' => 'setIsBannedUser', + 'group_ids' => 'setGroupIds' ]; /** @@ -386,47 +380,46 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'date' => 'getDate', '_id' => 'getId', 'tenant_id' => 'getTenantId', - 'url_id' => 'getUrlId', - 'url' => 'getUrl', - 'page_title' => 'getPageTitle', 'user_id' => 'getUserId', - 'anon_user_id' => 'getAnonUserId', + 'url_id' => 'getUrlId', 'commenter_name' => 'getCommenterName', 'commenter_link' => 'getCommenterLink', - 'comment' => 'getComment', 'comment_html' => 'getCommentHtml', + 'comment' => 'getComment', 'parent_id' => 'getParentId', 'votes' => 'getVotes', 'votes_up' => 'getVotesUp', 'votes_down' => 'getVotesDown', - 'expire_at' => 'getExpireAt', 'verified' => 'getVerified', - 'reviewed' => 'getReviewed', 'avatar_src' => 'getAvatarSrc', - 'is_spam' => 'getIsSpam', 'has_images' => 'getHasImages', 'has_links' => 'getHasLinks', - 'has_code' => 'getHasCode', - 'approved' => 'getApproved', - 'locale' => 'getLocale', - 'is_deleted' => 'getIsDeleted', - 'is_deleted_user' => 'getIsDeletedUser', - 'is_banned_user' => 'getIsBannedUser', 'is_by_admin' => 'getIsByAdmin', 'is_by_moderator' => 'getIsByModerator', 'is_pinned' => 'getIsPinned', 'is_locked' => 'getIsLocked', - 'flag_count' => 'getFlagCount', - 'rating' => 'getRating', 'display_label' => 'getDisplayLabel', + 'rating' => 'getRating', 'badges' => 'getBadges', - 'domain' => 'getDomain', + 'view_count' => 'getViewCount', + 'is_deleted' => 'getIsDeleted', + 'is_deleted_user' => 'getIsDeletedUser', + 'is_spam' => 'getIsSpam', + 'anon_user_id' => 'getAnonUserId', 'feedback_ids' => 'getFeedbackIds', - 'group_ids' => 'getGroupIds', - 'view_count' => 'getViewCount' + 'flag_count' => 'getFlagCount', + 'domain' => 'getDomain', + 'url' => 'getUrl', + 'page_title' => 'getPageTitle', + 'expire_at' => 'getExpireAt', + 'reviewed' => 'getReviewed', + 'has_code' => 'getHasCode', + 'approved' => 'getApproved', + 'locale' => 'getLocale', + 'is_banned_user' => 'getIsBannedUser', + 'group_ids' => 'getGroupIds' ]; /** @@ -486,47 +479,46 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('date', $data ?? [], null); $this->setIfExists('_id', $data ?? [], null); $this->setIfExists('tenant_id', $data ?? [], null); - $this->setIfExists('url_id', $data ?? [], null); - $this->setIfExists('url', $data ?? [], null); - $this->setIfExists('page_title', $data ?? [], null); $this->setIfExists('user_id', $data ?? [], null); - $this->setIfExists('anon_user_id', $data ?? [], null); + $this->setIfExists('url_id', $data ?? [], null); $this->setIfExists('commenter_name', $data ?? [], null); $this->setIfExists('commenter_link', $data ?? [], null); - $this->setIfExists('comment', $data ?? [], null); $this->setIfExists('comment_html', $data ?? [], null); + $this->setIfExists('comment', $data ?? [], null); $this->setIfExists('parent_id', $data ?? [], null); $this->setIfExists('votes', $data ?? [], null); $this->setIfExists('votes_up', $data ?? [], null); $this->setIfExists('votes_down', $data ?? [], null); - $this->setIfExists('expire_at', $data ?? [], null); $this->setIfExists('verified', $data ?? [], null); - $this->setIfExists('reviewed', $data ?? [], null); $this->setIfExists('avatar_src', $data ?? [], null); - $this->setIfExists('is_spam', $data ?? [], null); $this->setIfExists('has_images', $data ?? [], null); $this->setIfExists('has_links', $data ?? [], null); - $this->setIfExists('has_code', $data ?? [], null); - $this->setIfExists('approved', $data ?? [], null); - $this->setIfExists('locale', $data ?? [], null); - $this->setIfExists('is_deleted', $data ?? [], null); - $this->setIfExists('is_deleted_user', $data ?? [], null); - $this->setIfExists('is_banned_user', $data ?? [], null); $this->setIfExists('is_by_admin', $data ?? [], null); $this->setIfExists('is_by_moderator', $data ?? [], null); $this->setIfExists('is_pinned', $data ?? [], null); $this->setIfExists('is_locked', $data ?? [], null); - $this->setIfExists('flag_count', $data ?? [], null); - $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('display_label', $data ?? [], null); + $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('badges', $data ?? [], null); - $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('view_count', $data ?? [], null); + $this->setIfExists('is_deleted', $data ?? [], null); + $this->setIfExists('is_deleted_user', $data ?? [], null); + $this->setIfExists('is_spam', $data ?? [], null); + $this->setIfExists('anon_user_id', $data ?? [], null); $this->setIfExists('feedback_ids', $data ?? [], null); + $this->setIfExists('flag_count', $data ?? [], null); + $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('page_title', $data ?? [], null); + $this->setIfExists('expire_at', $data ?? [], null); + $this->setIfExists('reviewed', $data ?? [], null); + $this->setIfExists('has_code', $data ?? [], null); + $this->setIfExists('approved', $data ?? [], null); + $this->setIfExists('locale', $data ?? [], null); + $this->setIfExists('is_banned_user', $data ?? [], null); $this->setIfExists('group_ids', $data ?? [], null); - $this->setIfExists('view_count', $data ?? [], null); } /** @@ -556,9 +548,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { - $invalidProperties[] = "'date' can't be null"; - } if ($this->container['_id'] === null) { $invalidProperties[] = "'_id' can't be null"; } @@ -568,21 +557,21 @@ public function listInvalidProperties() if ($this->container['url_id'] === null) { $invalidProperties[] = "'url_id' can't be null"; } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } if ($this->container['commenter_name'] === null) { $invalidProperties[] = "'commenter_name' can't be null"; } - if ($this->container['comment'] === null) { - $invalidProperties[] = "'comment' can't be null"; - } if ($this->container['comment_html'] === null) { $invalidProperties[] = "'comment_html' can't be null"; } + if ($this->container['comment'] === null) { + $invalidProperties[] = "'comment' can't be null"; + } if ($this->container['verified'] === null) { $invalidProperties[] = "'verified' can't be null"; } + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' can't be null"; + } if ($this->container['approved'] === null) { $invalidProperties[] = "'approved' can't be null"; } @@ -605,68 +594,34 @@ public function valid() /** - * Gets date + * Gets _id * - * @return mixed + * @return string */ - public function getDate() + public function getId() { - return $this->container['date']; + return $this->container['_id']; } /** - * Sets date + * Sets _id * - * @param mixed $date date + * @param string $_id _id * * @return self */ - public function setDate($date) + public function setId($_id) { - if (is_null($date)) { - array_push($this->openAPINullablesSetToNull, 'date'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('date', $nullablesSetToNull); - if ($index !== FALSE) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } + if (is_null($_id)) { + throw new \InvalidArgumentException('non-nullable _id cannot be null'); } - $this->container['date'] = $date; + $this->container['_id'] = $_id; return $this; } /** - * Gets _id - * - * @return string - */ - public function getId() - { - return $this->container['_id']; - } - - /** - * Sets _id - * - * @param string $_id _id - * - * @return self - */ - public function setId($_id) - { - if (is_null($_id)) { - throw new \InvalidArgumentException('non-nullable _id cannot be null'); - } - $this->container['_id'] = $_id; - - return $this; - } - - /** - * Gets tenant_id + * Gets tenant_id * * @return string */ @@ -692,87 +647,6 @@ public function setTenantId($tenant_id) return $this; } - /** - * Gets url_id - * - * @return string - */ - public function getUrlId() - { - return $this->container['url_id']; - } - - /** - * Sets url_id - * - * @param string $url_id url_id - * - * @return self - */ - public function setUrlId($url_id) - { - if (is_null($url_id)) { - throw new \InvalidArgumentException('non-nullable url_id cannot be null'); - } - $this->container['url_id'] = $url_id; - - return $this; - } - - /** - * Gets url - * - * @return string - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string $url url - * - * @return self - */ - public function setUrl($url) - { - if (is_null($url)) { - throw new \InvalidArgumentException('non-nullable url cannot be null'); - } - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets page_title - * - * @return string|null - */ - public function getPageTitle() - { - return $this->container['page_title']; - } - - /** - * Sets page_title - * - * @param string|null $page_title page_title - * - * @return self - */ - public function setPageTitle($page_title) - { - if (is_null($page_title)) { - throw new \InvalidArgumentException('non-nullable page_title cannot be null'); - } - $this->container['page_title'] = $page_title; - - return $this; - } - /** * Gets user_id * @@ -793,7 +667,14 @@ public function getUserId() public function setUserId($user_id) { if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['user_id'] = $user_id; @@ -801,28 +682,28 @@ public function setUserId($user_id) } /** - * Gets anon_user_id + * Gets url_id * - * @return string|null + * @return string */ - public function getAnonUserId() + public function getUrlId() { - return $this->container['anon_user_id']; + return $this->container['url_id']; } /** - * Sets anon_user_id + * Sets url_id * - * @param string|null $anon_user_id anon_user_id + * @param string $url_id url_id * * @return self */ - public function setAnonUserId($anon_user_id) + public function setUrlId($url_id) { - if (is_null($anon_user_id)) { - throw new \InvalidArgumentException('non-nullable anon_user_id cannot be null'); + if (is_null($url_id)) { + throw new \InvalidArgumentException('non-nullable url_id cannot be null'); } - $this->container['anon_user_id'] = $anon_user_id; + $this->container['url_id'] = $url_id; return $this; } @@ -874,7 +755,14 @@ public function getCommenterLink() public function setCommenterLink($commenter_link) { if (is_null($commenter_link)) { - throw new \InvalidArgumentException('non-nullable commenter_link cannot be null'); + array_push($this->openAPINullablesSetToNull, 'commenter_link'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_link', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['commenter_link'] = $commenter_link; @@ -882,55 +770,55 @@ public function setCommenterLink($commenter_link) } /** - * Gets comment + * Gets comment_html * * @return string */ - public function getComment() + public function getCommentHtml() { - return $this->container['comment']; + return $this->container['comment_html']; } /** - * Sets comment + * Sets comment_html * - * @param string $comment comment + * @param string $comment_html comment_html * * @return self */ - public function setComment($comment) + public function setCommentHtml($comment_html) { - if (is_null($comment)) { - throw new \InvalidArgumentException('non-nullable comment cannot be null'); + if (is_null($comment_html)) { + throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); } - $this->container['comment'] = $comment; + $this->container['comment_html'] = $comment_html; return $this; } /** - * Gets comment_html + * Gets comment * * @return string */ - public function getCommentHtml() + public function getComment() { - return $this->container['comment_html']; + return $this->container['comment']; } /** - * Sets comment_html + * Sets comment * - * @param string $comment_html comment_html + * @param string $comment comment * * @return self */ - public function setCommentHtml($comment_html) + public function setComment($comment) { - if (is_null($comment_html)) { - throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); + if (is_null($comment)) { + throw new \InvalidArgumentException('non-nullable comment cannot be null'); } - $this->container['comment_html'] = $comment_html; + $this->container['comment'] = $comment; return $this; } @@ -955,7 +843,14 @@ public function getParentId() public function setParentId($parent_id) { if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['parent_id'] = $parent_id; @@ -982,7 +877,14 @@ public function getVotes() public function setVotes($votes) { if (is_null($votes)) { - throw new \InvalidArgumentException('non-nullable votes cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes'] = $votes; @@ -1009,7 +911,14 @@ public function getVotesUp() public function setVotesUp($votes_up) { if (is_null($votes_up)) { - throw new \InvalidArgumentException('non-nullable votes_up cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_up'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_up'] = $votes_up; @@ -1036,40 +945,20 @@ public function getVotesDown() public function setVotesDown($votes_down) { if (is_null($votes_down)) { - throw new \InvalidArgumentException('non-nullable votes_down cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_down'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_down'] = $votes_down; return $this; } - /** - * Gets expire_at - * - * @return \DateTime|null - */ - public function getExpireAt() - { - return $this->container['expire_at']; - } - - /** - * Sets expire_at - * - * @param \DateTime|null $expire_at expire_at - * - * @return self - */ - public function setExpireAt($expire_at) - { - if (is_null($expire_at)) { - throw new \InvalidArgumentException('non-nullable expire_at cannot be null'); - } - $this->container['expire_at'] = $expire_at; - - return $this; - } - /** * Gets verified * @@ -1097,33 +986,6 @@ public function setVerified($verified) return $this; } - /** - * Gets reviewed - * - * @return bool|null - */ - public function getReviewed() - { - return $this->container['reviewed']; - } - - /** - * Sets reviewed - * - * @param bool|null $reviewed reviewed - * - * @return self - */ - public function setReviewed($reviewed) - { - if (is_null($reviewed)) { - throw new \InvalidArgumentException('non-nullable reviewed cannot be null'); - } - $this->container['reviewed'] = $reviewed; - - return $this; - } - /** * Gets avatar_src * @@ -1144,40 +1006,20 @@ public function getAvatarSrc() public function setAvatarSrc($avatar_src) { if (is_null($avatar_src)) { - throw new \InvalidArgumentException('non-nullable avatar_src cannot be null'); + array_push($this->openAPINullablesSetToNull, 'avatar_src'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('avatar_src', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['avatar_src'] = $avatar_src; return $this; } - /** - * Gets is_spam - * - * @return bool|null - */ - public function getIsSpam() - { - return $this->container['is_spam']; - } - - /** - * Sets is_spam - * - * @param bool|null $is_spam is_spam - * - * @return self - */ - public function setIsSpam($is_spam) - { - if (is_null($is_spam)) { - throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); - } - $this->container['is_spam'] = $is_spam; - - return $this; - } - /** * Gets has_images * @@ -1233,379 +1075,435 @@ public function setHasLinks($has_links) } /** - * Gets has_code + * Gets is_by_admin * * @return bool|null */ - public function getHasCode() + public function getIsByAdmin() { - return $this->container['has_code']; + return $this->container['is_by_admin']; } /** - * Sets has_code + * Sets is_by_admin * - * @param bool|null $has_code has_code + * @param bool|null $is_by_admin is_by_admin * * @return self */ - public function setHasCode($has_code) + public function setIsByAdmin($is_by_admin) { - if (is_null($has_code)) { - throw new \InvalidArgumentException('non-nullable has_code cannot be null'); + if (is_null($is_by_admin)) { + throw new \InvalidArgumentException('non-nullable is_by_admin cannot be null'); } - $this->container['has_code'] = $has_code; + $this->container['is_by_admin'] = $is_by_admin; return $this; } /** - * Gets approved + * Gets is_by_moderator * - * @return bool + * @return bool|null */ - public function getApproved() + public function getIsByModerator() { - return $this->container['approved']; + return $this->container['is_by_moderator']; } /** - * Sets approved + * Sets is_by_moderator * - * @param bool $approved approved + * @param bool|null $is_by_moderator is_by_moderator * * @return self */ - public function setApproved($approved) + public function setIsByModerator($is_by_moderator) { - if (is_null($approved)) { - throw new \InvalidArgumentException('non-nullable approved cannot be null'); + if (is_null($is_by_moderator)) { + throw new \InvalidArgumentException('non-nullable is_by_moderator cannot be null'); } - $this->container['approved'] = $approved; + $this->container['is_by_moderator'] = $is_by_moderator; return $this; } /** - * Gets locale + * Gets is_pinned * - * @return string + * @return bool|null */ - public function getLocale() + public function getIsPinned() { - return $this->container['locale']; + return $this->container['is_pinned']; } /** - * Sets locale + * Sets is_pinned * - * @param string $locale locale + * @param bool|null $is_pinned is_pinned * * @return self */ - public function setLocale($locale) + public function setIsPinned($is_pinned) { - if (is_null($locale)) { - throw new \InvalidArgumentException('non-nullable locale cannot be null'); + if (is_null($is_pinned)) { + array_push($this->openAPINullablesSetToNull, 'is_pinned'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_pinned', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['locale'] = $locale; + $this->container['is_pinned'] = $is_pinned; return $this; } /** - * Gets is_deleted + * Gets is_locked * * @return bool|null */ - public function getIsDeleted() + public function getIsLocked() { - return $this->container['is_deleted']; + return $this->container['is_locked']; } /** - * Sets is_deleted + * Sets is_locked * - * @param bool|null $is_deleted is_deleted + * @param bool|null $is_locked is_locked * * @return self */ - public function setIsDeleted($is_deleted) + public function setIsLocked($is_locked) { - if (is_null($is_deleted)) { - throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); + if (is_null($is_locked)) { + array_push($this->openAPINullablesSetToNull, 'is_locked'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_locked', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_deleted'] = $is_deleted; + $this->container['is_locked'] = $is_locked; return $this; } /** - * Gets is_deleted_user + * Gets display_label * - * @return bool|null + * @return string|null */ - public function getIsDeletedUser() + public function getDisplayLabel() { - return $this->container['is_deleted_user']; + return $this->container['display_label']; } /** - * Sets is_deleted_user + * Sets display_label * - * @param bool|null $is_deleted_user is_deleted_user + * @param string|null $display_label display_label * * @return self */ - public function setIsDeletedUser($is_deleted_user) + public function setDisplayLabel($display_label) { - if (is_null($is_deleted_user)) { - throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); + if (is_null($display_label)) { + array_push($this->openAPINullablesSetToNull, 'display_label'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('display_label', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_deleted_user'] = $is_deleted_user; + $this->container['display_label'] = $display_label; return $this; } /** - * Gets is_banned_user + * Gets rating * - * @return bool|null + * @return float|null */ - public function getIsBannedUser() + public function getRating() { - return $this->container['is_banned_user']; + return $this->container['rating']; } /** - * Sets is_banned_user + * Sets rating * - * @param bool|null $is_banned_user is_banned_user + * @param float|null $rating rating * * @return self */ - public function setIsBannedUser($is_banned_user) + public function setRating($rating) { - if (is_null($is_banned_user)) { - throw new \InvalidArgumentException('non-nullable is_banned_user cannot be null'); + if (is_null($rating)) { + array_push($this->openAPINullablesSetToNull, 'rating'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('rating', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_banned_user'] = $is_banned_user; + $this->container['rating'] = $rating; return $this; } /** - * Gets is_by_admin + * Gets badges * - * @return bool|null + * @return \FastComments\Client\Model\CommentUserBadgeInfo[]|null */ - public function getIsByAdmin() + public function getBadges() { - return $this->container['is_by_admin']; + return $this->container['badges']; } /** - * Sets is_by_admin + * Sets badges * - * @param bool|null $is_by_admin is_by_admin + * @param \FastComments\Client\Model\CommentUserBadgeInfo[]|null $badges badges * * @return self */ - public function setIsByAdmin($is_by_admin) + public function setBadges($badges) { - if (is_null($is_by_admin)) { - throw new \InvalidArgumentException('non-nullable is_by_admin cannot be null'); + if (is_null($badges)) { + array_push($this->openAPINullablesSetToNull, 'badges'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('badges', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_by_admin'] = $is_by_admin; + $this->container['badges'] = $badges; return $this; } /** - * Gets is_by_moderator + * Gets view_count * - * @return bool|null + * @return int|null */ - public function getIsByModerator() + public function getViewCount() { - return $this->container['is_by_moderator']; + return $this->container['view_count']; } /** - * Sets is_by_moderator + * Sets view_count * - * @param bool|null $is_by_moderator is_by_moderator + * @param int|null $view_count view_count * * @return self */ - public function setIsByModerator($is_by_moderator) + public function setViewCount($view_count) { - if (is_null($is_by_moderator)) { - throw new \InvalidArgumentException('non-nullable is_by_moderator cannot be null'); + if (is_null($view_count)) { + array_push($this->openAPINullablesSetToNull, 'view_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('view_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['is_by_moderator'] = $is_by_moderator; + $this->container['view_count'] = $view_count; return $this; } /** - * Gets is_pinned + * Gets is_deleted * * @return bool|null */ - public function getIsPinned() + public function getIsDeleted() { - return $this->container['is_pinned']; + return $this->container['is_deleted']; } /** - * Sets is_pinned + * Sets is_deleted * - * @param bool|null $is_pinned is_pinned + * @param bool|null $is_deleted is_deleted * * @return self */ - public function setIsPinned($is_pinned) + public function setIsDeleted($is_deleted) { - if (is_null($is_pinned)) { - throw new \InvalidArgumentException('non-nullable is_pinned cannot be null'); + if (is_null($is_deleted)) { + throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); } - $this->container['is_pinned'] = $is_pinned; + $this->container['is_deleted'] = $is_deleted; return $this; } /** - * Gets is_locked + * Gets is_deleted_user * * @return bool|null */ - public function getIsLocked() + public function getIsDeletedUser() { - return $this->container['is_locked']; + return $this->container['is_deleted_user']; } /** - * Sets is_locked + * Sets is_deleted_user * - * @param bool|null $is_locked is_locked + * @param bool|null $is_deleted_user is_deleted_user * * @return self */ - public function setIsLocked($is_locked) + public function setIsDeletedUser($is_deleted_user) { - if (is_null($is_locked)) { - throw new \InvalidArgumentException('non-nullable is_locked cannot be null'); + if (is_null($is_deleted_user)) { + throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); } - $this->container['is_locked'] = $is_locked; + $this->container['is_deleted_user'] = $is_deleted_user; return $this; } /** - * Gets flag_count + * Gets is_spam * - * @return int|null + * @return bool|null */ - public function getFlagCount() + public function getIsSpam() { - return $this->container['flag_count']; + return $this->container['is_spam']; } /** - * Sets flag_count + * Sets is_spam * - * @param int|null $flag_count flag_count + * @param bool|null $is_spam is_spam * * @return self */ - public function setFlagCount($flag_count) + public function setIsSpam($is_spam) { - if (is_null($flag_count)) { - throw new \InvalidArgumentException('non-nullable flag_count cannot be null'); + if (is_null($is_spam)) { + throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); } - $this->container['flag_count'] = $flag_count; + $this->container['is_spam'] = $is_spam; return $this; } /** - * Gets rating + * Gets anon_user_id * - * @return float|null + * @return string|null */ - public function getRating() + public function getAnonUserId() { - return $this->container['rating']; + return $this->container['anon_user_id']; } /** - * Sets rating + * Sets anon_user_id * - * @param float|null $rating rating + * @param string|null $anon_user_id anon_user_id * * @return self */ - public function setRating($rating) + public function setAnonUserId($anon_user_id) { - if (is_null($rating)) { - throw new \InvalidArgumentException('non-nullable rating cannot be null'); + if (is_null($anon_user_id)) { + array_push($this->openAPINullablesSetToNull, 'anon_user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('anon_user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['rating'] = $rating; + $this->container['anon_user_id'] = $anon_user_id; return $this; } /** - * Gets display_label + * Gets feedback_ids * - * @return string|null + * @return string[]|null */ - public function getDisplayLabel() + public function getFeedbackIds() { - return $this->container['display_label']; + return $this->container['feedback_ids']; } /** - * Sets display_label + * Sets feedback_ids * - * @param string|null $display_label display_label + * @param string[]|null $feedback_ids feedback_ids * * @return self */ - public function setDisplayLabel($display_label) + public function setFeedbackIds($feedback_ids) { - if (is_null($display_label)) { - throw new \InvalidArgumentException('non-nullable display_label cannot be null'); + if (is_null($feedback_ids)) { + throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); } - $this->container['display_label'] = $display_label; + $this->container['feedback_ids'] = $feedback_ids; return $this; } /** - * Gets badges + * Gets flag_count * - * @return \FastComments\Client\Model\CommentUserBadgeInfo[]|null + * @return int|null */ - public function getBadges() + public function getFlagCount() { - return $this->container['badges']; + return $this->container['flag_count']; } /** - * Sets badges + * Sets flag_count * - * @param \FastComments\Client\Model\CommentUserBadgeInfo[]|null $badges badges + * @param int|null $flag_count flag_count * * @return self */ - public function setBadges($badges) + public function setFlagCount($flag_count) { - if (is_null($badges)) { - throw new \InvalidArgumentException('non-nullable badges cannot be null'); + if (is_null($flag_count)) { + array_push($this->openAPINullablesSetToNull, 'flag_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('flag_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['badges'] = $badges; + $this->container['flag_count'] = $flag_count; return $this; } @@ -1630,7 +1528,14 @@ public function getDomain() public function setDomain($domain) { if (is_null($domain)) { - throw new \InvalidArgumentException('non-nullable domain cannot be null'); + array_push($this->openAPINullablesSetToNull, 'domain'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('domain', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['domain'] = $domain; @@ -1638,82 +1543,272 @@ public function setDomain($domain) } /** - * Gets feedback_ids + * Gets url * - * @return string[]|null + * @return string */ - public function getFeedbackIds() + public function getUrl() { - return $this->container['feedback_ids']; + return $this->container['url']; } /** - * Sets feedback_ids + * Sets url * - * @param string[]|null $feedback_ids feedback_ids + * @param string $url url * * @return self */ - public function setFeedbackIds($feedback_ids) + public function setUrl($url) { - if (is_null($feedback_ids)) { - throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); } - $this->container['feedback_ids'] = $feedback_ids; + $this->container['url'] = $url; return $this; } /** - * Gets group_ids + * Gets page_title * - * @return string[]|null + * @return string|null */ - public function getGroupIds() + public function getPageTitle() { - return $this->container['group_ids']; + return $this->container['page_title']; } /** - * Sets group_ids + * Sets page_title * - * @param string[]|null $group_ids group_ids + * @param string|null $page_title page_title * * @return self */ - public function setGroupIds($group_ids) + public function setPageTitle($page_title) { - if (is_null($group_ids)) { - throw new \InvalidArgumentException('non-nullable group_ids cannot be null'); + if (is_null($page_title)) { + array_push($this->openAPINullablesSetToNull, 'page_title'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('page_title', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['group_ids'] = $group_ids; + $this->container['page_title'] = $page_title; return $this; } /** - * Gets view_count + * Gets expire_at * - * @return int|null + * @return \DateTime|null */ - public function getViewCount() + public function getExpireAt() { - return $this->container['view_count']; + return $this->container['expire_at']; } /** - * Sets view_count + * Sets expire_at * - * @param int|null $view_count view_count + * @param \DateTime|null $expire_at expire_at * * @return self */ - public function setViewCount($view_count) + public function setExpireAt($expire_at) { - if (is_null($view_count)) { - throw new \InvalidArgumentException('non-nullable view_count cannot be null'); + if (is_null($expire_at)) { + array_push($this->openAPINullablesSetToNull, 'expire_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expire_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['view_count'] = $view_count; + $this->container['expire_at'] = $expire_at; + + return $this; + } + + /** + * Gets reviewed + * + * @return bool|null + */ + public function getReviewed() + { + return $this->container['reviewed']; + } + + /** + * Sets reviewed + * + * @param bool|null $reviewed reviewed + * + * @return self + */ + public function setReviewed($reviewed) + { + if (is_null($reviewed)) { + throw new \InvalidArgumentException('non-nullable reviewed cannot be null'); + } + $this->container['reviewed'] = $reviewed; + + return $this; + } + + /** + * Gets has_code + * + * @return bool|null + */ + public function getHasCode() + { + return $this->container['has_code']; + } + + /** + * Sets has_code + * + * @param bool|null $has_code has_code + * + * @return self + */ + public function setHasCode($has_code) + { + if (is_null($has_code)) { + throw new \InvalidArgumentException('non-nullable has_code cannot be null'); + } + $this->container['has_code'] = $has_code; + + return $this; + } + + /** + * Gets approved + * + * @return bool + */ + public function getApproved() + { + return $this->container['approved']; + } + + /** + * Sets approved + * + * @param bool $approved approved + * + * @return self + */ + public function setApproved($approved) + { + if (is_null($approved)) { + throw new \InvalidArgumentException('non-nullable approved cannot be null'); + } + $this->container['approved'] = $approved; + + return $this; + } + + /** + * Gets locale + * + * @return string + */ + public function getLocale() + { + return $this->container['locale']; + } + + /** + * Sets locale + * + * @param string $locale locale + * + * @return self + */ + public function setLocale($locale) + { + if (is_null($locale)) { + array_push($this->openAPINullablesSetToNull, 'locale'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('locale', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['locale'] = $locale; + + return $this; + } + + /** + * Gets is_banned_user + * + * @return bool|null + */ + public function getIsBannedUser() + { + return $this->container['is_banned_user']; + } + + /** + * Sets is_banned_user + * + * @param bool|null $is_banned_user is_banned_user + * + * @return self + */ + public function setIsBannedUser($is_banned_user) + { + if (is_null($is_banned_user)) { + throw new \InvalidArgumentException('non-nullable is_banned_user cannot be null'); + } + $this->container['is_banned_user'] = $is_banned_user; + + return $this; + } + + /** + * Gets group_ids + * + * @return string[]|null + */ + public function getGroupIds() + { + return $this->container['group_ids']; + } + + /** + * Sets group_ids + * + * @param string[]|null $group_ids group_ids + * + * @return self + */ + public function setGroupIds($group_ids) + { + if (is_null($group_ids)) { + array_push($this->openAPINullablesSetToNull, 'group_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('group_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['group_ids'] = $group_ids; return $this; } diff --git a/lib/Model/PublicAPIDeleteCommentResponse.php b/lib/Model/PublicAPIDeleteCommentResponse.php index f4331bb..41fdf98 100644 --- a/lib/Model/PublicAPIDeleteCommentResponse.php +++ b/lib/Model/PublicAPIDeleteCommentResponse.php @@ -58,9 +58,9 @@ class PublicAPIDeleteCommentResponse implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ - 'comment' => '\FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId', + 'comment' => '\FastComments\Client\Model\DeletedCommentResultComment', 'hard_removed' => 'bool', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -313,7 +313,7 @@ public function valid() /** * Gets comment * - * @return \FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId|null + * @return \FastComments\Client\Model\DeletedCommentResultComment|null */ public function getComment() { @@ -323,7 +323,7 @@ public function getComment() /** * Sets comment * - * @param \FastComments\Client\Model\PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId|null $comment comment + * @param \FastComments\Client\Model\DeletedCommentResultComment|null $comment comment * * @return self */ @@ -367,7 +367,7 @@ public function setHardRemoved($hard_removed) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -377,7 +377,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PublicAPIGetCommentTextResponse.php b/lib/Model/PublicAPIGetCommentTextResponse.php index 0d01f01..27bda2e 100644 --- a/lib/Model/PublicAPIGetCommentTextResponse.php +++ b/lib/Model/PublicAPIGetCommentTextResponse.php @@ -58,7 +58,7 @@ class PublicAPIGetCommentTextResponse implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment_text' => 'string', 'sanitized_comment_text' => 'string' ]; @@ -316,7 +316,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -326,7 +326,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PublicAPISetCommentTextResponse.php b/lib/Model/PublicAPISetCommentTextResponse.php index 88cdfc1..636125d 100644 --- a/lib/Model/PublicAPISetCommentTextResponse.php +++ b/lib/Model/PublicAPISetCommentTextResponse.php @@ -58,8 +58,8 @@ class PublicAPISetCommentTextResponse implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'comment' => '\FastComments\Client\Model\PickFCommentApprovedOrCommentHTML', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS' + 'comment' => '\FastComments\Client\Model\SetCommentTextResult', + 'status' => '\FastComments\Client\Model\APIStatus' ]; /** @@ -306,7 +306,7 @@ public function valid() /** * Gets comment * - * @return \FastComments\Client\Model\PickFCommentApprovedOrCommentHTML + * @return \FastComments\Client\Model\SetCommentTextResult */ public function getComment() { @@ -316,7 +316,7 @@ public function getComment() /** * Sets comment * - * @param \FastComments\Client\Model\PickFCommentApprovedOrCommentHTML $comment comment + * @param \FastComments\Client\Model\SetCommentTextResult $comment comment * * @return self */ @@ -333,7 +333,7 @@ public function setComment($comment) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -343,7 +343,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PublicComment.php b/lib/Model/PublicComment.php index 25a6da7..c16517b 100644 --- a/lib/Model/PublicComment.php +++ b/lib/Model/PublicComment.php @@ -58,34 +58,35 @@ class PublicComment implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'date' => '\DateTime', '_id' => 'string', 'user_id' => 'string', - 'anon_user_id' => 'string', 'commenter_name' => 'string', 'commenter_link' => 'string', 'comment_html' => 'string', 'parent_id' => 'string', + 'date' => '\DateTime', 'votes' => 'int', 'votes_up' => 'int', 'votes_down' => 'int', 'verified' => 'bool', 'avatar_src' => 'string', - 'is_spam' => 'bool', 'has_images' => 'bool', - 'is_deleted' => 'bool', - 'is_deleted_user' => 'bool', 'is_by_admin' => 'bool', 'is_by_moderator' => 'bool', 'is_pinned' => 'bool', 'is_locked' => 'bool', - 'rating' => 'float', 'display_label' => 'string', + 'rating' => 'float', 'badges' => '\FastComments\Client\Model\CommentUserBadgeInfo[]', - 'feedback_ids' => 'string[]', 'view_count' => 'int', + 'is_deleted' => 'bool', + 'is_deleted_user' => 'bool', + 'is_spam' => 'bool', + 'anon_user_id' => 'string', + 'feedback_ids' => 'string[]', 'requires_verification' => 'bool', 'edit_key' => 'string', + 'approved' => 'bool', 'is_unread' => 'bool', 'my_vote_id' => 'string', 'is_voted_down' => 'bool', @@ -106,34 +107,35 @@ class PublicComment implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'date' => 'date-time', '_id' => null, 'user_id' => null, - 'anon_user_id' => null, 'commenter_name' => null, 'commenter_link' => null, 'comment_html' => null, 'parent_id' => null, + 'date' => 'date-time', 'votes' => 'int32', 'votes_up' => 'int32', 'votes_down' => 'int32', 'verified' => null, 'avatar_src' => null, - 'is_spam' => null, 'has_images' => null, - 'is_deleted' => null, - 'is_deleted_user' => null, 'is_by_admin' => null, 'is_by_moderator' => null, 'is_pinned' => null, 'is_locked' => null, - 'rating' => 'double', 'display_label' => null, + 'rating' => 'double', 'badges' => null, - 'feedback_ids' => null, 'view_count' => 'int64', + 'is_deleted' => null, + 'is_deleted_user' => null, + 'is_spam' => null, + 'anon_user_id' => null, + 'feedback_ids' => null, 'requires_verification' => null, 'edit_key' => null, + 'approved' => null, 'is_unread' => null, 'my_vote_id' => null, 'is_voted_down' => null, @@ -152,34 +154,35 @@ class PublicComment implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'date' => false, '_id' => false, - 'user_id' => false, - 'anon_user_id' => false, + 'user_id' => true, 'commenter_name' => false, - 'commenter_link' => false, + 'commenter_link' => true, 'comment_html' => false, - 'parent_id' => false, - 'votes' => false, - 'votes_up' => false, - 'votes_down' => false, + 'parent_id' => true, + 'date' => true, + 'votes' => true, + 'votes_up' => true, + 'votes_down' => true, 'verified' => false, - 'avatar_src' => false, - 'is_spam' => false, + 'avatar_src' => true, 'has_images' => false, - 'is_deleted' => false, - 'is_deleted_user' => false, 'is_by_admin' => false, 'is_by_moderator' => false, - 'is_pinned' => false, - 'is_locked' => false, - 'rating' => false, - 'display_label' => false, - 'badges' => false, + 'is_pinned' => true, + 'is_locked' => true, + 'display_label' => true, + 'rating' => true, + 'badges' => true, + 'view_count' => true, + 'is_deleted' => false, + 'is_deleted_user' => false, + 'is_spam' => false, + 'anon_user_id' => true, 'feedback_ids' => false, - 'view_count' => false, 'requires_verification' => false, 'edit_key' => false, + 'approved' => false, 'is_unread' => false, 'my_vote_id' => false, 'is_voted_down' => false, @@ -278,34 +281,35 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'date' => 'date', '_id' => '_id', 'user_id' => 'userId', - 'anon_user_id' => 'anonUserId', 'commenter_name' => 'commenterName', 'commenter_link' => 'commenterLink', 'comment_html' => 'commentHTML', 'parent_id' => 'parentId', + 'date' => 'date', 'votes' => 'votes', 'votes_up' => 'votesUp', 'votes_down' => 'votesDown', 'verified' => 'verified', 'avatar_src' => 'avatarSrc', - 'is_spam' => 'isSpam', 'has_images' => 'hasImages', - 'is_deleted' => 'isDeleted', - 'is_deleted_user' => 'isDeletedUser', 'is_by_admin' => 'isByAdmin', 'is_by_moderator' => 'isByModerator', 'is_pinned' => 'isPinned', 'is_locked' => 'isLocked', - 'rating' => 'rating', 'display_label' => 'displayLabel', + 'rating' => 'rating', 'badges' => 'badges', - 'feedback_ids' => 'feedbackIds', 'view_count' => 'viewCount', + 'is_deleted' => 'isDeleted', + 'is_deleted_user' => 'isDeletedUser', + 'is_spam' => 'isSpam', + 'anon_user_id' => 'anonUserId', + 'feedback_ids' => 'feedbackIds', 'requires_verification' => 'requiresVerification', 'edit_key' => 'editKey', + 'approved' => 'approved', 'is_unread' => 'isUnread', 'my_vote_id' => 'myVoteId', 'is_voted_down' => 'isVotedDown', @@ -324,34 +328,35 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'date' => 'setDate', '_id' => 'setId', 'user_id' => 'setUserId', - 'anon_user_id' => 'setAnonUserId', 'commenter_name' => 'setCommenterName', 'commenter_link' => 'setCommenterLink', 'comment_html' => 'setCommentHtml', 'parent_id' => 'setParentId', + 'date' => 'setDate', 'votes' => 'setVotes', 'votes_up' => 'setVotesUp', 'votes_down' => 'setVotesDown', 'verified' => 'setVerified', 'avatar_src' => 'setAvatarSrc', - 'is_spam' => 'setIsSpam', 'has_images' => 'setHasImages', - 'is_deleted' => 'setIsDeleted', - 'is_deleted_user' => 'setIsDeletedUser', 'is_by_admin' => 'setIsByAdmin', 'is_by_moderator' => 'setIsByModerator', 'is_pinned' => 'setIsPinned', 'is_locked' => 'setIsLocked', - 'rating' => 'setRating', 'display_label' => 'setDisplayLabel', + 'rating' => 'setRating', 'badges' => 'setBadges', - 'feedback_ids' => 'setFeedbackIds', 'view_count' => 'setViewCount', + 'is_deleted' => 'setIsDeleted', + 'is_deleted_user' => 'setIsDeletedUser', + 'is_spam' => 'setIsSpam', + 'anon_user_id' => 'setAnonUserId', + 'feedback_ids' => 'setFeedbackIds', 'requires_verification' => 'setRequiresVerification', 'edit_key' => 'setEditKey', + 'approved' => 'setApproved', 'is_unread' => 'setIsUnread', 'my_vote_id' => 'setMyVoteId', 'is_voted_down' => 'setIsVotedDown', @@ -370,34 +375,35 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'date' => 'getDate', '_id' => 'getId', 'user_id' => 'getUserId', - 'anon_user_id' => 'getAnonUserId', 'commenter_name' => 'getCommenterName', 'commenter_link' => 'getCommenterLink', 'comment_html' => 'getCommentHtml', 'parent_id' => 'getParentId', + 'date' => 'getDate', 'votes' => 'getVotes', 'votes_up' => 'getVotesUp', 'votes_down' => 'getVotesDown', 'verified' => 'getVerified', 'avatar_src' => 'getAvatarSrc', - 'is_spam' => 'getIsSpam', 'has_images' => 'getHasImages', - 'is_deleted' => 'getIsDeleted', - 'is_deleted_user' => 'getIsDeletedUser', 'is_by_admin' => 'getIsByAdmin', 'is_by_moderator' => 'getIsByModerator', 'is_pinned' => 'getIsPinned', 'is_locked' => 'getIsLocked', - 'rating' => 'getRating', 'display_label' => 'getDisplayLabel', + 'rating' => 'getRating', 'badges' => 'getBadges', - 'feedback_ids' => 'getFeedbackIds', 'view_count' => 'getViewCount', + 'is_deleted' => 'getIsDeleted', + 'is_deleted_user' => 'getIsDeletedUser', + 'is_spam' => 'getIsSpam', + 'anon_user_id' => 'getAnonUserId', + 'feedback_ids' => 'getFeedbackIds', 'requires_verification' => 'getRequiresVerification', 'edit_key' => 'getEditKey', + 'approved' => 'getApproved', 'is_unread' => 'getIsUnread', 'my_vote_id' => 'getMyVoteId', 'is_voted_down' => 'getIsVotedDown', @@ -467,34 +473,35 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('date', $data ?? [], null); $this->setIfExists('_id', $data ?? [], null); $this->setIfExists('user_id', $data ?? [], null); - $this->setIfExists('anon_user_id', $data ?? [], null); $this->setIfExists('commenter_name', $data ?? [], null); $this->setIfExists('commenter_link', $data ?? [], null); $this->setIfExists('comment_html', $data ?? [], null); $this->setIfExists('parent_id', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); $this->setIfExists('votes', $data ?? [], null); $this->setIfExists('votes_up', $data ?? [], null); $this->setIfExists('votes_down', $data ?? [], null); $this->setIfExists('verified', $data ?? [], null); $this->setIfExists('avatar_src', $data ?? [], null); - $this->setIfExists('is_spam', $data ?? [], null); $this->setIfExists('has_images', $data ?? [], null); - $this->setIfExists('is_deleted', $data ?? [], null); - $this->setIfExists('is_deleted_user', $data ?? [], null); $this->setIfExists('is_by_admin', $data ?? [], null); $this->setIfExists('is_by_moderator', $data ?? [], null); $this->setIfExists('is_pinned', $data ?? [], null); $this->setIfExists('is_locked', $data ?? [], null); - $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('display_label', $data ?? [], null); + $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('badges', $data ?? [], null); - $this->setIfExists('feedback_ids', $data ?? [], null); $this->setIfExists('view_count', $data ?? [], null); + $this->setIfExists('is_deleted', $data ?? [], null); + $this->setIfExists('is_deleted_user', $data ?? [], null); + $this->setIfExists('is_spam', $data ?? [], null); + $this->setIfExists('anon_user_id', $data ?? [], null); + $this->setIfExists('feedback_ids', $data ?? [], null); $this->setIfExists('requires_verification', $data ?? [], null); $this->setIfExists('edit_key', $data ?? [], null); + $this->setIfExists('approved', $data ?? [], null); $this->setIfExists('is_unread', $data ?? [], null); $this->setIfExists('my_vote_id', $data ?? [], null); $this->setIfExists('is_voted_down', $data ?? [], null); @@ -534,9 +541,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { - $invalidProperties[] = "'date' can't be null"; - } if ($this->container['_id'] === null) { $invalidProperties[] = "'_id' can't be null"; } @@ -546,6 +550,9 @@ public function listInvalidProperties() if ($this->container['comment_html'] === null) { $invalidProperties[] = "'comment_html' can't be null"; } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } if ($this->container['verified'] === null) { $invalidProperties[] = "'verified' can't be null"; } @@ -564,33 +571,6 @@ public function valid() } - /** - * Gets date - * - * @return \DateTime - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \DateTime $date date - * - * @return self - */ - public function setDate($date) - { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); - } - $this->container['date'] = $date; - - return $this; - } - /** * Gets _id * @@ -638,40 +618,20 @@ public function getUserId() public function setUserId($user_id) { if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['user_id'] = $user_id; return $this; } - /** - * Gets anon_user_id - * - * @return string|null - */ - public function getAnonUserId() - { - return $this->container['anon_user_id']; - } - - /** - * Sets anon_user_id - * - * @param string|null $anon_user_id anon_user_id - * - * @return self - */ - public function setAnonUserId($anon_user_id) - { - if (is_null($anon_user_id)) { - throw new \InvalidArgumentException('non-nullable anon_user_id cannot be null'); - } - $this->container['anon_user_id'] = $anon_user_id; - - return $this; - } - /** * Gets commenter_name * @@ -719,7 +679,14 @@ public function getCommenterLink() public function setCommenterLink($commenter_link) { if (is_null($commenter_link)) { - throw new \InvalidArgumentException('non-nullable commenter_link cannot be null'); + array_push($this->openAPINullablesSetToNull, 'commenter_link'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_link', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['commenter_link'] = $commenter_link; @@ -773,13 +740,54 @@ public function getParentId() public function setParentId($parent_id) { if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['parent_id'] = $parent_id; return $this; } + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date date + * + * @return self + */ + public function setDate($date) + { + if (is_null($date)) { + array_push($this->openAPINullablesSetToNull, 'date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['date'] = $date; + + return $this; + } + /** * Gets votes * @@ -800,7 +808,14 @@ public function getVotes() public function setVotes($votes) { if (is_null($votes)) { - throw new \InvalidArgumentException('non-nullable votes cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes'] = $votes; @@ -827,7 +842,14 @@ public function getVotesUp() public function setVotesUp($votes_up) { if (is_null($votes_up)) { - throw new \InvalidArgumentException('non-nullable votes_up cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_up'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_up'] = $votes_up; @@ -854,7 +876,14 @@ public function getVotesDown() public function setVotesDown($votes_down) { if (is_null($votes_down)) { - throw new \InvalidArgumentException('non-nullable votes_down cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_down'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_down'] = $votes_down; @@ -908,40 +937,20 @@ public function getAvatarSrc() public function setAvatarSrc($avatar_src) { if (is_null($avatar_src)) { - throw new \InvalidArgumentException('non-nullable avatar_src cannot be null'); + array_push($this->openAPINullablesSetToNull, 'avatar_src'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('avatar_src', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['avatar_src'] = $avatar_src; return $this; } - /** - * Gets is_spam - * - * @return bool|null - */ - public function getIsSpam() - { - return $this->container['is_spam']; - } - - /** - * Sets is_spam - * - * @param bool|null $is_spam is_spam - * - * @return self - */ - public function setIsSpam($is_spam) - { - if (is_null($is_spam)) { - throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); - } - $this->container['is_spam'] = $is_spam; - - return $this; - } - /** * Gets has_images * @@ -969,60 +978,6 @@ public function setHasImages($has_images) return $this; } - /** - * Gets is_deleted - * - * @return bool|null - */ - public function getIsDeleted() - { - return $this->container['is_deleted']; - } - - /** - * Sets is_deleted - * - * @param bool|null $is_deleted is_deleted - * - * @return self - */ - public function setIsDeleted($is_deleted) - { - if (is_null($is_deleted)) { - throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); - } - $this->container['is_deleted'] = $is_deleted; - - return $this; - } - - /** - * Gets is_deleted_user - * - * @return bool|null - */ - public function getIsDeletedUser() - { - return $this->container['is_deleted_user']; - } - - /** - * Sets is_deleted_user - * - * @param bool|null $is_deleted_user is_deleted_user - * - * @return self - */ - public function setIsDeletedUser($is_deleted_user) - { - if (is_null($is_deleted_user)) { - throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); - } - $this->container['is_deleted_user'] = $is_deleted_user; - - return $this; - } - /** * Gets is_by_admin * @@ -1097,7 +1052,14 @@ public function getIsPinned() public function setIsPinned($is_pinned) { if (is_null($is_pinned)) { - throw new \InvalidArgumentException('non-nullable is_pinned cannot be null'); + array_push($this->openAPINullablesSetToNull, 'is_pinned'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_pinned', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['is_pinned'] = $is_pinned; @@ -1124,7 +1086,14 @@ public function getIsLocked() public function setIsLocked($is_locked) { if (is_null($is_locked)) { - throw new \InvalidArgumentException('non-nullable is_locked cannot be null'); + array_push($this->openAPINullablesSetToNull, 'is_locked'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_locked', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['is_locked'] = $is_locked; @@ -1132,55 +1101,69 @@ public function setIsLocked($is_locked) } /** - * Gets rating + * Gets display_label * - * @return float|null + * @return string|null */ - public function getRating() + public function getDisplayLabel() { - return $this->container['rating']; + return $this->container['display_label']; } /** - * Sets rating + * Sets display_label * - * @param float|null $rating rating + * @param string|null $display_label display_label * * @return self */ - public function setRating($rating) + public function setDisplayLabel($display_label) { - if (is_null($rating)) { - throw new \InvalidArgumentException('non-nullable rating cannot be null'); + if (is_null($display_label)) { + array_push($this->openAPINullablesSetToNull, 'display_label'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('display_label', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['rating'] = $rating; + $this->container['display_label'] = $display_label; return $this; } /** - * Gets display_label + * Gets rating * - * @return string|null + * @return float|null */ - public function getDisplayLabel() + public function getRating() { - return $this->container['display_label']; + return $this->container['rating']; } /** - * Sets display_label + * Sets rating * - * @param string|null $display_label display_label + * @param float|null $rating rating * * @return self */ - public function setDisplayLabel($display_label) + public function setRating($rating) { - if (is_null($display_label)) { - throw new \InvalidArgumentException('non-nullable display_label cannot be null'); + if (is_null($rating)) { + array_push($this->openAPINullablesSetToNull, 'rating'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('rating', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['display_label'] = $display_label; + $this->container['rating'] = $rating; return $this; } @@ -1205,7 +1188,14 @@ public function getBadges() public function setBadges($badges) { if (is_null($badges)) { - throw new \InvalidArgumentException('non-nullable badges cannot be null'); + array_push($this->openAPINullablesSetToNull, 'badges'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('badges', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['badges'] = $badges; @@ -1213,55 +1203,177 @@ public function setBadges($badges) } /** - * Gets feedback_ids + * Gets view_count * - * @return string[]|null + * @return int|null */ - public function getFeedbackIds() + public function getViewCount() { - return $this->container['feedback_ids']; + return $this->container['view_count']; } /** - * Sets feedback_ids + * Sets view_count * - * @param string[]|null $feedback_ids feedback_ids + * @param int|null $view_count view_count * * @return self */ - public function setFeedbackIds($feedback_ids) + public function setViewCount($view_count) { - if (is_null($feedback_ids)) { - throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + if (is_null($view_count)) { + array_push($this->openAPINullablesSetToNull, 'view_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('view_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['feedback_ids'] = $feedback_ids; + $this->container['view_count'] = $view_count; return $this; } /** - * Gets view_count + * Gets is_deleted * - * @return int|null + * @return bool|null */ - public function getViewCount() + public function getIsDeleted() { - return $this->container['view_count']; + return $this->container['is_deleted']; } /** - * Sets view_count + * Sets is_deleted * - * @param int|null $view_count view_count + * @param bool|null $is_deleted is_deleted * * @return self */ - public function setViewCount($view_count) + public function setIsDeleted($is_deleted) { - if (is_null($view_count)) { - throw new \InvalidArgumentException('non-nullable view_count cannot be null'); + if (is_null($is_deleted)) { + throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); } - $this->container['view_count'] = $view_count; + $this->container['is_deleted'] = $is_deleted; + + return $this; + } + + /** + * Gets is_deleted_user + * + * @return bool|null + */ + public function getIsDeletedUser() + { + return $this->container['is_deleted_user']; + } + + /** + * Sets is_deleted_user + * + * @param bool|null $is_deleted_user is_deleted_user + * + * @return self + */ + public function setIsDeletedUser($is_deleted_user) + { + if (is_null($is_deleted_user)) { + throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); + } + $this->container['is_deleted_user'] = $is_deleted_user; + + return $this; + } + + /** + * Gets is_spam + * + * @return bool|null + */ + public function getIsSpam() + { + return $this->container['is_spam']; + } + + /** + * Sets is_spam + * + * @param bool|null $is_spam is_spam + * + * @return self + */ + public function setIsSpam($is_spam) + { + if (is_null($is_spam)) { + throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); + } + $this->container['is_spam'] = $is_spam; + + return $this; + } + + /** + * Gets anon_user_id + * + * @return string|null + */ + public function getAnonUserId() + { + return $this->container['anon_user_id']; + } + + /** + * Sets anon_user_id + * + * @param string|null $anon_user_id anon_user_id + * + * @return self + */ + public function setAnonUserId($anon_user_id) + { + if (is_null($anon_user_id)) { + array_push($this->openAPINullablesSetToNull, 'anon_user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('anon_user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['anon_user_id'] = $anon_user_id; + + return $this; + } + + /** + * Gets feedback_ids + * + * @return string[]|null + */ + public function getFeedbackIds() + { + return $this->container['feedback_ids']; + } + + /** + * Sets feedback_ids + * + * @param string[]|null $feedback_ids feedback_ids + * + * @return self + */ + public function setFeedbackIds($feedback_ids) + { + if (is_null($feedback_ids)) { + throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + } + $this->container['feedback_ids'] = $feedback_ids; return $this; } @@ -1320,6 +1432,33 @@ public function setEditKey($edit_key) return $this; } + /** + * Gets approved + * + * @return bool|null + */ + public function getApproved() + { + return $this->container['approved']; + } + + /** + * Sets approved + * + * @param bool|null $approved approved + * + * @return self + */ + public function setApproved($approved) + { + if (is_null($approved)) { + throw new \InvalidArgumentException('non-nullable approved cannot be null'); + } + $this->container['approved'] = $approved; + + return $this; + } + /** * Gets is_unread * diff --git a/lib/Model/PickFCommentPublicCommentFieldsKeys.php b/lib/Model/PublicCommentBase.php similarity index 79% rename from lib/Model/PickFCommentPublicCommentFieldsKeys.php rename to lib/Model/PublicCommentBase.php index 8daa05a..40e6ad8 100644 --- a/lib/Model/PickFCommentPublicCommentFieldsKeys.php +++ b/lib/Model/PublicCommentBase.php @@ -1,6 +1,6 @@ */ -class PickFCommentPublicCommentFieldsKeys implements ModelInterface, ArrayAccess, \JsonSerializable +class PublicCommentBase implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +50,7 @@ class PickFCommentPublicCommentFieldsKeys implements ModelInterface, ArrayAccess * * @var string */ - protected static $openAPIModelName = 'Pick_FComment.PublicCommentFieldsKeys_'; + protected static $openAPIModelName = 'PublicCommentBase'; /** * Array of property to type mappings. Used for (de)serialization @@ -59,34 +58,35 @@ class PickFCommentPublicCommentFieldsKeys implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ - 'date' => '\DateTime', '_id' => 'string', 'user_id' => 'string', - 'anon_user_id' => 'string', 'commenter_name' => 'string', 'commenter_link' => 'string', 'comment_html' => 'string', 'parent_id' => 'string', + 'date' => '\DateTime', 'votes' => 'int', 'votes_up' => 'int', 'votes_down' => 'int', 'verified' => 'bool', 'avatar_src' => 'string', - 'is_spam' => 'bool', 'has_images' => 'bool', - 'is_deleted' => 'bool', - 'is_deleted_user' => 'bool', 'is_by_admin' => 'bool', 'is_by_moderator' => 'bool', 'is_pinned' => 'bool', 'is_locked' => 'bool', - 'rating' => 'float', 'display_label' => 'string', + 'rating' => 'float', 'badges' => '\FastComments\Client\Model\CommentUserBadgeInfo[]', - 'feedback_ids' => 'string[]', 'view_count' => 'int', + 'is_deleted' => 'bool', + 'is_deleted_user' => 'bool', + 'is_spam' => 'bool', + 'anon_user_id' => 'string', + 'feedback_ids' => 'string[]', 'requires_verification' => 'bool', - 'edit_key' => 'string' + 'edit_key' => 'string', + 'approved' => 'bool' ]; /** @@ -97,34 +97,35 @@ class PickFCommentPublicCommentFieldsKeys implements ModelInterface, ArrayAccess * @psalm-var array */ protected static $openAPIFormats = [ - 'date' => 'date-time', '_id' => null, 'user_id' => null, - 'anon_user_id' => null, 'commenter_name' => null, 'commenter_link' => null, 'comment_html' => null, 'parent_id' => null, + 'date' => 'date-time', 'votes' => 'int32', 'votes_up' => 'int32', 'votes_down' => 'int32', 'verified' => null, 'avatar_src' => null, - 'is_spam' => null, 'has_images' => null, - 'is_deleted' => null, - 'is_deleted_user' => null, 'is_by_admin' => null, 'is_by_moderator' => null, 'is_pinned' => null, 'is_locked' => null, - 'rating' => 'double', 'display_label' => null, + 'rating' => 'double', 'badges' => null, - 'feedback_ids' => null, 'view_count' => 'int64', + 'is_deleted' => null, + 'is_deleted_user' => null, + 'is_spam' => null, + 'anon_user_id' => null, + 'feedback_ids' => null, 'requires_verification' => null, - 'edit_key' => null + 'edit_key' => null, + 'approved' => null ]; /** @@ -133,34 +134,35 @@ class PickFCommentPublicCommentFieldsKeys implements ModelInterface, ArrayAccess * @var boolean[] */ protected static array $openAPINullables = [ - 'date' => false, '_id' => false, - 'user_id' => false, - 'anon_user_id' => false, + 'user_id' => true, 'commenter_name' => false, - 'commenter_link' => false, + 'commenter_link' => true, 'comment_html' => false, - 'parent_id' => false, - 'votes' => false, - 'votes_up' => false, - 'votes_down' => false, + 'parent_id' => true, + 'date' => true, + 'votes' => true, + 'votes_up' => true, + 'votes_down' => true, 'verified' => false, - 'avatar_src' => false, - 'is_spam' => false, + 'avatar_src' => true, 'has_images' => false, - 'is_deleted' => false, - 'is_deleted_user' => false, 'is_by_admin' => false, 'is_by_moderator' => false, - 'is_pinned' => false, - 'is_locked' => false, - 'rating' => false, - 'display_label' => false, - 'badges' => false, + 'is_pinned' => true, + 'is_locked' => true, + 'display_label' => true, + 'rating' => true, + 'badges' => true, + 'view_count' => true, + 'is_deleted' => false, + 'is_deleted_user' => false, + 'is_spam' => false, + 'anon_user_id' => true, 'feedback_ids' => false, - 'view_count' => false, 'requires_verification' => false, - 'edit_key' => false + 'edit_key' => false, + 'approved' => false ]; /** @@ -249,34 +251,35 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'date' => 'date', '_id' => '_id', 'user_id' => 'userId', - 'anon_user_id' => 'anonUserId', 'commenter_name' => 'commenterName', 'commenter_link' => 'commenterLink', 'comment_html' => 'commentHTML', 'parent_id' => 'parentId', + 'date' => 'date', 'votes' => 'votes', 'votes_up' => 'votesUp', 'votes_down' => 'votesDown', 'verified' => 'verified', 'avatar_src' => 'avatarSrc', - 'is_spam' => 'isSpam', 'has_images' => 'hasImages', - 'is_deleted' => 'isDeleted', - 'is_deleted_user' => 'isDeletedUser', 'is_by_admin' => 'isByAdmin', 'is_by_moderator' => 'isByModerator', 'is_pinned' => 'isPinned', 'is_locked' => 'isLocked', - 'rating' => 'rating', 'display_label' => 'displayLabel', + 'rating' => 'rating', 'badges' => 'badges', - 'feedback_ids' => 'feedbackIds', 'view_count' => 'viewCount', + 'is_deleted' => 'isDeleted', + 'is_deleted_user' => 'isDeletedUser', + 'is_spam' => 'isSpam', + 'anon_user_id' => 'anonUserId', + 'feedback_ids' => 'feedbackIds', 'requires_verification' => 'requiresVerification', - 'edit_key' => 'editKey' + 'edit_key' => 'editKey', + 'approved' => 'approved' ]; /** @@ -285,34 +288,35 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'date' => 'setDate', '_id' => 'setId', 'user_id' => 'setUserId', - 'anon_user_id' => 'setAnonUserId', 'commenter_name' => 'setCommenterName', 'commenter_link' => 'setCommenterLink', 'comment_html' => 'setCommentHtml', 'parent_id' => 'setParentId', + 'date' => 'setDate', 'votes' => 'setVotes', 'votes_up' => 'setVotesUp', 'votes_down' => 'setVotesDown', 'verified' => 'setVerified', 'avatar_src' => 'setAvatarSrc', - 'is_spam' => 'setIsSpam', 'has_images' => 'setHasImages', - 'is_deleted' => 'setIsDeleted', - 'is_deleted_user' => 'setIsDeletedUser', 'is_by_admin' => 'setIsByAdmin', 'is_by_moderator' => 'setIsByModerator', 'is_pinned' => 'setIsPinned', 'is_locked' => 'setIsLocked', - 'rating' => 'setRating', 'display_label' => 'setDisplayLabel', + 'rating' => 'setRating', 'badges' => 'setBadges', - 'feedback_ids' => 'setFeedbackIds', 'view_count' => 'setViewCount', + 'is_deleted' => 'setIsDeleted', + 'is_deleted_user' => 'setIsDeletedUser', + 'is_spam' => 'setIsSpam', + 'anon_user_id' => 'setAnonUserId', + 'feedback_ids' => 'setFeedbackIds', 'requires_verification' => 'setRequiresVerification', - 'edit_key' => 'setEditKey' + 'edit_key' => 'setEditKey', + 'approved' => 'setApproved' ]; /** @@ -321,34 +325,35 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'date' => 'getDate', '_id' => 'getId', 'user_id' => 'getUserId', - 'anon_user_id' => 'getAnonUserId', 'commenter_name' => 'getCommenterName', 'commenter_link' => 'getCommenterLink', 'comment_html' => 'getCommentHtml', 'parent_id' => 'getParentId', + 'date' => 'getDate', 'votes' => 'getVotes', 'votes_up' => 'getVotesUp', 'votes_down' => 'getVotesDown', 'verified' => 'getVerified', 'avatar_src' => 'getAvatarSrc', - 'is_spam' => 'getIsSpam', 'has_images' => 'getHasImages', - 'is_deleted' => 'getIsDeleted', - 'is_deleted_user' => 'getIsDeletedUser', 'is_by_admin' => 'getIsByAdmin', 'is_by_moderator' => 'getIsByModerator', 'is_pinned' => 'getIsPinned', 'is_locked' => 'getIsLocked', - 'rating' => 'getRating', 'display_label' => 'getDisplayLabel', + 'rating' => 'getRating', 'badges' => 'getBadges', - 'feedback_ids' => 'getFeedbackIds', 'view_count' => 'getViewCount', + 'is_deleted' => 'getIsDeleted', + 'is_deleted_user' => 'getIsDeletedUser', + 'is_spam' => 'getIsSpam', + 'anon_user_id' => 'getAnonUserId', + 'feedback_ids' => 'getFeedbackIds', 'requires_verification' => 'getRequiresVerification', - 'edit_key' => 'getEditKey' + 'edit_key' => 'getEditKey', + 'approved' => 'getApproved' ]; /** @@ -408,34 +413,35 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('date', $data ?? [], null); $this->setIfExists('_id', $data ?? [], null); $this->setIfExists('user_id', $data ?? [], null); - $this->setIfExists('anon_user_id', $data ?? [], null); $this->setIfExists('commenter_name', $data ?? [], null); $this->setIfExists('commenter_link', $data ?? [], null); $this->setIfExists('comment_html', $data ?? [], null); $this->setIfExists('parent_id', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); $this->setIfExists('votes', $data ?? [], null); $this->setIfExists('votes_up', $data ?? [], null); $this->setIfExists('votes_down', $data ?? [], null); $this->setIfExists('verified', $data ?? [], null); $this->setIfExists('avatar_src', $data ?? [], null); - $this->setIfExists('is_spam', $data ?? [], null); $this->setIfExists('has_images', $data ?? [], null); - $this->setIfExists('is_deleted', $data ?? [], null); - $this->setIfExists('is_deleted_user', $data ?? [], null); $this->setIfExists('is_by_admin', $data ?? [], null); $this->setIfExists('is_by_moderator', $data ?? [], null); $this->setIfExists('is_pinned', $data ?? [], null); $this->setIfExists('is_locked', $data ?? [], null); - $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('display_label', $data ?? [], null); + $this->setIfExists('rating', $data ?? [], null); $this->setIfExists('badges', $data ?? [], null); - $this->setIfExists('feedback_ids', $data ?? [], null); $this->setIfExists('view_count', $data ?? [], null); + $this->setIfExists('is_deleted', $data ?? [], null); + $this->setIfExists('is_deleted_user', $data ?? [], null); + $this->setIfExists('is_spam', $data ?? [], null); + $this->setIfExists('anon_user_id', $data ?? [], null); + $this->setIfExists('feedback_ids', $data ?? [], null); $this->setIfExists('requires_verification', $data ?? [], null); $this->setIfExists('edit_key', $data ?? [], null); + $this->setIfExists('approved', $data ?? [], null); } /** @@ -465,9 +471,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { - $invalidProperties[] = "'date' can't be null"; - } if ($this->container['_id'] === null) { $invalidProperties[] = "'_id' can't be null"; } @@ -477,6 +480,9 @@ public function listInvalidProperties() if ($this->container['comment_html'] === null) { $invalidProperties[] = "'comment_html' can't be null"; } + if ($this->container['date'] === null) { + $invalidProperties[] = "'date' can't be null"; + } if ($this->container['verified'] === null) { $invalidProperties[] = "'verified' can't be null"; } @@ -495,33 +501,6 @@ public function valid() } - /** - * Gets date - * - * @return \DateTime - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \DateTime $date date - * - * @return self - */ - public function setDate($date) - { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); - } - $this->container['date'] = $date; - - return $this; - } - /** * Gets _id * @@ -569,40 +548,20 @@ public function getUserId() public function setUserId($user_id) { if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['user_id'] = $user_id; return $this; } - /** - * Gets anon_user_id - * - * @return string|null - */ - public function getAnonUserId() - { - return $this->container['anon_user_id']; - } - - /** - * Sets anon_user_id - * - * @param string|null $anon_user_id anon_user_id - * - * @return self - */ - public function setAnonUserId($anon_user_id) - { - if (is_null($anon_user_id)) { - throw new \InvalidArgumentException('non-nullable anon_user_id cannot be null'); - } - $this->container['anon_user_id'] = $anon_user_id; - - return $this; - } - /** * Gets commenter_name * @@ -650,7 +609,14 @@ public function getCommenterLink() public function setCommenterLink($commenter_link) { if (is_null($commenter_link)) { - throw new \InvalidArgumentException('non-nullable commenter_link cannot be null'); + array_push($this->openAPINullablesSetToNull, 'commenter_link'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_link', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['commenter_link'] = $commenter_link; @@ -704,13 +670,54 @@ public function getParentId() public function setParentId($parent_id) { if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['parent_id'] = $parent_id; return $this; } + /** + * Gets date + * + * @return \DateTime + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime $date date + * + * @return self + */ + public function setDate($date) + { + if (is_null($date)) { + array_push($this->openAPINullablesSetToNull, 'date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['date'] = $date; + + return $this; + } + /** * Gets votes * @@ -731,7 +738,14 @@ public function getVotes() public function setVotes($votes) { if (is_null($votes)) { - throw new \InvalidArgumentException('non-nullable votes cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes'] = $votes; @@ -758,7 +772,14 @@ public function getVotesUp() public function setVotesUp($votes_up) { if (is_null($votes_up)) { - throw new \InvalidArgumentException('non-nullable votes_up cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_up'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_up'] = $votes_up; @@ -785,7 +806,14 @@ public function getVotesDown() public function setVotesDown($votes_down) { if (is_null($votes_down)) { - throw new \InvalidArgumentException('non-nullable votes_down cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_down'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_down'] = $votes_down; @@ -839,40 +867,20 @@ public function getAvatarSrc() public function setAvatarSrc($avatar_src) { if (is_null($avatar_src)) { - throw new \InvalidArgumentException('non-nullable avatar_src cannot be null'); + array_push($this->openAPINullablesSetToNull, 'avatar_src'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('avatar_src', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['avatar_src'] = $avatar_src; return $this; } - /** - * Gets is_spam - * - * @return bool|null - */ - public function getIsSpam() - { - return $this->container['is_spam']; - } - - /** - * Sets is_spam - * - * @param bool|null $is_spam is_spam - * - * @return self - */ - public function setIsSpam($is_spam) - { - if (is_null($is_spam)) { - throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); - } - $this->container['is_spam'] = $is_spam; - - return $this; - } - /** * Gets has_images * @@ -900,60 +908,6 @@ public function setHasImages($has_images) return $this; } - /** - * Gets is_deleted - * - * @return bool|null - */ - public function getIsDeleted() - { - return $this->container['is_deleted']; - } - - /** - * Sets is_deleted - * - * @param bool|null $is_deleted is_deleted - * - * @return self - */ - public function setIsDeleted($is_deleted) - { - if (is_null($is_deleted)) { - throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); - } - $this->container['is_deleted'] = $is_deleted; - - return $this; - } - - /** - * Gets is_deleted_user - * - * @return bool|null - */ - public function getIsDeletedUser() - { - return $this->container['is_deleted_user']; - } - - /** - * Sets is_deleted_user - * - * @param bool|null $is_deleted_user is_deleted_user - * - * @return self - */ - public function setIsDeletedUser($is_deleted_user) - { - if (is_null($is_deleted_user)) { - throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); - } - $this->container['is_deleted_user'] = $is_deleted_user; - - return $this; - } - /** * Gets is_by_admin * @@ -1028,7 +982,14 @@ public function getIsPinned() public function setIsPinned($is_pinned) { if (is_null($is_pinned)) { - throw new \InvalidArgumentException('non-nullable is_pinned cannot be null'); + array_push($this->openAPINullablesSetToNull, 'is_pinned'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_pinned', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['is_pinned'] = $is_pinned; @@ -1055,7 +1016,14 @@ public function getIsLocked() public function setIsLocked($is_locked) { if (is_null($is_locked)) { - throw new \InvalidArgumentException('non-nullable is_locked cannot be null'); + array_push($this->openAPINullablesSetToNull, 'is_locked'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_locked', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['is_locked'] = $is_locked; @@ -1063,55 +1031,69 @@ public function setIsLocked($is_locked) } /** - * Gets rating + * Gets display_label * - * @return float|null + * @return string|null */ - public function getRating() + public function getDisplayLabel() { - return $this->container['rating']; + return $this->container['display_label']; } /** - * Sets rating + * Sets display_label * - * @param float|null $rating rating + * @param string|null $display_label display_label * * @return self */ - public function setRating($rating) + public function setDisplayLabel($display_label) { - if (is_null($rating)) { - throw new \InvalidArgumentException('non-nullable rating cannot be null'); + if (is_null($display_label)) { + array_push($this->openAPINullablesSetToNull, 'display_label'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('display_label', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['rating'] = $rating; + $this->container['display_label'] = $display_label; return $this; } /** - * Gets display_label + * Gets rating * - * @return string|null + * @return float|null */ - public function getDisplayLabel() + public function getRating() { - return $this->container['display_label']; + return $this->container['rating']; } /** - * Sets display_label + * Sets rating * - * @param string|null $display_label display_label + * @param float|null $rating rating * * @return self */ - public function setDisplayLabel($display_label) + public function setRating($rating) { - if (is_null($display_label)) { - throw new \InvalidArgumentException('non-nullable display_label cannot be null'); + if (is_null($rating)) { + array_push($this->openAPINullablesSetToNull, 'rating'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('rating', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['display_label'] = $display_label; + $this->container['rating'] = $rating; return $this; } @@ -1136,7 +1118,14 @@ public function getBadges() public function setBadges($badges) { if (is_null($badges)) { - throw new \InvalidArgumentException('non-nullable badges cannot be null'); + array_push($this->openAPINullablesSetToNull, 'badges'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('badges', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['badges'] = $badges; @@ -1144,55 +1133,177 @@ public function setBadges($badges) } /** - * Gets feedback_ids + * Gets view_count * - * @return string[]|null + * @return int|null */ - public function getFeedbackIds() + public function getViewCount() { - return $this->container['feedback_ids']; + return $this->container['view_count']; } /** - * Sets feedback_ids + * Sets view_count * - * @param string[]|null $feedback_ids feedback_ids + * @param int|null $view_count view_count * * @return self */ - public function setFeedbackIds($feedback_ids) + public function setViewCount($view_count) { - if (is_null($feedback_ids)) { - throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + if (is_null($view_count)) { + array_push($this->openAPINullablesSetToNull, 'view_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('view_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['feedback_ids'] = $feedback_ids; + $this->container['view_count'] = $view_count; return $this; } /** - * Gets view_count + * Gets is_deleted * - * @return int|null + * @return bool|null */ - public function getViewCount() + public function getIsDeleted() { - return $this->container['view_count']; + return $this->container['is_deleted']; } /** - * Sets view_count + * Sets is_deleted * - * @param int|null $view_count view_count + * @param bool|null $is_deleted is_deleted * * @return self */ - public function setViewCount($view_count) + public function setIsDeleted($is_deleted) { - if (is_null($view_count)) { - throw new \InvalidArgumentException('non-nullable view_count cannot be null'); + if (is_null($is_deleted)) { + throw new \InvalidArgumentException('non-nullable is_deleted cannot be null'); } - $this->container['view_count'] = $view_count; + $this->container['is_deleted'] = $is_deleted; + + return $this; + } + + /** + * Gets is_deleted_user + * + * @return bool|null + */ + public function getIsDeletedUser() + { + return $this->container['is_deleted_user']; + } + + /** + * Sets is_deleted_user + * + * @param bool|null $is_deleted_user is_deleted_user + * + * @return self + */ + public function setIsDeletedUser($is_deleted_user) + { + if (is_null($is_deleted_user)) { + throw new \InvalidArgumentException('non-nullable is_deleted_user cannot be null'); + } + $this->container['is_deleted_user'] = $is_deleted_user; + + return $this; + } + + /** + * Gets is_spam + * + * @return bool|null + */ + public function getIsSpam() + { + return $this->container['is_spam']; + } + + /** + * Sets is_spam + * + * @param bool|null $is_spam is_spam + * + * @return self + */ + public function setIsSpam($is_spam) + { + if (is_null($is_spam)) { + throw new \InvalidArgumentException('non-nullable is_spam cannot be null'); + } + $this->container['is_spam'] = $is_spam; + + return $this; + } + + /** + * Gets anon_user_id + * + * @return string|null + */ + public function getAnonUserId() + { + return $this->container['anon_user_id']; + } + + /** + * Sets anon_user_id + * + * @param string|null $anon_user_id anon_user_id + * + * @return self + */ + public function setAnonUserId($anon_user_id) + { + if (is_null($anon_user_id)) { + array_push($this->openAPINullablesSetToNull, 'anon_user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('anon_user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['anon_user_id'] = $anon_user_id; + + return $this; + } + + /** + * Gets feedback_ids + * + * @return string[]|null + */ + public function getFeedbackIds() + { + return $this->container['feedback_ids']; + } + + /** + * Sets feedback_ids + * + * @param string[]|null $feedback_ids feedback_ids + * + * @return self + */ + public function setFeedbackIds($feedback_ids) + { + if (is_null($feedback_ids)) { + throw new \InvalidArgumentException('non-nullable feedback_ids cannot be null'); + } + $this->container['feedback_ids'] = $feedback_ids; return $this; } @@ -1250,6 +1361,33 @@ public function setEditKey($edit_key) return $this; } + + /** + * Gets approved + * + * @return bool|null + */ + public function getApproved() + { + return $this->container['approved']; + } + + /** + * Sets approved + * + * @param bool|null $approved approved + * + * @return self + */ + public function setApproved($approved) + { + if (is_null($approved)) { + throw new \InvalidArgumentException('non-nullable approved cannot be null'); + } + $this->container['approved'] = $approved; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PublicFeedPostsResponse.php b/lib/Model/PublicFeedPostsResponse.php index 67f5463..6f8f161 100644 --- a/lib/Model/PublicFeedPostsResponse.php +++ b/lib/Model/PublicFeedPostsResponse.php @@ -58,7 +58,7 @@ class PublicFeedPostsResponse implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'feed_posts' => '\FastComments\Client\Model\FeedPost[]', 'user' => '\FastComments\Client\Model\UserSessionInfo', 'url_id_ws' => 'string', @@ -341,7 +341,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -351,7 +351,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/ReactFeedPostPublic200Response.php b/lib/Model/ReactFeedPostPublic200Response.php index 5a8e233..93af3e8 100644 --- a/lib/Model/ReactFeedPostPublic200Response.php +++ b/lib/Model/ReactFeedPostPublic200Response.php @@ -58,7 +58,7 @@ class ReactFeedPostPublic200Response implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'react_type' => 'string', 'is_undo' => 'bool', 'reason' => 'string', @@ -371,7 +371,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -381,7 +381,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/ImportedAPIStatusFAILED.php b/lib/Model/RepeatCommentCheckIgnoredReason.php similarity index 66% rename from lib/Model/ImportedAPIStatusFAILED.php rename to lib/Model/RepeatCommentCheckIgnoredReason.php index d929d73..60ff87d 100644 --- a/lib/Model/ImportedAPIStatusFAILED.php +++ b/lib/Model/RepeatCommentCheckIgnoredReason.php @@ -1,6 +1,6 @@ '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'code' => 'string', 'reason' => 'string', 'secondary_code' => 'string', @@ -351,7 +351,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -361,7 +361,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/ResetUserNotificationsResponse.php b/lib/Model/ResetUserNotificationsResponse.php index d3fde15..fcbf49b 100644 --- a/lib/Model/ResetUserNotificationsResponse.php +++ b/lib/Model/ResetUserNotificationsResponse.php @@ -58,7 +58,7 @@ class ResetUserNotificationsResponse implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'code' => 'string' ]; @@ -325,7 +325,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -335,7 +335,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/SaveComment200Response.php b/lib/Model/SaveComment200Response.php index 0ec19dd..13b1890 100644 --- a/lib/Model/SaveComment200Response.php +++ b/lib/Model/SaveComment200Response.php @@ -58,7 +58,7 @@ class SaveComment200Response implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment' => '\FastComments\Client\Model\FComment', 'user' => '\FastComments\Client\Model\UserSessionInfo', 'module_data' => 'array', @@ -378,7 +378,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -388,7 +388,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/SaveCommentResponse.php b/lib/Model/SaveCommentResponse.php index d372bc9..715de55 100644 --- a/lib/Model/SaveCommentResponse.php +++ b/lib/Model/SaveCommentResponse.php @@ -58,7 +58,7 @@ class SaveCommentResponse implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment' => '\FastComments\Client\Model\FComment', 'user' => '\FastComments\Client\Model\UserSessionInfo', 'module_data' => 'array' @@ -323,7 +323,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -333,7 +333,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/SaveCommentResponseOptimized.php b/lib/Model/SaveCommentResponseOptimized.php index f98f160..6667196 100644 --- a/lib/Model/SaveCommentResponseOptimized.php +++ b/lib/Model/SaveCommentResponseOptimized.php @@ -58,7 +58,7 @@ class SaveCommentResponseOptimized implements ModelInterface, ArrayAccess, \Json * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment' => '\FastComments\Client\Model\PublicComment', 'user' => '\FastComments\Client\Model\UserSessionInfo', 'module_data' => 'array' @@ -323,7 +323,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -333,7 +333,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/SaveCommentsResponseWithPresence.php b/lib/Model/SaveCommentsResponseWithPresence.php index 156e11e..b147895 100644 --- a/lib/Model/SaveCommentsResponseWithPresence.php +++ b/lib/Model/SaveCommentsResponseWithPresence.php @@ -58,7 +58,7 @@ class SaveCommentsResponseWithPresence implements ModelInterface, ArrayAccess, \ * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment' => '\FastComments\Client\Model\PublicComment', 'user' => '\FastComments\Client\Model\UserSessionInfo', 'module_data' => 'array', @@ -330,7 +330,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -340,7 +340,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/SearchUsers200Response.php b/lib/Model/SearchUsers200Response.php index 382fa43..3f368fa 100644 --- a/lib/Model/SearchUsers200Response.php +++ b/lib/Model/SearchUsers200Response.php @@ -58,7 +58,7 @@ class SearchUsers200Response implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'users' => '\FastComments\Client\Model\UserSearchResult[]', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/SearchUsersResponse.php b/lib/Model/SearchUsersResponse.php index 6fc80dd..a6c546c 100644 --- a/lib/Model/SearchUsersResponse.php +++ b/lib/Model/SearchUsersResponse.php @@ -58,7 +58,7 @@ class SearchUsersResponse implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'users' => '\FastComments\Client\Model\UserSearchResult[]' ]; @@ -306,7 +306,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -316,7 +316,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/SetCommentText200Response.php b/lib/Model/SetCommentText200Response.php index 712450c..78103bd 100644 --- a/lib/Model/SetCommentText200Response.php +++ b/lib/Model/SetCommentText200Response.php @@ -58,8 +58,8 @@ class SetCommentText200Response implements ModelInterface, ArrayAccess, \JsonSer * @var string[] */ protected static $openAPITypes = [ - 'comment' => '\FastComments\Client\Model\PickFCommentApprovedOrCommentHTML', - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'comment' => '\FastComments\Client\Model\SetCommentTextResult', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets comment * - * @return \FastComments\Client\Model\PickFCommentApprovedOrCommentHTML + * @return \FastComments\Client\Model\SetCommentTextResult */ public function getComment() { @@ -371,7 +371,7 @@ public function getComment() /** * Sets comment * - * @param \FastComments\Client\Model\PickFCommentApprovedOrCommentHTML $comment comment + * @param \FastComments\Client\Model\SetCommentTextResult $comment comment * * @return self */ @@ -388,7 +388,7 @@ public function setComment($comment) /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -398,7 +398,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PickFCommentApprovedOrCommentHTML.php b/lib/Model/SetCommentTextResult.php similarity index 92% rename from lib/Model/PickFCommentApprovedOrCommentHTML.php rename to lib/Model/SetCommentTextResult.php index 4187abe..38a626f 100644 --- a/lib/Model/PickFCommentApprovedOrCommentHTML.php +++ b/lib/Model/SetCommentTextResult.php @@ -1,6 +1,6 @@ */ -class PickFCommentApprovedOrCommentHTML implements ModelInterface, ArrayAccess, \JsonSerializable +class SetCommentTextResult implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +50,7 @@ class PickFCommentApprovedOrCommentHTML implements ModelInterface, ArrayAccess, * * @var string */ - protected static $openAPIModelName = 'Pick_FComment.approved-or-commentHTML_'; + protected static $openAPIModelName = 'SetCommentTextResult'; /** * Array of property to type mappings. Used for (de)serialization @@ -59,8 +58,8 @@ class PickFCommentApprovedOrCommentHTML implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'comment_html' => 'string', - 'approved' => 'bool' + 'approved' => 'bool', + 'comment_html' => 'string' ]; /** @@ -71,8 +70,8 @@ class PickFCommentApprovedOrCommentHTML implements ModelInterface, ArrayAccess, * @psalm-var array */ protected static $openAPIFormats = [ - 'comment_html' => null, - 'approved' => null + 'approved' => null, + 'comment_html' => null ]; /** @@ -81,8 +80,8 @@ class PickFCommentApprovedOrCommentHTML implements ModelInterface, ArrayAccess, * @var boolean[] */ protected static array $openAPINullables = [ - 'comment_html' => false, - 'approved' => false + 'approved' => false, + 'comment_html' => false ]; /** @@ -171,8 +170,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'comment_html' => 'commentHTML', - 'approved' => 'approved' + 'approved' => 'approved', + 'comment_html' => 'commentHTML' ]; /** @@ -181,8 +180,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'comment_html' => 'setCommentHtml', - 'approved' => 'setApproved' + 'approved' => 'setApproved', + 'comment_html' => 'setCommentHtml' ]; /** @@ -191,8 +190,8 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'comment_html' => 'getCommentHtml', - 'approved' => 'getApproved' + 'approved' => 'getApproved', + 'comment_html' => 'getCommentHtml' ]; /** @@ -252,8 +251,8 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('comment_html', $data ?? [], null); $this->setIfExists('approved', $data ?? [], null); + $this->setIfExists('comment_html', $data ?? [], null); } /** @@ -283,12 +282,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['comment_html'] === null) { - $invalidProperties[] = "'comment_html' can't be null"; - } if ($this->container['approved'] === null) { $invalidProperties[] = "'approved' can't be null"; } + if ($this->container['comment_html'] === null) { + $invalidProperties[] = "'comment_html' can't be null"; + } return $invalidProperties; } @@ -305,55 +304,55 @@ public function valid() /** - * Gets comment_html + * Gets approved * - * @return string + * @return bool */ - public function getCommentHtml() + public function getApproved() { - return $this->container['comment_html']; + return $this->container['approved']; } /** - * Sets comment_html + * Sets approved * - * @param string $comment_html comment_html + * @param bool $approved approved * * @return self */ - public function setCommentHtml($comment_html) + public function setApproved($approved) { - if (is_null($comment_html)) { - throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); + if (is_null($approved)) { + throw new \InvalidArgumentException('non-nullable approved cannot be null'); } - $this->container['comment_html'] = $comment_html; + $this->container['approved'] = $approved; return $this; } /** - * Gets approved + * Gets comment_html * - * @return bool + * @return string */ - public function getApproved() + public function getCommentHtml() { - return $this->container['approved']; + return $this->container['comment_html']; } /** - * Sets approved + * Sets comment_html * - * @param bool $approved approved + * @param string $comment_html comment_html * * @return self */ - public function setApproved($approved) + public function setCommentHtml($comment_html) { - if (is_null($approved)) { - throw new \InvalidArgumentException('non-nullable approved cannot be null'); + if (is_null($comment_html)) { + throw new \InvalidArgumentException('non-nullable comment_html cannot be null'); } - $this->container['approved'] = $approved; + $this->container['comment_html'] = $comment_html; return $this; } diff --git a/lib/Model/UnBlockCommentPublic200Response.php b/lib/Model/UnBlockCommentPublic200Response.php index 1f0f164..31e886c 100644 --- a/lib/Model/UnBlockCommentPublic200Response.php +++ b/lib/Model/UnBlockCommentPublic200Response.php @@ -58,7 +58,7 @@ class UnBlockCommentPublic200Response implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment_statuses' => 'array', 'reason' => 'string', 'code' => 'string', @@ -361,7 +361,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -371,7 +371,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/UnblockSuccess.php b/lib/Model/UnblockSuccess.php index 028e512..b5531ad 100644 --- a/lib/Model/UnblockSuccess.php +++ b/lib/Model/UnblockSuccess.php @@ -58,7 +58,7 @@ class UnblockSuccess implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'comment_statuses' => 'array' ]; @@ -306,7 +306,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -316,7 +316,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/PickAPICommentUpdatableCommentFields.php b/lib/Model/UpdatableCommentParams.php similarity index 79% rename from lib/Model/PickAPICommentUpdatableCommentFields.php rename to lib/Model/UpdatableCommentParams.php index a862c94..d864dea 100644 --- a/lib/Model/PickAPICommentUpdatableCommentFields.php +++ b/lib/Model/UpdatableCommentParams.php @@ -1,6 +1,6 @@ */ -class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAccess, \JsonSerializable +class UpdatableCommentParams implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -51,7 +50,7 @@ class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAcces * * @var string */ - protected static $openAPIModelName = 'Pick_APIComment.UpdatableCommentFields_'; + protected static $openAPIModelName = 'UpdatableCommentParams'; /** * Array of property to type mappings. Used for (de)serialization @@ -59,7 +58,6 @@ class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAcces * @var string[] */ protected static $openAPITypes = [ - 'date' => '\DateTime', 'url_id' => 'string', 'url_id_raw' => 'string', 'url' => 'string', @@ -71,6 +69,7 @@ class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAcces 'comment' => 'string', 'comment_html' => 'string', 'parent_id' => 'string', + 'date' => 'float', 'local_date_string' => 'string', 'local_date_hours' => 'int', 'votes' => 'int', @@ -95,7 +94,7 @@ class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAcces 'is_locked' => 'bool', 'flag_count' => 'int', 'display_label' => 'string', - 'meta' => '\FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta', + 'meta' => '\FastComments\Client\Model\FCommentMeta', 'moderation_group_ids' => 'string[]', 'feedback_ids' => 'string[]' ]; @@ -108,7 +107,6 @@ class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAcces * @psalm-var array */ protected static $openAPIFormats = [ - 'date' => 'date-time', 'url_id' => null, 'url_id_raw' => null, 'url' => null, @@ -120,6 +118,7 @@ class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAcces 'comment' => null, 'comment_html' => null, 'parent_id' => null, + 'date' => 'double', 'local_date_string' => null, 'local_date_hours' => 'int32', 'votes' => 'int32', @@ -155,44 +154,44 @@ class PickAPICommentUpdatableCommentFields implements ModelInterface, ArrayAcces * @var boolean[] */ protected static array $openAPINullables = [ - 'date' => false, 'url_id' => false, 'url_id_raw' => false, 'url' => false, - 'page_title' => false, - 'user_id' => false, - 'commenter_email' => false, + 'page_title' => true, + 'user_id' => true, + 'commenter_email' => true, 'commenter_name' => false, - 'commenter_link' => false, + 'commenter_link' => true, 'comment' => false, 'comment_html' => false, - 'parent_id' => false, - 'local_date_string' => false, - 'local_date_hours' => false, - 'votes' => false, - 'votes_up' => false, - 'votes_down' => false, - 'expire_at' => false, + 'parent_id' => true, + 'date' => true, + 'local_date_string' => true, + 'local_date_hours' => true, + 'votes' => true, + 'votes_up' => true, + 'votes_down' => true, + 'expire_at' => true, 'verified' => false, - 'verified_date' => false, + 'verified_date' => true, 'notification_sent_for_parent' => false, 'notification_sent_for_parent_tenant' => false, 'reviewed' => false, 'external_id' => false, - 'external_parent_id' => false, - 'avatar_src' => false, + 'external_parent_id' => true, + 'avatar_src' => true, 'is_spam' => false, 'approved' => false, 'is_deleted' => false, 'is_deleted_user' => false, 'is_by_admin' => false, 'is_by_moderator' => false, - 'is_pinned' => false, - 'is_locked' => false, - 'flag_count' => false, - 'display_label' => false, - 'meta' => false, - 'moderation_group_ids' => false, + 'is_pinned' => true, + 'is_locked' => true, + 'flag_count' => true, + 'display_label' => true, + 'meta' => true, + 'moderation_group_ids' => true, 'feedback_ids' => false ]; @@ -282,7 +281,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'date' => 'date', 'url_id' => 'urlId', 'url_id_raw' => 'urlIdRaw', 'url' => 'url', @@ -294,6 +292,7 @@ public function isNullableSetToNull(string $property): bool 'comment' => 'comment', 'comment_html' => 'commentHTML', 'parent_id' => 'parentId', + 'date' => 'date', 'local_date_string' => 'localDateString', 'local_date_hours' => 'localDateHours', 'votes' => 'votes', @@ -329,7 +328,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'date' => 'setDate', 'url_id' => 'setUrlId', 'url_id_raw' => 'setUrlIdRaw', 'url' => 'setUrl', @@ -341,6 +339,7 @@ public function isNullableSetToNull(string $property): bool 'comment' => 'setComment', 'comment_html' => 'setCommentHtml', 'parent_id' => 'setParentId', + 'date' => 'setDate', 'local_date_string' => 'setLocalDateString', 'local_date_hours' => 'setLocalDateHours', 'votes' => 'setVotes', @@ -376,7 +375,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'date' => 'getDate', 'url_id' => 'getUrlId', 'url_id_raw' => 'getUrlIdRaw', 'url' => 'getUrl', @@ -388,6 +386,7 @@ public function isNullableSetToNull(string $property): bool 'comment' => 'getComment', 'comment_html' => 'getCommentHtml', 'parent_id' => 'getParentId', + 'date' => 'getDate', 'local_date_string' => 'getLocalDateString', 'local_date_hours' => 'getLocalDateHours', 'votes' => 'getVotes', @@ -474,7 +473,6 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('date', $data ?? [], null); $this->setIfExists('url_id', $data ?? [], null); $this->setIfExists('url_id_raw', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); @@ -486,6 +484,7 @@ public function __construct(?array $data = null) $this->setIfExists('comment', $data ?? [], null); $this->setIfExists('comment_html', $data ?? [], null); $this->setIfExists('parent_id', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); $this->setIfExists('local_date_string', $data ?? [], null); $this->setIfExists('local_date_hours', $data ?? [], null); $this->setIfExists('votes', $data ?? [], null); @@ -542,30 +541,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { - $invalidProperties[] = "'date' can't be null"; - } - if ($this->container['url_id'] === null) { - $invalidProperties[] = "'url_id' can't be null"; - } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; - } - if ($this->container['commenter_name'] === null) { - $invalidProperties[] = "'commenter_name' can't be null"; - } - if ($this->container['comment'] === null) { - $invalidProperties[] = "'comment' can't be null"; - } - if ($this->container['comment_html'] === null) { - $invalidProperties[] = "'comment_html' can't be null"; - } - if ($this->container['verified'] === null) { - $invalidProperties[] = "'verified' can't be null"; - } - if ($this->container['approved'] === null) { - $invalidProperties[] = "'approved' can't be null"; - } return $invalidProperties; } @@ -581,37 +556,10 @@ public function valid() } - /** - * Gets date - * - * @return \DateTime - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \DateTime $date date - * - * @return self - */ - public function setDate($date) - { - if (is_null($date)) { - throw new \InvalidArgumentException('non-nullable date cannot be null'); - } - $this->container['date'] = $date; - - return $this; - } - /** * Gets url_id * - * @return string + * @return string|null */ public function getUrlId() { @@ -621,7 +569,7 @@ public function getUrlId() /** * Sets url_id * - * @param string $url_id url_id + * @param string|null $url_id url_id * * @return self */ @@ -665,7 +613,7 @@ public function setUrlIdRaw($url_id_raw) /** * Gets url * - * @return string + * @return string|null */ public function getUrl() { @@ -675,7 +623,7 @@ public function getUrl() /** * Sets url * - * @param string $url url + * @param string|null $url url * * @return self */ @@ -709,7 +657,14 @@ public function getPageTitle() public function setPageTitle($page_title) { if (is_null($page_title)) { - throw new \InvalidArgumentException('non-nullable page_title cannot be null'); + array_push($this->openAPINullablesSetToNull, 'page_title'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('page_title', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['page_title'] = $page_title; @@ -736,7 +691,14 @@ public function getUserId() public function setUserId($user_id) { if (is_null($user_id)) { - throw new \InvalidArgumentException('non-nullable user_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'user_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['user_id'] = $user_id; @@ -763,7 +725,14 @@ public function getCommenterEmail() public function setCommenterEmail($commenter_email) { if (is_null($commenter_email)) { - throw new \InvalidArgumentException('non-nullable commenter_email cannot be null'); + array_push($this->openAPINullablesSetToNull, 'commenter_email'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_email', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['commenter_email'] = $commenter_email; @@ -773,7 +742,7 @@ public function setCommenterEmail($commenter_email) /** * Gets commenter_name * - * @return string + * @return string|null */ public function getCommenterName() { @@ -783,7 +752,7 @@ public function getCommenterName() /** * Sets commenter_name * - * @param string $commenter_name commenter_name + * @param string|null $commenter_name commenter_name * * @return self */ @@ -817,7 +786,14 @@ public function getCommenterLink() public function setCommenterLink($commenter_link) { if (is_null($commenter_link)) { - throw new \InvalidArgumentException('non-nullable commenter_link cannot be null'); + array_push($this->openAPINullablesSetToNull, 'commenter_link'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('commenter_link', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['commenter_link'] = $commenter_link; @@ -827,7 +803,7 @@ public function setCommenterLink($commenter_link) /** * Gets comment * - * @return string + * @return string|null */ public function getComment() { @@ -837,7 +813,7 @@ public function getComment() /** * Sets comment * - * @param string $comment comment + * @param string|null $comment comment * * @return self */ @@ -854,7 +830,7 @@ public function setComment($comment) /** * Gets comment_html * - * @return string + * @return string|null */ public function getCommentHtml() { @@ -864,7 +840,7 @@ public function getCommentHtml() /** * Sets comment_html * - * @param string $comment_html comment_html + * @param string|null $comment_html comment_html * * @return self */ @@ -898,13 +874,54 @@ public function getParentId() public function setParentId($parent_id) { if (is_null($parent_id)) { - throw new \InvalidArgumentException('non-nullable parent_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['parent_id'] = $parent_id; return $this; } + /** + * Gets date + * + * @return float|null + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param float|null $date date + * + * @return self + */ + public function setDate($date) + { + if (is_null($date)) { + array_push($this->openAPINullablesSetToNull, 'date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['date'] = $date; + + return $this; + } + /** * Gets local_date_string * @@ -925,7 +942,14 @@ public function getLocalDateString() public function setLocalDateString($local_date_string) { if (is_null($local_date_string)) { - throw new \InvalidArgumentException('non-nullable local_date_string cannot be null'); + array_push($this->openAPINullablesSetToNull, 'local_date_string'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('local_date_string', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['local_date_string'] = $local_date_string; @@ -952,7 +976,14 @@ public function getLocalDateHours() public function setLocalDateHours($local_date_hours) { if (is_null($local_date_hours)) { - throw new \InvalidArgumentException('non-nullable local_date_hours cannot be null'); + array_push($this->openAPINullablesSetToNull, 'local_date_hours'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('local_date_hours', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['local_date_hours'] = $local_date_hours; @@ -979,7 +1010,14 @@ public function getVotes() public function setVotes($votes) { if (is_null($votes)) { - throw new \InvalidArgumentException('non-nullable votes cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes'] = $votes; @@ -1006,7 +1044,14 @@ public function getVotesUp() public function setVotesUp($votes_up) { if (is_null($votes_up)) { - throw new \InvalidArgumentException('non-nullable votes_up cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_up'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_up', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_up'] = $votes_up; @@ -1033,7 +1078,14 @@ public function getVotesDown() public function setVotesDown($votes_down) { if (is_null($votes_down)) { - throw new \InvalidArgumentException('non-nullable votes_down cannot be null'); + array_push($this->openAPINullablesSetToNull, 'votes_down'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('votes_down', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['votes_down'] = $votes_down; @@ -1060,7 +1112,14 @@ public function getExpireAt() public function setExpireAt($expire_at) { if (is_null($expire_at)) { - throw new \InvalidArgumentException('non-nullable expire_at cannot be null'); + array_push($this->openAPINullablesSetToNull, 'expire_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expire_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['expire_at'] = $expire_at; @@ -1070,7 +1129,7 @@ public function setExpireAt($expire_at) /** * Gets verified * - * @return bool + * @return bool|null */ public function getVerified() { @@ -1080,7 +1139,7 @@ public function getVerified() /** * Sets verified * - * @param bool $verified verified + * @param bool|null $verified verified * * @return self */ @@ -1114,7 +1173,14 @@ public function getVerifiedDate() public function setVerifiedDate($verified_date) { if (is_null($verified_date)) { - throw new \InvalidArgumentException('non-nullable verified_date cannot be null'); + array_push($this->openAPINullablesSetToNull, 'verified_date'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('verified_date', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['verified_date'] = $verified_date; @@ -1249,7 +1315,14 @@ public function getExternalParentId() public function setExternalParentId($external_parent_id) { if (is_null($external_parent_id)) { - throw new \InvalidArgumentException('non-nullable external_parent_id cannot be null'); + array_push($this->openAPINullablesSetToNull, 'external_parent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('external_parent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['external_parent_id'] = $external_parent_id; @@ -1276,7 +1349,14 @@ public function getAvatarSrc() public function setAvatarSrc($avatar_src) { if (is_null($avatar_src)) { - throw new \InvalidArgumentException('non-nullable avatar_src cannot be null'); + array_push($this->openAPINullablesSetToNull, 'avatar_src'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('avatar_src', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['avatar_src'] = $avatar_src; @@ -1313,7 +1393,7 @@ public function setIsSpam($is_spam) /** * Gets approved * - * @return bool + * @return bool|null */ public function getApproved() { @@ -1323,7 +1403,7 @@ public function getApproved() /** * Sets approved * - * @param bool $approved approved + * @param bool|null $approved approved * * @return self */ @@ -1465,7 +1545,14 @@ public function getIsPinned() public function setIsPinned($is_pinned) { if (is_null($is_pinned)) { - throw new \InvalidArgumentException('non-nullable is_pinned cannot be null'); + array_push($this->openAPINullablesSetToNull, 'is_pinned'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_pinned', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['is_pinned'] = $is_pinned; @@ -1492,7 +1579,14 @@ public function getIsLocked() public function setIsLocked($is_locked) { if (is_null($is_locked)) { - throw new \InvalidArgumentException('non-nullable is_locked cannot be null'); + array_push($this->openAPINullablesSetToNull, 'is_locked'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_locked', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['is_locked'] = $is_locked; @@ -1519,7 +1613,14 @@ public function getFlagCount() public function setFlagCount($flag_count) { if (is_null($flag_count)) { - throw new \InvalidArgumentException('non-nullable flag_count cannot be null'); + array_push($this->openAPINullablesSetToNull, 'flag_count'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('flag_count', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['flag_count'] = $flag_count; @@ -1546,7 +1647,14 @@ public function getDisplayLabel() public function setDisplayLabel($display_label) { if (is_null($display_label)) { - throw new \InvalidArgumentException('non-nullable display_label cannot be null'); + array_push($this->openAPINullablesSetToNull, 'display_label'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('display_label', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['display_label'] = $display_label; @@ -1556,7 +1664,7 @@ public function setDisplayLabel($display_label) /** * Gets meta * - * @return \FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta|null + * @return \FastComments\Client\Model\FCommentMeta|null */ public function getMeta() { @@ -1566,14 +1674,21 @@ public function getMeta() /** * Sets meta * - * @param \FastComments\Client\Model\PickFCommentAPICommentFieldsKeysMeta|null $meta meta + * @param \FastComments\Client\Model\FCommentMeta|null $meta meta * * @return self */ public function setMeta($meta) { if (is_null($meta)) { - throw new \InvalidArgumentException('non-nullable meta cannot be null'); + array_push($this->openAPINullablesSetToNull, 'meta'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('meta', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['meta'] = $meta; @@ -1600,7 +1715,14 @@ public function getModerationGroupIds() public function setModerationGroupIds($moderation_group_ids) { if (is_null($moderation_group_ids)) { - throw new \InvalidArgumentException('non-nullable moderation_group_ids cannot be null'); + array_push($this->openAPINullablesSetToNull, 'moderation_group_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('moderation_group_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['moderation_group_ids'] = $moderation_group_ids; diff --git a/lib/Model/UpdateUserBadge200Response.php b/lib/Model/UpdateUserBadge200Response.php index 39e609f..ceac2b8 100644 --- a/lib/Model/UpdateUserBadge200Response.php +++ b/lib/Model/UpdateUserBadge200Response.php @@ -58,7 +58,7 @@ class UpdateUserBadge200Response implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'reason' => 'string', 'code' => 'string', 'secondary_code' => 'string', @@ -351,7 +351,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -361,7 +361,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/UpdateUserNotificationStatus200Response.php b/lib/Model/UpdateUserNotificationStatus200Response.php index e49da65..3daf1a9 100644 --- a/lib/Model/UpdateUserNotificationStatus200Response.php +++ b/lib/Model/UpdateUserNotificationStatus200Response.php @@ -58,7 +58,7 @@ class UpdateUserNotificationStatus200Response implements ModelInterface, ArrayAc * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'matched_count' => 'int', 'modified_count' => 'int', 'note' => 'string', @@ -405,7 +405,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -415,7 +415,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/UserNotificationWriteResponse.php b/lib/Model/UserNotificationWriteResponse.php index 2ae53dd..fe48851 100644 --- a/lib/Model/UserNotificationWriteResponse.php +++ b/lib/Model/UserNotificationWriteResponse.php @@ -58,7 +58,7 @@ class UserNotificationWriteResponse implements ModelInterface, ArrayAccess, \Jso * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusSUCCESS', + 'status' => '\FastComments\Client\Model\APIStatus', 'matched_count' => 'int', 'modified_count' => 'int' ]; @@ -316,7 +316,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusSUCCESS + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -326,7 +326,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusSUCCESS $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/VoteComment200Response.php b/lib/Model/VoteComment200Response.php index f9be1f2..0e9e461 100644 --- a/lib/Model/VoteComment200Response.php +++ b/lib/Model/VoteComment200Response.php @@ -58,7 +58,7 @@ class VoteComment200Response implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\ImportedAPIStatusFAILED', + 'status' => '\FastComments\Client\Model\APIStatus', 'vote_id' => 'string', 'is_verified' => 'bool', 'user' => '\FastComments\Client\Model\VoteResponseUser', @@ -379,7 +379,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\ImportedAPIStatusFAILED + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -389,7 +389,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\ImportedAPIStatusFAILED $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/VoteDeleteResponse.php b/lib/Model/VoteDeleteResponse.php index c33fe93..d35da34 100644 --- a/lib/Model/VoteDeleteResponse.php +++ b/lib/Model/VoteDeleteResponse.php @@ -58,7 +58,7 @@ class VoteDeleteResponse implements ModelInterface, ArrayAccess, \JsonSerializab * @var string[] */ protected static $openAPITypes = [ - 'status' => '\FastComments\Client\Model\VoteDeleteResponseStatus', + 'status' => '\FastComments\Client\Model\APIStatus', 'was_pending_vote' => 'bool' ]; @@ -303,7 +303,7 @@ public function valid() /** * Gets status * - * @return \FastComments\Client\Model\VoteDeleteResponseStatus + * @return \FastComments\Client\Model\APIStatus */ public function getStatus() { @@ -313,7 +313,7 @@ public function getStatus() /** * Sets status * - * @param \FastComments\Client\Model\VoteDeleteResponseStatus $status status + * @param \FastComments\Client\Model\APIStatus $status status * * @return self */ diff --git a/lib/Model/VoteDeleteResponseStatus.php b/lib/Model/VoteDeleteResponseStatus.php deleted file mode 100644 index 00b34e5..0000000 --- a/lib/Model/VoteDeleteResponseStatus.php +++ /dev/null @@ -1,382 +0,0 @@ - - */ -class VoteDeleteResponseStatus implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'VoteDeleteResponse_status'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ - protected static array $openAPINullables = [ - - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - * - * @return array - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return boolean[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param boolean[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - * - * @param string $property - * @return bool - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - * - * @param string $property - * @return bool - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[]|null $data Associated array of property values - * initializing the model - */ - public function __construct(?array $data = null) - { - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - #[\ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - #[\ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/openapi.json b/openapi.json index d6d7d6a..e789bcf 100644 --- a/openapi.json +++ b/openapi.json @@ -45,16 +45,10 @@ "type": "object", "additionalProperties": false }, - "ImportedAPIStatus.SUCCESS": { - "enum": [ - "success" - ], - "type": "string" - }, "SearchUsersResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "users": { "items": { @@ -69,12 +63,6 @@ ], "type": "object" }, - "ImportedAPIStatus.FAILED": { - "enum": [ - "failed" - ], - "type": "string" - }, "CommentHTMLRenderingMode": { "enum": [ 0, @@ -399,6 +387,9 @@ "readonly": { "type": "boolean" }, + "noNewRootComments": { + "type": "boolean" + }, "requireSSO": { "type": "boolean" }, @@ -478,7 +469,7 @@ "APIError": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.FAILED" + "$ref": "#/components/schemas/APIStatus" }, "reason": { "type": "string" @@ -523,7 +514,7 @@ "GetUserPresenceStatusesResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "userIdsOnline": { "$ref": "#/components/schemas/Record_string.boolean_" @@ -674,7 +665,7 @@ "type": "array" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -688,7 +679,7 @@ "ResetUserNotificationsResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "code": { "type": "string", @@ -707,7 +698,7 @@ "GetUserNotificationCountResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "count": { "type": "integer", @@ -745,7 +736,7 @@ "HeaderState": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "NotificationType": { "$ref": "#/components/schemas/EnumAsObject_typeofNotificationType_" @@ -776,7 +767,7 @@ "UserNotificationWriteResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "matchedCount": { "type": "integer", @@ -798,7 +789,7 @@ "IgnoredResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "note": { "type": "string", @@ -874,7 +865,7 @@ "APIEmptyResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -1127,7 +1118,7 @@ "GetPublicFeedPostsResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "feedPosts": { "items": { @@ -1416,7 +1407,7 @@ "type": "array" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -1608,72 +1599,69 @@ "type": "object", "additionalProperties": false }, - "Pick_Omit_FComment.date_.PublicCommentPubSubFieldsKeys_": { + "UserId": { + "type": "string" + }, + "FDomain": { + "type": "string" + }, + "PubSubCommentBase": { "properties": { - "date": {}, "_id": { "type": "string" }, "tenantId": { "type": "string" }, - "urlId": { - "type": "string" - }, - "url": { - "type": "string" - }, - "pageTitle": { - "type": "string" - }, "userId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "anonUserId": { + "urlId": { "type": "string" }, "commenterName": { "type": "string" }, "commenterLink": { - "type": "string" + "type": "string", + "nullable": true }, - "comment": { + "commentHTML": { "type": "string" }, - "commentHTML": { + "comment": { "type": "string" }, "parentId": { - "type": "string" + "type": "string", + "nullable": true }, "votes": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesUp": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesDown": { "type": "integer", - "format": "int32" - }, - "expireAt": { - "type": "string", - "format": "date-time" + "format": "int32", + "nullable": true }, "verified": { "type": "boolean" }, - "reviewed": { - "type": "boolean" - }, "avatarSrc": { - "type": "string" - }, - "isSpam": { - "type": "boolean" + "type": "string", + "nullable": true }, "hasImages": { "type": "boolean" @@ -1681,24 +1669,6 @@ "hasLinks": { "type": "boolean" }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "locale": { - "type": "string" - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "isBannedUser": { - "type": "boolean" - }, "isByAdmin": { "type": "boolean" }, @@ -1706,30 +1676,46 @@ "type": "boolean" }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { - "type": "boolean" + "type": "boolean", + "nullable": true }, - "flagCount": { - "type": "integer", - "format": "int32" + "displayLabel": { + "type": "string", + "nullable": true }, "rating": { "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" + "format": "double", + "nullable": true }, "badges": { "items": { "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true }, - "domain": { - "type": "string" + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true }, "feedbackIds": { "items": { @@ -1737,37 +1723,74 @@ }, "type": "array" }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "hasCode": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "locale": { + "type": "string", + "nullable": true + }, + "isBannedUser": { + "type": "boolean" + }, "groupIds": { "items": { "type": "string" }, - "type": "array" - }, - "viewCount": { - "type": "integer", - "format": "int64" + "type": "array", + "nullable": true } }, "required": [ - "date", "_id", "tenantId", "urlId", - "url", "commenterName", - "comment", "commentHTML", + "comment", "verified", + "url", "approved", "locale" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "PubSubComment": { "allOf": [ { - "$ref": "#/components/schemas/Pick_Omit_FComment.date_.PublicCommentPubSubFieldsKeys_" + "$ref": "#/components/schemas/PubSubCommentBase" }, { "properties": { @@ -1888,7 +1911,7 @@ "PublicAPIGetCommentTextResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "commentText": { "type": "string" @@ -1904,29 +1927,29 @@ ], "type": "object" }, - "Pick_FComment.approved-or-commentHTML_": { + "SetCommentTextResult": { "properties": { - "commentHTML": { - "type": "string" - }, "approved": { "type": "boolean" + }, + "commentHTML": { + "type": "string" } }, "required": [ - "commentHTML", - "approved" + "approved", + "commentHTML" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "PublicAPISetCommentTextResponse": { "properties": { "comment": { - "$ref": "#/components/schemas/Pick_FComment.approved-or-commentHTML_" + "$ref": "#/components/schemas/SetCommentTextResult" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2058,67 +2081,67 @@ "type": "object" }, { - "$ref": "#/components/schemas/Pick_FComment.PublicCommentFieldsKeys_" + "$ref": "#/components/schemas/PublicCommentBase" } ] }, - "Pick_FComment.PublicCommentFieldsKeys_": { + "PublicCommentBase": { "properties": { - "date": { - "type": "string", - "format": "date-time" - }, "_id": { "type": "string" }, "userId": { - "type": "string" - }, - "anonUserId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, "commenterName": { "type": "string" }, "commenterLink": { - "type": "string" + "type": "string", + "nullable": true }, "commentHTML": { "type": "string" }, "parentId": { - "type": "string" + "type": "string", + "nullable": true + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true }, "votes": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesUp": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesDown": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "verified": { "type": "boolean" }, "avatarSrc": { - "type": "string" - }, - "isSpam": { - "type": "boolean" + "type": "string", + "nullable": true }, "hasImages": { "type": "boolean" }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, "isByAdmin": { "type": "boolean" }, @@ -2126,23 +2149,46 @@ "type": "boolean" }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { - "type": "boolean" - }, - "rating": { - "type": "number", - "format": "double" + "type": "boolean", + "nullable": true }, "displayLabel": { - "type": "string" + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true }, "badges": { "items": { "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true + }, + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true }, "feedbackIds": { "items": { @@ -2150,26 +2196,25 @@ }, "type": "array" }, - "viewCount": { - "type": "integer", - "format": "int64" - }, "requiresVerification": { "type": "boolean" }, "editKey": { "type": "string" + }, + "approved": { + "type": "boolean" } }, "required": [ - "date", "_id", "commenterName", "commentHTML", + "date", "verified" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "Record_string.any_": { "properties": {}, @@ -2305,7 +2350,7 @@ "SaveCommentResponseOptimized": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "comment": { "$ref": "#/components/schemas/PublicComment" @@ -2468,38 +2513,39 @@ "type": "object", "additionalProperties": false }, - "Pick_FComment.isDeleted-or-commentHTML-or-commenterName-or-userId_": { + "DeletedCommentResultComment": { "properties": { - "userId": { - "type": "string" + "isDeleted": { + "type": "boolean" }, - "commenterName": { + "commentHTML": { "type": "string" }, - "commentHTML": { + "commenterName": { "type": "string" }, - "isDeleted": { - "type": "boolean" + "userId": { + "type": "string", + "nullable": true } }, "required": [ - "commenterName", - "commentHTML" + "commentHTML", + "commenterName" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "PublicAPIDeleteCommentResponse": { "properties": { "comment": { - "$ref": "#/components/schemas/Pick_FComment.isDeleted-or-commentHTML-or-commenterName-or-userId_" + "$ref": "#/components/schemas/DeletedCommentResultComment" }, "hardRemoved": { "type": "boolean" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2514,7 +2560,7 @@ "$ref": "#/components/schemas/Record_string.boolean_" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2538,10 +2584,7 @@ "status": { "anyOf": [ { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" - }, - { - "$ref": "#/components/schemas/ImportedAPIStatus.FAILED" + "$ref": "#/components/schemas/APIStatus" }, { "type": "string", @@ -2604,14 +2647,7 @@ "VoteDeleteResponse": { "properties": { "status": { - "anyOf": [ - { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" - }, - { - "$ref": "#/components/schemas/ImportedAPIStatus.FAILED" - } - ] + "$ref": "#/components/schemas/APIStatus" }, "wasPendingVote": { "type": "boolean" @@ -2626,7 +2662,7 @@ "GetCommentVoteUserNamesSuccessResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "voteUserNames": { "items": { @@ -2652,7 +2688,7 @@ "$ref": "#/components/schemas/CommentPositions" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2664,7 +2700,7 @@ "BlockSuccess": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "commentStatuses": { "$ref": "#/components/schemas/Record_string.boolean_" @@ -2697,7 +2733,7 @@ "UnblockSuccess": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "commentStatuses": { "$ref": "#/components/schemas/Record_string.boolean_" @@ -3330,6 +3366,10 @@ "code": { "type": "string" }, + "commentsUpdated": { + "type": "integer", + "format": "int64" + }, "page": { "$ref": "#/components/schemas/APIPage" }, @@ -3509,6 +3549,12 @@ }, "userBadge": { "$ref": "#/components/schemas/UserBadge" + }, + "notes": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ @@ -3802,15 +3848,266 @@ "type": "object", "additionalProperties": false }, - "UserId": { - "type": "string" + "CommentLogType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54 + ], + "type": "number" }, - "FDomain": { - "type": "string" + "RepeatCommentHandlingAction": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "RepeatCommentCheckIgnoredReason": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "CommentLogData": { + "properties": { + "clearContent": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { + "type": "string" + }, + "badWord": { + "type": "string" + }, + "word": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "tenantBadgeId": { + "type": "string" + }, + "badgeId": { + "type": "string" + }, + "wasLoggedIn": { + "type": "boolean" + }, + "foundUser": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "engine": { + "type": "string" + }, + "engineResponse": { + "type": "string" + }, + "engineTokens": { + "type": "number", + "format": "double" + }, + "trustFactor": { + "type": "number", + "format": "double" + }, + "rule": { + "$ref": "#/components/schemas/SpamRule" + }, + "userId": { + "type": "string" + }, + "subscribers": { + "type": "number", + "format": "double" + }, + "notificationCount": { + "type": "number", + "format": "double" + }, + "votesBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" + }, + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + }, + "otherData": {}, + "spamBefore": { + "type": "boolean" + }, + "spamAfter": { + "type": "boolean" + }, + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false + }, + "approvedBefore": { + "type": "boolean" + }, + "approvedAfter": { + "type": "boolean" + }, + "reviewedBefore": { + "type": "boolean" + }, + "reviewedAfter": { + "type": "boolean" + }, + "textBefore": { + "type": "string" + }, + "textAfter": { + "type": "string" + }, + "expireBefore": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "expireAfter": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "flagCountBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "trustFactorBefore": { + "type": "number", + "format": "double" + }, + "trustFactorAfter": { + "type": "number", + "format": "double" + }, + "referencedCommentId": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false }, - "CommentLog": { - "items": {}, - "type": "array" + "CommentLogEntry": { + "properties": { + "d": { + "type": "string", + "format": "date-time" + }, + "t": { + "$ref": "#/components/schemas/CommentLogType" + }, + "da": { + "$ref": "#/components/schemas/CommentLogData" + } + }, + "required": [ + "d", + "t" + ], + "type": "object", + "additionalProperties": false }, "FComment": { "properties": { @@ -4090,7 +4387,7 @@ }, "logs": { "items": { - "$ref": "#/components/schemas/CommentLog" + "$ref": "#/components/schemas/CommentLogEntry" }, "type": "array", "nullable": true @@ -4385,44 +4682,31 @@ "type": "object", "additionalProperties": false }, - "Pick_FComment.APICommentFieldsKeys_": { + "APICommentBase": { "properties": { - "date": { - "type": "string", - "format": "date-time" - }, "_id": { "type": "string" }, - "tenantId": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "urlIdRaw": { - "type": "string" - }, - "url": { - "type": "string" - }, - "pageTitle": { - "type": "string" - }, - "userId": { - "type": "string" + "aiDeterminedSpam": { + "type": "boolean" }, "anonUserId": { - "type": "string" + "type": "string", + "nullable": true }, - "commenterEmail": { - "type": "string" + "approved": { + "type": "boolean" }, - "commenterName": { - "type": "string" + "avatarSrc": { + "type": "string", + "nullable": true }, - "commenterLink": { - "type": "string" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true }, "comment": { "type": "string" @@ -4430,61 +4714,62 @@ "commentHTML": { "type": "string" }, - "parentId": { - "type": "string" - }, - "localDateString": { - "type": "string" - }, - "localDateHours": { - "type": "integer", - "format": "int32" - }, - "votes": { - "type": "integer", - "format": "int32" - }, - "votesUp": { - "type": "integer", - "format": "int32" - }, - "votesDown": { - "type": "integer", - "format": "int32" + "commenterEmail": { + "type": "string", + "nullable": true }, - "expireAt": { + "commenterLink": { "type": "string", - "format": "date-time" + "nullable": true }, - "verified": { - "type": "boolean" + "commenterName": { + "type": "string" }, - "verifiedDate": { + "date": { "type": "string", - "format": "date-time" - }, - "notificationSentForParent": { - "type": "boolean" + "format": "date-time", + "nullable": true }, - "notificationSentForParentTenant": { - "type": "boolean" + "displayLabel": { + "type": "string", + "nullable": true }, - "reviewed": { - "type": "boolean" + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true }, "externalId": { "type": "string" }, "externalParentId": { - "type": "string" + "type": "string", + "nullable": true }, - "avatarSrc": { - "type": "string" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "isSpam": { - "type": "boolean" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "aiDeterminedSpam": { + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, + "hasCode": { "type": "boolean" }, "hasImages": { @@ -4493,14 +4778,17 @@ "hasLinks": { "type": "boolean" }, - "hasCode": { - "type": "boolean" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "approved": { + "isByAdmin": { "type": "boolean" }, - "locale": { - "type": "string" + "isByModerator": { + "type": "boolean" }, "isDeleted": { "type": "boolean" @@ -4508,32 +4796,35 @@ "isDeletedUser": { "type": "boolean" }, - "isByAdmin": { - "type": "boolean" - }, - "isByModerator": { - "type": "boolean" - }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { + "type": "boolean", + "nullable": true + }, + "isSpam": { "type": "boolean" }, - "flagCount": { + "localDateHours": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, - "rating": { - "type": "number", - "format": "double" + "localDateString": { + "type": "string", + "nullable": true }, - "displayLabel": { - "type": "string" + "locale": { + "type": "string", + "nullable": true }, - "fromProductId": { - "type": "integer", - "format": "int32" + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" }, "meta": { "properties": { @@ -4545,60 +4836,117 @@ } }, "additionalProperties": {}, - "type": "object" + "type": "object", + "nullable": true }, - "mentions": { + "moderationGroupIds": { "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" + "type": "string" }, - "type": "array" + "type": "array", + "nullable": true }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "notificationSentForParent": { + "type": "boolean" }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array" + "notificationSentForParentTenant": { + "type": "boolean" }, - "domain": { + "pageTitle": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "tenantId": { "type": "string" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" + "url": { + "type": "string" }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true } }, "required": [ - "date", "_id", - "tenantId", - "urlId", - "url", - "commenterName", + "approved", "comment", "commentHTML", - "verified", - "approved", - "locale" + "commenterName", + "date", + "locale", + "tenantId", + "url", + "urlId", + "verified" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "APIComment": { - "$ref": "#/components/schemas/Pick_FComment.APICommentFieldsKeys_" + "allOf": [ + { + "$ref": "#/components/schemas/APICommentBase" + }, + { + "properties": { + "date": { + "type": "number", + "format": "double", + "nullable": true + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] }, "APIGetCommentResponse": { "properties": { @@ -4635,12 +4983,8 @@ "type": "object", "additionalProperties": false }, - "Pick_APIComment.UpdatableCommentFields_": { + "UpdatableCommentParams": { "properties": { - "date": { - "type": "string", - "format": "date-time" - }, "urlId": { "type": "string" }, @@ -4651,19 +4995,27 @@ "type": "string" }, "pageTitle": { - "type": "string" + "type": "string", + "nullable": true }, "userId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, "commenterEmail": { - "type": "string" + "type": "string", + "nullable": true }, "commenterName": { "type": "string" }, "commenterLink": { - "type": "string" + "type": "string", + "nullable": true }, "comment": { "type": "string" @@ -4672,37 +5024,50 @@ "type": "string" }, "parentId": { - "type": "string" + "type": "string", + "nullable": true + }, + "date": { + "type": "number", + "format": "double", + "nullable": true }, "localDateString": { - "type": "string" + "type": "string", + "nullable": true }, "localDateHours": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votes": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesUp": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesDown": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "expireAt": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true }, "verified": { "type": "boolean" }, "verifiedDate": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true }, "notificationSentForParent": { "type": "boolean" @@ -4717,10 +5082,12 @@ "type": "string" }, "externalParentId": { - "type": "string" + "type": "string", + "nullable": true }, "avatarSrc": { - "type": "string" + "type": "string", + "nullable": true }, "isSpam": { "type": "boolean" @@ -4741,17 +5108,21 @@ "type": "boolean" }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "flagCount": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "displayLabel": { - "type": "string" + "type": "string", + "nullable": true }, "meta": { "properties": { @@ -4763,13 +5134,15 @@ } }, "additionalProperties": {}, - "type": "object" + "type": "object", + "nullable": true }, "moderationGroupIds": { "items": { "type": "string" }, - "type": "array" + "type": "array", + "nullable": true }, "feedbackIds": { "items": { @@ -4778,21 +5151,8 @@ "type": "array" } }, - "required": [ - "date", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "verified", - "approved" - ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" - }, - "UpdatableCommentParams": { - "$ref": "#/components/schemas/Pick_APIComment.UpdatableCommentFields_" + "additionalProperties": false }, "DeleteCommentAction": { "type": "string", @@ -4808,7 +5168,7 @@ "$ref": "#/components/schemas/DeleteCommentAction" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -4820,7 +5180,7 @@ "SaveCommentResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "comment": { "$ref": "#/components/schemas/FComment" @@ -5036,14 +5396,11 @@ "type": "object", "additionalProperties": false }, - "Pick_TenantAuditLog.TenantAuditLogKeys_": { + "APIAuditLog": { "properties": { "_id": { "type": "string" }, - "url": { - "type": "string" - }, "userId": { "type": "string" }, @@ -5071,8 +5428,13 @@ "cron" ] }, + "url": { + "type": "string", + "nullable": true + }, "ip": { - "type": "string" + "type": "string", + "nullable": true }, "when": { "type": "string", @@ -5086,7 +5448,12 @@ "format": "date-time" }, "objectDetails": { - "$ref": "#/components/schemas/Record_string.any_" + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.any_" + } + ], + "nullable": true } }, "required": [ @@ -5095,10 +5462,7 @@ "crudType" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" - }, - "APIAuditLog": { - "$ref": "#/components/schemas/Pick_TenantAuditLog.TenantAuditLogKeys_" + "additionalProperties": false }, "GetAuditLogsResponse": { "properties": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3b353c9..485899a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -7,8 +7,9 @@ - - ./test/SSO + + ./test/Api + ./test/Model diff --git a/test/Model/PickTenantAuditLogTenantAuditLogKeysTest.php b/test/Model/APIAuditLogTest.php similarity index 91% rename from test/Model/PickTenantAuditLogTenantAuditLogKeysTest.php rename to test/Model/APIAuditLogTest.php index 5669a34..08a886e 100644 --- a/test/Model/PickTenantAuditLogTenantAuditLogKeysTest.php +++ b/test/Model/APIAuditLogTest.php @@ -1,6 +1,6 @@