late-sdk 0.0.716 → 0.0.718
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +81 -0
- data/docs/AccountsApi.md +142 -1
- data/docs/AdCampaignsApi.md +22 -10
- data/docs/AdCreative.md +2 -0
- data/docs/AdDailyMetrics.md +1 -1
- data/docs/AdEngagementCounts.md +4 -4
- data/docs/AdInsightsApi.md +164 -0
- data/docs/AdMetrics.md +1 -1
- data/docs/AdTargetingApi.md +3 -3
- data/docs/AdTreeCampaign.md +1 -1
- data/docs/AddBroadcastRecipientsRequest.md +1 -1
- data/docs/AnalyticsListResponsePostsInner.md +1 -1
- data/docs/AnalyticsListResponsePostsInnerMediaItemsInner.md +24 -0
- data/docs/AnalyticsSinglePostResponseMediaItemsInner.md +7 -3
- data/docs/BillingSnapshot.md +2 -0
- data/docs/BillingSnapshotPlan.md +3 -1
- data/docs/Blog.md +24 -0
- data/docs/BlogArticle.md +44 -0
- data/docs/BlogArticleImage.md +20 -0
- data/docs/BlogsApi.md +747 -0
- data/docs/BlueskyPlatformData.md +2 -0
- data/docs/BoostPostRequest.md +2 -2
- data/docs/CampaignAnalyticsResponseAnalyticsDailyInner.md +1 -1
- data/docs/CommentsApi.md +8 -8
- data/docs/ConnectApi.md +149 -1
- data/docs/ConnectShopifyWithToken200Response.md +18 -0
- data/docs/ConnectShopifyWithToken200ResponseAccount.md +26 -0
- data/docs/ConnectShopifyWithTokenRequest.md +22 -0
- data/docs/CreateBlog201Response.md +20 -0
- data/docs/CreateBlogArticle201Response.md +20 -0
- data/docs/CreateBlogArticleRequest.md +36 -0
- data/docs/CreateBlogArticleRequestImage.md +20 -0
- data/docs/CreateBlogArticleRequestSeo.md +20 -0
- data/docs/CreateBlogRequest.md +20 -0
- data/docs/CreateCallAdRequest.md +1 -1
- data/docs/CreateInboxConversationRequest.md +2 -0
- data/docs/CreateMessagingAdRequest.md +1 -1
- data/docs/CreatePostRequest.md +1 -1
- data/docs/CreateStandaloneAdRequest.md +10 -6
- data/docs/CreateStandaloneAdRequestPromotedObject.md +2 -2
- data/docs/CreateStandaloneAdRequestVideo.md +1 -1
- data/docs/CtwaAdRequestBody.md +1 -1
- data/docs/ExternalPostMediaItem.md +7 -3
- data/docs/ExternalPostSummary.md +0 -2
- data/docs/ExternalPostSummaryAnalytics.md +1 -1
- data/docs/GetAccountHealth200Response.md +3 -1
- data/docs/GetAccountHealth200ResponsePlatformConnection.md +24 -0
- data/docs/GetAccountHealth200ResponsePlatformConnectionMetaError.md +22 -0
- data/docs/GetAdAnalytics202Response.md +1 -1
- data/docs/GetAdTree202Response.md +1 -1
- data/docs/GetAdsTimeline202Response.md +1 -1
- data/docs/GetBlueskySettings200Response.md +18 -0
- data/docs/GetCampaignAnalytics202Response.md +1 -1
- data/docs/GetInboxPostComments200ResponseCommentsInner.md +4 -2
- data/docs/GetLinkedInPostAnalytics200ResponseAnalytics.md +1 -1
- data/docs/GetPhoneNumberKycForm200Response.md +3 -1
- data/docs/GetWhatsAppNumberKycForm200Response.md +3 -1
- data/docs/LinkedInAggregateAnalyticsTotalResponseAnalytics.md +1 -1
- data/docs/LinkedInPlatformData.md +4 -2
- data/docs/LinkedInPlatformDataPoll.md +22 -0
- data/docs/ListAds202Response.md +1 -1
- data/docs/ListBlogArticles200Response.md +22 -0
- data/docs/ListBlogs200Response.md +22 -0
- data/docs/ListInboxConversations200ResponseDataInnerMetadata.md +3 -3
- data/docs/ListLeads200ResponseLeadsInner.md +3 -3
- data/docs/ListLocalServicesLeadConversations200Response.md +22 -0
- data/docs/ListLocalServicesLeadConversations200ResponseDataInner.md +28 -0
- data/docs/ListLocalServicesLeadConversations200ResponseDataInnerMessage.md +20 -0
- data/docs/ListLocalServicesLeadConversations200ResponseDataInnerPhoneCall.md +20 -0
- data/docs/ListLocalServicesLeads200Response.md +22 -0
- data/docs/ListLocalServicesLeads200ResponseDataInner.md +38 -0
- data/docs/ListLocalServicesLeads200ResponseDataInnerContact.md +22 -0
- data/docs/ListPhoneNumbers200ResponseConnectedInner.md +3 -1
- data/docs/ListPhoneNumbers200ResponseNumbersInner.md +2 -0
- data/docs/ListWhatsAppAccountEvents200Response.md +18 -0
- data/docs/ListWhatsAppAccountEvents200ResponseEventsInner.md +28 -0
- data/docs/MessagesApi.md +4 -4
- data/docs/OnVerificationApprovedRequest.md +1 -1
- data/docs/OnVerificationFailedRequest.md +1 -1
- data/docs/OnWhatsAppAutomaticEventRequest.md +1 -1
- data/docs/OnWhatsAppNumberActionRequiredRequest.md +1 -1
- data/docs/OnWhatsAppNumberActivatedRequest.md +1 -1
- data/docs/OnWhatsAppNumberDeclinedRequest.md +1 -1
- data/docs/OnWhatsAppNumberKycSubmittedRequest.md +1 -1
- data/docs/OnWhatsAppNumberReactivatedRequest.md +1 -1
- data/docs/OnWhatsAppNumberReleasedRequest.md +1 -1
- data/docs/OnWhatsAppNumberSuspendedRequest.md +1 -1
- data/docs/OnWhatsAppNumberVerificationRequiredRequest.md +1 -1
- data/docs/PlatformTarget.md +2 -2
- data/docs/PostAnalytics.md +3 -3
- data/docs/PostsApi.md +1 -1
- data/docs/SMSApi.md +1 -1
- data/docs/SearchAdTargeting200ResponseResultsInner.md +1 -1
- data/docs/SendInboxMessageRequest.md +4 -2
- data/docs/SubmitPhoneNumberKycRequest.md +1 -1
- data/docs/SubmitPhoneNumberKycRequestAddress.md +2 -0
- data/docs/SubmitWhatsAppNumberKycRequest.md +1 -1
- data/docs/TwitterPlatformData.md +2 -0
- data/docs/UpdateAdCampaignStatus200Response.md +6 -6
- data/docs/UpdateAdSet200Response.md +7 -3
- data/docs/UpdateAdSetRequest.md +1 -1
- data/docs/UpdateAdSetStatus200Response.md +9 -3
- data/docs/UpdateBlogArticleRequest.md +36 -0
- data/docs/UpdateBlogRequest.md +20 -0
- data/docs/UpdateBlueskySettingsRequest.md +18 -0
- data/docs/ValidatePhoneNumberKycAddressRequest.md +2 -0
- data/docs/WebhookEventsApi.md +138 -0
- data/docs/WebhookPayloadAccountAdsInitialSyncCompleted.md +1 -1
- data/docs/WebhookPayloadAccountConnected.md +1 -1
- data/docs/WebhookPayloadAccountDisconnected.md +1 -1
- data/docs/WebhookPayloadAdStatusChanged.md +1 -1
- data/docs/WebhookPayloadCallEnded.md +1 -1
- data/docs/WebhookPayloadCallEndedCall.md +4 -0
- data/docs/WebhookPayloadCallFailed.md +1 -1
- data/docs/WebhookPayloadCallPermissionRequest.md +1 -1
- data/docs/WebhookPayloadCallReceived.md +1 -1
- data/docs/WebhookPayloadComment.md +1 -1
- data/docs/WebhookPayloadCommentCommentAuthor.md +2 -0
- data/docs/WebhookPayloadConversationStarted.md +1 -1
- data/docs/WebhookPayloadExternalPost.md +1 -1
- data/docs/WebhookPayloadLead.md +1 -1
- data/docs/WebhookPayloadMessage.md +1 -1
- data/docs/WebhookPayloadMessageDeleted.md +1 -1
- data/docs/WebhookPayloadMessageDeliveryStatus.md +1 -1
- data/docs/WebhookPayloadMessageEdited.md +1 -1
- data/docs/WebhookPayloadMessageMetadata.md +5 -1
- data/docs/WebhookPayloadMessageMetadataReferral.md +5 -3
- data/docs/WebhookPayloadMessageMetadataUnsupported.md +22 -0
- data/docs/WebhookPayloadMessageSent.md +1 -1
- data/docs/WebhookPayloadPost.md +1 -1
- data/docs/WebhookPayloadPostPlatform.md +1 -1
- data/docs/WebhookPayloadReaction.md +1 -1
- data/docs/WebhookPayloadReferral.md +30 -0
- data/docs/WebhookPayloadReferralReferral.md +28 -0
- data/docs/WebhookPayloadReferralReferralAdsContextData.md +28 -0
- data/docs/WebhookPayloadReferralSender.md +20 -0
- data/docs/WebhookPayloadReviewNew.md +1 -1
- data/docs/WebhookPayloadReviewUpdated.md +1 -1
- data/docs/WebhookPayloadTest.md +1 -1
- data/docs/WebhookPayloadWhatsAppTemplateCategoryUpdated.md +26 -0
- data/docs/WebhookPayloadWhatsAppTemplateCategoryUpdatedTemplate.md +32 -0
- data/docs/WebhookPayloadWhatsAppTemplateStatusUpdated.md +1 -1
- data/docs/WhatsAppApi.md +74 -0
- data/docs/WorkflowNode.md +3 -1
- data/docs/XArticle.md +24 -0
- data/docs/XArticleBlock.md +28 -0
- data/docs/XArticleBlockData.md +24 -0
- data/docs/XArticleContentState.md +20 -0
- data/docs/XArticleCover.md +20 -0
- data/docs/XArticleEntity.md +57 -0
- data/docs/XArticleEntityOneOf.md +20 -0
- data/docs/XArticleEntityOneOf1.md +20 -0
- data/docs/XArticleEntityOneOf1Value.md +22 -0
- data/docs/XArticleEntityOneOf1ValueData.md +18 -0
- data/docs/XArticleEntityOneOf2.md +20 -0
- data/docs/XArticleEntityOneOf2Value.md +22 -0
- data/docs/XArticleEntityOneOf2ValueData.md +22 -0
- data/docs/XArticleEntityOneOf3.md +20 -0
- data/docs/XArticleEntityOneOf3Value.md +22 -0
- data/docs/XArticleEntityOneOf3ValueData.md +18 -0
- data/docs/XArticleEntityOneOf4.md +20 -0
- data/docs/XArticleEntityOneOf4Value.md +22 -0
- data/docs/XArticleEntityOneOf4ValueData.md +18 -0
- data/docs/XArticleEntityOneOf5.md +20 -0
- data/docs/XArticleEntityOneOf5Value.md +22 -0
- data/docs/XArticleEntityOneOfValue.md +22 -0
- data/docs/XArticleEntityOneOfValueData.md +18 -0
- data/docs/XArticleEntityRange.md +22 -0
- data/docs/XArticleInlineStyleRange.md +22 -0
- data/docs/XArticleTextRange.md +22 -0
- data/docs/YouTubeVideoRetentionResponse.md +1 -1
- data/docs/YouTubeVideoRetentionResponseRetentionCurveInner.md +2 -2
- data/lib/zernio-sdk/api/accounts_api.rb +139 -2
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +35 -8
- data/lib/zernio-sdk/api/ad_insights_api.rb +165 -0
- data/lib/zernio-sdk/api/ad_targeting_api.rb +5 -5
- data/lib/zernio-sdk/api/blogs_api.rb +845 -0
- data/lib/zernio-sdk/api/comments_api.rb +10 -10
- data/lib/zernio-sdk/api/connect_api.rb +149 -0
- data/lib/zernio-sdk/api/messages_api.rb +4 -4
- data/lib/zernio-sdk/api/posts_api.rb +2 -2
- data/lib/zernio-sdk/api/sms_api.rb +2 -2
- data/lib/zernio-sdk/api/webhook_events_api.rb +132 -0
- data/lib/zernio-sdk/api/whats_app_api.rb +75 -0
- data/lib/zernio-sdk/models/account_with_follower_stats.rb +2 -2
- data/lib/zernio-sdk/models/ad_creative.rb +12 -1
- data/lib/zernio-sdk/models/ad_daily_metrics.rb +1 -1
- data/lib/zernio-sdk/models/ad_engagement_counts.rb +5 -5
- data/lib/zernio-sdk/models/ad_metrics.rb +1 -1
- data/lib/zernio-sdk/models/ad_tree_campaign.rb +1 -1
- data/lib/zernio-sdk/models/add_broadcast_recipients_request.rb +1 -1
- data/lib/zernio-sdk/models/analytics_list_response_posts_inner.rb +1 -1
- data/lib/zernio-sdk/models/analytics_list_response_posts_inner_media_items_inner.rb +211 -0
- data/lib/zernio-sdk/models/analytics_single_post_response_media_items_inner.rb +52 -6
- data/lib/zernio-sdk/models/billing_snapshot.rb +14 -3
- data/lib/zernio-sdk/models/billing_snapshot_plan.rb +14 -4
- data/lib/zernio-sdk/models/blog.rb +211 -0
- data/lib/zernio-sdk/models/blog_article.rb +315 -0
- data/lib/zernio-sdk/models/blog_article_image.rb +158 -0
- data/lib/zernio-sdk/models/bluesky_platform_data.rb +42 -2
- data/lib/zernio-sdk/models/boost_post_request.rb +30 -1
- data/lib/zernio-sdk/models/campaign_analytics_response_analytics_daily_inner.rb +1 -1
- data/lib/zernio-sdk/models/connect_shopify_with_token200_response.rb +147 -0
- data/lib/zernio-sdk/models/connect_shopify_with_token200_response_account.rb +218 -0
- data/lib/zernio-sdk/models/connect_shopify_with_token_request.rb +219 -0
- data/lib/zernio-sdk/models/create_blog201_response.rb +190 -0
- data/lib/zernio-sdk/models/create_blog_article201_response.rb +190 -0
- data/lib/zernio-sdk/models/create_blog_article_request.rb +262 -0
- data/lib/zernio-sdk/models/create_blog_article_request_image.rb +174 -0
- data/lib/zernio-sdk/models/create_blog_article_request_seo.rb +157 -0
- data/lib/zernio-sdk/models/create_blog_request.rb +202 -0
- data/lib/zernio-sdk/models/create_call_ad_request.rb +1 -1
- data/lib/zernio-sdk/models/create_inbox_conversation_request.rb +13 -1
- data/lib/zernio-sdk/models/create_messaging_ad_request.rb +1 -1
- data/lib/zernio-sdk/models/create_post_request.rb +1 -1
- data/lib/zernio-sdk/models/create_standalone_ad_request.rb +67 -6
- data/lib/zernio-sdk/models/create_standalone_ad_request_creatives_inner_video.rb +1 -1
- data/lib/zernio-sdk/models/create_standalone_ad_request_promoted_object.rb +3 -3
- data/lib/zernio-sdk/models/create_standalone_ad_request_video.rb +1 -1
- data/lib/zernio-sdk/models/ctwa_ad_request_body.rb +1 -1
- data/lib/zernio-sdk/models/external_post_media_item.rb +48 -16
- data/lib/zernio-sdk/models/external_post_summary.rb +1 -11
- data/lib/zernio-sdk/models/external_post_summary_analytics.rb +1 -0
- data/lib/zernio-sdk/models/facebook_settings.rb +5 -5
- data/lib/zernio-sdk/models/get_account_health200_response.rb +13 -4
- data/lib/zernio-sdk/models/get_account_health200_response_platform_connection.rb +213 -0
- data/lib/zernio-sdk/models/get_account_health200_response_platform_connection_meta_error.rb +168 -0
- data/lib/zernio-sdk/models/get_ad_analytics202_response.rb +6 -29
- data/lib/zernio-sdk/models/get_ad_tree202_response.rb +6 -29
- data/lib/zernio-sdk/models/get_ads_timeline202_response.rb +6 -29
- data/lib/zernio-sdk/models/get_bluesky_settings200_response.rb +150 -0
- data/lib/zernio-sdk/models/get_campaign_analytics202_response.rb +6 -29
- data/lib/zernio-sdk/models/get_inbox_post_comments200_response_comments_inner.rb +13 -2
- data/lib/zernio-sdk/models/get_linked_in_post_analytics200_response_analytics.rb +1 -1
- data/lib/zernio-sdk/models/get_phone_number_kyc_form200_response.rb +14 -4
- data/lib/zernio-sdk/models/get_whats_app_number_kyc_form200_response.rb +14 -4
- data/lib/zernio-sdk/models/inbox_webhook_message.rb +2 -2
- data/lib/zernio-sdk/models/linked_in_aggregate_analytics_total_response_analytics.rb +1 -1
- data/lib/zernio-sdk/models/linked_in_platform_data.rb +15 -6
- data/lib/zernio-sdk/models/linked_in_platform_data_poll.rb +277 -0
- data/lib/zernio-sdk/models/list_ads202_response.rb +6 -29
- data/lib/zernio-sdk/models/list_blog_articles200_response.rb +203 -0
- data/lib/zernio-sdk/models/list_blogs200_response.rb +203 -0
- data/lib/zernio-sdk/models/list_broadcast_recipients200_response_recipients_inner.rb +1 -0
- data/lib/zernio-sdk/models/list_inbox_conversations200_response_data_inner_metadata.rb +4 -4
- data/lib/zernio-sdk/models/list_leads200_response_leads_inner.rb +3 -2
- data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response.rb +167 -0
- data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response_data_inner.rb +198 -0
- data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response_data_inner_message.rb +160 -0
- data/lib/zernio-sdk/models/list_local_services_lead_conversations200_response_data_inner_phone_call.rb +159 -0
- data/lib/zernio-sdk/models/list_local_services_leads200_response.rb +167 -0
- data/lib/zernio-sdk/models/list_local_services_leads200_response_data_inner.rb +249 -0
- data/lib/zernio-sdk/models/list_local_services_leads200_response_data_inner_contact.rb +169 -0
- data/lib/zernio-sdk/models/list_phone_numbers200_response_connected_inner.rb +15 -5
- data/lib/zernio-sdk/models/list_phone_numbers200_response_numbers_inner.rb +11 -1
- data/lib/zernio-sdk/models/list_sequence_enrollments200_response_enrollments_inner.rb +3 -0
- data/lib/zernio-sdk/models/list_whats_app_account_events200_response.rb +149 -0
- data/lib/zernio-sdk/models/list_whats_app_account_events200_response_events_inner.rb +228 -0
- data/lib/zernio-sdk/models/on_verification_approved_request.rb +1 -0
- data/lib/zernio-sdk/models/on_verification_failed_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_automatic_event_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_action_required_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_activated_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_declined_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_kyc_submitted_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_reactivated_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_released_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_suspended_request.rb +1 -0
- data/lib/zernio-sdk/models/on_whats_app_number_verification_required_request.rb +1 -0
- data/lib/zernio-sdk/models/platform_target.rb +5 -4
- data/lib/zernio-sdk/models/post_analytics.rb +2 -1
- data/lib/zernio-sdk/models/search_ad_targeting200_response_results_inner.rb +1 -1
- data/lib/zernio-sdk/models/send_inbox_message_request.rb +15 -3
- data/lib/zernio-sdk/models/social_account.rb +2 -2
- data/lib/zernio-sdk/models/submit_phone_number_kyc_request.rb +1 -1
- data/lib/zernio-sdk/models/submit_phone_number_kyc_request_address.rb +11 -1
- data/lib/zernio-sdk/models/submit_whats_app_number_kyc_request.rb +1 -1
- data/lib/zernio-sdk/models/twitter_platform_data.rb +11 -2
- data/lib/zernio-sdk/models/update_ad_campaign_status200_response.rb +50 -15
- data/lib/zernio-sdk/models/update_ad_set200_response.rb +26 -1
- data/lib/zernio-sdk/models/update_ad_set_request.rb +1 -1
- data/lib/zernio-sdk/models/update_ad_set_status200_response.rb +72 -4
- data/lib/zernio-sdk/models/update_blog_article_request.rb +257 -0
- data/lib/zernio-sdk/models/update_blog_request.rb +196 -0
- data/lib/zernio-sdk/models/update_bluesky_settings_request.rb +176 -0
- data/lib/zernio-sdk/models/validate_phone_number_kyc_address_request.rb +11 -1
- data/lib/zernio-sdk/models/webhook_payload_account_ads_initial_sync_completed.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_account_connected.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_account_disconnected.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_ad_status_changed.rb +1 -1
- data/lib/zernio-sdk/models/webhook_payload_call_ended.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_call_ended_call.rb +23 -1
- data/lib/zernio-sdk/models/webhook_payload_call_failed.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_call_permission_request.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_call_received.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_comment.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_comment_comment_author.rb +11 -1
- data/lib/zernio-sdk/models/webhook_payload_conversation_started.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_external_post.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_lead.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_message.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_message_deleted.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_message_delivery_status.rb +2 -1
- data/lib/zernio-sdk/models/webhook_payload_message_edited.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_message_message.rb +2 -2
- data/lib/zernio-sdk/models/webhook_payload_message_metadata.rb +23 -4
- data/lib/zernio-sdk/models/webhook_payload_message_metadata_referral.rb +15 -5
- data/lib/zernio-sdk/models/webhook_payload_message_metadata_unsupported.rb +169 -0
- data/lib/zernio-sdk/models/webhook_payload_message_sent.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_post.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_post_platform.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_reaction.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_reaction_reaction_sender.rb +1 -1
- data/lib/zernio-sdk/models/webhook_payload_referral.rb +347 -0
- data/lib/zernio-sdk/models/webhook_payload_referral_referral.rb +198 -0
- data/lib/zernio-sdk/models/webhook_payload_referral_referral_ads_context_data.rb +193 -0
- data/lib/zernio-sdk/models/webhook_payload_referral_sender.rb +176 -0
- data/lib/zernio-sdk/models/webhook_payload_review_new.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_review_updated.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_test.rb +1 -0
- data/lib/zernio-sdk/models/webhook_payload_whats_app_template_category_updated.rb +295 -0
- data/lib/zernio-sdk/models/webhook_payload_whats_app_template_category_updated_template.rb +353 -0
- data/lib/zernio-sdk/models/webhook_payload_whats_app_template_status_updated.rb +1 -1
- data/lib/zernio-sdk/models/workflow_node.rb +42 -4
- data/lib/zernio-sdk/models/x_article.rb +255 -0
- data/lib/zernio-sdk/models/x_article_block.rb +273 -0
- data/lib/zernio-sdk/models/x_article_block_data.rb +182 -0
- data/lib/zernio-sdk/models/x_article_content_state.rb +204 -0
- data/lib/zernio-sdk/models/x_article_cover.rb +204 -0
- data/lib/zernio-sdk/models/x_article_entity.rb +109 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of.rb +199 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of1.rb +199 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of1_value.rb +242 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of1_value_data.rb +164 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of2.rb +199 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of2_value.rb +242 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of2_value_data.rb +214 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of3.rb +199 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of3_value.rb +242 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of3_value_data.rb +173 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of4.rb +199 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of4_value.rb +242 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of4_value_data.rb +164 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of5.rb +199 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of5_value.rb +242 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of_value.rb +242 -0
- data/lib/zernio-sdk/models/x_article_entity_one_of_value_data.rb +173 -0
- data/lib/zernio-sdk/models/x_article_entity_range.rb +245 -0
- data/lib/zernio-sdk/models/x_article_inline_style_range.rb +259 -0
- data/lib/zernio-sdk/models/x_article_text_range.rb +237 -0
- data/lib/zernio-sdk/models/you_tube_video_retention_response.rb +1 -1
- data/lib/zernio-sdk/models/you_tube_video_retention_response_retention_curve_inner.rb +2 -2
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +65 -0
- data/openapi.yaml +1956 -165
- data/spec/api/accounts_api_spec.rb +26 -1
- data/spec/api/ad_campaigns_api_spec.rb +9 -4
- data/spec/api/ad_insights_api_spec.rb +34 -0
- data/spec/api/ad_targeting_api_spec.rb +2 -2
- data/spec/api/blogs_api_spec.rb +174 -0
- data/spec/api/comments_api_spec.rb +5 -5
- data/spec/api/connect_api_spec.rb +27 -0
- data/spec/api/messages_api_spec.rb +2 -2
- data/spec/api/posts_api_spec.rb +1 -1
- data/spec/api/sms_api_spec.rb +1 -1
- data/spec/api/whats_app_api_spec.rb +13 -0
- data/spec/models/account_with_follower_stats_spec.rb +1 -1
- data/spec/models/ad_creative_spec.rb +6 -0
- data/spec/models/analytics_list_response_posts_inner_media_items_inner_spec.rb +58 -0
- data/spec/models/analytics_single_post_response_media_items_inner_spec.rb +20 -0
- data/spec/models/billing_snapshot_plan_spec.rb +6 -0
- data/spec/models/billing_snapshot_spec.rb +7 -1
- data/spec/models/blog_article_image_spec.rb +42 -0
- data/spec/models/blog_article_spec.rb +118 -0
- data/spec/models/blog_spec.rb +58 -0
- data/spec/models/bluesky_platform_data_spec.rb +6 -0
- data/spec/models/connect_shopify_with_token200_response_account_spec.rb +64 -0
- data/spec/models/connect_shopify_with_token200_response_spec.rb +36 -0
- data/spec/models/connect_shopify_with_token_request_spec.rb +48 -0
- data/spec/models/create_blog201_response_spec.rb +46 -0
- data/spec/models/create_blog_article201_response_spec.rb +46 -0
- data/spec/models/create_blog_article_request_image_spec.rb +42 -0
- data/spec/models/create_blog_article_request_seo_spec.rb +42 -0
- data/spec/models/create_blog_article_request_spec.rb +90 -0
- data/spec/models/create_blog_request_spec.rb +42 -0
- data/spec/models/create_inbox_conversation_request_spec.rb +6 -0
- data/spec/models/create_standalone_ad_request_spec.rb +16 -0
- data/spec/models/create_webhook_settings_request_spec.rb +1 -1
- data/spec/models/external_post_media_item_spec.rb +20 -0
- data/spec/models/external_post_summary_spec.rb +0 -6
- data/spec/models/get_account_health200_response_platform_connection_meta_error_spec.rb +48 -0
- data/spec/models/get_account_health200_response_platform_connection_spec.rb +58 -0
- data/spec/models/get_account_health200_response_spec.rb +6 -0
- data/spec/models/get_ad_analytics202_response_spec.rb +0 -4
- data/spec/models/get_ad_tree202_response_spec.rb +0 -4
- data/spec/models/get_ads_timeline202_response_spec.rb +0 -4
- data/spec/models/get_bluesky_settings200_response_spec.rb +36 -0
- data/spec/models/get_campaign_analytics202_response_spec.rb +0 -4
- data/spec/models/get_inbox_post_comments200_response_comments_inner_spec.rb +6 -0
- data/spec/models/get_phone_number_kyc_form200_response_spec.rb +6 -0
- data/spec/models/get_whats_app_number_kyc_form200_response_spec.rb +6 -0
- data/spec/models/inbox_webhook_message_spec.rb +1 -1
- data/spec/models/linked_in_platform_data_poll_spec.rb +52 -0
- data/spec/models/linked_in_platform_data_spec.rb +6 -0
- data/spec/models/list_ads202_response_spec.rb +0 -4
- data/spec/models/list_blog_articles200_response_spec.rb +52 -0
- data/spec/models/list_blogs200_response_spec.rb +52 -0
- data/spec/models/list_local_services_lead_conversations200_response_data_inner_message_spec.rb +42 -0
- data/spec/models/list_local_services_lead_conversations200_response_data_inner_phone_call_spec.rb +42 -0
- data/spec/models/list_local_services_lead_conversations200_response_data_inner_spec.rb +66 -0
- data/spec/models/list_local_services_lead_conversations200_response_spec.rb +48 -0
- data/spec/models/list_local_services_leads200_response_data_inner_contact_spec.rb +48 -0
- data/spec/models/list_local_services_leads200_response_data_inner_spec.rb +96 -0
- data/spec/models/list_local_services_leads200_response_spec.rb +48 -0
- data/spec/models/list_phone_numbers200_response_connected_inner_spec.rb +6 -0
- data/spec/models/list_phone_numbers200_response_numbers_inner_spec.rb +6 -0
- data/spec/models/list_whats_app_account_events200_response_events_inner_spec.rb +70 -0
- data/spec/models/list_whats_app_account_events200_response_spec.rb +36 -0
- data/spec/models/platform_target_spec.rb +1 -1
- data/spec/models/send_inbox_message_request_spec.rb +6 -0
- data/spec/models/social_account_spec.rb +1 -1
- data/spec/models/submit_phone_number_kyc_request_address_spec.rb +6 -0
- data/spec/models/twitter_platform_data_spec.rb +6 -0
- data/spec/models/update_ad_campaign_status200_response_spec.rb +8 -4
- data/spec/models/update_ad_set200_response_spec.rb +12 -0
- data/spec/models/update_ad_set_status200_response_spec.rb +22 -0
- data/spec/models/update_blog_article_request_spec.rb +90 -0
- data/spec/models/update_blog_request_spec.rb +42 -0
- data/spec/models/update_bluesky_settings_request_spec.rb +36 -0
- data/spec/models/update_webhook_settings_request_spec.rb +1 -1
- data/spec/models/validate_phone_number_kyc_address_request_spec.rb +6 -0
- data/spec/models/webhook_payload_call_ended_call_spec.rb +12 -0
- data/spec/models/webhook_payload_comment_comment_author_spec.rb +6 -0
- data/spec/models/webhook_payload_message_message_spec.rb +1 -1
- data/spec/models/webhook_payload_message_metadata_referral_spec.rb +6 -0
- data/spec/models/webhook_payload_message_metadata_spec.rb +12 -0
- data/spec/models/webhook_payload_message_metadata_unsupported_spec.rb +48 -0
- data/spec/models/webhook_payload_referral_referral_ads_context_data_spec.rb +66 -0
- data/spec/models/webhook_payload_referral_referral_spec.rb +66 -0
- data/spec/models/webhook_payload_referral_sender_spec.rb +42 -0
- data/spec/models/webhook_payload_referral_spec.rb +76 -0
- data/spec/models/webhook_payload_whats_app_template_category_updated_spec.rb +64 -0
- data/spec/models/webhook_payload_whats_app_template_category_updated_template_spec.rb +94 -0
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/models/workflow_node_spec.rb +6 -0
- data/spec/models/x_article_block_data_spec.rb +54 -0
- data/spec/models/x_article_block_spec.rb +70 -0
- data/spec/models/x_article_content_state_spec.rb +42 -0
- data/spec/models/x_article_cover_spec.rb +42 -0
- data/spec/models/x_article_entity_one_of1_spec.rb +42 -0
- data/spec/models/x_article_entity_one_of1_value_data_spec.rb +36 -0
- data/spec/models/x_article_entity_one_of1_value_spec.rb +56 -0
- data/spec/models/x_article_entity_one_of2_spec.rb +42 -0
- data/spec/models/x_article_entity_one_of2_value_data_spec.rb +48 -0
- data/spec/models/x_article_entity_one_of2_value_spec.rb +56 -0
- data/spec/models/x_article_entity_one_of3_spec.rb +42 -0
- data/spec/models/x_article_entity_one_of3_value_data_spec.rb +36 -0
- data/spec/models/x_article_entity_one_of3_value_spec.rb +56 -0
- data/spec/models/x_article_entity_one_of4_spec.rb +42 -0
- data/spec/models/x_article_entity_one_of4_value_data_spec.rb +36 -0
- data/spec/models/x_article_entity_one_of4_value_spec.rb +56 -0
- data/spec/models/x_article_entity_one_of5_spec.rb +42 -0
- data/spec/models/x_article_entity_one_of5_value_spec.rb +56 -0
- data/spec/models/x_article_entity_one_of_spec.rb +42 -0
- data/spec/models/x_article_entity_one_of_value_data_spec.rb +36 -0
- data/spec/models/x_article_entity_one_of_value_spec.rb +56 -0
- data/spec/models/x_article_entity_range_spec.rb +48 -0
- data/spec/models/x_article_entity_spec.rb +32 -0
- data/spec/models/x_article_inline_style_range_spec.rb +52 -0
- data/spec/models/x_article_spec.rb +58 -0
- data/spec/models/x_article_text_range_spec.rb +48 -0
- data/zernio-sdk-0.0.718.gem +0 -0
- metadata +1867 -1607
- data/zernio-sdk-0.0.716.gem +0 -0
|
@@ -15,24 +15,47 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
17
|
class UpdateAdCampaignStatus200Response < ApiModelBase
|
|
18
|
-
#
|
|
18
|
+
# The status written to the campaign
|
|
19
|
+
attr_accessor :status
|
|
20
|
+
|
|
21
|
+
# Number of ads whose own stored status changed too. 0 is normal on a resume whose ads are all awaiting the platform.
|
|
19
22
|
attr_accessor :updated
|
|
20
23
|
|
|
21
|
-
# Number of ads
|
|
24
|
+
# Number of ads whose own status was left as it was
|
|
22
25
|
attr_accessor :skipped
|
|
23
26
|
|
|
27
|
+
# Why each group of ads was skipped
|
|
24
28
|
attr_accessor :skipped_reasons
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
class EnumAttributeValidator
|
|
31
|
+
attr_reader :datatype
|
|
32
|
+
attr_reader :allowable_values
|
|
33
|
+
|
|
34
|
+
def initialize(datatype, allowable_values)
|
|
35
|
+
@allowable_values = allowable_values.map do |value|
|
|
36
|
+
case datatype.to_s
|
|
37
|
+
when /Integer/i
|
|
38
|
+
value.to_i
|
|
39
|
+
when /Float/i
|
|
40
|
+
value.to_f
|
|
41
|
+
else
|
|
42
|
+
value
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def valid?(value)
|
|
48
|
+
!value || allowable_values.include?(value)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
28
51
|
|
|
29
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
53
|
def self.attribute_map
|
|
31
54
|
{
|
|
55
|
+
:'status' => :'status',
|
|
32
56
|
:'updated' => :'updated',
|
|
33
57
|
:'skipped' => :'skipped',
|
|
34
|
-
:'skipped_reasons' => :'skippedReasons'
|
|
35
|
-
:'message' => :'message'
|
|
58
|
+
:'skipped_reasons' => :'skippedReasons'
|
|
36
59
|
}
|
|
37
60
|
end
|
|
38
61
|
|
|
@@ -49,10 +72,10 @@ module Zernio
|
|
|
49
72
|
# Attribute type mapping.
|
|
50
73
|
def self.openapi_types
|
|
51
74
|
{
|
|
75
|
+
:'status' => :'String',
|
|
52
76
|
:'updated' => :'Integer',
|
|
53
77
|
:'skipped' => :'Integer',
|
|
54
|
-
:'skipped_reasons' => :'Array<String>'
|
|
55
|
-
:'message' => :'String'
|
|
78
|
+
:'skipped_reasons' => :'Array<String>'
|
|
56
79
|
}
|
|
57
80
|
end
|
|
58
81
|
|
|
@@ -78,6 +101,10 @@ module Zernio
|
|
|
78
101
|
h[k.to_sym] = v
|
|
79
102
|
}
|
|
80
103
|
|
|
104
|
+
if attributes.key?(:'status')
|
|
105
|
+
self.status = attributes[:'status']
|
|
106
|
+
end
|
|
107
|
+
|
|
81
108
|
if attributes.key?(:'updated')
|
|
82
109
|
self.updated = attributes[:'updated']
|
|
83
110
|
end
|
|
@@ -91,10 +118,6 @@ module Zernio
|
|
|
91
118
|
self.skipped_reasons = value
|
|
92
119
|
end
|
|
93
120
|
end
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'message')
|
|
96
|
-
self.message = attributes[:'message']
|
|
97
|
-
end
|
|
98
121
|
end
|
|
99
122
|
|
|
100
123
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -109,18 +132,30 @@ module Zernio
|
|
|
109
132
|
# @return true if the model is valid
|
|
110
133
|
def valid?
|
|
111
134
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
135
|
+
status_validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
136
|
+
return false unless status_validator.valid?(@status)
|
|
112
137
|
true
|
|
113
138
|
end
|
|
114
139
|
|
|
140
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
141
|
+
# @param [Object] status Object to be assigned
|
|
142
|
+
def status=(status)
|
|
143
|
+
validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
144
|
+
unless validator.valid?(status)
|
|
145
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
146
|
+
end
|
|
147
|
+
@status = status
|
|
148
|
+
end
|
|
149
|
+
|
|
115
150
|
# Checks equality by comparing each attribute.
|
|
116
151
|
# @param [Object] Object to be compared
|
|
117
152
|
def ==(o)
|
|
118
153
|
return true if self.equal?(o)
|
|
119
154
|
self.class == o.class &&
|
|
155
|
+
status == o.status &&
|
|
120
156
|
updated == o.updated &&
|
|
121
157
|
skipped == o.skipped &&
|
|
122
|
-
skipped_reasons == o.skipped_reasons
|
|
123
|
-
message == o.message
|
|
158
|
+
skipped_reasons == o.skipped_reasons
|
|
124
159
|
end
|
|
125
160
|
|
|
126
161
|
# @see the `==` method
|
|
@@ -132,7 +167,7 @@ module Zernio
|
|
|
132
167
|
# Calculates hash code according to all attributes.
|
|
133
168
|
# @return [Integer] Hash code
|
|
134
169
|
def hash
|
|
135
|
-
[updated, skipped, skipped_reasons
|
|
170
|
+
[status, updated, skipped, skipped_reasons].hash
|
|
136
171
|
end
|
|
137
172
|
|
|
138
173
|
# Builds the object from hash
|
|
@@ -19,12 +19,21 @@ module Zernio
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :budget_level
|
|
21
21
|
|
|
22
|
+
# The status written to the ad set. Absent when nothing was written (see statusMessage).
|
|
22
23
|
attr_accessor :status
|
|
23
24
|
|
|
25
|
+
# Number of ads whose own stored status changed alongside the ad set switch
|
|
24
26
|
attr_accessor :status_updated
|
|
25
27
|
|
|
28
|
+
# Number of ads whose own status was left as it was
|
|
26
29
|
attr_accessor :status_skipped
|
|
27
30
|
|
|
31
|
+
# Why each group of ads was skipped
|
|
32
|
+
attr_accessor :status_skipped_reasons
|
|
33
|
+
|
|
34
|
+
# Present only where the platform has no ad-set switch and no child ad was actionable; `status` is then absent because nothing was written
|
|
35
|
+
attr_accessor :status_message
|
|
36
|
+
|
|
28
37
|
attr_accessor :bid_strategy
|
|
29
38
|
|
|
30
39
|
attr_accessor :bid_amount
|
|
@@ -63,6 +72,8 @@ module Zernio
|
|
|
63
72
|
:'status' => :'status',
|
|
64
73
|
:'status_updated' => :'statusUpdated',
|
|
65
74
|
:'status_skipped' => :'statusSkipped',
|
|
75
|
+
:'status_skipped_reasons' => :'statusSkippedReasons',
|
|
76
|
+
:'status_message' => :'statusMessage',
|
|
66
77
|
:'bid_strategy' => :'bidStrategy',
|
|
67
78
|
:'bid_amount' => :'bidAmount',
|
|
68
79
|
:'roas_average_floor' => :'roasAverageFloor',
|
|
@@ -88,6 +99,8 @@ module Zernio
|
|
|
88
99
|
:'status' => :'String',
|
|
89
100
|
:'status_updated' => :'Integer',
|
|
90
101
|
:'status_skipped' => :'Integer',
|
|
102
|
+
:'status_skipped_reasons' => :'Array<String>',
|
|
103
|
+
:'status_message' => :'String',
|
|
91
104
|
:'bid_strategy' => :'BidStrategy',
|
|
92
105
|
:'bid_amount' => :'Float',
|
|
93
106
|
:'roas_average_floor' => :'Float',
|
|
@@ -139,6 +152,16 @@ module Zernio
|
|
|
139
152
|
self.status_skipped = attributes[:'status_skipped']
|
|
140
153
|
end
|
|
141
154
|
|
|
155
|
+
if attributes.key?(:'status_skipped_reasons')
|
|
156
|
+
if (value = attributes[:'status_skipped_reasons']).is_a?(Array)
|
|
157
|
+
self.status_skipped_reasons = value
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'status_message')
|
|
162
|
+
self.status_message = attributes[:'status_message']
|
|
163
|
+
end
|
|
164
|
+
|
|
142
165
|
if attributes.key?(:'bid_strategy')
|
|
143
166
|
self.bid_strategy = attributes[:'bid_strategy']
|
|
144
167
|
end
|
|
@@ -205,6 +228,8 @@ module Zernio
|
|
|
205
228
|
status == o.status &&
|
|
206
229
|
status_updated == o.status_updated &&
|
|
207
230
|
status_skipped == o.status_skipped &&
|
|
231
|
+
status_skipped_reasons == o.status_skipped_reasons &&
|
|
232
|
+
status_message == o.status_message &&
|
|
208
233
|
bid_strategy == o.bid_strategy &&
|
|
209
234
|
bid_amount == o.bid_amount &&
|
|
210
235
|
roas_average_floor == o.roas_average_floor &&
|
|
@@ -220,7 +245,7 @@ module Zernio
|
|
|
220
245
|
# Calculates hash code according to all attributes.
|
|
221
246
|
# @return [Integer] Hash code
|
|
222
247
|
def hash
|
|
223
|
-
[budget, budget_level, status, status_updated, status_skipped, bid_strategy, bid_amount, roas_average_floor, platform_specific_data].hash
|
|
248
|
+
[budget, budget_level, status, status_updated, status_skipped, status_skipped_reasons, status_message, bid_strategy, bid_amount, roas_average_floor, platform_specific_data].hash
|
|
224
249
|
end
|
|
225
250
|
|
|
226
251
|
# Builds the object from hash
|
|
@@ -19,7 +19,7 @@ module Zernio
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :budget
|
|
21
21
|
|
|
22
|
-
# Omit if not toggling delivery state
|
|
22
|
+
# Writes the ad set's own on/off switch (Meta: `configured_status`) on Meta and LinkedIn, whatever delivery status its ads report. Omit if not toggling delivery state.
|
|
23
23
|
attr_accessor :status
|
|
24
24
|
|
|
25
25
|
# Rename the ad set (Meta only; other platforms return 501). At least one of budget/status/bidStrategy/name is required.
|
|
@@ -15,15 +15,51 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
17
|
class UpdateAdSetStatus200Response < ApiModelBase
|
|
18
|
+
# The status written to the ad set. Absent when nothing was written (see message).
|
|
19
|
+
attr_accessor :status
|
|
20
|
+
|
|
21
|
+
# Number of ads whose own stored status changed too. 0 is normal on a resume whose ads are all awaiting the platform.
|
|
18
22
|
attr_accessor :updated
|
|
19
23
|
|
|
24
|
+
# Number of ads whose own status was left as it was
|
|
20
25
|
attr_accessor :skipped
|
|
21
26
|
|
|
27
|
+
# Why each group of ads was skipped
|
|
28
|
+
attr_accessor :skipped_reasons
|
|
29
|
+
|
|
30
|
+
# Present only where the platform has no ad-set switch and no child ad was actionable
|
|
31
|
+
attr_accessor :message
|
|
32
|
+
|
|
33
|
+
class EnumAttributeValidator
|
|
34
|
+
attr_reader :datatype
|
|
35
|
+
attr_reader :allowable_values
|
|
36
|
+
|
|
37
|
+
def initialize(datatype, allowable_values)
|
|
38
|
+
@allowable_values = allowable_values.map do |value|
|
|
39
|
+
case datatype.to_s
|
|
40
|
+
when /Integer/i
|
|
41
|
+
value.to_i
|
|
42
|
+
when /Float/i
|
|
43
|
+
value.to_f
|
|
44
|
+
else
|
|
45
|
+
value
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def valid?(value)
|
|
51
|
+
!value || allowable_values.include?(value)
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
22
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
56
|
def self.attribute_map
|
|
24
57
|
{
|
|
58
|
+
:'status' => :'status',
|
|
25
59
|
:'updated' => :'updated',
|
|
26
|
-
:'skipped' => :'skipped'
|
|
60
|
+
:'skipped' => :'skipped',
|
|
61
|
+
:'skipped_reasons' => :'skippedReasons',
|
|
62
|
+
:'message' => :'message'
|
|
27
63
|
}
|
|
28
64
|
end
|
|
29
65
|
|
|
@@ -40,8 +76,11 @@ module Zernio
|
|
|
40
76
|
# Attribute type mapping.
|
|
41
77
|
def self.openapi_types
|
|
42
78
|
{
|
|
79
|
+
:'status' => :'String',
|
|
43
80
|
:'updated' => :'Integer',
|
|
44
|
-
:'skipped' => :'Integer'
|
|
81
|
+
:'skipped' => :'Integer',
|
|
82
|
+
:'skipped_reasons' => :'Array<String>',
|
|
83
|
+
:'message' => :'String'
|
|
45
84
|
}
|
|
46
85
|
end
|
|
47
86
|
|
|
@@ -67,6 +106,10 @@ module Zernio
|
|
|
67
106
|
h[k.to_sym] = v
|
|
68
107
|
}
|
|
69
108
|
|
|
109
|
+
if attributes.key?(:'status')
|
|
110
|
+
self.status = attributes[:'status']
|
|
111
|
+
end
|
|
112
|
+
|
|
70
113
|
if attributes.key?(:'updated')
|
|
71
114
|
self.updated = attributes[:'updated']
|
|
72
115
|
end
|
|
@@ -74,6 +117,16 @@ module Zernio
|
|
|
74
117
|
if attributes.key?(:'skipped')
|
|
75
118
|
self.skipped = attributes[:'skipped']
|
|
76
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'skipped_reasons')
|
|
122
|
+
if (value = attributes[:'skipped_reasons']).is_a?(Array)
|
|
123
|
+
self.skipped_reasons = value
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'message')
|
|
128
|
+
self.message = attributes[:'message']
|
|
129
|
+
end
|
|
77
130
|
end
|
|
78
131
|
|
|
79
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -88,16 +141,31 @@ module Zernio
|
|
|
88
141
|
# @return true if the model is valid
|
|
89
142
|
def valid?
|
|
90
143
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
144
|
+
status_validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
145
|
+
return false unless status_validator.valid?(@status)
|
|
91
146
|
true
|
|
92
147
|
end
|
|
93
148
|
|
|
149
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
150
|
+
# @param [Object] status Object to be assigned
|
|
151
|
+
def status=(status)
|
|
152
|
+
validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
153
|
+
unless validator.valid?(status)
|
|
154
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
155
|
+
end
|
|
156
|
+
@status = status
|
|
157
|
+
end
|
|
158
|
+
|
|
94
159
|
# Checks equality by comparing each attribute.
|
|
95
160
|
# @param [Object] Object to be compared
|
|
96
161
|
def ==(o)
|
|
97
162
|
return true if self.equal?(o)
|
|
98
163
|
self.class == o.class &&
|
|
164
|
+
status == o.status &&
|
|
99
165
|
updated == o.updated &&
|
|
100
|
-
skipped == o.skipped
|
|
166
|
+
skipped == o.skipped &&
|
|
167
|
+
skipped_reasons == o.skipped_reasons &&
|
|
168
|
+
message == o.message
|
|
101
169
|
end
|
|
102
170
|
|
|
103
171
|
# @see the `==` method
|
|
@@ -109,7 +177,7 @@ module Zernio
|
|
|
109
177
|
# Calculates hash code according to all attributes.
|
|
110
178
|
# @return [Integer] Hash code
|
|
111
179
|
def hash
|
|
112
|
-
[updated, skipped].hash
|
|
180
|
+
[status, updated, skipped, skipped_reasons, message].hash
|
|
113
181
|
end
|
|
114
182
|
|
|
115
183
|
# Builds the object from hash
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
# At least one field is required.
|
|
18
|
+
class UpdateBlogArticleRequest < ApiModelBase
|
|
19
|
+
attr_accessor :title
|
|
20
|
+
|
|
21
|
+
# Article body as HTML.
|
|
22
|
+
attr_accessor :body_html
|
|
23
|
+
|
|
24
|
+
# URL slug of the article.
|
|
25
|
+
attr_accessor :handle
|
|
26
|
+
|
|
27
|
+
# Replaces the full tag list.
|
|
28
|
+
attr_accessor :tags
|
|
29
|
+
|
|
30
|
+
# Display name of the article author.
|
|
31
|
+
attr_accessor :author
|
|
32
|
+
|
|
33
|
+
# Short summary shown in blog listings.
|
|
34
|
+
attr_accessor :excerpt
|
|
35
|
+
|
|
36
|
+
attr_accessor :image
|
|
37
|
+
|
|
38
|
+
attr_accessor :seo
|
|
39
|
+
|
|
40
|
+
# Set false to unpublish the article back to a draft.
|
|
41
|
+
attr_accessor :is_published
|
|
42
|
+
|
|
43
|
+
# ISO 8601 datetime with offset (or Z). A future date schedules publication natively on the platform.
|
|
44
|
+
attr_accessor :publish_date
|
|
45
|
+
|
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
|
+
def self.attribute_map
|
|
48
|
+
{
|
|
49
|
+
:'title' => :'title',
|
|
50
|
+
:'body_html' => :'bodyHtml',
|
|
51
|
+
:'handle' => :'handle',
|
|
52
|
+
:'tags' => :'tags',
|
|
53
|
+
:'author' => :'author',
|
|
54
|
+
:'excerpt' => :'excerpt',
|
|
55
|
+
:'image' => :'image',
|
|
56
|
+
:'seo' => :'seo',
|
|
57
|
+
:'is_published' => :'isPublished',
|
|
58
|
+
:'publish_date' => :'publishDate'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Returns attribute mapping this model knows about
|
|
63
|
+
def self.acceptable_attribute_map
|
|
64
|
+
attribute_map
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Returns all the JSON keys this model knows about
|
|
68
|
+
def self.acceptable_attributes
|
|
69
|
+
acceptable_attribute_map.values
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute type mapping.
|
|
73
|
+
def self.openapi_types
|
|
74
|
+
{
|
|
75
|
+
:'title' => :'String',
|
|
76
|
+
:'body_html' => :'String',
|
|
77
|
+
:'handle' => :'String',
|
|
78
|
+
:'tags' => :'Array<String>',
|
|
79
|
+
:'author' => :'String',
|
|
80
|
+
:'excerpt' => :'String',
|
|
81
|
+
:'image' => :'CreateBlogArticleRequestImage',
|
|
82
|
+
:'seo' => :'CreateBlogArticleRequestSeo',
|
|
83
|
+
:'is_published' => :'Boolean',
|
|
84
|
+
:'publish_date' => :'Time'
|
|
85
|
+
}
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# List of attributes with nullable: true
|
|
89
|
+
def self.openapi_nullable
|
|
90
|
+
Set.new([
|
|
91
|
+
])
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Initializes the object
|
|
95
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
96
|
+
def initialize(attributes = {})
|
|
97
|
+
if (!attributes.is_a?(Hash))
|
|
98
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateBlogArticleRequest` initialize method"
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
102
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
103
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
104
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
105
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateBlogArticleRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
106
|
+
end
|
|
107
|
+
h[k.to_sym] = v
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'title')
|
|
111
|
+
self.title = attributes[:'title']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'body_html')
|
|
115
|
+
self.body_html = attributes[:'body_html']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'handle')
|
|
119
|
+
self.handle = attributes[:'handle']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'tags')
|
|
123
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
124
|
+
self.tags = value
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'author')
|
|
129
|
+
self.author = attributes[:'author']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'excerpt')
|
|
133
|
+
self.excerpt = attributes[:'excerpt']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'image')
|
|
137
|
+
self.image = attributes[:'image']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'seo')
|
|
141
|
+
self.seo = attributes[:'seo']
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'is_published')
|
|
145
|
+
self.is_published = attributes[:'is_published']
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'publish_date')
|
|
149
|
+
self.publish_date = attributes[:'publish_date']
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
154
|
+
# @return Array for valid properties with the reasons
|
|
155
|
+
def list_invalid_properties
|
|
156
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
157
|
+
invalid_properties = Array.new
|
|
158
|
+
if !@title.nil? && @title.to_s.length < 1
|
|
159
|
+
invalid_properties.push('invalid value for "title", the character length must be greater than or equal to 1.')
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
invalid_properties
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Check to see if the all the properties in the model are valid
|
|
166
|
+
# @return true if the model is valid
|
|
167
|
+
def valid?
|
|
168
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
169
|
+
return false if !@title.nil? && @title.to_s.length < 1
|
|
170
|
+
true
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Custom attribute writer method with validation
|
|
174
|
+
# @param [Object] title Value to be assigned
|
|
175
|
+
def title=(title)
|
|
176
|
+
if title.nil?
|
|
177
|
+
fail ArgumentError, 'title cannot be nil'
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if title.to_s.length < 1
|
|
181
|
+
fail ArgumentError, 'invalid value for "title", the character length must be greater than or equal to 1.'
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
@title = title
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Checks equality by comparing each attribute.
|
|
188
|
+
# @param [Object] Object to be compared
|
|
189
|
+
def ==(o)
|
|
190
|
+
return true if self.equal?(o)
|
|
191
|
+
self.class == o.class &&
|
|
192
|
+
title == o.title &&
|
|
193
|
+
body_html == o.body_html &&
|
|
194
|
+
handle == o.handle &&
|
|
195
|
+
tags == o.tags &&
|
|
196
|
+
author == o.author &&
|
|
197
|
+
excerpt == o.excerpt &&
|
|
198
|
+
image == o.image &&
|
|
199
|
+
seo == o.seo &&
|
|
200
|
+
is_published == o.is_published &&
|
|
201
|
+
publish_date == o.publish_date
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# @see the `==` method
|
|
205
|
+
# @param [Object] Object to be compared
|
|
206
|
+
def eql?(o)
|
|
207
|
+
self == o
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Calculates hash code according to all attributes.
|
|
211
|
+
# @return [Integer] Hash code
|
|
212
|
+
def hash
|
|
213
|
+
[title, body_html, handle, tags, author, excerpt, image, seo, is_published, publish_date].hash
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Builds the object from hash
|
|
217
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
218
|
+
# @return [Object] Returns the model itself
|
|
219
|
+
def self.build_from_hash(attributes)
|
|
220
|
+
return nil unless attributes.is_a?(Hash)
|
|
221
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
222
|
+
transformed_hash = {}
|
|
223
|
+
openapi_types.each_pair do |key, type|
|
|
224
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
225
|
+
transformed_hash["#{key}"] = nil
|
|
226
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
227
|
+
# check to ensure the input is an array given that the attribute
|
|
228
|
+
# is documented as an array but the input is not
|
|
229
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
230
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
231
|
+
end
|
|
232
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
233
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
new(transformed_hash)
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Returns the object in the form of hash
|
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
|
241
|
+
def to_hash
|
|
242
|
+
hash = {}
|
|
243
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
244
|
+
value = self.send(attr)
|
|
245
|
+
if value.nil?
|
|
246
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
247
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
hash[param] = _to_hash(value)
|
|
251
|
+
end
|
|
252
|
+
hash
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
end
|