pinterest_sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +70 -0
- data/README.md +319 -0
- data/Rakefile +10 -0
- data/bin/bundle +114 -0
- data/bin/byebug +27 -0
- data/bin/coderay +27 -0
- data/bin/htmldiff +27 -0
- data/bin/ldiff +27 -0
- data/bin/pry +27 -0
- data/bin/rake +27 -0
- data/bin/rspec +27 -0
- data/bin/rubocop +27 -0
- data/bin/ruby-parse +27 -0
- data/bin/ruby-rewrite +27 -0
- data/docs/Account.md +24 -0
- data/docs/ActionType.md +15 -0
- data/docs/AdAccount.md +26 -0
- data/docs/AdAccountOwner.md +18 -0
- data/docs/AdAccountsApi.md +929 -0
- data/docs/AdGroupResponse.md +62 -0
- data/docs/AdGroupResponseAllOf.md +48 -0
- data/docs/AdGroupResponseAllOf1.md +30 -0
- data/docs/AdGroupSummaryStatus.md +15 -0
- data/docs/AdResponse.md +70 -0
- data/docs/AdResponseAllOf.md +48 -0
- data/docs/AdResponseAllOf1.md +38 -0
- data/docs/AdsAnalyticsCreateAsyncRequest.md +62 -0
- data/docs/AdsAnalyticsCreateAsyncRequestAllOf.md +32 -0
- data/docs/AdsAnalyticsCreateAsyncRequestAllOf1.md +22 -0
- data/docs/AdsAnalyticsCreateAsyncResponse.md +22 -0
- data/docs/AdsAnalyticsFilterColumn.md +15 -0
- data/docs/AdsAnalyticsFilterOperator.md +15 -0
- data/docs/AdsAnalyticsGetAsyncResponse.md +22 -0
- data/docs/AdsAnalyticsMetricsFilter.md +22 -0
- data/docs/AdsAnalyticsTargetingType.md +15 -0
- data/docs/AnalyticsMetricsResponse.md +20 -0
- data/docs/AnalyticsMetricsResponseDailyMetrics.md +22 -0
- data/docs/AvailabilityFilter.md +18 -0
- data/docs/BatchOperation.md +15 -0
- data/docs/BatchOperationStatus.md +15 -0
- data/docs/Board.md +26 -0
- data/docs/BoardOwner.md +18 -0
- data/docs/BoardSection.md +20 -0
- data/docs/BoardUpdate.md +22 -0
- data/docs/BoardsApi.md +811 -0
- data/docs/BrandFilter.md +18 -0
- data/docs/CampaignCommon.md +34 -0
- data/docs/CampaignResponse.md +44 -0
- data/docs/CampaignResponseAllOf.md +18 -0
- data/docs/CampaignResponseAllOf1.md +24 -0
- data/docs/CampaignSummaryStatus.md +15 -0
- data/docs/CatalogsApi.md +939 -0
- data/docs/CatalogsDbItem.md +22 -0
- data/docs/CatalogsFeed.md +42 -0
- data/docs/CatalogsFeedCredentials.md +20 -0
- data/docs/CatalogsFeedIngestionDetails.md +20 -0
- data/docs/CatalogsFeedIngestionErrors.md +26 -0
- data/docs/CatalogsFeedIngestionInfo.md +22 -0
- data/docs/CatalogsFeedProcessingResult.md +30 -0
- data/docs/CatalogsFeedProcessingResultFields.md +24 -0
- data/docs/CatalogsFeedProcessingSchedule.md +20 -0
- data/docs/CatalogsFeedProcessingStatus.md +15 -0
- data/docs/CatalogsFeedProductCounts.md +18 -0
- data/docs/CatalogsFeedValidationDetails.md +20 -0
- data/docs/CatalogsFeedValidationErrors.md +84 -0
- data/docs/CatalogsFeedValidationWarnings.md +106 -0
- data/docs/CatalogsFeedsCreateRequest.md +34 -0
- data/docs/CatalogsFeedsUpdateRequest.md +32 -0
- data/docs/CatalogsFormat.md +15 -0
- data/docs/CatalogsItems.md +18 -0
- data/docs/CatalogsItemsBatch.md +26 -0
- data/docs/CatalogsItemsBatchRequest.md +24 -0
- data/docs/CatalogsProductGroup.md +34 -0
- data/docs/CatalogsProductGroupCreateRequest.md +24 -0
- data/docs/CatalogsProductGroupCurrencyCriteria.md +20 -0
- data/docs/CatalogsProductGroupFilterKeys.md +68 -0
- data/docs/CatalogsProductGroupFilters.md +20 -0
- data/docs/CatalogsProductGroupFiltersAllOf.md +18 -0
- data/docs/CatalogsProductGroupFiltersAnyOf.md +18 -0
- data/docs/CatalogsProductGroupMultipleStringCriteria.md +20 -0
- data/docs/CatalogsProductGroupMultipleStringListCriteria.md +20 -0
- data/docs/CatalogsProductGroupPricingCriteria.md +22 -0
- data/docs/CatalogsProductGroupStatus.md +15 -0
- data/docs/CatalogsProductGroupType.md +15 -0
- data/docs/CatalogsProductGroupUpdateRequest.md +24 -0
- data/docs/CatalogsStatus.md +15 -0
- data/docs/ConditionFilter.md +18 -0
- data/docs/ConversionAttributionWindowDays.md +15 -0
- data/docs/ConversionReportAttributionType.md +15 -0
- data/docs/ConversionReportTimeType.md +15 -0
- data/docs/Country.md +15 -0
- data/docs/Currency.md +15 -0
- data/docs/CurrencyFilter.md +18 -0
- data/docs/CustomLabel0Filter.md +18 -0
- data/docs/CustomLabel1Filter.md +18 -0
- data/docs/CustomLabel2Filter.md +18 -0
- data/docs/CustomLabel3Filter.md +18 -0
- data/docs/CustomLabel4Filter.md +18 -0
- data/docs/DataOutputFormat.md +15 -0
- data/docs/EntityStatus.md +15 -0
- data/docs/Error.md +20 -0
- data/docs/FeedFields.md +36 -0
- data/docs/GenderFilter.md +18 -0
- data/docs/GoogleProductCategory0Filter.md +18 -0
- data/docs/GoogleProductCategory1Filter.md +18 -0
- data/docs/GoogleProductCategory2Filter.md +18 -0
- data/docs/GoogleProductCategory3Filter.md +18 -0
- data/docs/GoogleProductCategory4Filter.md +18 -0
- data/docs/GoogleProductCategory5Filter.md +18 -0
- data/docs/GoogleProductCategory6Filter.md +18 -0
- data/docs/Granularity.md +15 -0
- data/docs/ImageDetails.md +22 -0
- data/docs/ItemAttributes.md +104 -0
- data/docs/ItemBatchRecord.md +20 -0
- data/docs/ItemGroupIdFilter.md +18 -0
- data/docs/ItemIdFilter.md +18 -0
- data/docs/ItemProcessingRecord.md +24 -0
- data/docs/ItemProcessingStatus.md +15 -0
- data/docs/ItemValidationEvent.md +22 -0
- data/docs/Language.md +15 -0
- data/docs/MaxPriceFilter.md +18 -0
- data/docs/MediaApi.md +221 -0
- data/docs/MediaUpload.md +24 -0
- data/docs/MediaUploadAllOf.md +24 -0
- data/docs/MediaUploadAllOfUploadParameters.md +32 -0
- data/docs/MediaUploadDetails.md +22 -0
- data/docs/MediaUploadRequest.md +18 -0
- data/docs/MediaUploadStatus.md +15 -0
- data/docs/MediaUploadType.md +15 -0
- data/docs/MetricsReportingLevel.md +15 -0
- data/docs/MinPriceFilter.md +18 -0
- data/docs/NonNullableCatalogsCurrency.md +15 -0
- data/docs/NullableCurrency.md +15 -0
- data/docs/OauthAccessTokenRequest.md +18 -0
- data/docs/OauthAccessTokenRequestCode.md +20 -0
- data/docs/OauthAccessTokenRequestCodeAllOf.md +20 -0
- data/docs/OauthAccessTokenRequestRefresh.md +20 -0
- data/docs/OauthAccessTokenRequestRefreshAllOf.md +20 -0
- data/docs/OauthAccessTokenResponse.md +26 -0
- data/docs/OauthAccessTokenResponseCode.md +20 -0
- data/docs/OauthAccessTokenResponseCodeAllOf.md +20 -0
- data/docs/OauthAccessTokenResponseRefresh.md +15 -0
- data/docs/OauthApi.md +72 -0
- data/docs/ObjectiveType.md +15 -0
- data/docs/PacingDeliveryType.md +15 -0
- data/docs/Paginated.md +20 -0
- data/docs/Pin.md +38 -0
- data/docs/PinMedia.md +18 -0
- data/docs/PinMediaSource.md +81 -0
- data/docs/PinMediaSourceImageBase64.md +22 -0
- data/docs/PinMediaSourceImageURL.md +20 -0
- data/docs/PinMediaSourceVideoID.md +22 -0
- data/docs/PinMediaWithImage.md +18 -0
- data/docs/PinMediaWithImageAllOf.md +18 -0
- data/docs/PinPromotionSummaryStatus.md +15 -0
- data/docs/PinsApi.md +304 -0
- data/docs/PlacementGroupType.md +15 -0
- data/docs/ProductAvailabilityType.md +15 -0
- data/docs/ProductGroupSummaryStatus.md +15 -0
- data/docs/ProductType0Filter.md +18 -0
- data/docs/ProductType1Filter.md +18 -0
- data/docs/ProductType2Filter.md +18 -0
- data/docs/ProductType3Filter.md +18 -0
- data/docs/ProductType4Filter.md +18 -0
- data/docs/ReportingColumnAsync.md +15 -0
- data/docs/TargetingTypeFilter.md +18 -0
- data/docs/TrackingUrls.md +26 -0
- data/docs/UserAccountApi.md +165 -0
- data/git_push.sh +57 -0
- data/lib/pinterest_sdk/api/ad_accounts_api.rb +1287 -0
- data/lib/pinterest_sdk/api/boards_api.rb +888 -0
- data/lib/pinterest_sdk/api/catalogs_api.rb +965 -0
- data/lib/pinterest_sdk/api/media_api.rb +229 -0
- data/lib/pinterest_sdk/api/oauth_api.rb +96 -0
- data/lib/pinterest_sdk/api/pins_api.rb +330 -0
- data/lib/pinterest_sdk/api/user_account_api.rb +201 -0
- data/lib/pinterest_sdk/api_client.rb +390 -0
- data/lib/pinterest_sdk/api_error.rb +57 -0
- data/lib/pinterest_sdk/configuration.rb +285 -0
- data/lib/pinterest_sdk/models/account.rb +280 -0
- data/lib/pinterest_sdk/models/action_type.rb +39 -0
- data/lib/pinterest_sdk/models/ad_account.rb +254 -0
- data/lib/pinterest_sdk/models/ad_account_owner.rb +219 -0
- data/lib/pinterest_sdk/models/ad_group_response.rb +555 -0
- data/lib/pinterest_sdk/models/ad_group_response_all_of.rb +427 -0
- data/lib/pinterest_sdk/models/ad_group_response_all_of1.rb +329 -0
- data/lib/pinterest_sdk/models/ad_group_summary_status.rb +41 -0
- data/lib/pinterest_sdk/models/ad_response.rb +640 -0
- data/lib/pinterest_sdk/models/ad_response_all_of.rb +455 -0
- data/lib/pinterest_sdk/models/ad_response_all_of1.rb +409 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request.rb +831 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of.rb +356 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_request_all_of1.rb +253 -0
- data/lib/pinterest_sdk/models/ads_analytics_create_async_response.rb +237 -0
- data/lib/pinterest_sdk/models/ads_analytics_filter_column.rb +37 -0
- data/lib/pinterest_sdk/models/ads_analytics_filter_operator.rb +37 -0
- data/lib/pinterest_sdk/models/ads_analytics_get_async_response.rb +238 -0
- data/lib/pinterest_sdk/models/ads_analytics_metrics_filter.rb +254 -0
- data/lib/pinterest_sdk/models/ads_analytics_targeting_type.rb +48 -0
- data/lib/pinterest_sdk/models/analytics_metrics_response.rb +233 -0
- data/lib/pinterest_sdk/models/analytics_metrics_response_daily_metrics.rb +275 -0
- data/lib/pinterest_sdk/models/availability_filter.rb +223 -0
- data/lib/pinterest_sdk/models/batch_operation.rb +38 -0
- data/lib/pinterest_sdk/models/batch_operation_status.rb +37 -0
- data/lib/pinterest_sdk/models/board.rb +301 -0
- data/lib/pinterest_sdk/models/board_owner.rb +218 -0
- data/lib/pinterest_sdk/models/board_section.rb +252 -0
- data/lib/pinterest_sdk/models/board_update.rb +272 -0
- data/lib/pinterest_sdk/models/brand_filter.rb +223 -0
- data/lib/pinterest_sdk/models/campaign_common.rb +352 -0
- data/lib/pinterest_sdk/models/campaign_response.rb +435 -0
- data/lib/pinterest_sdk/models/campaign_response_all_of.rb +245 -0
- data/lib/pinterest_sdk/models/campaign_response_all_of1.rb +248 -0
- data/lib/pinterest_sdk/models/campaign_summary_status.rb +41 -0
- data/lib/pinterest_sdk/models/catalogs_db_item.rb +236 -0
- data/lib/pinterest_sdk/models/catalogs_feed.rb +368 -0
- data/lib/pinterest_sdk/models/catalogs_feed_credentials.rb +240 -0
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_details.rb +237 -0
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_errors.rb +288 -0
- data/lib/pinterest_sdk/models/catalogs_feed_ingestion_info.rb +236 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_result.rb +296 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_result_fields.rb +261 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_schedule.rb +291 -0
- data/lib/pinterest_sdk/models/catalogs_feed_processing_status.rb +43 -0
- data/lib/pinterest_sdk/models/catalogs_feed_product_counts.rb +220 -0
- data/lib/pinterest_sdk/models/catalogs_feed_validation_details.rb +237 -0
- data/lib/pinterest_sdk/models/catalogs_feed_validation_errors.rb +515 -0
- data/lib/pinterest_sdk/models/catalogs_feed_validation_warnings.rb +614 -0
- data/lib/pinterest_sdk/models/catalogs_feeds_create_request.rb +313 -0
- data/lib/pinterest_sdk/models/catalogs_feeds_update_request.rb +288 -0
- data/lib/pinterest_sdk/models/catalogs_format.rb +38 -0
- data/lib/pinterest_sdk/models/catalogs_items.rb +222 -0
- data/lib/pinterest_sdk/models/catalogs_items_batch.rb +262 -0
- data/lib/pinterest_sdk/models/catalogs_items_batch_request.rb +249 -0
- data/lib/pinterest_sdk/models/catalogs_product_group.rb +345 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_create_request.rb +284 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_currency_criteria.rb +237 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filter_keys.rb +617 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filters.rb +252 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filters_all_of.rb +220 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_filters_any_of.rb +220 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_criteria.rb +239 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_multiple_string_list_criteria.rb +239 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_pricing_criteria.rb +251 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_status.rb +37 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_type.rb +42 -0
- data/lib/pinterest_sdk/models/catalogs_product_group_update_request.rb +284 -0
- data/lib/pinterest_sdk/models/catalogs_status.rb +37 -0
- data/lib/pinterest_sdk/models/condition_filter.rb +223 -0
- data/lib/pinterest_sdk/models/conversion_attribution_window_days.rb +39 -0
- data/lib/pinterest_sdk/models/conversion_report_attribution_type.rb +37 -0
- data/lib/pinterest_sdk/models/conversion_report_time_type.rb +37 -0
- data/lib/pinterest_sdk/models/country.rb +282 -0
- data/lib/pinterest_sdk/models/currency.rb +60 -0
- data/lib/pinterest_sdk/models/currency_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label0_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label1_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label2_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label3_filter.rb +223 -0
- data/lib/pinterest_sdk/models/custom_label4_filter.rb +223 -0
- data/lib/pinterest_sdk/models/data_output_format.rb +37 -0
- data/lib/pinterest_sdk/models/entity_status.rb +38 -0
- data/lib/pinterest_sdk/models/error.rb +237 -0
- data/lib/pinterest_sdk/models/feed_fields.rb +332 -0
- data/lib/pinterest_sdk/models/gender_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category0_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category1_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category2_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category3_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category4_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category5_filter.rb +223 -0
- data/lib/pinterest_sdk/models/google_product_category6_filter.rb +223 -0
- data/lib/pinterest_sdk/models/granularity.rb +40 -0
- data/lib/pinterest_sdk/models/image_details.rb +281 -0
- data/lib/pinterest_sdk/models/item_attributes.rb +833 -0
- data/lib/pinterest_sdk/models/item_batch_record.rb +229 -0
- data/lib/pinterest_sdk/models/item_group_id_filter.rb +223 -0
- data/lib/pinterest_sdk/models/item_id_filter.rb +223 -0
- data/lib/pinterest_sdk/models/item_processing_record.rb +253 -0
- data/lib/pinterest_sdk/models/item_processing_status.rb +38 -0
- data/lib/pinterest_sdk/models/item_validation_event.rb +240 -0
- data/lib/pinterest_sdk/models/language.rb +96 -0
- data/lib/pinterest_sdk/models/max_price_filter.rb +223 -0
- data/lib/pinterest_sdk/models/media_upload.rb +255 -0
- data/lib/pinterest_sdk/models/media_upload_all_of.rb +247 -0
- data/lib/pinterest_sdk/models/media_upload_all_of_upload_parameters.rb +282 -0
- data/lib/pinterest_sdk/models/media_upload_details.rb +254 -0
- data/lib/pinterest_sdk/models/media_upload_request.rb +224 -0
- data/lib/pinterest_sdk/models/media_upload_status.rb +39 -0
- data/lib/pinterest_sdk/models/media_upload_type.rb +36 -0
- data/lib/pinterest_sdk/models/metrics_reporting_level.rb +47 -0
- data/lib/pinterest_sdk/models/min_price_filter.rb +223 -0
- data/lib/pinterest_sdk/models/non_nullable_catalogs_currency.rb +198 -0
- data/lib/pinterest_sdk/models/nullable_currency.rb +199 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_code.rb +272 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_code_all_of.rb +237 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_refresh.rb +267 -0
- data/lib/pinterest_sdk/models/oauth_access_token_request_refresh_all_of.rb +232 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response.rb +316 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_code.rb +272 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_code_all_of.rb +237 -0
- data/lib/pinterest_sdk/models/oauth_access_token_response_refresh.rb +243 -0
- data/lib/pinterest_sdk/models/objective_type.rb +43 -0
- data/lib/pinterest_sdk/models/pacing_delivery_type.rb +37 -0
- data/lib/pinterest_sdk/models/paginated.rb +235 -0
- data/lib/pinterest_sdk/models/pin.rb +359 -0
- data/lib/pinterest_sdk/models/pin_media.rb +224 -0
- data/lib/pinterest_sdk/models/pin_media_source.rb +58 -0
- data/lib/pinterest_sdk/models/pin_media_source_image_base64.rb +319 -0
- data/lib/pinterest_sdk/models/pin_media_source_image_url.rb +272 -0
- data/lib/pinterest_sdk/models/pin_media_source_video_id.rb +307 -0
- data/lib/pinterest_sdk/models/pin_media_with_image.rb +233 -0
- data/lib/pinterest_sdk/models/pin_media_with_image_all_of.rb +220 -0
- data/lib/pinterest_sdk/models/pin_promotion_summary_status.rb +41 -0
- data/lib/pinterest_sdk/models/placement_group_type.rb +39 -0
- data/lib/pinterest_sdk/models/product_availability_type.rb +39 -0
- data/lib/pinterest_sdk/models/product_group_summary_status.rb +39 -0
- data/lib/pinterest_sdk/models/product_type0_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type1_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type2_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type3_filter.rb +223 -0
- data/lib/pinterest_sdk/models/product_type4_filter.rb +223 -0
- data/lib/pinterest_sdk/models/reporting_column_async.rb +549 -0
- data/lib/pinterest_sdk/models/targeting_type_filter.rb +245 -0
- data/lib/pinterest_sdk/models/tracking_urls.rb +340 -0
- data/lib/pinterest_sdk/version.rb +15 -0
- data/lib/pinterest_sdk.rb +192 -0
- data/pinterest_sdk.gemspec +38 -0
- data/spec/api/ad_accounts_api_spec.rb +234 -0
- data/spec/api/boards_api_spec.rb +181 -0
- data/spec/api/catalogs_api_spec.rb +200 -0
- data/spec/api/media_api_spec.rb +72 -0
- data/spec/api/oauth_api_spec.rb +47 -0
- data/spec/api/pins_api_spec.rb +90 -0
- data/spec/api/user_account_api_spec.rb +66 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_spec.rb +56 -0
- data/spec/models/action_type_spec.rb +28 -0
- data/spec/models/ad_account_owner_spec.rb +34 -0
- data/spec/models/ad_account_spec.rb +58 -0
- data/spec/models/ad_group_response_all_of1_spec.rb +70 -0
- data/spec/models/ad_group_response_all_of_spec.rb +132 -0
- data/spec/models/ad_group_response_spec.rb +174 -0
- data/spec/models/ad_group_summary_status_spec.rb +28 -0
- data/spec/models/ad_response_all_of1_spec.rb +102 -0
- data/spec/models/ad_response_all_of_spec.rb +128 -0
- data/spec/models/ad_response_spec.rb +202 -0
- data/spec/models/ads_analytics_create_async_request_all_of1_spec.rb +46 -0
- data/spec/models/ads_analytics_create_async_request_all_of_spec.rb +76 -0
- data/spec/models/ads_analytics_create_async_request_spec.rb +166 -0
- data/spec/models/ads_analytics_create_async_response_spec.rb +46 -0
- data/spec/models/ads_analytics_filter_column_spec.rb +28 -0
- data/spec/models/ads_analytics_filter_operator_spec.rb +28 -0
- data/spec/models/ads_analytics_get_async_response_spec.rb +46 -0
- data/spec/models/ads_analytics_metrics_filter_spec.rb +46 -0
- data/spec/models/ads_analytics_targeting_type_spec.rb +28 -0
- data/spec/models/analytics_metrics_response_daily_metrics_spec.rb +50 -0
- data/spec/models/analytics_metrics_response_spec.rb +40 -0
- data/spec/models/availability_filter_spec.rb +34 -0
- data/spec/models/batch_operation_spec.rb +28 -0
- data/spec/models/batch_operation_status_spec.rb +28 -0
- data/spec/models/board_owner_spec.rb +34 -0
- data/spec/models/board_section_spec.rb +40 -0
- data/spec/models/board_spec.rb +62 -0
- data/spec/models/board_update_spec.rb +50 -0
- data/spec/models/brand_filter_spec.rb +34 -0
- data/spec/models/campaign_common_spec.rb +82 -0
- data/spec/models/campaign_response_all_of1_spec.rb +52 -0
- data/spec/models/campaign_response_all_of_spec.rb +34 -0
- data/spec/models/campaign_response_spec.rb +112 -0
- data/spec/models/campaign_summary_status_spec.rb +28 -0
- data/spec/models/catalogs_db_item_spec.rb +46 -0
- data/spec/models/catalogs_feed_credentials_spec.rb +40 -0
- data/spec/models/catalogs_feed_ingestion_details_spec.rb +40 -0
- data/spec/models/catalogs_feed_ingestion_errors_spec.rb +62 -0
- data/spec/models/catalogs_feed_ingestion_info_spec.rb +46 -0
- data/spec/models/catalogs_feed_processing_result_fields_spec.rb +52 -0
- data/spec/models/catalogs_feed_processing_result_spec.rb +70 -0
- data/spec/models/catalogs_feed_processing_schedule_spec.rb +44 -0
- data/spec/models/catalogs_feed_processing_status_spec.rb +28 -0
- data/spec/models/catalogs_feed_product_counts_spec.rb +34 -0
- data/spec/models/catalogs_feed_spec.rb +106 -0
- data/spec/models/catalogs_feed_validation_details_spec.rb +40 -0
- data/spec/models/catalogs_feed_validation_errors_spec.rb +232 -0
- data/spec/models/catalogs_feed_validation_warnings_spec.rb +298 -0
- data/spec/models/catalogs_feeds_create_request_spec.rb +82 -0
- data/spec/models/catalogs_feeds_update_request_spec.rb +76 -0
- data/spec/models/catalogs_format_spec.rb +28 -0
- data/spec/models/catalogs_items_batch_request_spec.rb +52 -0
- data/spec/models/catalogs_items_batch_spec.rb +58 -0
- data/spec/models/catalogs_items_spec.rb +34 -0
- data/spec/models/catalogs_product_group_create_request_spec.rb +52 -0
- data/spec/models/catalogs_product_group_currency_criteria_spec.rb +40 -0
- data/spec/models/catalogs_product_group_filter_keys_spec.rb +184 -0
- data/spec/models/catalogs_product_group_filters_all_of_spec.rb +34 -0
- data/spec/models/catalogs_product_group_filters_any_of_spec.rb +34 -0
- data/spec/models/catalogs_product_group_filters_spec.rb +40 -0
- data/spec/models/catalogs_product_group_multiple_string_criteria_spec.rb +40 -0
- data/spec/models/catalogs_product_group_multiple_string_list_criteria_spec.rb +40 -0
- data/spec/models/catalogs_product_group_pricing_criteria_spec.rb +46 -0
- data/spec/models/catalogs_product_group_spec.rb +82 -0
- data/spec/models/catalogs_product_group_status_spec.rb +28 -0
- data/spec/models/catalogs_product_group_type_spec.rb +28 -0
- data/spec/models/catalogs_product_group_update_request_spec.rb +52 -0
- data/spec/models/catalogs_status_spec.rb +28 -0
- data/spec/models/condition_filter_spec.rb +34 -0
- data/spec/models/conversion_attribution_window_days_spec.rb +28 -0
- data/spec/models/conversion_report_attribution_type_spec.rb +28 -0
- data/spec/models/conversion_report_time_type_spec.rb +28 -0
- data/spec/models/country_spec.rb +28 -0
- data/spec/models/currency_filter_spec.rb +34 -0
- data/spec/models/currency_spec.rb +28 -0
- data/spec/models/custom_label0_filter_spec.rb +34 -0
- data/spec/models/custom_label1_filter_spec.rb +34 -0
- data/spec/models/custom_label2_filter_spec.rb +34 -0
- data/spec/models/custom_label3_filter_spec.rb +34 -0
- data/spec/models/custom_label4_filter_spec.rb +34 -0
- data/spec/models/data_output_format_spec.rb +28 -0
- data/spec/models/entity_status_spec.rb +28 -0
- data/spec/models/error_spec.rb +40 -0
- data/spec/models/feed_fields_spec.rb +88 -0
- data/spec/models/gender_filter_spec.rb +34 -0
- data/spec/models/google_product_category0_filter_spec.rb +34 -0
- data/spec/models/google_product_category1_filter_spec.rb +34 -0
- data/spec/models/google_product_category2_filter_spec.rb +34 -0
- data/spec/models/google_product_category3_filter_spec.rb +34 -0
- data/spec/models/google_product_category4_filter_spec.rb +34 -0
- data/spec/models/google_product_category5_filter_spec.rb +34 -0
- data/spec/models/google_product_category6_filter_spec.rb +34 -0
- data/spec/models/granularity_spec.rb +28 -0
- data/spec/models/image_details_spec.rb +46 -0
- data/spec/models/item_attributes_spec.rb +292 -0
- data/spec/models/item_batch_record_spec.rb +40 -0
- data/spec/models/item_group_id_filter_spec.rb +34 -0
- data/spec/models/item_id_filter_spec.rb +34 -0
- data/spec/models/item_processing_record_spec.rb +52 -0
- data/spec/models/item_processing_status_spec.rb +28 -0
- data/spec/models/item_validation_event_spec.rb +46 -0
- data/spec/models/language_spec.rb +28 -0
- data/spec/models/max_price_filter_spec.rb +34 -0
- data/spec/models/media_upload_all_of_spec.rb +52 -0
- data/spec/models/media_upload_all_of_upload_parameters_spec.rb +76 -0
- data/spec/models/media_upload_details_spec.rb +46 -0
- data/spec/models/media_upload_request_spec.rb +34 -0
- data/spec/models/media_upload_spec.rb +52 -0
- data/spec/models/media_upload_status_spec.rb +28 -0
- data/spec/models/media_upload_type_spec.rb +28 -0
- data/spec/models/metrics_reporting_level_spec.rb +28 -0
- data/spec/models/min_price_filter_spec.rb +34 -0
- data/spec/models/non_nullable_catalogs_currency_spec.rb +28 -0
- data/spec/models/nullable_currency_spec.rb +28 -0
- data/spec/models/oauth_access_token_request_code_all_of_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_code_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_refresh_all_of_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_refresh_spec.rb +40 -0
- data/spec/models/oauth_access_token_request_spec.rb +38 -0
- data/spec/models/oauth_access_token_response_code_all_of_spec.rb +40 -0
- data/spec/models/oauth_access_token_response_code_spec.rb +40 -0
- data/spec/models/oauth_access_token_response_refresh_spec.rb +28 -0
- data/spec/models/oauth_access_token_response_spec.rb +62 -0
- data/spec/models/objective_type_spec.rb +28 -0
- data/spec/models/pacing_delivery_type_spec.rb +28 -0
- data/spec/models/paginated_spec.rb +40 -0
- data/spec/models/pin_media_source_image_base64_spec.rb +54 -0
- data/spec/models/pin_media_source_image_url_spec.rb +44 -0
- data/spec/models/pin_media_source_spec.rb +43 -0
- data/spec/models/pin_media_source_video_id_spec.rb +50 -0
- data/spec/models/pin_media_spec.rb +34 -0
- data/spec/models/pin_media_with_image_all_of_spec.rb +34 -0
- data/spec/models/pin_media_with_image_spec.rb +34 -0
- data/spec/models/pin_promotion_summary_status_spec.rb +28 -0
- data/spec/models/pin_spec.rb +94 -0
- data/spec/models/placement_group_type_spec.rb +28 -0
- data/spec/models/product_availability_type_spec.rb +28 -0
- data/spec/models/product_group_summary_status_spec.rb +28 -0
- data/spec/models/product_type0_filter_spec.rb +34 -0
- data/spec/models/product_type1_filter_spec.rb +34 -0
- data/spec/models/product_type2_filter_spec.rb +34 -0
- data/spec/models/product_type3_filter_spec.rb +34 -0
- data/spec/models/product_type4_filter_spec.rb +34 -0
- data/spec/models/reporting_column_async_spec.rb +28 -0
- data/spec/models/targeting_type_filter_spec.rb +34 -0
- data/spec/models/tracking_urls_spec.rb +58 -0
- data/spec/spec_helper.rb +111 -0
- metadata +726 -0
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pinterest REST API
|
|
3
|
+
|
|
4
|
+
#Pinterest's REST API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 5.3.0
|
|
7
|
+
Contact: pinterest-api@pinterest.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PinterestSdkClient
|
|
17
|
+
class CatalogsFeedValidationWarnings
|
|
18
|
+
attr_accessor :title_length_too_long
|
|
19
|
+
|
|
20
|
+
attr_accessor :description_length_too_long
|
|
21
|
+
|
|
22
|
+
attr_accessor :gender_invalid
|
|
23
|
+
|
|
24
|
+
attr_accessor :age_group_invalid
|
|
25
|
+
|
|
26
|
+
attr_accessor :size_type_invalid
|
|
27
|
+
|
|
28
|
+
attr_accessor :link_format_warning
|
|
29
|
+
|
|
30
|
+
attr_accessor :duplicate_products
|
|
31
|
+
|
|
32
|
+
attr_accessor :duplicate_links
|
|
33
|
+
|
|
34
|
+
attr_accessor :sales_price_invalid
|
|
35
|
+
|
|
36
|
+
attr_accessor :product_category_depth_warning
|
|
37
|
+
|
|
38
|
+
attr_accessor :adwords_same_as_link
|
|
39
|
+
|
|
40
|
+
attr_accessor :duplicate_headers
|
|
41
|
+
|
|
42
|
+
attr_accessor :fetch_same_signature
|
|
43
|
+
|
|
44
|
+
attr_accessor :adwords_format_warning
|
|
45
|
+
|
|
46
|
+
attr_accessor :additional_image_link_warning
|
|
47
|
+
|
|
48
|
+
attr_accessor :image_link_warning
|
|
49
|
+
|
|
50
|
+
attr_accessor :shipping_invalid
|
|
51
|
+
|
|
52
|
+
attr_accessor :tax_invalid
|
|
53
|
+
|
|
54
|
+
attr_accessor :shipping_weight_invalid
|
|
55
|
+
|
|
56
|
+
attr_accessor :expiration_date_invalid
|
|
57
|
+
|
|
58
|
+
attr_accessor :availability_date_invalid
|
|
59
|
+
|
|
60
|
+
attr_accessor :sale_date_invalid
|
|
61
|
+
|
|
62
|
+
attr_accessor :weight_unit_invalid
|
|
63
|
+
|
|
64
|
+
attr_accessor :is_bundle_invalid
|
|
65
|
+
|
|
66
|
+
attr_accessor :updated_time_invalid
|
|
67
|
+
|
|
68
|
+
attr_accessor :custom_label_length_too_long
|
|
69
|
+
|
|
70
|
+
attr_accessor :product_type_length_too_long
|
|
71
|
+
|
|
72
|
+
attr_accessor :too_many_additional_image_links
|
|
73
|
+
|
|
74
|
+
attr_accessor :multipack_invalid
|
|
75
|
+
|
|
76
|
+
attr_accessor :indexed_product_count_large_delta
|
|
77
|
+
|
|
78
|
+
attr_accessor :item_additional_image_download_failure
|
|
79
|
+
|
|
80
|
+
attr_accessor :optional_product_category_missing
|
|
81
|
+
|
|
82
|
+
attr_accessor :optional_product_category_invalid
|
|
83
|
+
|
|
84
|
+
attr_accessor :optional_condition_missing
|
|
85
|
+
|
|
86
|
+
attr_accessor :optional_condition_invalid
|
|
87
|
+
|
|
88
|
+
attr_accessor :ios_deep_link_invalid
|
|
89
|
+
|
|
90
|
+
attr_accessor :android_deep_link_invalid
|
|
91
|
+
|
|
92
|
+
attr_accessor :availability_normalized
|
|
93
|
+
|
|
94
|
+
attr_accessor :condition_normalized
|
|
95
|
+
|
|
96
|
+
attr_accessor :gender_normalized
|
|
97
|
+
|
|
98
|
+
attr_accessor :size_type_normalized
|
|
99
|
+
|
|
100
|
+
attr_accessor :age_group_normalized
|
|
101
|
+
|
|
102
|
+
attr_accessor :utm_source_auto_corrected
|
|
103
|
+
|
|
104
|
+
attr_accessor :country_does_not_map_to_currency
|
|
105
|
+
|
|
106
|
+
attr_accessor :min_ad_price_invalid
|
|
107
|
+
|
|
108
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
109
|
+
def self.attribute_map
|
|
110
|
+
{
|
|
111
|
+
:'title_length_too_long' => :'title_length_too_long',
|
|
112
|
+
:'description_length_too_long' => :'description_length_too_long',
|
|
113
|
+
:'gender_invalid' => :'gender_invalid',
|
|
114
|
+
:'age_group_invalid' => :'age_group_invalid',
|
|
115
|
+
:'size_type_invalid' => :'size_type_invalid',
|
|
116
|
+
:'link_format_warning' => :'link_format_warning',
|
|
117
|
+
:'duplicate_products' => :'duplicate_products',
|
|
118
|
+
:'duplicate_links' => :'duplicate_links',
|
|
119
|
+
:'sales_price_invalid' => :'sales_price_invalid',
|
|
120
|
+
:'product_category_depth_warning' => :'product_category_depth_warning',
|
|
121
|
+
:'adwords_same_as_link' => :'adwords_same_as_link',
|
|
122
|
+
:'duplicate_headers' => :'duplicate_headers',
|
|
123
|
+
:'fetch_same_signature' => :'fetch_same_signature',
|
|
124
|
+
:'adwords_format_warning' => :'adwords_format_warning',
|
|
125
|
+
:'additional_image_link_warning' => :'additional_image_link_warning',
|
|
126
|
+
:'image_link_warning' => :'image_link_warning',
|
|
127
|
+
:'shipping_invalid' => :'shipping_invalid',
|
|
128
|
+
:'tax_invalid' => :'tax_invalid',
|
|
129
|
+
:'shipping_weight_invalid' => :'shipping_weight_invalid',
|
|
130
|
+
:'expiration_date_invalid' => :'expiration_date_invalid',
|
|
131
|
+
:'availability_date_invalid' => :'availability_date_invalid',
|
|
132
|
+
:'sale_date_invalid' => :'sale_date_invalid',
|
|
133
|
+
:'weight_unit_invalid' => :'weight_unit_invalid',
|
|
134
|
+
:'is_bundle_invalid' => :'is_bundle_invalid',
|
|
135
|
+
:'updated_time_invalid' => :'updated_time_invalid',
|
|
136
|
+
:'custom_label_length_too_long' => :'custom_label_length_too_long',
|
|
137
|
+
:'product_type_length_too_long' => :'product_type_length_too_long',
|
|
138
|
+
:'too_many_additional_image_links' => :'too_many_additional_image_links',
|
|
139
|
+
:'multipack_invalid' => :'multipack_invalid',
|
|
140
|
+
:'indexed_product_count_large_delta' => :'indexed_product_count_large_delta',
|
|
141
|
+
:'item_additional_image_download_failure' => :'item_additional_image_download_failure',
|
|
142
|
+
:'optional_product_category_missing' => :'optional_product_category_missing',
|
|
143
|
+
:'optional_product_category_invalid' => :'optional_product_category_invalid',
|
|
144
|
+
:'optional_condition_missing' => :'optional_condition_missing',
|
|
145
|
+
:'optional_condition_invalid' => :'optional_condition_invalid',
|
|
146
|
+
:'ios_deep_link_invalid' => :'ios_deep_link_invalid',
|
|
147
|
+
:'android_deep_link_invalid' => :'android_deep_link_invalid',
|
|
148
|
+
:'availability_normalized' => :'availability_normalized',
|
|
149
|
+
:'condition_normalized' => :'condition_normalized',
|
|
150
|
+
:'gender_normalized' => :'gender_normalized',
|
|
151
|
+
:'size_type_normalized' => :'size_type_normalized',
|
|
152
|
+
:'age_group_normalized' => :'age_group_normalized',
|
|
153
|
+
:'utm_source_auto_corrected' => :'utm_source_auto_corrected',
|
|
154
|
+
:'country_does_not_map_to_currency' => :'country_does_not_map_to_currency',
|
|
155
|
+
:'min_ad_price_invalid' => :'min_ad_price_invalid'
|
|
156
|
+
}
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Returns all the JSON keys this model knows about
|
|
160
|
+
def self.acceptable_attributes
|
|
161
|
+
attribute_map.values
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Attribute type mapping.
|
|
165
|
+
def self.openapi_types
|
|
166
|
+
{
|
|
167
|
+
:'title_length_too_long' => :'Integer',
|
|
168
|
+
:'description_length_too_long' => :'Integer',
|
|
169
|
+
:'gender_invalid' => :'Integer',
|
|
170
|
+
:'age_group_invalid' => :'Integer',
|
|
171
|
+
:'size_type_invalid' => :'Integer',
|
|
172
|
+
:'link_format_warning' => :'Integer',
|
|
173
|
+
:'duplicate_products' => :'Integer',
|
|
174
|
+
:'duplicate_links' => :'Integer',
|
|
175
|
+
:'sales_price_invalid' => :'Integer',
|
|
176
|
+
:'product_category_depth_warning' => :'Integer',
|
|
177
|
+
:'adwords_same_as_link' => :'Integer',
|
|
178
|
+
:'duplicate_headers' => :'Integer',
|
|
179
|
+
:'fetch_same_signature' => :'Integer',
|
|
180
|
+
:'adwords_format_warning' => :'Integer',
|
|
181
|
+
:'additional_image_link_warning' => :'Integer',
|
|
182
|
+
:'image_link_warning' => :'Integer',
|
|
183
|
+
:'shipping_invalid' => :'Integer',
|
|
184
|
+
:'tax_invalid' => :'Integer',
|
|
185
|
+
:'shipping_weight_invalid' => :'Integer',
|
|
186
|
+
:'expiration_date_invalid' => :'Integer',
|
|
187
|
+
:'availability_date_invalid' => :'Integer',
|
|
188
|
+
:'sale_date_invalid' => :'Integer',
|
|
189
|
+
:'weight_unit_invalid' => :'Integer',
|
|
190
|
+
:'is_bundle_invalid' => :'Integer',
|
|
191
|
+
:'updated_time_invalid' => :'Integer',
|
|
192
|
+
:'custom_label_length_too_long' => :'Integer',
|
|
193
|
+
:'product_type_length_too_long' => :'Integer',
|
|
194
|
+
:'too_many_additional_image_links' => :'Integer',
|
|
195
|
+
:'multipack_invalid' => :'Integer',
|
|
196
|
+
:'indexed_product_count_large_delta' => :'Integer',
|
|
197
|
+
:'item_additional_image_download_failure' => :'Integer',
|
|
198
|
+
:'optional_product_category_missing' => :'Integer',
|
|
199
|
+
:'optional_product_category_invalid' => :'Integer',
|
|
200
|
+
:'optional_condition_missing' => :'Integer',
|
|
201
|
+
:'optional_condition_invalid' => :'Integer',
|
|
202
|
+
:'ios_deep_link_invalid' => :'Integer',
|
|
203
|
+
:'android_deep_link_invalid' => :'Integer',
|
|
204
|
+
:'availability_normalized' => :'Integer',
|
|
205
|
+
:'condition_normalized' => :'Integer',
|
|
206
|
+
:'gender_normalized' => :'Integer',
|
|
207
|
+
:'size_type_normalized' => :'Integer',
|
|
208
|
+
:'age_group_normalized' => :'Integer',
|
|
209
|
+
:'utm_source_auto_corrected' => :'Integer',
|
|
210
|
+
:'country_does_not_map_to_currency' => :'Integer',
|
|
211
|
+
:'min_ad_price_invalid' => :'Integer'
|
|
212
|
+
}
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# List of attributes with nullable: true
|
|
216
|
+
def self.openapi_nullable
|
|
217
|
+
Set.new([
|
|
218
|
+
])
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Initializes the object
|
|
222
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
223
|
+
def initialize(attributes = {})
|
|
224
|
+
if (!attributes.is_a?(Hash))
|
|
225
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PinterestSdkClient::CatalogsFeedValidationWarnings` initialize method"
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
229
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
230
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
231
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PinterestSdkClient::CatalogsFeedValidationWarnings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
232
|
+
end
|
|
233
|
+
h[k.to_sym] = v
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'title_length_too_long')
|
|
237
|
+
self.title_length_too_long = attributes[:'title_length_too_long']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'description_length_too_long')
|
|
241
|
+
self.description_length_too_long = attributes[:'description_length_too_long']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'gender_invalid')
|
|
245
|
+
self.gender_invalid = attributes[:'gender_invalid']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'age_group_invalid')
|
|
249
|
+
self.age_group_invalid = attributes[:'age_group_invalid']
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if attributes.key?(:'size_type_invalid')
|
|
253
|
+
self.size_type_invalid = attributes[:'size_type_invalid']
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if attributes.key?(:'link_format_warning')
|
|
257
|
+
self.link_format_warning = attributes[:'link_format_warning']
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.key?(:'duplicate_products')
|
|
261
|
+
self.duplicate_products = attributes[:'duplicate_products']
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if attributes.key?(:'duplicate_links')
|
|
265
|
+
self.duplicate_links = attributes[:'duplicate_links']
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'sales_price_invalid')
|
|
269
|
+
self.sales_price_invalid = attributes[:'sales_price_invalid']
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'product_category_depth_warning')
|
|
273
|
+
self.product_category_depth_warning = attributes[:'product_category_depth_warning']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'adwords_same_as_link')
|
|
277
|
+
self.adwords_same_as_link = attributes[:'adwords_same_as_link']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'duplicate_headers')
|
|
281
|
+
self.duplicate_headers = attributes[:'duplicate_headers']
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.key?(:'fetch_same_signature')
|
|
285
|
+
self.fetch_same_signature = attributes[:'fetch_same_signature']
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if attributes.key?(:'adwords_format_warning')
|
|
289
|
+
self.adwords_format_warning = attributes[:'adwords_format_warning']
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if attributes.key?(:'additional_image_link_warning')
|
|
293
|
+
self.additional_image_link_warning = attributes[:'additional_image_link_warning']
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if attributes.key?(:'image_link_warning')
|
|
297
|
+
self.image_link_warning = attributes[:'image_link_warning']
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if attributes.key?(:'shipping_invalid')
|
|
301
|
+
self.shipping_invalid = attributes[:'shipping_invalid']
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if attributes.key?(:'tax_invalid')
|
|
305
|
+
self.tax_invalid = attributes[:'tax_invalid']
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if attributes.key?(:'shipping_weight_invalid')
|
|
309
|
+
self.shipping_weight_invalid = attributes[:'shipping_weight_invalid']
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
if attributes.key?(:'expiration_date_invalid')
|
|
313
|
+
self.expiration_date_invalid = attributes[:'expiration_date_invalid']
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if attributes.key?(:'availability_date_invalid')
|
|
317
|
+
self.availability_date_invalid = attributes[:'availability_date_invalid']
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
if attributes.key?(:'sale_date_invalid')
|
|
321
|
+
self.sale_date_invalid = attributes[:'sale_date_invalid']
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
if attributes.key?(:'weight_unit_invalid')
|
|
325
|
+
self.weight_unit_invalid = attributes[:'weight_unit_invalid']
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if attributes.key?(:'is_bundle_invalid')
|
|
329
|
+
self.is_bundle_invalid = attributes[:'is_bundle_invalid']
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if attributes.key?(:'updated_time_invalid')
|
|
333
|
+
self.updated_time_invalid = attributes[:'updated_time_invalid']
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if attributes.key?(:'custom_label_length_too_long')
|
|
337
|
+
self.custom_label_length_too_long = attributes[:'custom_label_length_too_long']
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if attributes.key?(:'product_type_length_too_long')
|
|
341
|
+
self.product_type_length_too_long = attributes[:'product_type_length_too_long']
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
if attributes.key?(:'too_many_additional_image_links')
|
|
345
|
+
self.too_many_additional_image_links = attributes[:'too_many_additional_image_links']
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
if attributes.key?(:'multipack_invalid')
|
|
349
|
+
self.multipack_invalid = attributes[:'multipack_invalid']
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
if attributes.key?(:'indexed_product_count_large_delta')
|
|
353
|
+
self.indexed_product_count_large_delta = attributes[:'indexed_product_count_large_delta']
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
if attributes.key?(:'item_additional_image_download_failure')
|
|
357
|
+
self.item_additional_image_download_failure = attributes[:'item_additional_image_download_failure']
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
if attributes.key?(:'optional_product_category_missing')
|
|
361
|
+
self.optional_product_category_missing = attributes[:'optional_product_category_missing']
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
if attributes.key?(:'optional_product_category_invalid')
|
|
365
|
+
self.optional_product_category_invalid = attributes[:'optional_product_category_invalid']
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
if attributes.key?(:'optional_condition_missing')
|
|
369
|
+
self.optional_condition_missing = attributes[:'optional_condition_missing']
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
if attributes.key?(:'optional_condition_invalid')
|
|
373
|
+
self.optional_condition_invalid = attributes[:'optional_condition_invalid']
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
if attributes.key?(:'ios_deep_link_invalid')
|
|
377
|
+
self.ios_deep_link_invalid = attributes[:'ios_deep_link_invalid']
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
if attributes.key?(:'android_deep_link_invalid')
|
|
381
|
+
self.android_deep_link_invalid = attributes[:'android_deep_link_invalid']
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
if attributes.key?(:'availability_normalized')
|
|
385
|
+
self.availability_normalized = attributes[:'availability_normalized']
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
if attributes.key?(:'condition_normalized')
|
|
389
|
+
self.condition_normalized = attributes[:'condition_normalized']
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
if attributes.key?(:'gender_normalized')
|
|
393
|
+
self.gender_normalized = attributes[:'gender_normalized']
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
if attributes.key?(:'size_type_normalized')
|
|
397
|
+
self.size_type_normalized = attributes[:'size_type_normalized']
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
if attributes.key?(:'age_group_normalized')
|
|
401
|
+
self.age_group_normalized = attributes[:'age_group_normalized']
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
if attributes.key?(:'utm_source_auto_corrected')
|
|
405
|
+
self.utm_source_auto_corrected = attributes[:'utm_source_auto_corrected']
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
if attributes.key?(:'country_does_not_map_to_currency')
|
|
409
|
+
self.country_does_not_map_to_currency = attributes[:'country_does_not_map_to_currency']
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if attributes.key?(:'min_ad_price_invalid')
|
|
413
|
+
self.min_ad_price_invalid = attributes[:'min_ad_price_invalid']
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
418
|
+
# @return Array for valid properties with the reasons
|
|
419
|
+
def list_invalid_properties
|
|
420
|
+
invalid_properties = Array.new
|
|
421
|
+
invalid_properties
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Check to see if the all the properties in the model are valid
|
|
425
|
+
# @return true if the model is valid
|
|
426
|
+
def valid?
|
|
427
|
+
true
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Checks equality by comparing each attribute.
|
|
431
|
+
# @param [Object] Object to be compared
|
|
432
|
+
def ==(o)
|
|
433
|
+
return true if self.equal?(o)
|
|
434
|
+
self.class == o.class &&
|
|
435
|
+
title_length_too_long == o.title_length_too_long &&
|
|
436
|
+
description_length_too_long == o.description_length_too_long &&
|
|
437
|
+
gender_invalid == o.gender_invalid &&
|
|
438
|
+
age_group_invalid == o.age_group_invalid &&
|
|
439
|
+
size_type_invalid == o.size_type_invalid &&
|
|
440
|
+
link_format_warning == o.link_format_warning &&
|
|
441
|
+
duplicate_products == o.duplicate_products &&
|
|
442
|
+
duplicate_links == o.duplicate_links &&
|
|
443
|
+
sales_price_invalid == o.sales_price_invalid &&
|
|
444
|
+
product_category_depth_warning == o.product_category_depth_warning &&
|
|
445
|
+
adwords_same_as_link == o.adwords_same_as_link &&
|
|
446
|
+
duplicate_headers == o.duplicate_headers &&
|
|
447
|
+
fetch_same_signature == o.fetch_same_signature &&
|
|
448
|
+
adwords_format_warning == o.adwords_format_warning &&
|
|
449
|
+
additional_image_link_warning == o.additional_image_link_warning &&
|
|
450
|
+
image_link_warning == o.image_link_warning &&
|
|
451
|
+
shipping_invalid == o.shipping_invalid &&
|
|
452
|
+
tax_invalid == o.tax_invalid &&
|
|
453
|
+
shipping_weight_invalid == o.shipping_weight_invalid &&
|
|
454
|
+
expiration_date_invalid == o.expiration_date_invalid &&
|
|
455
|
+
availability_date_invalid == o.availability_date_invalid &&
|
|
456
|
+
sale_date_invalid == o.sale_date_invalid &&
|
|
457
|
+
weight_unit_invalid == o.weight_unit_invalid &&
|
|
458
|
+
is_bundle_invalid == o.is_bundle_invalid &&
|
|
459
|
+
updated_time_invalid == o.updated_time_invalid &&
|
|
460
|
+
custom_label_length_too_long == o.custom_label_length_too_long &&
|
|
461
|
+
product_type_length_too_long == o.product_type_length_too_long &&
|
|
462
|
+
too_many_additional_image_links == o.too_many_additional_image_links &&
|
|
463
|
+
multipack_invalid == o.multipack_invalid &&
|
|
464
|
+
indexed_product_count_large_delta == o.indexed_product_count_large_delta &&
|
|
465
|
+
item_additional_image_download_failure == o.item_additional_image_download_failure &&
|
|
466
|
+
optional_product_category_missing == o.optional_product_category_missing &&
|
|
467
|
+
optional_product_category_invalid == o.optional_product_category_invalid &&
|
|
468
|
+
optional_condition_missing == o.optional_condition_missing &&
|
|
469
|
+
optional_condition_invalid == o.optional_condition_invalid &&
|
|
470
|
+
ios_deep_link_invalid == o.ios_deep_link_invalid &&
|
|
471
|
+
android_deep_link_invalid == o.android_deep_link_invalid &&
|
|
472
|
+
availability_normalized == o.availability_normalized &&
|
|
473
|
+
condition_normalized == o.condition_normalized &&
|
|
474
|
+
gender_normalized == o.gender_normalized &&
|
|
475
|
+
size_type_normalized == o.size_type_normalized &&
|
|
476
|
+
age_group_normalized == o.age_group_normalized &&
|
|
477
|
+
utm_source_auto_corrected == o.utm_source_auto_corrected &&
|
|
478
|
+
country_does_not_map_to_currency == o.country_does_not_map_to_currency &&
|
|
479
|
+
min_ad_price_invalid == o.min_ad_price_invalid
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# @see the `==` method
|
|
483
|
+
# @param [Object] Object to be compared
|
|
484
|
+
def eql?(o)
|
|
485
|
+
self == o
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# Calculates hash code according to all attributes.
|
|
489
|
+
# @return [Integer] Hash code
|
|
490
|
+
def hash
|
|
491
|
+
[title_length_too_long, description_length_too_long, gender_invalid, age_group_invalid, size_type_invalid, link_format_warning, duplicate_products, duplicate_links, sales_price_invalid, product_category_depth_warning, adwords_same_as_link, duplicate_headers, fetch_same_signature, adwords_format_warning, additional_image_link_warning, image_link_warning, shipping_invalid, tax_invalid, shipping_weight_invalid, expiration_date_invalid, availability_date_invalid, sale_date_invalid, weight_unit_invalid, is_bundle_invalid, updated_time_invalid, custom_label_length_too_long, product_type_length_too_long, too_many_additional_image_links, multipack_invalid, indexed_product_count_large_delta, item_additional_image_download_failure, optional_product_category_missing, optional_product_category_invalid, optional_condition_missing, optional_condition_invalid, ios_deep_link_invalid, android_deep_link_invalid, availability_normalized, condition_normalized, gender_normalized, size_type_normalized, age_group_normalized, utm_source_auto_corrected, country_does_not_map_to_currency, min_ad_price_invalid].hash
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# Builds the object from hash
|
|
495
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
496
|
+
# @return [Object] Returns the model itself
|
|
497
|
+
def self.build_from_hash(attributes)
|
|
498
|
+
new.build_from_hash(attributes)
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Builds the object from hash
|
|
502
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
503
|
+
# @return [Object] Returns the model itself
|
|
504
|
+
def build_from_hash(attributes)
|
|
505
|
+
return nil unless attributes.is_a?(Hash)
|
|
506
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
507
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
508
|
+
self.send("#{key}=", nil)
|
|
509
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
510
|
+
# check to ensure the input is an array given that the attribute
|
|
511
|
+
# is documented as an array but the input is not
|
|
512
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
513
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
514
|
+
end
|
|
515
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
516
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
517
|
+
end
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
self
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# Deserializes the data based on type
|
|
524
|
+
# @param string type Data type
|
|
525
|
+
# @param string value Value to be deserialized
|
|
526
|
+
# @return [Object] Deserialized data
|
|
527
|
+
def _deserialize(type, value)
|
|
528
|
+
case type.to_sym
|
|
529
|
+
when :Time
|
|
530
|
+
Time.parse(value)
|
|
531
|
+
when :Date
|
|
532
|
+
Date.parse(value)
|
|
533
|
+
when :String
|
|
534
|
+
value.to_s
|
|
535
|
+
when :Integer
|
|
536
|
+
value.to_i
|
|
537
|
+
when :Float
|
|
538
|
+
value.to_f
|
|
539
|
+
when :Boolean
|
|
540
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
541
|
+
true
|
|
542
|
+
else
|
|
543
|
+
false
|
|
544
|
+
end
|
|
545
|
+
when :Object
|
|
546
|
+
# generic object (usually a Hash), return directly
|
|
547
|
+
value
|
|
548
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
549
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
550
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
551
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
552
|
+
k_type = Regexp.last_match[:k_type]
|
|
553
|
+
v_type = Regexp.last_match[:v_type]
|
|
554
|
+
{}.tap do |hash|
|
|
555
|
+
value.each do |k, v|
|
|
556
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
557
|
+
end
|
|
558
|
+
end
|
|
559
|
+
else # model
|
|
560
|
+
# models (e.g. Pet) or oneOf
|
|
561
|
+
klass = PinterestSdkClient.const_get(type)
|
|
562
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# Returns the string representation of the object
|
|
567
|
+
# @return [String] String presentation of the object
|
|
568
|
+
def to_s
|
|
569
|
+
to_hash.to_s
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
573
|
+
# @return [Hash] Returns the object in the form of hash
|
|
574
|
+
def to_body
|
|
575
|
+
to_hash
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Returns the object in the form of hash
|
|
579
|
+
# @return [Hash] Returns the object in the form of hash
|
|
580
|
+
def to_hash
|
|
581
|
+
hash = {}
|
|
582
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
583
|
+
value = self.send(attr)
|
|
584
|
+
if value.nil?
|
|
585
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
586
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
hash[param] = _to_hash(value)
|
|
590
|
+
end
|
|
591
|
+
hash
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# Outputs non-array value in the form of hash
|
|
595
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
596
|
+
# @param [Object] value Any valid value
|
|
597
|
+
# @return [Hash] Returns the value in the form of hash
|
|
598
|
+
def _to_hash(value)
|
|
599
|
+
if value.is_a?(Array)
|
|
600
|
+
value.compact.map { |v| _to_hash(v) }
|
|
601
|
+
elsif value.is_a?(Hash)
|
|
602
|
+
{}.tap do |hash|
|
|
603
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
604
|
+
end
|
|
605
|
+
elsif value.respond_to? :to_hash
|
|
606
|
+
value.to_hash
|
|
607
|
+
else
|
|
608
|
+
value
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
end
|