klaviyo-api-sdk 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +507 -170
- data/docs/CampaignCloneQuery.md +1 -1
- data/docs/CampaignCloneQueryResourceObject.md +20 -0
- data/docs/CampaignCloneQueryResourceObjectAttributes.md +20 -0
- data/docs/CampaignCreateQuery.md +1 -1
- data/docs/CampaignCreateQueryResourceObject.md +20 -0
- data/docs/CampaignCreateQueryResourceObjectAttributes.md +28 -0
- data/docs/CampaignEnum.md +15 -0
- data/docs/CampaignMessageAssignTemplateQuery.md +1 -1
- data/docs/CampaignMessageAssignTemplateQueryResourceObject.md +20 -0
- data/docs/CampaignMessageAssignTemplateQueryResourceObjectAttributes.md +20 -0
- data/docs/CampaignMessageEnum.md +15 -0
- data/docs/CampaignMessagePartialUpdateQuery.md +1 -1
- data/docs/CampaignMessagePartialUpdateQueryResourceObject.md +22 -0
- data/docs/CampaignMessagePartialUpdateQueryResourceObjectAttributes.md +20 -0
- data/docs/CampaignPartialUpdateQuery.md +1 -1
- data/docs/CampaignPartialUpdateQueryResourceObject.md +22 -0
- data/docs/CampaignPartialUpdateQueryResourceObjectAttributes.md +26 -0
- data/docs/CampaignRecipientEstimationEnum.md +15 -0
- data/docs/CampaignRecipientEstimationJobCreateQuery.md +18 -0
- data/docs/CampaignRecipientEstimationJobCreateQueryResourceObject.md +20 -0
- data/docs/CampaignRecipientEstimationJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CampaignRecipientEstimationJobEnum.md +15 -0
- data/docs/CampaignSendJobCreateQuery.md +1 -1
- data/docs/CampaignSendJobCreateQueryResourceObject.md +20 -0
- data/docs/CampaignSendJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CampaignSendJobEnum.md +15 -0
- data/docs/CampaignSendJobPartialUpdateQuery.md +1 -1
- data/docs/CampaignSendJobPartialUpdateQueryResourceObject.md +22 -0
- data/docs/CampaignSendJobPartialUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/CampaignsApi.md +1275 -0
- data/docs/CatalogCategoryBulkCreateJobEnum.md +15 -0
- data/docs/CatalogCategoryBulkDeleteJobEnum.md +15 -0
- data/docs/CatalogCategoryBulkUpdateJobEnum.md +15 -0
- data/docs/CatalogCategoryCreateJobCreateQuery.md +1 -1
- data/docs/CatalogCategoryCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogCategoryCreateQuery.md +1 -1
- data/docs/CatalogCategoryCreateQueryResourceObject.md +22 -0
- data/docs/CatalogCategoryCreateQueryResourceObjectAttributes.md +24 -0
- data/docs/CatalogCategoryDeleteJobCreateQuery.md +1 -1
- data/docs/CatalogCategoryDeleteJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogCategoryDeleteQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryEnum.md +15 -0
- data/docs/CatalogCategoryItemOp.md +1 -1
- data/docs/CatalogCategoryUpdateJobCreateQuery.md +1 -1
- data/docs/CatalogCategoryUpdateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryUpdateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogCategoryUpdateQuery.md +1 -1
- data/docs/CatalogCategoryUpdateQueryResourceObject.md +24 -0
- data/docs/CatalogCategoryUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemBulkCreateJobEnum.md +15 -0
- data/docs/CatalogItemBulkDeleteJobEnum.md +15 -0
- data/docs/CatalogItemBulkUpdateJobEnum.md +15 -0
- data/docs/CatalogItemCategoryOp.md +1 -1
- data/docs/CatalogItemCreateJobCreateQuery.md +1 -1
- data/docs/CatalogItemCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogItemCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemCreateQuery.md +1 -1
- data/docs/CatalogItemCreateQueryResourceObject.md +22 -0
- data/docs/CatalogItemCreateQueryResourceObjectAttributes.md +40 -0
- data/docs/CatalogItemCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/CatalogItemCreateQueryResourceObjectRelationshipsCategories.md +18 -0
- data/docs/CatalogItemCreateQueryResourceObjectRelationshipsCategoriesDataInner.md +20 -0
- data/docs/CatalogItemDeleteJobCreateQuery.md +1 -1
- data/docs/CatalogItemDeleteJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogItemDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemDeleteQueryResourceObject.md +20 -0
- data/docs/CatalogItemEnum.md +15 -0
- data/docs/CatalogItemUpdateJobCreateQuery.md +1 -1
- data/docs/CatalogItemUpdateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogItemUpdateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemUpdateQuery.md +1 -1
- data/docs/CatalogItemUpdateQueryResourceObject.md +24 -0
- data/docs/CatalogItemUpdateQueryResourceObjectAttributes.md +34 -0
- data/docs/CatalogJobErrorPayload.md +8 -8
- data/docs/CatalogVariantBulkCreateJobEnum.md +15 -0
- data/docs/CatalogVariantBulkDeleteJobEnum.md +15 -0
- data/docs/CatalogVariantBulkUpdateJobEnum.md +15 -0
- data/docs/CatalogVariantCreateJobCreateQuery.md +1 -1
- data/docs/CatalogVariantCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogVariantCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogVariantCreateQuery.md +1 -1
- data/docs/CatalogVariantCreateQueryResourceObject.md +22 -0
- data/docs/CatalogVariantCreateQueryResourceObjectAttributes.md +46 -0
- data/docs/CatalogVariantCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/CatalogVariantCreateQueryResourceObjectRelationshipsItems.md +18 -0
- data/docs/CatalogVariantCreateQueryResourceObjectRelationshipsItemsDataInner.md +20 -0
- data/docs/CatalogVariantDeleteJobCreateQuery.md +1 -1
- data/docs/CatalogVariantDeleteJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogVariantDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogVariantDeleteQueryResourceObject.md +20 -0
- data/docs/CatalogVariantEnum.md +15 -0
- data/docs/CatalogVariantUpdateJobCreateQuery.md +1 -1
- data/docs/CatalogVariantUpdateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogVariantUpdateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogVariantUpdateQuery.md +1 -1
- data/docs/CatalogVariantUpdateQueryResourceObject.md +22 -0
- data/docs/CatalogVariantUpdateQueryResourceObjectAttributes.md +40 -0
- data/docs/CatalogsApi.md +340 -356
- data/docs/ClientApi.md +3 -3
- data/docs/CollectionLinks.md +26 -0
- data/docs/DataPrivacyApi.md +1 -1
- data/docs/DataPrivacyCreateDeletionJobQuery.md +1 -1
- data/docs/DataPrivacyCreateDeletionJobQueryResourceObject.md +20 -0
- data/docs/DataPrivacyCreateDeletionJobQueryResourceObjectAttributes.md +22 -0
- data/docs/DataPrivacyDeletionJobEnum.md +15 -0
- data/docs/EmailChannel.md +18 -0
- data/docs/EmailMarketing.md +32 -0
- data/docs/EmailMarketingListSuppression.md +22 -0
- data/docs/EmailMarketingSuppression.md +20 -0
- data/docs/ErrorSource.md +1 -1
- data/docs/EventCreateQuery.md +1 -1
- data/docs/EventCreateQueryResourceObject.md +20 -0
- data/docs/EventCreateQueryResourceObjectAttributes.md +28 -0
- data/docs/EventEnum.md +15 -0
- data/docs/EventsApi.md +114 -42
- data/docs/FlowActionEnum.md +15 -0
- data/docs/FlowEnum.md +15 -0
- data/docs/FlowMessageEnum.md +15 -0
- data/docs/FlowUpdateQuery.md +1 -1
- data/docs/FlowUpdateQueryResourceObject.md +22 -0
- data/docs/FlowUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/FlowsApi.md +254 -102
- data/docs/GetCampaigns4XXResponse.md +18 -0
- data/docs/GetCampaigns4XXResponseErrorsInner.md +26 -0
- data/docs/GetCampaigns4XXResponseErrorsInnerSource.md +20 -0
- data/docs/ListCreateQuery.md +1 -1
- data/docs/ListCreateQueryResourceObject.md +20 -0
- data/docs/ListCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/ListEnum.md +15 -0
- data/docs/ListPartialUpdateQuery.md +1 -1
- data/docs/ListPartialUpdateQueryResourceObject.md +22 -0
- data/docs/ListsApi.md +135 -65
- data/docs/MetricAggregateEnum.md +15 -0
- data/docs/MetricAggregateQuery.md +1 -1
- data/docs/MetricAggregateQueryResourceObject.md +20 -0
- data/docs/MetricAggregateQueryResourceObjectAttributes.md +36 -0
- data/docs/MetricEnum.md +15 -0
- data/docs/MetricsApi.md +10 -10
- data/docs/ObjectLinks.md +18 -0
- data/docs/OnsiteProfileCreateQuery.md +1 -1
- data/docs/OnsiteProfileCreateQueryResourceObject.md +22 -0
- data/docs/OnsiteProfileCreateQueryResourceObjectAttributes.md +38 -0
- data/docs/OnsiteProfileMetaIdentifiers.md +10 -10
- data/docs/OnsiteSubscriptionCreateQuery.md +1 -1
- data/docs/OnsiteSubscriptionCreateQueryResourceObject.md +20 -0
- data/docs/OnsiteSubscriptionCreateQueryResourceObjectAttributes.md +26 -0
- data/docs/PredictiveAnalytics.md +34 -0
- data/docs/ProfileAggregateEnum.md +15 -0
- data/docs/ProfileCreateQuery.md +1 -1
- data/docs/ProfileCreateQueryResourceObject.md +20 -0
- data/docs/ProfileCreateQueryResourceObjectAttributes.md +36 -0
- data/docs/ProfileEnum.md +15 -0
- data/docs/ProfileLocation.md +15 -15
- data/docs/ProfileLocationLongitude.md +49 -0
- data/docs/ProfilePartialUpdateQuery.md +1 -1
- data/docs/ProfilePartialUpdateQueryResourceObject.md +22 -0
- data/docs/ProfileSubscriptionBulkCreateJobEnum.md +15 -0
- data/docs/ProfileSuppressionBulkCreateJobEnum.md +15 -0
- data/docs/ProfileUnsubscriptionBulkCreateJobEnum.md +15 -0
- data/docs/ProfileUnsuppressionBulkCreateJobEnum.md +15 -0
- data/docs/ProfilesApi.md +140 -56
- data/docs/SMSChannel.md +18 -0
- data/docs/SMSMarketing.md +24 -0
- data/docs/STOScheduleOptions.md +18 -0
- data/docs/SegmentEnum.md +15 -0
- data/docs/SegmentPartialUpdateQuery.md +1 -1
- data/docs/SegmentPartialUpdateQueryResourceObject.md +22 -0
- data/docs/SegmentPartialUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/SegmentsApi.md +107 -33
- data/docs/SendOptionsSubObject.md +1 -3
- data/docs/SendStrategySubObject.md +4 -2
- data/docs/Subscription.md +8 -4
- data/docs/SubscriptionChannels.md +20 -0
- data/docs/SubscriptionCreateJobCreateQuery.md +1 -1
- data/docs/SubscriptionCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/SubscriptionCreateJobCreateQueryResourceObjectAttributes.md +22 -0
- data/docs/SubscriptionEnum.md +15 -0
- data/docs/Subscriptions.md +20 -0
- data/docs/Suppression.md +1 -1
- data/docs/SuppressionCreateJobCreateQuery.md +1 -1
- data/docs/SuppressionCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/SuppressionCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/TagCampaignOp.md +18 -0
- data/docs/TagCampaignOpDataInner.md +20 -0
- data/docs/TagCreateQuery.md +1 -1
- data/docs/TagCreateQueryResourceObject.md +20 -0
- data/docs/TagCreateQueryResourceObjectAttributes.md +20 -0
- data/docs/TagEnum.md +15 -0
- data/docs/TagFlowOp.md +18 -0
- data/docs/TagFlowOpDataInner.md +20 -0
- data/docs/TagGroupCreateQuery.md +1 -1
- data/docs/TagGroupCreateQueryResourceObject.md +20 -0
- data/docs/TagGroupCreateQueryResourceObjectAttributes.md +20 -0
- data/docs/TagGroupEnum.md +15 -0
- data/docs/TagGroupUpdateQuery.md +1 -1
- data/docs/TagGroupUpdateQueryResourceObject.md +22 -0
- data/docs/TagGroupUpdateQueryResourceObjectAttributes.md +20 -0
- data/docs/TagListOp.md +18 -0
- data/docs/TagListOpDataInner.md +20 -0
- data/docs/TagUpdateQuery.md +1 -1
- data/docs/TagUpdateQueryResourceObject.md +22 -0
- data/docs/TagUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/TagsApi.md +894 -176
- data/docs/TemplateCloneQuery.md +1 -1
- data/docs/TemplateCloneQueryResourceObject.md +20 -0
- data/docs/TemplateCloneQueryResourceObjectAttributes.md +22 -0
- data/docs/TemplateCreateQuery.md +1 -1
- data/docs/TemplateCreateQueryResourceObject.md +20 -0
- data/docs/TemplateCreateQueryResourceObjectAttributes.md +32 -0
- data/docs/TemplateEnum.md +15 -0
- data/docs/TemplateRenderQuery.md +1 -1
- data/docs/TemplateRenderQueryResourceObject.md +20 -0
- data/docs/TemplateRenderQueryResourceObjectAttributes.md +22 -0
- data/docs/TemplateUpdateQuery.md +1 -1
- data/docs/TemplateUpdateQueryResourceObject.md +22 -0
- data/docs/TemplateUpdateQueryResourceObjectAttributes.md +30 -0
- data/docs/TemplatesApi.md +15 -15
- data/docs/TestApiAnalyticsSampleEnum.md +15 -0
- data/docs/TestListEnum.md +15 -0
- data/docs/ThrottledScheduleOptions.md +1 -1
- data/docs/UnsubscriptionCreateJobCreateQuery.md +1 -1
- data/docs/UnsubscriptionCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/UnsubscriptionCreateJobCreateQueryResourceObjectAttributes.md +22 -0
- data/docs/UnsuppressionCreateJobCreateQuery.md +1 -1
- data/docs/UnsuppressionCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/UnsuppressionCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/klaviyo-api-sdk.gemspec +2 -2
- data/lib/klaviyo-api-sdk/api/campaigns_api.rb +1269 -0
- data/lib/klaviyo-api-sdk/api/catalogs_api.rb +385 -473
- data/lib/klaviyo-api-sdk/api/client_api.rb +3 -3
- data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +2 -2
- data/lib/klaviyo-api-sdk/api/events_api.rb +118 -57
- data/lib/klaviyo-api-sdk/api/flows_api.rb +256 -137
- data/lib/klaviyo-api-sdk/api/lists_api.rb +138 -96
- data/lib/klaviyo-api-sdk/api/metrics_api.rb +14 -14
- data/lib/klaviyo-api-sdk/api/profiles_api.rb +153 -68
- data/lib/klaviyo-api-sdk/api/segments_api.rb +110 -46
- data/lib/klaviyo-api-sdk/api/tags_api.rb +831 -159
- data/lib/klaviyo-api-sdk/api/templates_api.rb +20 -20
- data/lib/klaviyo-api-sdk/api_client.rb +2 -2
- data/lib/klaviyo-api-sdk/api_error.rb +1 -1
- data/lib/klaviyo-api-sdk/configuration.rb +1 -1
- data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_clone_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes.rb +235 -0
- data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes.rb +291 -0
- data/lib/klaviyo-api-sdk/models/campaign_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_attributes.rb +240 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object_attributes.rb +229 -0
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object_attributes.rb +256 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object.rb +247 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_attributes.rb +296 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb +239 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object.rb +262 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_attributes.rb +220 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb +247 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_attributes.rb +390 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships.rb +219 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories.rb +226 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories_data_inner.rb +272 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb +239 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb +262 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object_attributes.rb +302 -0
- data/lib/klaviyo-api-sdk/models/catalog_job_error_payload.rb +5 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object.rb +247 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_attributes.rb +447 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships.rb +219 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_items.rb +226 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_items_data_inner.rb +272 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb +239 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object_attributes.rb +366 -0
- data/lib/klaviyo-api-sdk/models/collection_links.rb +260 -0
- data/lib/klaviyo-api-sdk/models/content_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes.rb +240 -0
- data/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/email_channel.rb +219 -0
- data/lib/klaviyo-api-sdk/models/email_marketing.rb +298 -0
- data/lib/klaviyo-api-sdk/models/email_marketing_list_suppression.rb +255 -0
- data/lib/klaviyo-api-sdk/models/email_marketing_suppression.rb +240 -0
- data/lib/klaviyo-api-sdk/models/email_message_content.rb +1 -1
- data/lib/klaviyo-api-sdk/models/email_tracking_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/error_source.rb +2 -1
- data/lib/klaviyo-api-sdk/models/event_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/event_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/event_create_query_resource_object_attributes.rb +284 -0
- data/lib/klaviyo-api-sdk/models/event_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/flow_action_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/flow_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/flow_message_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/flow_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response.rb +226 -0
- data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response_errors_inner.rb +275 -0
- data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response_errors_inner_source.rb +228 -0
- data/lib/klaviyo-api-sdk/models/list_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/list_create_query_resource_object_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/list_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb +388 -0
- data/lib/klaviyo-api-sdk/models/metric_aggregate_row_dto.rb +1 -1
- data/lib/klaviyo-api-sdk/models/metric_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/metric_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/object_links.rb +224 -0
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object.rb +247 -0
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object_attributes.rb +318 -0
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +1 -1
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta_identifiers.rb +16 -11
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_resource_object_attributes.rb +265 -0
- data/lib/klaviyo-api-sdk/models/predictive_analytics.rb +300 -0
- data/lib/klaviyo-api-sdk/models/profile_aggregate_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object_attributes.rb +309 -0
- data/lib/klaviyo-api-sdk/models/profile_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_location.rb +9 -2
- data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +2 -1
- data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +106 -0
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_unsubscription_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_unsuppression_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/segment_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb +252 -0
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object_attributes.rb +224 -0
- data/lib/klaviyo-api-sdk/models/send_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/send_options_sub_object.rb +5 -15
- data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +15 -6
- data/lib/klaviyo-api-sdk/models/send_time_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/sms_channel.rb +219 -0
- data/lib/klaviyo-api-sdk/models/sms_marketing.rb +270 -0
- data/lib/klaviyo-api-sdk/models/sms_message_content.rb +1 -1
- data/lib/klaviyo-api-sdk/models/sms_render_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/sms_tracking_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +225 -0
- data/lib/klaviyo-api-sdk/models/subscription.rb +26 -5
- data/lib/klaviyo-api-sdk/models/subscription_channels.rb +256 -0
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb +252 -0
- data/lib/klaviyo-api-sdk/models/subscription_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/subscriptions.rb +228 -0
- data/lib/klaviyo-api-sdk/models/suppression.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/tag_campaign_op.rb +226 -0
- data/lib/klaviyo-api-sdk/models/tag_campaign_op_data_inner.rb +272 -0
- data/lib/klaviyo-api-sdk/models/tag_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_attributes.rb +235 -0
- data/lib/klaviyo-api-sdk/models/tag_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/tag_flow_op.rb +226 -0
- data/lib/klaviyo-api-sdk/models/tag_flow_op_data_inner.rb +272 -0
- data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object_attributes.rb +234 -0
- data/lib/klaviyo-api-sdk/models/tag_group_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object_attributes.rb +236 -0
- data/lib/klaviyo-api-sdk/models/tag_list_op.rb +226 -0
- data/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb +272 -0
- data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/template_clone_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object_attributes.rb +247 -0
- data/lib/klaviyo-api-sdk/models/template_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb +272 -0
- data/lib/klaviyo-api-sdk/models/template_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/template_render_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/template_render_query_resource_object_attributes.rb +252 -0
- data/lib/klaviyo-api-sdk/models/template_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/template_update_query_resource_object_attributes.rb +252 -0
- data/lib/klaviyo-api-sdk/models/test_api_analytics_sample_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/test_list_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tracking_options_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_resource_object_attributes.rb +244 -0
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_resource_object_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/utm_param_info.rb +1 -1
- data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/version.rb +1 -1
- data/lib/klaviyo-api-sdk.rb +162 -123
- data/spec/api/campaigns_api_spec.rb +255 -0
- data/spec/api/catalogs_api_spec.rb +162 -170
- data/spec/api/client_api_spec.rb +3 -3
- data/spec/api/data_privacy_api_spec.rb +1 -1
- data/spec/api/events_api_spec.rb +33 -21
- data/spec/api/flows_api_spec.rb +76 -49
- data/spec/api/lists_api_spec.rb +38 -27
- data/spec/api/metrics_api_spec.rb +8 -8
- data/spec/api/profiles_api_spec.rb +41 -25
- data/spec/api/segments_api_spec.rb +30 -17
- data/spec/api/tags_api_spec.rb +155 -33
- data/spec/api/templates_api_spec.rb +12 -14
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/audiences_sub_object_spec.rb +1 -1
- data/spec/models/campaign_clone_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/campaign_clone_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_clone_query_spec.rb +1 -1
- data/spec/models/campaign_create_query_resource_object_attributes_spec.rb +64 -0
- data/spec/models/campaign_create_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_create_query_spec.rb +1 -1
- data/spec/models/campaign_enum_spec.rb +28 -0
- data/spec/models/campaign_message_assign_template_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/campaign_message_assign_template_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_message_assign_template_query_spec.rb +1 -1
- data/spec/models/campaign_message_enum_spec.rb +28 -0
- data/spec/models/campaign_message_partial_update_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/campaign_message_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/campaign_message_partial_update_query_spec.rb +1 -1
- data/spec/models/campaign_partial_update_query_resource_object_attributes_spec.rb +58 -0
- data/spec/models/campaign_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/campaign_partial_update_query_spec.rb +1 -1
- data/spec/models/campaign_recipient_estimation_enum_spec.rb +28 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +34 -0
- data/spec/models/campaign_recipient_estimation_job_enum_spec.rb +28 -0
- data/spec/models/campaign_send_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/campaign_send_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_send_job_create_query_spec.rb +1 -1
- data/spec/models/campaign_send_job_enum_spec.rb +28 -0
- data/spec/models/campaign_send_job_partial_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/campaign_send_job_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/campaign_send_job_partial_update_query_spec.rb +1 -1
- data/spec/models/catalog_category_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/catalog_category_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/catalog_category_bulk_update_job_enum_spec.rb +28 -0
- data/spec/models/catalog_category_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_create_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_category_create_query_resource_object_attributes_spec.rb +56 -0
- data/spec/models/catalog_category_create_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_category_create_query_spec.rb +1 -1
- data/spec/models/catalog_category_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_delete_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_delete_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_category_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_enum_spec.rb +28 -0
- data/spec/models/catalog_category_item_op_spec.rb +1 -1
- data/spec/models/catalog_category_update_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_update_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_update_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_category_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_update_query_resource_object_spec.rb +52 -0
- data/spec/models/catalog_category_update_query_spec.rb +1 -1
- data/spec/models/catalog_item_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/catalog_item_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/catalog_item_bulk_update_job_enum_spec.rb +28 -0
- data/spec/models/catalog_item_category_op_spec.rb +1 -1
- data/spec/models/catalog_item_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_item_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_create_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_item_create_query_resource_object_attributes_spec.rb +104 -0
- data/spec/models/catalog_item_create_query_resource_object_relationships_categories_data_inner_spec.rb +44 -0
- data/spec/models/catalog_item_create_query_resource_object_relationships_categories_spec.rb +34 -0
- data/spec/models/catalog_item_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/catalog_item_create_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_item_create_query_spec.rb +1 -1
- data/spec/models/catalog_item_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_item_delete_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_delete_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_item_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_enum_spec.rb +28 -0
- data/spec/models/catalog_item_update_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_item_update_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_update_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_item_update_query_resource_object_attributes_spec.rb +82 -0
- data/spec/models/catalog_item_update_query_resource_object_spec.rb +52 -0
- data/spec/models/catalog_item_update_query_spec.rb +1 -1
- data/spec/models/catalog_job_error_payload_spec.rb +1 -1
- data/spec/models/catalog_variant_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_bulk_update_job_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_variant_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_create_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_variant_create_query_resource_object_attributes_spec.rb +126 -0
- data/spec/models/catalog_variant_create_query_resource_object_relationships_items_data_inner_spec.rb +44 -0
- data/spec/models/catalog_variant_create_query_resource_object_relationships_items_spec.rb +34 -0
- data/spec/models/catalog_variant_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/catalog_variant_create_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_variant_create_query_spec.rb +1 -1
- data/spec/models/catalog_variant_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_variant_delete_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_delete_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_variant_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_update_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_variant_update_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_update_job_create_query_spec.rb +1 -1
- data/spec/models/catalog_variant_update_query_resource_object_attributes_spec.rb +104 -0
- data/spec/models/catalog_variant_update_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_variant_update_query_spec.rb +1 -1
- data/spec/models/collection_links_spec.rb +58 -0
- data/spec/models/content_sub_object_spec.rb +1 -1
- data/spec/models/data_privacy_create_deletion_job_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/data_privacy_create_deletion_job_query_resource_object_spec.rb +40 -0
- data/spec/models/data_privacy_create_deletion_job_query_spec.rb +1 -1
- data/spec/models/data_privacy_deletion_job_enum_spec.rb +28 -0
- data/spec/models/email_channel_spec.rb +34 -0
- data/spec/models/email_marketing_list_suppression_spec.rb +46 -0
- data/spec/models/email_marketing_spec.rb +76 -0
- data/spec/models/email_marketing_suppression_spec.rb +40 -0
- data/spec/models/email_message_content_spec.rb +1 -1
- data/spec/models/email_tracking_options_spec.rb +1 -1
- data/spec/models/error_source_spec.rb +1 -1
- data/spec/models/event_create_query_resource_object_attributes_spec.rb +64 -0
- data/spec/models/event_create_query_resource_object_spec.rb +40 -0
- data/spec/models/event_create_query_spec.rb +1 -1
- data/spec/models/event_enum_spec.rb +28 -0
- data/spec/models/flow_action_enum_spec.rb +28 -0
- data/spec/models/flow_enum_spec.rb +28 -0
- data/spec/models/flow_message_enum_spec.rb +28 -0
- data/spec/models/flow_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/flow_update_query_resource_object_spec.rb +46 -0
- data/spec/models/flow_update_query_spec.rb +1 -1
- data/spec/models/get_campaigns4_xx_response_errors_inner_source_spec.rb +40 -0
- data/spec/models/get_campaigns4_xx_response_errors_inner_spec.rb +58 -0
- data/spec/models/get_campaigns4_xx_response_spec.rb +34 -0
- data/spec/models/list_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/list_create_query_resource_object_spec.rb +40 -0
- data/spec/models/list_create_query_spec.rb +1 -1
- data/spec/models/list_enum_spec.rb +28 -0
- data/spec/models/list_members_add_query_data_inner_spec.rb +1 -1
- data/spec/models/list_members_add_query_spec.rb +1 -1
- data/spec/models/list_members_delete_query_spec.rb +1 -1
- data/spec/models/list_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/list_partial_update_query_spec.rb +1 -1
- data/spec/models/metric_aggregate_enum_spec.rb +28 -0
- data/spec/models/metric_aggregate_query_resource_object_attributes_spec.rb +104 -0
- data/spec/models/metric_aggregate_query_resource_object_spec.rb +40 -0
- data/spec/models/metric_aggregate_query_spec.rb +1 -1
- data/spec/models/metric_aggregate_row_dto_spec.rb +1 -1
- data/spec/models/metric_create_query_spec.rb +1 -1
- data/spec/models/metric_enum_spec.rb +28 -0
- data/spec/models/object_links_spec.rb +34 -0
- data/spec/models/onsite_profile_create_query_resource_object_attributes_spec.rb +94 -0
- data/spec/models/onsite_profile_create_query_resource_object_spec.rb +46 -0
- data/spec/models/onsite_profile_create_query_spec.rb +1 -1
- data/spec/models/onsite_profile_meta_identifiers_spec.rb +4 -4
- data/spec/models/onsite_profile_meta_spec.rb +1 -1
- data/spec/models/onsite_subscription_create_query_resource_object_attributes_spec.rb +58 -0
- data/spec/models/onsite_subscription_create_query_resource_object_spec.rb +40 -0
- data/spec/models/onsite_subscription_create_query_spec.rb +1 -1
- data/spec/models/predictive_analytics_spec.rb +82 -0
- data/spec/models/profile_aggregate_enum_spec.rb +28 -0
- data/spec/models/profile_create_query_resource_object_attributes_spec.rb +88 -0
- data/spec/models/profile_create_query_resource_object_spec.rb +40 -0
- data/spec/models/profile_create_query_spec.rb +1 -1
- data/spec/models/profile_enum_spec.rb +28 -0
- data/spec/models/profile_location_latitude_spec.rb +1 -1
- data/spec/models/profile_location_longitude_spec.rb +31 -0
- data/spec/models/profile_location_spec.rb +1 -1
- data/spec/models/profile_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/profile_partial_update_query_spec.rb +1 -1
- data/spec/models/profile_subscription_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/profile_suppression_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/profile_unsubscription_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/profile_unsuppression_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/segment_enum_spec.rb +28 -0
- data/spec/models/segment_partial_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/segment_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/segment_partial_update_query_spec.rb +1 -1
- data/spec/models/send_options_spec.rb +1 -1
- data/spec/models/send_options_sub_object_spec.rb +1 -7
- data/spec/models/send_strategy_sub_object_spec.rb +7 -1
- data/spec/models/send_time_sub_object_spec.rb +1 -1
- data/spec/models/sms_channel_spec.rb +34 -0
- data/spec/models/sms_marketing_spec.rb +52 -0
- data/spec/models/sms_message_content_spec.rb +1 -1
- data/spec/models/sms_render_options_spec.rb +1 -1
- data/spec/models/sms_tracking_options_spec.rb +1 -1
- data/spec/models/static_schedule_options_spec.rb +1 -1
- data/spec/models/sto_schedule_options_spec.rb +34 -0
- data/spec/models/subscription_channels_spec.rb +48 -0
- data/spec/models/subscription_create_job_create_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/subscription_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/subscription_create_job_create_query_spec.rb +1 -1
- data/spec/models/subscription_enum_spec.rb +28 -0
- data/spec/models/subscription_spec.rb +13 -1
- data/spec/models/subscriptions_spec.rb +40 -0
- data/spec/models/suppression_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/suppression_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/suppression_create_job_create_query_spec.rb +1 -1
- data/spec/models/suppression_spec.rb +1 -1
- data/spec/models/tag_campaign_op_data_inner_spec.rb +44 -0
- data/spec/models/tag_campaign_op_spec.rb +34 -0
- data/spec/models/tag_create_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/tag_create_query_resource_object_spec.rb +40 -0
- data/spec/models/tag_create_query_spec.rb +1 -1
- data/spec/models/tag_enum_spec.rb +28 -0
- data/spec/models/tag_flow_op_data_inner_spec.rb +44 -0
- data/spec/models/tag_flow_op_spec.rb +34 -0
- data/spec/models/tag_group_create_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/tag_group_create_query_resource_object_spec.rb +40 -0
- data/spec/models/tag_group_create_query_spec.rb +1 -1
- data/spec/models/tag_group_enum_spec.rb +28 -0
- data/spec/models/tag_group_update_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/tag_group_update_query_resource_object_spec.rb +46 -0
- data/spec/models/tag_group_update_query_spec.rb +1 -1
- data/spec/models/tag_list_op_data_inner_spec.rb +44 -0
- data/spec/models/tag_list_op_spec.rb +34 -0
- data/spec/models/tag_segment_op_data_inner_spec.rb +1 -1
- data/spec/models/tag_segment_op_spec.rb +1 -1
- data/spec/models/tag_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/tag_update_query_resource_object_spec.rb +46 -0
- data/spec/models/tag_update_query_spec.rb +1 -1
- data/spec/models/template_clone_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/template_clone_query_resource_object_spec.rb +40 -0
- data/spec/models/template_clone_query_spec.rb +1 -1
- data/spec/models/template_create_query_resource_object_attributes_spec.rb +58 -0
- data/spec/models/template_create_query_resource_object_spec.rb +40 -0
- data/spec/models/template_create_query_spec.rb +1 -1
- data/spec/models/template_enum_spec.rb +28 -0
- data/spec/models/template_render_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/template_render_query_resource_object_spec.rb +40 -0
- data/spec/models/template_render_query_spec.rb +1 -1
- data/spec/models/template_update_query_resource_object_attributes_spec.rb +52 -0
- data/spec/models/template_update_query_resource_object_spec.rb +46 -0
- data/spec/models/template_update_query_spec.rb +1 -1
- data/spec/models/test_api_analytics_sample_enum_spec.rb +28 -0
- data/spec/models/test_list_enum_spec.rb +28 -0
- data/spec/models/throttled_schedule_options_spec.rb +1 -1
- data/spec/models/tracking_options_sub_object_spec.rb +1 -1
- data/spec/models/unsubscription_create_job_create_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/unsubscription_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/unsubscription_create_job_create_query_spec.rb +1 -1
- data/spec/models/unsuppression_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/unsuppression_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/unsuppression_create_job_create_query_spec.rb +1 -1
- data/spec/models/utm_param_info_spec.rb +1 -1
- data/spec/models/utm_params_sub_object_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +487 -370
- data/CHANGELOG.md +0 -31
- data/docs/CampaignCloneQueryAsSubResource.md +0 -20
- data/docs/CampaignCloneQueryAsSubResourceAttributes.md +0 -20
- data/docs/CampaignCreateQueryAsSubResource.md +0 -20
- data/docs/CampaignCreateQueryAsSubResourceAttributes.md +0 -28
- data/docs/CampaignMessageAssignTemplateQueryAsSubResource.md +0 -20
- data/docs/CampaignMessageAssignTemplateQueryAsSubResourceAttributes.md +0 -20
- data/docs/CampaignMessagePartialUpdateQueryAsSubResource.md +0 -22
- data/docs/CampaignMessagePartialUpdateQueryAsSubResourceAttributes.md +0 -20
- data/docs/CampaignPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/CampaignPartialUpdateQueryAsSubResourceAttributes.md +0 -26
- data/docs/CampaignSendJobCreateQueryAsSubResource.md +0 -20
- data/docs/CampaignSendJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CampaignSendJobPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/CampaignSendJobPartialUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogCategoryCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogCategoryCreateQueryAsSubResource.md +0 -22
- data/docs/CatalogCategoryCreateQueryAsSubResourceAttributes.md +0 -24
- data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogCategoryDeleteQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogCategoryUpdateQueryAsSubResource.md +0 -24
- data/docs/CatalogCategoryUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogItemCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemCreateQueryAsSubResource.md +0 -22
- data/docs/CatalogItemCreateQueryAsSubResourceAttributes.md +0 -38
- data/docs/CatalogItemCreateQueryAsSubResourceRelationships.md +0 -18
- data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategories.md +0 -18
- data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategoriesDataInner.md +0 -20
- data/docs/CatalogItemDeleteJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogItemDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemDeleteQueryAsSubResource.md +0 -20
- data/docs/CatalogItemUpdateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogItemUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemUpdateQueryAsSubResource.md +0 -24
- data/docs/CatalogItemUpdateQueryAsSubResourceAttributes.md +0 -32
- data/docs/CatalogVariantCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogVariantCreateQueryAsSubResource.md +0 -22
- data/docs/CatalogVariantCreateQueryAsSubResourceAttributes.md +0 -46
- data/docs/CatalogVariantCreateQueryAsSubResourceRelationships.md +0 -18
- data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItems.md +0 -18
- data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItemsDataInner.md +0 -20
- data/docs/CatalogVariantDeleteJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogVariantDeleteQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantUpdateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogVariantUpdateQueryAsSubResource.md +0 -22
- data/docs/CatalogVariantUpdateQueryAsSubResourceAttributes.md +0 -38
- data/docs/DataPrivacyCreateDeletionJobQueryAsSubResource.md +0 -20
- data/docs/DataPrivacyCreateDeletionJobQueryAsSubResourceAttributes.md +0 -22
- data/docs/EventCreateQueryAsSubResource.md +0 -20
- data/docs/EventCreateQueryAsSubResourceAttributes.md +0 -28
- data/docs/FlowUpdateQueryAsSubResource.md +0 -22
- data/docs/FlowUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/GetCatalogItems4XXResponse.md +0 -18
- data/docs/GetCatalogItems4XXResponseErrorsInner.md +0 -26
- data/docs/GetCatalogItems4XXResponseErrorsInnerSource.md +0 -20
- data/docs/IncludedCategories.md +0 -24
- data/docs/IncludedCategoriesAttributes.md +0 -22
- data/docs/IncludedFlowAction.md +0 -24
- data/docs/IncludedFlowActions.md +0 -24
- data/docs/IncludedFlowActionsAttributes.md +0 -32
- data/docs/IncludedFlowActionsAttributesTrackingOptions.md +0 -49
- data/docs/IncludedFlowMessages.md +0 -24
- data/docs/IncludedFlowMessagesAttributes.md +0 -26
- data/docs/IncludedFlowMessagesAttributesContent.md +0 -49
- data/docs/IncludedFlows.md +0 -24
- data/docs/IncludedFlowsAttributes.md +0 -28
- data/docs/IncludedItems.md +0 -24
- data/docs/IncludedItemsAttributes.md +0 -38
- data/docs/IncludedLists.md +0 -24
- data/docs/IncludedListsAttributes.md +0 -22
- data/docs/IncludedMetrics.md +0 -24
- data/docs/IncludedMetricsAttributes.md +0 -24
- data/docs/IncludedProfiles.md +0 -24
- data/docs/IncludedProfilesAttributes.md +0 -44
- data/docs/IncludedSegments.md +0 -24
- data/docs/IncludedVariants.md +0 -24
- data/docs/IncludedVariantsAttributes.md +0 -46
- data/docs/IncludedVariantsLinks.md +0 -18
- data/docs/ListCreateQueryAsSubResource.md +0 -20
- data/docs/ListCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/ListPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/MetricAggregateQueryAsSubResource.md +0 -20
- data/docs/MetricAggregateQueryAsSubResourceAttributes.md +0 -36
- data/docs/OnsiteProfileCreateQueryAsSubResource.md +0 -22
- data/docs/OnsiteSubscriptionCreateQueryAsSubResource.md +0 -20
- data/docs/OnsiteSubscriptionCreateQueryAsSubResourceAttributes.md +0 -26
- data/docs/ProfileCreateQueryAsSubResource.md +0 -20
- data/docs/ProfileCreateQueryAsSubResourceAttributes.md +0 -38
- data/docs/ProfilePartialUpdateQueryAsSubResource.md +0 -22
- data/docs/SegmentPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/SubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/SubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
- data/docs/SuppressionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/SuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/TagCreateQueryAsSubResource.md +0 -20
- data/docs/TagCreateQueryAsSubResourceAttributes.md +0 -20
- data/docs/TagGroupCreateQueryAsSubResource.md +0 -20
- data/docs/TagGroupCreateQueryAsSubResourceAttributes.md +0 -20
- data/docs/TagGroupUpdateQueryAsSubResource.md +0 -22
- data/docs/TagGroupUpdateQueryAsSubResourceAttributes.md +0 -20
- data/docs/TagUpdateQueryAsSubResource.md +0 -22
- data/docs/TagUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/TemplateCloneQueryAsSubResource.md +0 -22
- data/docs/TemplateCloneQueryAsSubResourceAttributes.md +0 -22
- data/docs/TemplateCreateQueryAsSubResource.md +0 -20
- data/docs/TemplateCreateQueryAsSubResourceAttributes.md +0 -32
- data/docs/TemplateRenderQueryAsSubResource.md +0 -20
- data/docs/TemplateRenderQueryAsSubResourceAttributes.md +0 -22
- data/docs/TemplateUpdateQueryAsSubResource.md +0 -22
- data/docs/TemplateUpdateQueryAsSubResourceAttributes.md +0 -30
- data/docs/UnsubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/UnsubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
- data/docs/UnsuppressionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/UnsuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/V2TemplateRenderQueryAsSubResource.md +0 -18
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource_attributes.rb +0 -235
- data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource_attributes.rb +0 -291
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource_attributes.rb +0 -240
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource_attributes.rb +0 -229
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource_attributes.rb +0 -256
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_as_sub_resource_attributes.rb +0 -225
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource_attributes.rb +0 -225
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource_attributes.rb +0 -293
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_as_sub_resource.rb +0 -273
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource.rb +0 -296
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource_attributes.rb +0 -219
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_attributes.rb +0 -370
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships.rb +0 -219
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships_categories.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_as_sub_resource.rb +0 -273
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource.rb +0 -296
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource_attributes.rb +0 -284
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_attributes.rb +0 -439
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships.rb +0 -219
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships_items.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_as_sub_resource.rb +0 -273
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource_attributes.rb +0 -226
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource_attributes.rb +0 -346
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes.rb +0 -240
- data/lib/klaviyo-api-sdk/models/event_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/event_create_query_as_sub_resource_attributes.rb +0 -284
- data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource.rb +0 -286
- data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource_attributes.rb +0 -224
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response.rb +0 -226
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner.rb +0 -275
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner_source.rb +0 -228
- data/lib/klaviyo-api-sdk/models/included_categories.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_categories_attributes.rb +0 -237
- data/lib/klaviyo-api-sdk/models/included_flow_action.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flow_actions.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes.rb +0 -282
- data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes_tracking_options.rb +0 -105
- data/lib/klaviyo-api-sdk/models/included_flow_messages.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes.rb +0 -270
- data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes_content.rb +0 -105
- data/lib/klaviyo-api-sdk/models/included_flows.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flows_attributes.rb +0 -264
- data/lib/klaviyo-api-sdk/models/included_items.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_items_attributes.rb +0 -311
- data/lib/klaviyo-api-sdk/models/included_lists.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_lists_attributes.rb +0 -237
- data/lib/klaviyo-api-sdk/models/included_metrics.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_metrics_attributes.rb +0 -250
- data/lib/klaviyo-api-sdk/models/included_profiles.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_profiles_attributes.rb +0 -336
- data/lib/klaviyo-api-sdk/models/included_segments.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_variants.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_variants_attributes.rb +0 -382
- data/lib/klaviyo-api-sdk/models/included_variants_links.rb +0 -224
- data/lib/klaviyo-api-sdk/models/list_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/list_create_query_as_sub_resource_attributes.rb +0 -224
- data/lib/klaviyo-api-sdk/models/list_partial_update_query_as_sub_resource.rb +0 -286
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource_attributes.rb +0 -386
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource_attributes.rb +0 -265
- data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource_attributes.rb +0 -309
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query_as_sub_resource.rb +0 -286
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource.rb +0 -286
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource_attributes.rb +0 -252
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource_attributes.rb +0 -227
- data/lib/klaviyo-api-sdk/models/tag_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/tag_create_query_as_sub_resource_attributes.rb +0 -235
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource_attributes.rb +0 -234
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_as_sub_resource_attributes.rb +0 -236
- data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource_attributes.rb +0 -225
- data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource.rb +0 -283
- data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource_attributes.rb +0 -247
- data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource_attributes.rb +0 -272
- data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource_attributes.rb +0 -252
- data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource_attributes.rb +0 -252
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource_attributes.rb +0 -244
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource_attributes.rb +0 -227
- data/lib/klaviyo-api-sdk/models/v2_template_render_query_as_sub_resource.rb +0 -221
- data/spec/models/campaign_clone_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/campaign_clone_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_create_query_as_sub_resource_attributes_spec.rb +0 -64
- data/spec/models/campaign_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_message_assign_template_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/campaign_message_assign_template_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_message_partial_update_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/campaign_message_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/campaign_partial_update_query_as_sub_resource_attributes_spec.rb +0 -58
- data/spec/models/campaign_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/campaign_send_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/campaign_send_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_category_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_create_query_as_sub_resource_attributes_spec.rb +0 -56
- data/spec/models/catalog_category_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_delete_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_update_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_update_query_as_sub_resource_spec.rb +0 -56
- data/spec/models/catalog_item_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_item_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_create_query_as_sub_resource_attributes_spec.rb +0 -98
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner_spec.rb +0 -44
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_spec.rb +0 -34
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_spec.rb +0 -34
- data/spec/models/catalog_item_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_delete_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_item_update_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_update_query_as_sub_resource_attributes_spec.rb +0 -76
- data/spec/models/catalog_item_update_query_as_sub_resource_spec.rb +0 -56
- data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_create_query_as_sub_resource_attributes_spec.rb +0 -126
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner_spec.rb +0 -44
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_spec.rb +0 -34
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_spec.rb +0 -34
- data/spec/models/catalog_variant_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_delete_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_update_query_as_sub_resource_attributes_spec.rb +0 -98
- data/spec/models/catalog_variant_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/event_create_query_as_sub_resource_attributes_spec.rb +0 -64
- data/spec/models/event_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/flow_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/flow_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/get_catalog_items4_xx_response_errors_inner_source_spec.rb +0 -40
- data/spec/models/get_catalog_items4_xx_response_errors_inner_spec.rb +0 -58
- data/spec/models/get_catalog_items4_xx_response_spec.rb +0 -34
- data/spec/models/included_categories_attributes_spec.rb +0 -46
- data/spec/models/included_categories_spec.rb +0 -56
- data/spec/models/included_flow_action_spec.rb +0 -56
- data/spec/models/included_flow_actions_attributes_spec.rb +0 -76
- data/spec/models/included_flow_actions_attributes_tracking_options_spec.rb +0 -31
- data/spec/models/included_flow_actions_spec.rb +0 -56
- data/spec/models/included_flow_messages_attributes_content_spec.rb +0 -31
- data/spec/models/included_flow_messages_attributes_spec.rb +0 -58
- data/spec/models/included_flow_messages_spec.rb +0 -56
- data/spec/models/included_flows_attributes_spec.rb +0 -64
- data/spec/models/included_flows_spec.rb +0 -56
- data/spec/models/included_items_attributes_spec.rb +0 -94
- data/spec/models/included_items_spec.rb +0 -56
- data/spec/models/included_lists_attributes_spec.rb +0 -46
- data/spec/models/included_lists_spec.rb +0 -56
- data/spec/models/included_metrics_attributes_spec.rb +0 -52
- data/spec/models/included_metrics_spec.rb +0 -56
- data/spec/models/included_profiles_attributes_spec.rb +0 -112
- data/spec/models/included_profiles_spec.rb +0 -56
- data/spec/models/included_segments_spec.rb +0 -56
- data/spec/models/included_variants_attributes_spec.rb +0 -122
- data/spec/models/included_variants_links_spec.rb +0 -34
- data/spec/models/included_variants_spec.rb +0 -56
- data/spec/models/list_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/list_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/list_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/metric_aggregate_query_as_sub_resource_attributes_spec.rb +0 -104
- data/spec/models/metric_aggregate_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/onsite_profile_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/onsite_subscription_create_query_as_sub_resource_attributes_spec.rb +0 -58
- data/spec/models/onsite_subscription_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/profile_create_query_as_sub_resource_attributes_spec.rb +0 -94
- data/spec/models/profile_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/profile_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/segment_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/subscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/subscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/suppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/suppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/tag_create_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/tag_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/tag_group_create_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/tag_group_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/tag_group_update_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/tag_group_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/tag_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/tag_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/template_clone_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/template_clone_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/template_create_query_as_sub_resource_attributes_spec.rb +0 -58
- data/spec/models/template_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/template_render_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/template_render_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/template_update_query_as_sub_resource_attributes_spec.rb +0 -52
- data/spec/models/template_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/unsubscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/unsubscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/unsuppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/unsuppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/v2_template_render_query_as_sub_resource_spec.rb +0 -34
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2023-
|
6
|
+
The version of the OpenAPI document: 2023-02-22
|
7
7
|
Contact: developers@klaviyo.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.2.1
|
@@ -51,7 +51,7 @@ module KlaviyoAPI
|
|
51
51
|
# header parameters
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# klaviyo api revision
|
54
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
54
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
55
55
|
# HTTP header 'Accept' (if needed)
|
56
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
57
|
# HTTP header 'Content-Type'
|
@@ -89,48 +89,37 @@ module KlaviyoAPI
|
|
89
89
|
return data, status_code, headers
|
90
90
|
end
|
91
91
|
|
92
|
-
# Create Catalog Category Relationships
|
92
|
+
# Create Catalog Category Relationships Items
|
93
93
|
# Create a new item relationship for the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
94
94
|
# @param id [String]
|
95
|
-
# @param related_resource [String]
|
96
95
|
# @param catalog_category_item_op [CatalogCategoryItemOp]
|
97
96
|
# @param [Hash] opts the optional parameters
|
98
97
|
# @return [nil]
|
99
|
-
def
|
100
|
-
|
98
|
+
def create_catalog_category_relationships_items(id, catalog_category_item_op, opts = {})
|
99
|
+
create_catalog_category_relationships_items_with_http_info(id, catalog_category_item_op, opts)
|
101
100
|
nil
|
102
101
|
end
|
103
102
|
|
104
|
-
# Create Catalog Category Relationships
|
103
|
+
# Create Catalog Category Relationships Items
|
105
104
|
# Create a new item relationship for the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
106
105
|
# @param id [String]
|
107
|
-
# @param related_resource [String]
|
108
106
|
# @param catalog_category_item_op [CatalogCategoryItemOp]
|
109
107
|
# @param [Hash] opts the optional parameters
|
110
108
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
111
|
-
def
|
109
|
+
def create_catalog_category_relationships_items_with_http_info(id, catalog_category_item_op, opts = {})
|
112
110
|
if @api_client.config.debugging
|
113
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
111
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.create_catalog_category_relationships_items ...'
|
114
112
|
end
|
115
113
|
# verify the required parameter 'id' is set
|
116
114
|
if @api_client.config.client_side_validation && id.nil?
|
117
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
118
|
-
end
|
119
|
-
# verify the required parameter 'related_resource' is set
|
120
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
121
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.create_catalog_category_relationships"
|
122
|
-
end
|
123
|
-
# verify enum value
|
124
|
-
allowable_values = ["items"]
|
125
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
126
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
115
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.create_catalog_category_relationships_items"
|
127
116
|
end
|
128
117
|
# verify the required parameter 'catalog_category_item_op' is set
|
129
118
|
if @api_client.config.client_side_validation && catalog_category_item_op.nil?
|
130
|
-
fail ArgumentError, "Missing the required parameter 'catalog_category_item_op' when calling CatalogsApi.
|
119
|
+
fail ArgumentError, "Missing the required parameter 'catalog_category_item_op' when calling CatalogsApi.create_catalog_category_relationships_items"
|
131
120
|
end
|
132
121
|
# resource path
|
133
|
-
local_var_path = '/api/catalog-categories/{id}/relationships/
|
122
|
+
local_var_path = '/api/catalog-categories/{id}/relationships/items/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
134
123
|
|
135
124
|
# query parameters
|
136
125
|
query_params = opts[:query_params] || {}
|
@@ -138,7 +127,7 @@ module KlaviyoAPI
|
|
138
127
|
# header parameters
|
139
128
|
header_params = opts[:header_params] || {}
|
140
129
|
# klaviyo api revision
|
141
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
130
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
142
131
|
# HTTP header 'Accept' (if needed)
|
143
132
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
144
133
|
# HTTP header 'Content-Type'
|
@@ -160,7 +149,7 @@ module KlaviyoAPI
|
|
160
149
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
161
150
|
|
162
151
|
new_options = opts.merge(
|
163
|
-
:operation => :"CatalogsApi.
|
152
|
+
:operation => :"CatalogsApi.create_catalog_category_relationships_items",
|
164
153
|
:header_params => header_params,
|
165
154
|
:query_params => query_params,
|
166
155
|
:form_params => form_params,
|
@@ -171,7 +160,7 @@ module KlaviyoAPI
|
|
171
160
|
|
172
161
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
173
162
|
if @api_client.config.debugging
|
174
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
163
|
+
@api_client.config.logger.debug "API called: CatalogsApi#create_catalog_category_relationships_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
175
164
|
end
|
176
165
|
return data, status_code, headers
|
177
166
|
end
|
@@ -208,7 +197,7 @@ module KlaviyoAPI
|
|
208
197
|
# header parameters
|
209
198
|
header_params = opts[:header_params] || {}
|
210
199
|
# klaviyo api revision
|
211
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
200
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
212
201
|
# HTTP header 'Accept' (if needed)
|
213
202
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
214
203
|
# HTTP header 'Content-Type'
|
@@ -246,48 +235,37 @@ module KlaviyoAPI
|
|
246
235
|
return data, status_code, headers
|
247
236
|
end
|
248
237
|
|
249
|
-
# Create Catalog Item Relationships
|
238
|
+
# Create Catalog Item Relationships Categories
|
250
239
|
# Create a new catalog category relationship for the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
251
240
|
# @param id [String]
|
252
|
-
# @param related_resource [String]
|
253
241
|
# @param catalog_item_category_op [CatalogItemCategoryOp]
|
254
242
|
# @param [Hash] opts the optional parameters
|
255
243
|
# @return [nil]
|
256
|
-
def
|
257
|
-
|
244
|
+
def create_catalog_item_relationships_categories(id, catalog_item_category_op, opts = {})
|
245
|
+
create_catalog_item_relationships_categories_with_http_info(id, catalog_item_category_op, opts)
|
258
246
|
nil
|
259
247
|
end
|
260
248
|
|
261
|
-
# Create Catalog Item Relationships
|
249
|
+
# Create Catalog Item Relationships Categories
|
262
250
|
# Create a new catalog category relationship for the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
263
251
|
# @param id [String]
|
264
|
-
# @param related_resource [String]
|
265
252
|
# @param catalog_item_category_op [CatalogItemCategoryOp]
|
266
253
|
# @param [Hash] opts the optional parameters
|
267
254
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
268
|
-
def
|
255
|
+
def create_catalog_item_relationships_categories_with_http_info(id, catalog_item_category_op, opts = {})
|
269
256
|
if @api_client.config.debugging
|
270
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
257
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.create_catalog_item_relationships_categories ...'
|
271
258
|
end
|
272
259
|
# verify the required parameter 'id' is set
|
273
260
|
if @api_client.config.client_side_validation && id.nil?
|
274
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
275
|
-
end
|
276
|
-
# verify the required parameter 'related_resource' is set
|
277
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
278
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.create_catalog_item_relationships"
|
279
|
-
end
|
280
|
-
# verify enum value
|
281
|
-
allowable_values = ["categories"]
|
282
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
283
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
261
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.create_catalog_item_relationships_categories"
|
284
262
|
end
|
285
263
|
# verify the required parameter 'catalog_item_category_op' is set
|
286
264
|
if @api_client.config.client_side_validation && catalog_item_category_op.nil?
|
287
|
-
fail ArgumentError, "Missing the required parameter 'catalog_item_category_op' when calling CatalogsApi.
|
265
|
+
fail ArgumentError, "Missing the required parameter 'catalog_item_category_op' when calling CatalogsApi.create_catalog_item_relationships_categories"
|
288
266
|
end
|
289
267
|
# resource path
|
290
|
-
local_var_path = '/api/catalog-items/{id}/relationships/
|
268
|
+
local_var_path = '/api/catalog-items/{id}/relationships/categories/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
291
269
|
|
292
270
|
# query parameters
|
293
271
|
query_params = opts[:query_params] || {}
|
@@ -295,7 +273,7 @@ module KlaviyoAPI
|
|
295
273
|
# header parameters
|
296
274
|
header_params = opts[:header_params] || {}
|
297
275
|
# klaviyo api revision
|
298
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
276
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
299
277
|
# HTTP header 'Accept' (if needed)
|
300
278
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
301
279
|
# HTTP header 'Content-Type'
|
@@ -317,7 +295,7 @@ module KlaviyoAPI
|
|
317
295
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
318
296
|
|
319
297
|
new_options = opts.merge(
|
320
|
-
:operation => :"CatalogsApi.
|
298
|
+
:operation => :"CatalogsApi.create_catalog_item_relationships_categories",
|
321
299
|
:header_params => header_params,
|
322
300
|
:query_params => query_params,
|
323
301
|
:form_params => form_params,
|
@@ -328,7 +306,7 @@ module KlaviyoAPI
|
|
328
306
|
|
329
307
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
330
308
|
if @api_client.config.debugging
|
331
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
309
|
+
@api_client.config.logger.debug "API called: CatalogsApi#create_catalog_item_relationships_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
332
310
|
end
|
333
311
|
return data, status_code, headers
|
334
312
|
end
|
@@ -365,7 +343,7 @@ module KlaviyoAPI
|
|
365
343
|
# header parameters
|
366
344
|
header_params = opts[:header_params] || {}
|
367
345
|
# klaviyo api revision
|
368
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
346
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
369
347
|
# HTTP header 'Accept' (if needed)
|
370
348
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
371
349
|
# HTTP header 'Content-Type'
|
@@ -405,7 +383,7 @@ module KlaviyoAPI
|
|
405
383
|
|
406
384
|
# Delete Catalog Category
|
407
385
|
# Delete a catalog category using the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
408
|
-
# @param id [String] The catalog category ID is a compound ID (string), with format: `
|
386
|
+
# @param id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
409
387
|
# @param [Hash] opts the optional parameters
|
410
388
|
# @return [nil]
|
411
389
|
def delete_catalog_category(id, opts = {})
|
@@ -415,7 +393,7 @@ module KlaviyoAPI
|
|
415
393
|
|
416
394
|
# Delete Catalog Category
|
417
395
|
# Delete a catalog category using the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
418
|
-
# @param id [String] The catalog category ID is a compound ID (string), with format: `
|
396
|
+
# @param id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
419
397
|
# @param [Hash] opts the optional parameters
|
420
398
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
421
399
|
def delete_catalog_category_with_http_info(id, opts = {})
|
@@ -435,7 +413,7 @@ module KlaviyoAPI
|
|
435
413
|
# header parameters
|
436
414
|
header_params = opts[:header_params] || {}
|
437
415
|
# klaviyo api revision
|
438
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
416
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
439
417
|
# HTTP header 'Accept' (if needed)
|
440
418
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
441
419
|
|
@@ -468,48 +446,37 @@ module KlaviyoAPI
|
|
468
446
|
return data, status_code, headers
|
469
447
|
end
|
470
448
|
|
471
|
-
# Delete Catalog Category Relationships
|
449
|
+
# Delete Catalog Category Relationships Items
|
472
450
|
# Delete item relationships for the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
473
451
|
# @param id [String]
|
474
|
-
# @param related_resource [String]
|
475
452
|
# @param catalog_category_item_op [CatalogCategoryItemOp]
|
476
453
|
# @param [Hash] opts the optional parameters
|
477
454
|
# @return [nil]
|
478
|
-
def
|
479
|
-
|
455
|
+
def delete_catalog_category_relationships_items(id, catalog_category_item_op, opts = {})
|
456
|
+
delete_catalog_category_relationships_items_with_http_info(id, catalog_category_item_op, opts)
|
480
457
|
nil
|
481
458
|
end
|
482
459
|
|
483
|
-
# Delete Catalog Category Relationships
|
460
|
+
# Delete Catalog Category Relationships Items
|
484
461
|
# Delete item relationships for the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
485
462
|
# @param id [String]
|
486
|
-
# @param related_resource [String]
|
487
463
|
# @param catalog_category_item_op [CatalogCategoryItemOp]
|
488
464
|
# @param [Hash] opts the optional parameters
|
489
465
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
490
|
-
def
|
466
|
+
def delete_catalog_category_relationships_items_with_http_info(id, catalog_category_item_op, opts = {})
|
491
467
|
if @api_client.config.debugging
|
492
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
468
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.delete_catalog_category_relationships_items ...'
|
493
469
|
end
|
494
470
|
# verify the required parameter 'id' is set
|
495
471
|
if @api_client.config.client_side_validation && id.nil?
|
496
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
497
|
-
end
|
498
|
-
# verify the required parameter 'related_resource' is set
|
499
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
500
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.delete_catalog_category_relationships"
|
501
|
-
end
|
502
|
-
# verify enum value
|
503
|
-
allowable_values = ["items"]
|
504
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
505
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
472
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.delete_catalog_category_relationships_items"
|
506
473
|
end
|
507
474
|
# verify the required parameter 'catalog_category_item_op' is set
|
508
475
|
if @api_client.config.client_side_validation && catalog_category_item_op.nil?
|
509
|
-
fail ArgumentError, "Missing the required parameter 'catalog_category_item_op' when calling CatalogsApi.
|
476
|
+
fail ArgumentError, "Missing the required parameter 'catalog_category_item_op' when calling CatalogsApi.delete_catalog_category_relationships_items"
|
510
477
|
end
|
511
478
|
# resource path
|
512
|
-
local_var_path = '/api/catalog-categories/{id}/relationships/
|
479
|
+
local_var_path = '/api/catalog-categories/{id}/relationships/items/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
513
480
|
|
514
481
|
# query parameters
|
515
482
|
query_params = opts[:query_params] || {}
|
@@ -517,7 +484,7 @@ module KlaviyoAPI
|
|
517
484
|
# header parameters
|
518
485
|
header_params = opts[:header_params] || {}
|
519
486
|
# klaviyo api revision
|
520
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
487
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
521
488
|
# HTTP header 'Accept' (if needed)
|
522
489
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
523
490
|
# HTTP header 'Content-Type'
|
@@ -539,7 +506,7 @@ module KlaviyoAPI
|
|
539
506
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
540
507
|
|
541
508
|
new_options = opts.merge(
|
542
|
-
:operation => :"CatalogsApi.
|
509
|
+
:operation => :"CatalogsApi.delete_catalog_category_relationships_items",
|
543
510
|
:header_params => header_params,
|
544
511
|
:query_params => query_params,
|
545
512
|
:form_params => form_params,
|
@@ -550,14 +517,14 @@ module KlaviyoAPI
|
|
550
517
|
|
551
518
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
552
519
|
if @api_client.config.debugging
|
553
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
520
|
+
@api_client.config.logger.debug "API called: CatalogsApi#delete_catalog_category_relationships_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
554
521
|
end
|
555
522
|
return data, status_code, headers
|
556
523
|
end
|
557
524
|
|
558
525
|
# Delete Catalog Item
|
559
526
|
# Delete a catalog item with the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
560
|
-
# @param id [String] The catalog item ID is a compound ID (string), with format: `
|
527
|
+
# @param id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
561
528
|
# @param [Hash] opts the optional parameters
|
562
529
|
# @return [nil]
|
563
530
|
def delete_catalog_item(id, opts = {})
|
@@ -567,7 +534,7 @@ module KlaviyoAPI
|
|
567
534
|
|
568
535
|
# Delete Catalog Item
|
569
536
|
# Delete a catalog item with the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
570
|
-
# @param id [String] The catalog item ID is a compound ID (string), with format: `
|
537
|
+
# @param id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
571
538
|
# @param [Hash] opts the optional parameters
|
572
539
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
573
540
|
def delete_catalog_item_with_http_info(id, opts = {})
|
@@ -587,7 +554,7 @@ module KlaviyoAPI
|
|
587
554
|
# header parameters
|
588
555
|
header_params = opts[:header_params] || {}
|
589
556
|
# klaviyo api revision
|
590
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
557
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
591
558
|
# HTTP header 'Accept' (if needed)
|
592
559
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
593
560
|
|
@@ -620,48 +587,37 @@ module KlaviyoAPI
|
|
620
587
|
return data, status_code, headers
|
621
588
|
end
|
622
589
|
|
623
|
-
# Delete Catalog Item Relationships
|
590
|
+
# Delete Catalog Item Relationships Categories
|
624
591
|
# Delete catalog category relationships for the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
625
592
|
# @param id [String]
|
626
|
-
# @param related_resource [String]
|
627
593
|
# @param catalog_item_category_op [CatalogItemCategoryOp]
|
628
594
|
# @param [Hash] opts the optional parameters
|
629
595
|
# @return [nil]
|
630
|
-
def
|
631
|
-
|
596
|
+
def delete_catalog_item_relationships_categories(id, catalog_item_category_op, opts = {})
|
597
|
+
delete_catalog_item_relationships_categories_with_http_info(id, catalog_item_category_op, opts)
|
632
598
|
nil
|
633
599
|
end
|
634
600
|
|
635
|
-
# Delete Catalog Item Relationships
|
601
|
+
# Delete Catalog Item Relationships Categories
|
636
602
|
# Delete catalog category relationships for the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
637
603
|
# @param id [String]
|
638
|
-
# @param related_resource [String]
|
639
604
|
# @param catalog_item_category_op [CatalogItemCategoryOp]
|
640
605
|
# @param [Hash] opts the optional parameters
|
641
606
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
642
|
-
def
|
607
|
+
def delete_catalog_item_relationships_categories_with_http_info(id, catalog_item_category_op, opts = {})
|
643
608
|
if @api_client.config.debugging
|
644
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
609
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.delete_catalog_item_relationships_categories ...'
|
645
610
|
end
|
646
611
|
# verify the required parameter 'id' is set
|
647
612
|
if @api_client.config.client_side_validation && id.nil?
|
648
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
649
|
-
end
|
650
|
-
# verify the required parameter 'related_resource' is set
|
651
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
652
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.delete_catalog_item_relationships"
|
653
|
-
end
|
654
|
-
# verify enum value
|
655
|
-
allowable_values = ["categories"]
|
656
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
657
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
613
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.delete_catalog_item_relationships_categories"
|
658
614
|
end
|
659
615
|
# verify the required parameter 'catalog_item_category_op' is set
|
660
616
|
if @api_client.config.client_side_validation && catalog_item_category_op.nil?
|
661
|
-
fail ArgumentError, "Missing the required parameter 'catalog_item_category_op' when calling CatalogsApi.
|
617
|
+
fail ArgumentError, "Missing the required parameter 'catalog_item_category_op' when calling CatalogsApi.delete_catalog_item_relationships_categories"
|
662
618
|
end
|
663
619
|
# resource path
|
664
|
-
local_var_path = '/api/catalog-items/{id}/relationships/
|
620
|
+
local_var_path = '/api/catalog-items/{id}/relationships/categories/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
665
621
|
|
666
622
|
# query parameters
|
667
623
|
query_params = opts[:query_params] || {}
|
@@ -669,7 +625,7 @@ module KlaviyoAPI
|
|
669
625
|
# header parameters
|
670
626
|
header_params = opts[:header_params] || {}
|
671
627
|
# klaviyo api revision
|
672
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
628
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
673
629
|
# HTTP header 'Accept' (if needed)
|
674
630
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
675
631
|
# HTTP header 'Content-Type'
|
@@ -691,7 +647,7 @@ module KlaviyoAPI
|
|
691
647
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
692
648
|
|
693
649
|
new_options = opts.merge(
|
694
|
-
:operation => :"CatalogsApi.
|
650
|
+
:operation => :"CatalogsApi.delete_catalog_item_relationships_categories",
|
695
651
|
:header_params => header_params,
|
696
652
|
:query_params => query_params,
|
697
653
|
:form_params => form_params,
|
@@ -702,14 +658,14 @@ module KlaviyoAPI
|
|
702
658
|
|
703
659
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
704
660
|
if @api_client.config.debugging
|
705
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
661
|
+
@api_client.config.logger.debug "API called: CatalogsApi#delete_catalog_item_relationships_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
706
662
|
end
|
707
663
|
return data, status_code, headers
|
708
664
|
end
|
709
665
|
|
710
666
|
# Delete Catalog Variant
|
711
667
|
# Delete a catalog item variant with the given variant ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
712
|
-
# @param id [String] The catalog variant ID is a compound ID (string), with format: `
|
668
|
+
# @param id [String] The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
713
669
|
# @param [Hash] opts the optional parameters
|
714
670
|
# @return [nil]
|
715
671
|
def delete_catalog_variant(id, opts = {})
|
@@ -719,7 +675,7 @@ module KlaviyoAPI
|
|
719
675
|
|
720
676
|
# Delete Catalog Variant
|
721
677
|
# Delete a catalog item variant with the given variant ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
722
|
-
# @param id [String] The catalog variant ID is a compound ID (string), with format: `
|
678
|
+
# @param id [String] The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
723
679
|
# @param [Hash] opts the optional parameters
|
724
680
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
725
681
|
def delete_catalog_variant_with_http_info(id, opts = {})
|
@@ -739,7 +695,7 @@ module KlaviyoAPI
|
|
739
695
|
# header parameters
|
740
696
|
header_params = opts[:header_params] || {}
|
741
697
|
# klaviyo api revision
|
742
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
698
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
743
699
|
# HTTP header 'Accept' (if needed)
|
744
700
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
745
701
|
|
@@ -775,10 +731,10 @@ module KlaviyoAPI
|
|
775
731
|
# Get Catalog Categories
|
776
732
|
# Get all catalog categories in an account. Catalog categories can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 categories per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
777
733
|
# @param [Hash] opts the optional parameters
|
778
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
779
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
780
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
781
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
734
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
735
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`name`: `contains`
|
736
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
737
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
782
738
|
# @return [Hash<String, Object>]
|
783
739
|
def get_catalog_categories(opts = {})
|
784
740
|
data, _status_code, _headers = get_catalog_categories_with_http_info(opts)
|
@@ -788,10 +744,10 @@ module KlaviyoAPI
|
|
788
744
|
# Get Catalog Categories
|
789
745
|
# Get all catalog categories in an account. Catalog categories can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 categories per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
790
746
|
# @param [Hash] opts the optional parameters
|
791
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
792
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
793
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
794
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
747
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
748
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`name`: `contains`
|
749
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
750
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
795
751
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
796
752
|
def get_catalog_categories_with_http_info(opts = {})
|
797
753
|
if @api_client.config.debugging
|
@@ -818,7 +774,7 @@ module KlaviyoAPI
|
|
818
774
|
# header parameters
|
819
775
|
header_params = opts[:header_params] || {}
|
820
776
|
# klaviyo api revision
|
821
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
777
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
822
778
|
# HTTP header 'Accept' (if needed)
|
823
779
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
824
780
|
|
@@ -853,9 +809,9 @@ module KlaviyoAPI
|
|
853
809
|
|
854
810
|
# Get Catalog Category
|
855
811
|
# Get a catalog category with the given category ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
856
|
-
# @param id [String] The catalog category ID is a compound ID (string), with format: `
|
812
|
+
# @param id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
857
813
|
# @param [Hash] opts the optional parameters
|
858
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
814
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
859
815
|
# @return [Hash<String, Object>]
|
860
816
|
def get_catalog_category(id, opts = {})
|
861
817
|
data, _status_code, _headers = get_catalog_category_with_http_info(id, opts)
|
@@ -864,9 +820,9 @@ module KlaviyoAPI
|
|
864
820
|
|
865
821
|
# Get Catalog Category
|
866
822
|
# Get a catalog category with the given category ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
867
|
-
# @param id [String] The catalog category ID is a compound ID (string), with format: `
|
823
|
+
# @param id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
868
824
|
# @param [Hash] opts the optional parameters
|
869
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
825
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
870
826
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
871
827
|
def get_catalog_category_with_http_info(id, opts = {})
|
872
828
|
if @api_client.config.debugging
|
@@ -890,7 +846,7 @@ module KlaviyoAPI
|
|
890
846
|
# header parameters
|
891
847
|
header_params = opts[:header_params] || {}
|
892
848
|
# klaviyo api revision
|
893
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
849
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
894
850
|
# HTTP header 'Accept' (if needed)
|
895
851
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
896
852
|
|
@@ -925,14 +881,14 @@ module KlaviyoAPI
|
|
925
881
|
|
926
882
|
# Get Catalog Category Items
|
927
883
|
# Get all items in a category with the given category ID. Items can be sorted by the following fields, in ascending and descending order: `created` Include parameters can be provided to get the following related resource data: `variants` Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
928
|
-
# @param category_id [String]
|
929
|
-
# @param [Hash] opts the optional parameters
|
930
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
931
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
932
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
933
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
934
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
935
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
884
|
+
# @param category_id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
885
|
+
# @param [Hash] opts the optional parameters
|
886
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
887
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
888
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
889
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
890
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
891
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
936
892
|
# @return [Hash<String, Object>]
|
937
893
|
def get_catalog_category_items(category_id, opts = {})
|
938
894
|
data, _status_code, _headers = get_catalog_category_items_with_http_info(category_id, opts)
|
@@ -941,14 +897,14 @@ module KlaviyoAPI
|
|
941
897
|
|
942
898
|
# Get Catalog Category Items
|
943
899
|
# Get all items in a category with the given category ID. Items can be sorted by the following fields, in ascending and descending order: `created` Include parameters can be provided to get the following related resource data: `variants` Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
944
|
-
# @param category_id [String]
|
945
|
-
# @param [Hash] opts the optional parameters
|
946
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
947
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
948
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
949
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
950
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
951
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
900
|
+
# @param category_id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
901
|
+
# @param [Hash] opts the optional parameters
|
902
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
903
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
904
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
905
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
906
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
907
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
952
908
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
953
909
|
def get_catalog_category_items_with_http_info(category_id, opts = {})
|
954
910
|
if @api_client.config.debugging
|
@@ -958,7 +914,7 @@ module KlaviyoAPI
|
|
958
914
|
if @api_client.config.client_side_validation && category_id.nil?
|
959
915
|
fail ArgumentError, "Missing the required parameter 'category_id' when calling CatalogsApi.get_catalog_category_items"
|
960
916
|
end
|
961
|
-
allowable_values = ["external_id", "title", "description", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
917
|
+
allowable_values = ["external_id", "title", "description", "price", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
962
918
|
if @api_client.config.client_side_validation && opts[:'fields_catalog_item'] && !opts[:'fields_catalog_item'].all? { |item| allowable_values.include?(item) }
|
963
919
|
fail ArgumentError, "invalid value for \"fields_catalog_item\", must include one of #{allowable_values}"
|
964
920
|
end
|
@@ -989,7 +945,7 @@ module KlaviyoAPI
|
|
989
945
|
# header parameters
|
990
946
|
header_params = opts[:header_params] || {}
|
991
947
|
# klaviyo api revision
|
992
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
948
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
993
949
|
# HTTP header 'Accept' (if needed)
|
994
950
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
995
951
|
|
@@ -1022,44 +978,33 @@ module KlaviyoAPI
|
|
1022
978
|
return data, status_code, headers
|
1023
979
|
end
|
1024
980
|
|
1025
|
-
# Get Catalog Category Relationships
|
981
|
+
# Get Catalog Category Relationships Items
|
1026
982
|
# Get all items in the given category ID. Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1027
983
|
# @param id [String]
|
1028
|
-
# @param related_resource [String]
|
1029
984
|
# @param [Hash] opts the optional parameters
|
1030
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
985
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1031
986
|
# @return [Hash<String, Object>]
|
1032
|
-
def
|
1033
|
-
data, _status_code, _headers =
|
987
|
+
def get_catalog_category_relationships_items(id, opts = {})
|
988
|
+
data, _status_code, _headers = get_catalog_category_relationships_items_with_http_info(id, opts)
|
1034
989
|
data
|
1035
990
|
end
|
1036
991
|
|
1037
|
-
# Get Catalog Category Relationships
|
992
|
+
# Get Catalog Category Relationships Items
|
1038
993
|
# Get all items in the given category ID. Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1039
994
|
# @param id [String]
|
1040
|
-
# @param related_resource [String]
|
1041
995
|
# @param [Hash] opts the optional parameters
|
1042
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
996
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1043
997
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1044
|
-
def
|
998
|
+
def get_catalog_category_relationships_items_with_http_info(id, opts = {})
|
1045
999
|
if @api_client.config.debugging
|
1046
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
1000
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.get_catalog_category_relationships_items ...'
|
1047
1001
|
end
|
1048
1002
|
# verify the required parameter 'id' is set
|
1049
1003
|
if @api_client.config.client_side_validation && id.nil?
|
1050
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
1051
|
-
end
|
1052
|
-
# verify the required parameter 'related_resource' is set
|
1053
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
1054
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.get_catalog_category_relationships"
|
1055
|
-
end
|
1056
|
-
# verify enum value
|
1057
|
-
allowable_values = ["items"]
|
1058
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
1059
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
1004
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.get_catalog_category_relationships_items"
|
1060
1005
|
end
|
1061
1006
|
# resource path
|
1062
|
-
local_var_path = '/api/catalog-categories/{id}/relationships/
|
1007
|
+
local_var_path = '/api/catalog-categories/{id}/relationships/items/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1063
1008
|
|
1064
1009
|
# query parameters
|
1065
1010
|
query_params = opts[:query_params] || {}
|
@@ -1068,7 +1013,7 @@ module KlaviyoAPI
|
|
1068
1013
|
# header parameters
|
1069
1014
|
header_params = opts[:header_params] || {}
|
1070
1015
|
# klaviyo api revision
|
1071
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1016
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1072
1017
|
# HTTP header 'Accept' (if needed)
|
1073
1018
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1074
1019
|
|
@@ -1085,7 +1030,7 @@ module KlaviyoAPI
|
|
1085
1030
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
1086
1031
|
|
1087
1032
|
new_options = opts.merge(
|
1088
|
-
:operation => :"CatalogsApi.
|
1033
|
+
:operation => :"CatalogsApi.get_catalog_category_relationships_items",
|
1089
1034
|
:header_params => header_params,
|
1090
1035
|
:query_params => query_params,
|
1091
1036
|
:form_params => form_params,
|
@@ -1096,18 +1041,18 @@ module KlaviyoAPI
|
|
1096
1041
|
|
1097
1042
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1098
1043
|
if @api_client.config.debugging
|
1099
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
1044
|
+
@api_client.config.logger.debug "API called: CatalogsApi#get_catalog_category_relationships_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1100
1045
|
end
|
1101
1046
|
return data, status_code, headers
|
1102
1047
|
end
|
1103
1048
|
|
1104
1049
|
# Get Catalog Item
|
1105
1050
|
# Get a specific catalog item with the given item ID. Include parameters can be provided to get the following related resource data: `variants`<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1106
|
-
# @param id [String]
|
1051
|
+
# @param id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1107
1052
|
# @param [Hash] opts the optional parameters
|
1108
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
1109
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1110
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1053
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1054
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1055
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1111
1056
|
# @return [Hash<String, Object>]
|
1112
1057
|
def get_catalog_item(id, opts = {})
|
1113
1058
|
data, _status_code, _headers = get_catalog_item_with_http_info(id, opts)
|
@@ -1116,11 +1061,11 @@ module KlaviyoAPI
|
|
1116
1061
|
|
1117
1062
|
# Get Catalog Item
|
1118
1063
|
# Get a specific catalog item with the given item ID. Include parameters can be provided to get the following related resource data: `variants`<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1119
|
-
# @param id [String]
|
1064
|
+
# @param id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1120
1065
|
# @param [Hash] opts the optional parameters
|
1121
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
1122
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1123
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1066
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1067
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1068
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1124
1069
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1125
1070
|
def get_catalog_item_with_http_info(id, opts = {})
|
1126
1071
|
if @api_client.config.debugging
|
@@ -1130,7 +1075,7 @@ module KlaviyoAPI
|
|
1130
1075
|
if @api_client.config.client_side_validation && id.nil?
|
1131
1076
|
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.get_catalog_item"
|
1132
1077
|
end
|
1133
|
-
allowable_values = ["external_id", "title", "description", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
1078
|
+
allowable_values = ["external_id", "title", "description", "price", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
1134
1079
|
if @api_client.config.client_side_validation && opts[:'fields_catalog_item'] && !opts[:'fields_catalog_item'].all? { |item| allowable_values.include?(item) }
|
1135
1080
|
fail ArgumentError, "invalid value for \"fields_catalog_item\", must include one of #{allowable_values}"
|
1136
1081
|
end
|
@@ -1154,7 +1099,7 @@ module KlaviyoAPI
|
|
1154
1099
|
# header parameters
|
1155
1100
|
header_params = opts[:header_params] || {}
|
1156
1101
|
# klaviyo api revision
|
1157
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1102
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1158
1103
|
# HTTP header 'Accept' (if needed)
|
1159
1104
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1160
1105
|
|
@@ -1189,12 +1134,12 @@ module KlaviyoAPI
|
|
1189
1134
|
|
1190
1135
|
# Get Catalog Item Categories
|
1191
1136
|
# Get all catalog categories that an item with the given item ID is in. Catalog categories can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 categories per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1192
|
-
# @param item_id [String]
|
1137
|
+
# @param item_id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1193
1138
|
# @param [Hash] opts the optional parameters
|
1194
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
1195
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1196
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1197
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1139
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1140
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`name`: `contains`
|
1141
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1142
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1198
1143
|
# @return [Hash<String, Object>]
|
1199
1144
|
def get_catalog_item_categories(item_id, opts = {})
|
1200
1145
|
data, _status_code, _headers = get_catalog_item_categories_with_http_info(item_id, opts)
|
@@ -1203,12 +1148,12 @@ module KlaviyoAPI
|
|
1203
1148
|
|
1204
1149
|
# Get Catalog Item Categories
|
1205
1150
|
# Get all catalog categories that an item with the given item ID is in. Catalog categories can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 categories per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1206
|
-
# @param item_id [String]
|
1151
|
+
# @param item_id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1207
1152
|
# @param [Hash] opts the optional parameters
|
1208
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
1209
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1210
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1211
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1153
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1154
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`name`: `contains`
|
1155
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1156
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1212
1157
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1213
1158
|
def get_catalog_item_categories_with_http_info(item_id, opts = {})
|
1214
1159
|
if @api_client.config.debugging
|
@@ -1239,7 +1184,7 @@ module KlaviyoAPI
|
|
1239
1184
|
# header parameters
|
1240
1185
|
header_params = opts[:header_params] || {}
|
1241
1186
|
# klaviyo api revision
|
1242
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1187
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1243
1188
|
# HTTP header 'Accept' (if needed)
|
1244
1189
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1245
1190
|
|
@@ -1272,44 +1217,33 @@ module KlaviyoAPI
|
|
1272
1217
|
return data, status_code, headers
|
1273
1218
|
end
|
1274
1219
|
|
1275
|
-
# Get Catalog Item Relationships
|
1220
|
+
# Get Catalog Item Relationships Categories
|
1276
1221
|
# Get all catalog categories that a particular item is in. Returns a maximum of 100 categories per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1277
1222
|
# @param id [String]
|
1278
|
-
# @param related_resource [String]
|
1279
1223
|
# @param [Hash] opts the optional parameters
|
1280
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1224
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1281
1225
|
# @return [Hash<String, Object>]
|
1282
|
-
def
|
1283
|
-
data, _status_code, _headers =
|
1226
|
+
def get_catalog_item_relationships_categories(id, opts = {})
|
1227
|
+
data, _status_code, _headers = get_catalog_item_relationships_categories_with_http_info(id, opts)
|
1284
1228
|
data
|
1285
1229
|
end
|
1286
1230
|
|
1287
|
-
# Get Catalog Item Relationships
|
1231
|
+
# Get Catalog Item Relationships Categories
|
1288
1232
|
# Get all catalog categories that a particular item is in. Returns a maximum of 100 categories per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1289
1233
|
# @param id [String]
|
1290
|
-
# @param related_resource [String]
|
1291
1234
|
# @param [Hash] opts the optional parameters
|
1292
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1235
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1293
1236
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1294
|
-
def
|
1237
|
+
def get_catalog_item_relationships_categories_with_http_info(id, opts = {})
|
1295
1238
|
if @api_client.config.debugging
|
1296
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
1239
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.get_catalog_item_relationships_categories ...'
|
1297
1240
|
end
|
1298
1241
|
# verify the required parameter 'id' is set
|
1299
1242
|
if @api_client.config.client_side_validation && id.nil?
|
1300
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
1301
|
-
end
|
1302
|
-
# verify the required parameter 'related_resource' is set
|
1303
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
1304
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.get_catalog_item_relationships"
|
1305
|
-
end
|
1306
|
-
# verify enum value
|
1307
|
-
allowable_values = ["categories"]
|
1308
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
1309
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
1243
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.get_catalog_item_relationships_categories"
|
1310
1244
|
end
|
1311
1245
|
# resource path
|
1312
|
-
local_var_path = '/api/catalog-items/{id}/relationships/
|
1246
|
+
local_var_path = '/api/catalog-items/{id}/relationships/categories/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1313
1247
|
|
1314
1248
|
# query parameters
|
1315
1249
|
query_params = opts[:query_params] || {}
|
@@ -1318,7 +1252,7 @@ module KlaviyoAPI
|
|
1318
1252
|
# header parameters
|
1319
1253
|
header_params = opts[:header_params] || {}
|
1320
1254
|
# klaviyo api revision
|
1321
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1255
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1322
1256
|
# HTTP header 'Accept' (if needed)
|
1323
1257
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1324
1258
|
|
@@ -1335,7 +1269,7 @@ module KlaviyoAPI
|
|
1335
1269
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
1336
1270
|
|
1337
1271
|
new_options = opts.merge(
|
1338
|
-
:operation => :"CatalogsApi.
|
1272
|
+
:operation => :"CatalogsApi.get_catalog_item_relationships_categories",
|
1339
1273
|
:header_params => header_params,
|
1340
1274
|
:query_params => query_params,
|
1341
1275
|
:form_params => form_params,
|
@@ -1346,19 +1280,19 @@ module KlaviyoAPI
|
|
1346
1280
|
|
1347
1281
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1348
1282
|
if @api_client.config.debugging
|
1349
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
1283
|
+
@api_client.config.logger.debug "API called: CatalogsApi#get_catalog_item_relationships_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1350
1284
|
end
|
1351
1285
|
return data, status_code, headers
|
1352
1286
|
end
|
1353
1287
|
|
1354
1288
|
# Get Catalog Item Variants
|
1355
1289
|
# Get all variants related to the given item ID. Variants can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 variants per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1356
|
-
# @param item_id [String] The catalog item ID is a compound ID (string), with format: `
|
1290
|
+
# @param item_id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1357
1291
|
# @param [Hash] opts the optional parameters
|
1358
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1359
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1360
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1361
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1292
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1293
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
1294
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1295
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1362
1296
|
# @return [Hash<String, Object>]
|
1363
1297
|
def get_catalog_item_variants(item_id, opts = {})
|
1364
1298
|
data, _status_code, _headers = get_catalog_item_variants_with_http_info(item_id, opts)
|
@@ -1367,12 +1301,12 @@ module KlaviyoAPI
|
|
1367
1301
|
|
1368
1302
|
# Get Catalog Item Variants
|
1369
1303
|
# Get all variants related to the given item ID. Variants can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 variants per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1370
|
-
# @param item_id [String] The catalog item ID is a compound ID (string), with format: `
|
1304
|
+
# @param item_id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1371
1305
|
# @param [Hash] opts the optional parameters
|
1372
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1373
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1374
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1375
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1306
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1307
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
1308
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1309
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1376
1310
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1377
1311
|
def get_catalog_item_variants_with_http_info(item_id, opts = {})
|
1378
1312
|
if @api_client.config.debugging
|
@@ -1403,7 +1337,7 @@ module KlaviyoAPI
|
|
1403
1337
|
# header parameters
|
1404
1338
|
header_params = opts[:header_params] || {}
|
1405
1339
|
# klaviyo api revision
|
1406
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1340
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1407
1341
|
# HTTP header 'Accept' (if needed)
|
1408
1342
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1409
1343
|
|
@@ -1439,12 +1373,12 @@ module KlaviyoAPI
|
|
1439
1373
|
# Get Catalog Items
|
1440
1374
|
# Get all catalog items in an account. Catalog items can be sorted by the following fields, in ascending and descending order: `created` Include parameters can be provided to get the following related resource data: `variants` Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1441
1375
|
# @param [Hash] opts the optional parameters
|
1442
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
1443
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1444
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1445
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1446
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1447
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1376
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1377
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1378
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
1379
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1380
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1381
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1448
1382
|
# @return [Hash<String, Object>]
|
1449
1383
|
def get_catalog_items(opts = {})
|
1450
1384
|
data, _status_code, _headers = get_catalog_items_with_http_info(opts)
|
@@ -1454,18 +1388,18 @@ module KlaviyoAPI
|
|
1454
1388
|
# Get Catalog Items
|
1455
1389
|
# Get all catalog items in an account. Catalog items can be sorted by the following fields, in ascending and descending order: `created` Include parameters can be provided to get the following related resource data: `variants` Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1456
1390
|
# @param [Hash] opts the optional parameters
|
1457
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
1458
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1459
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1460
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1461
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1462
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1391
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1392
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1393
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
1394
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1395
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1396
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1463
1397
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1464
1398
|
def get_catalog_items_with_http_info(opts = {})
|
1465
1399
|
if @api_client.config.debugging
|
1466
1400
|
@api_client.config.logger.debug 'Calling API: CatalogsApi.get_catalog_items ...'
|
1467
1401
|
end
|
1468
|
-
allowable_values = ["external_id", "title", "description", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
1402
|
+
allowable_values = ["external_id", "title", "description", "price", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
1469
1403
|
if @api_client.config.client_side_validation && opts[:'fields_catalog_item'] && !opts[:'fields_catalog_item'].all? { |item| allowable_values.include?(item) }
|
1470
1404
|
fail ArgumentError, "invalid value for \"fields_catalog_item\", must include one of #{allowable_values}"
|
1471
1405
|
end
|
@@ -1496,7 +1430,7 @@ module KlaviyoAPI
|
|
1496
1430
|
# header parameters
|
1497
1431
|
header_params = opts[:header_params] || {}
|
1498
1432
|
# klaviyo api revision
|
1499
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1433
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1500
1434
|
# HTTP header 'Accept' (if needed)
|
1501
1435
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1502
1436
|
|
@@ -1531,9 +1465,9 @@ module KlaviyoAPI
|
|
1531
1465
|
|
1532
1466
|
# Get Catalog Variant
|
1533
1467
|
# Get a catalog item variant with the given variant ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1534
|
-
# @param id [String] The catalog variant ID is a compound ID (string), with format: `
|
1468
|
+
# @param id [String] The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1535
1469
|
# @param [Hash] opts the optional parameters
|
1536
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1470
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1537
1471
|
# @return [Hash<String, Object>]
|
1538
1472
|
def get_catalog_variant(id, opts = {})
|
1539
1473
|
data, _status_code, _headers = get_catalog_variant_with_http_info(id, opts)
|
@@ -1542,9 +1476,9 @@ module KlaviyoAPI
|
|
1542
1476
|
|
1543
1477
|
# Get Catalog Variant
|
1544
1478
|
# Get a catalog item variant with the given variant ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1545
|
-
# @param id [String] The catalog variant ID is a compound ID (string), with format: `
|
1479
|
+
# @param id [String] The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
1546
1480
|
# @param [Hash] opts the optional parameters
|
1547
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1481
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1548
1482
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1549
1483
|
def get_catalog_variant_with_http_info(id, opts = {})
|
1550
1484
|
if @api_client.config.debugging
|
@@ -1568,7 +1502,7 @@ module KlaviyoAPI
|
|
1568
1502
|
# header parameters
|
1569
1503
|
header_params = opts[:header_params] || {}
|
1570
1504
|
# klaviyo api revision
|
1571
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1505
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1572
1506
|
# HTTP header 'Accept' (if needed)
|
1573
1507
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1574
1508
|
|
@@ -1604,10 +1538,10 @@ module KlaviyoAPI
|
|
1604
1538
|
# Get Catalog Variants
|
1605
1539
|
# Get all variants in an account. Variants can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 variants per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1606
1540
|
# @param [Hash] opts the optional parameters
|
1607
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1608
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1609
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1610
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1541
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1542
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
1543
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1544
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1611
1545
|
# @return [Hash<String, Object>]
|
1612
1546
|
def get_catalog_variants(opts = {})
|
1613
1547
|
data, _status_code, _headers = get_catalog_variants_with_http_info(opts)
|
@@ -1617,10 +1551,10 @@ module KlaviyoAPI
|
|
1617
1551
|
# Get Catalog Variants
|
1618
1552
|
# Get all variants in an account. Variants can be sorted by the following fields, in ascending and descending order: `created` Returns a maximum of 100 variants per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1619
1553
|
# @param [Hash] opts the optional parameters
|
1620
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
1621
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1622
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1623
|
-
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-
|
1554
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1555
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals`
|
1556
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1557
|
+
# @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1624
1558
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1625
1559
|
def get_catalog_variants_with_http_info(opts = {})
|
1626
1560
|
if @api_client.config.debugging
|
@@ -1647,7 +1581,7 @@ module KlaviyoAPI
|
|
1647
1581
|
# header parameters
|
1648
1582
|
header_params = opts[:header_params] || {}
|
1649
1583
|
# klaviyo api revision
|
1650
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1584
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1651
1585
|
# HTTP header 'Accept' (if needed)
|
1652
1586
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1653
1587
|
|
@@ -1681,12 +1615,12 @@ module KlaviyoAPI
|
|
1681
1615
|
end
|
1682
1616
|
|
1683
1617
|
# Get Create Categories Job
|
1684
|
-
# Get a catalog category bulk create job with the given job ID.
|
1685
|
-
# @param job_id [String]
|
1618
|
+
# Get a catalog category bulk create job with the given job ID. An `include` parameter can be provided to get the following related resource data: `categories`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1619
|
+
# @param job_id [String] ID of the job to retrieve.
|
1686
1620
|
# @param [Hash] opts the optional parameters
|
1687
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1688
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
1689
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1621
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1622
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1623
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1690
1624
|
# @return [Hash<String, Object>]
|
1691
1625
|
def get_create_categories_job(job_id, opts = {})
|
1692
1626
|
data, _status_code, _headers = get_create_categories_job_with_http_info(job_id, opts)
|
@@ -1694,12 +1628,12 @@ module KlaviyoAPI
|
|
1694
1628
|
end
|
1695
1629
|
|
1696
1630
|
# Get Create Categories Job
|
1697
|
-
# Get a catalog category bulk create job with the given job ID.
|
1698
|
-
# @param job_id [String]
|
1631
|
+
# Get a catalog category bulk create job with the given job ID. An `include` parameter can be provided to get the following related resource data: `categories`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1632
|
+
# @param job_id [String] ID of the job to retrieve.
|
1699
1633
|
# @param [Hash] opts the optional parameters
|
1700
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1701
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
1702
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1634
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1635
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1636
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1703
1637
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1704
1638
|
def get_create_categories_job_with_http_info(job_id, opts = {})
|
1705
1639
|
if @api_client.config.debugging
|
@@ -1733,7 +1667,7 @@ module KlaviyoAPI
|
|
1733
1667
|
# header parameters
|
1734
1668
|
header_params = opts[:header_params] || {}
|
1735
1669
|
# klaviyo api revision
|
1736
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1670
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1737
1671
|
# HTTP header 'Accept' (if needed)
|
1738
1672
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1739
1673
|
|
@@ -1769,9 +1703,9 @@ module KlaviyoAPI
|
|
1769
1703
|
# Get Create Categories Jobs
|
1770
1704
|
# Get all catalog category bulk create jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1771
1705
|
# @param [Hash] opts the optional parameters
|
1772
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1773
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1774
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1706
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1707
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
1708
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1775
1709
|
# @return [Hash<String, Object>]
|
1776
1710
|
def get_create_categories_jobs(opts = {})
|
1777
1711
|
data, _status_code, _headers = get_create_categories_jobs_with_http_info(opts)
|
@@ -1781,9 +1715,9 @@ module KlaviyoAPI
|
|
1781
1715
|
# Get Create Categories Jobs
|
1782
1716
|
# Get all catalog category bulk create jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1783
1717
|
# @param [Hash] opts the optional parameters
|
1784
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1785
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1786
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1718
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1719
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
1720
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1787
1721
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1788
1722
|
def get_create_categories_jobs_with_http_info(opts = {})
|
1789
1723
|
if @api_client.config.debugging
|
@@ -1805,7 +1739,7 @@ module KlaviyoAPI
|
|
1805
1739
|
# header parameters
|
1806
1740
|
header_params = opts[:header_params] || {}
|
1807
1741
|
# klaviyo api revision
|
1808
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1742
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1809
1743
|
# HTTP header 'Accept' (if needed)
|
1810
1744
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1811
1745
|
|
@@ -1839,12 +1773,12 @@ module KlaviyoAPI
|
|
1839
1773
|
end
|
1840
1774
|
|
1841
1775
|
# Get Create Items Job
|
1842
|
-
# Get a catalog item bulk create job with the given job ID.
|
1843
|
-
# @param job_id [String]
|
1776
|
+
# Get a catalog item bulk create job with the given job ID. An `include` parameter can be provided to get the following related resource data: `items`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1777
|
+
# @param job_id [String] ID of the job to retrieve.
|
1844
1778
|
# @param [Hash] opts the optional parameters
|
1845
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1846
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
1847
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1779
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1780
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1781
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1848
1782
|
# @return [Hash<String, Object>]
|
1849
1783
|
def get_create_items_job(job_id, opts = {})
|
1850
1784
|
data, _status_code, _headers = get_create_items_job_with_http_info(job_id, opts)
|
@@ -1852,12 +1786,12 @@ module KlaviyoAPI
|
|
1852
1786
|
end
|
1853
1787
|
|
1854
1788
|
# Get Create Items Job
|
1855
|
-
# Get a catalog item bulk create job with the given job ID.
|
1856
|
-
# @param job_id [String]
|
1789
|
+
# Get a catalog item bulk create job with the given job ID. An `include` parameter can be provided to get the following related resource data: `items`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1790
|
+
# @param job_id [String] ID of the job to retrieve.
|
1857
1791
|
# @param [Hash] opts the optional parameters
|
1858
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1859
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
1860
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1792
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1793
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1794
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
1861
1795
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1862
1796
|
def get_create_items_job_with_http_info(job_id, opts = {})
|
1863
1797
|
if @api_client.config.debugging
|
@@ -1871,7 +1805,7 @@ module KlaviyoAPI
|
|
1871
1805
|
if @api_client.config.client_side_validation && opts[:'fields_catalog_item_bulk_create_job'] && !opts[:'fields_catalog_item_bulk_create_job'].all? { |item| allowable_values.include?(item) }
|
1872
1806
|
fail ArgumentError, "invalid value for \"fields_catalog_item_bulk_create_job\", must include one of #{allowable_values}"
|
1873
1807
|
end
|
1874
|
-
allowable_values = ["external_id", "title", "description", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
1808
|
+
allowable_values = ["external_id", "title", "description", "price", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
1875
1809
|
if @api_client.config.client_side_validation && opts[:'fields_catalog_item'] && !opts[:'fields_catalog_item'].all? { |item| allowable_values.include?(item) }
|
1876
1810
|
fail ArgumentError, "invalid value for \"fields_catalog_item\", must include one of #{allowable_values}"
|
1877
1811
|
end
|
@@ -1891,7 +1825,7 @@ module KlaviyoAPI
|
|
1891
1825
|
# header parameters
|
1892
1826
|
header_params = opts[:header_params] || {}
|
1893
1827
|
# klaviyo api revision
|
1894
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1828
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1895
1829
|
# HTTP header 'Accept' (if needed)
|
1896
1830
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1897
1831
|
|
@@ -1927,9 +1861,9 @@ module KlaviyoAPI
|
|
1927
1861
|
# Get Create Items Jobs
|
1928
1862
|
# Get all catalog item bulk create jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1929
1863
|
# @param [Hash] opts the optional parameters
|
1930
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1931
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1932
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1864
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1865
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
1866
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1933
1867
|
# @return [Hash<String, Object>]
|
1934
1868
|
def get_create_items_jobs(opts = {})
|
1935
1869
|
data, _status_code, _headers = get_create_items_jobs_with_http_info(opts)
|
@@ -1939,9 +1873,9 @@ module KlaviyoAPI
|
|
1939
1873
|
# Get Create Items Jobs
|
1940
1874
|
# Get all catalog item bulk create jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1941
1875
|
# @param [Hash] opts the optional parameters
|
1942
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
1943
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
1944
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
1876
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1877
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
1878
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1945
1879
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
1946
1880
|
def get_create_items_jobs_with_http_info(opts = {})
|
1947
1881
|
if @api_client.config.debugging
|
@@ -1963,7 +1897,7 @@ module KlaviyoAPI
|
|
1963
1897
|
# header parameters
|
1964
1898
|
header_params = opts[:header_params] || {}
|
1965
1899
|
# klaviyo api revision
|
1966
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1900
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
1967
1901
|
# HTTP header 'Accept' (if needed)
|
1968
1902
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1969
1903
|
|
@@ -1997,12 +1931,12 @@ module KlaviyoAPI
|
|
1997
1931
|
end
|
1998
1932
|
|
1999
1933
|
# Get Create Variants Job
|
2000
|
-
# Get a catalog variant bulk create job with the given job ID.
|
2001
|
-
# @param job_id [String]
|
1934
|
+
# Get a catalog variant bulk create job with the given job ID. An `include` parameter can be provided to get the following related resource data: `variants`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1935
|
+
# @param job_id [String] ID of the job to retrieve.
|
2002
1936
|
# @param [Hash] opts the optional parameters
|
2003
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2004
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
2005
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1937
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1938
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1939
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2006
1940
|
# @return [Hash<String, Object>]
|
2007
1941
|
def get_create_variants_job(job_id, opts = {})
|
2008
1942
|
data, _status_code, _headers = get_create_variants_job_with_http_info(job_id, opts)
|
@@ -2010,12 +1944,12 @@ module KlaviyoAPI
|
|
2010
1944
|
end
|
2011
1945
|
|
2012
1946
|
# Get Create Variants Job
|
2013
|
-
# Get a catalog variant bulk create job with the given job ID.
|
2014
|
-
# @param job_id [String]
|
1947
|
+
# Get a catalog variant bulk create job with the given job ID. An `include` parameter can be provided to get the following related resource data: `variants`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
1948
|
+
# @param job_id [String] ID of the job to retrieve.
|
2015
1949
|
# @param [Hash] opts the optional parameters
|
2016
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2017
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
2018
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
1950
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1951
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1952
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2019
1953
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2020
1954
|
def get_create_variants_job_with_http_info(job_id, opts = {})
|
2021
1955
|
if @api_client.config.debugging
|
@@ -2049,7 +1983,7 @@ module KlaviyoAPI
|
|
2049
1983
|
# header parameters
|
2050
1984
|
header_params = opts[:header_params] || {}
|
2051
1985
|
# klaviyo api revision
|
2052
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
1986
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2053
1987
|
# HTTP header 'Accept' (if needed)
|
2054
1988
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2055
1989
|
|
@@ -2085,9 +2019,9 @@ module KlaviyoAPI
|
|
2085
2019
|
# Get Create Variants Jobs
|
2086
2020
|
# Get all catalog variant bulk create jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2087
2021
|
# @param [Hash] opts the optional parameters
|
2088
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2089
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2090
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2022
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2023
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2024
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2091
2025
|
# @return [Hash<String, Object>]
|
2092
2026
|
def get_create_variants_jobs(opts = {})
|
2093
2027
|
data, _status_code, _headers = get_create_variants_jobs_with_http_info(opts)
|
@@ -2097,9 +2031,9 @@ module KlaviyoAPI
|
|
2097
2031
|
# Get Create Variants Jobs
|
2098
2032
|
# Get all catalog variant bulk create jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2099
2033
|
# @param [Hash] opts the optional parameters
|
2100
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2101
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2102
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2034
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2035
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2036
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2103
2037
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2104
2038
|
def get_create_variants_jobs_with_http_info(opts = {})
|
2105
2039
|
if @api_client.config.debugging
|
@@ -2121,7 +2055,7 @@ module KlaviyoAPI
|
|
2121
2055
|
# header parameters
|
2122
2056
|
header_params = opts[:header_params] || {}
|
2123
2057
|
# klaviyo api revision
|
2124
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2058
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2125
2059
|
# HTTP header 'Accept' (if needed)
|
2126
2060
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2127
2061
|
|
@@ -2156,9 +2090,9 @@ module KlaviyoAPI
|
|
2156
2090
|
|
2157
2091
|
# Get Delete Categories Job
|
2158
2092
|
# Get a catalog category bulk delete job with the given job ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2159
|
-
# @param job_id [String]
|
2093
|
+
# @param job_id [String] ID of the job to retrieve.
|
2160
2094
|
# @param [Hash] opts the optional parameters
|
2161
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2095
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2162
2096
|
# @return [Hash<String, Object>]
|
2163
2097
|
def get_delete_categories_job(job_id, opts = {})
|
2164
2098
|
data, _status_code, _headers = get_delete_categories_job_with_http_info(job_id, opts)
|
@@ -2167,9 +2101,9 @@ module KlaviyoAPI
|
|
2167
2101
|
|
2168
2102
|
# Get Delete Categories Job
|
2169
2103
|
# Get a catalog category bulk delete job with the given job ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2170
|
-
# @param job_id [String]
|
2104
|
+
# @param job_id [String] ID of the job to retrieve.
|
2171
2105
|
# @param [Hash] opts the optional parameters
|
2172
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2106
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2173
2107
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2174
2108
|
def get_delete_categories_job_with_http_info(job_id, opts = {})
|
2175
2109
|
if @api_client.config.debugging
|
@@ -2193,7 +2127,7 @@ module KlaviyoAPI
|
|
2193
2127
|
# header parameters
|
2194
2128
|
header_params = opts[:header_params] || {}
|
2195
2129
|
# klaviyo api revision
|
2196
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2130
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2197
2131
|
# HTTP header 'Accept' (if needed)
|
2198
2132
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2199
2133
|
|
@@ -2229,9 +2163,9 @@ module KlaviyoAPI
|
|
2229
2163
|
# Get Delete Categories Jobs
|
2230
2164
|
# Get all catalog category bulk delete jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2231
2165
|
# @param [Hash] opts the optional parameters
|
2232
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2233
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2234
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2166
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2167
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2168
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2235
2169
|
# @return [Hash<String, Object>]
|
2236
2170
|
def get_delete_categories_jobs(opts = {})
|
2237
2171
|
data, _status_code, _headers = get_delete_categories_jobs_with_http_info(opts)
|
@@ -2241,9 +2175,9 @@ module KlaviyoAPI
|
|
2241
2175
|
# Get Delete Categories Jobs
|
2242
2176
|
# Get all catalog category bulk delete jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2243
2177
|
# @param [Hash] opts the optional parameters
|
2244
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2245
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2246
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2178
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2179
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2180
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2247
2181
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2248
2182
|
def get_delete_categories_jobs_with_http_info(opts = {})
|
2249
2183
|
if @api_client.config.debugging
|
@@ -2265,7 +2199,7 @@ module KlaviyoAPI
|
|
2265
2199
|
# header parameters
|
2266
2200
|
header_params = opts[:header_params] || {}
|
2267
2201
|
# klaviyo api revision
|
2268
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2202
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2269
2203
|
# HTTP header 'Accept' (if needed)
|
2270
2204
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2271
2205
|
|
@@ -2300,9 +2234,9 @@ module KlaviyoAPI
|
|
2300
2234
|
|
2301
2235
|
# Get Delete Items Job
|
2302
2236
|
# Get a catalog item bulk delete job with the given job ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2303
|
-
# @param job_id [String]
|
2237
|
+
# @param job_id [String] ID of the job to retrieve.
|
2304
2238
|
# @param [Hash] opts the optional parameters
|
2305
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2239
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2306
2240
|
# @return [Hash<String, Object>]
|
2307
2241
|
def get_delete_items_job(job_id, opts = {})
|
2308
2242
|
data, _status_code, _headers = get_delete_items_job_with_http_info(job_id, opts)
|
@@ -2311,9 +2245,9 @@ module KlaviyoAPI
|
|
2311
2245
|
|
2312
2246
|
# Get Delete Items Job
|
2313
2247
|
# Get a catalog item bulk delete job with the given job ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2314
|
-
# @param job_id [String]
|
2248
|
+
# @param job_id [String] ID of the job to retrieve.
|
2315
2249
|
# @param [Hash] opts the optional parameters
|
2316
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2250
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2317
2251
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2318
2252
|
def get_delete_items_job_with_http_info(job_id, opts = {})
|
2319
2253
|
if @api_client.config.debugging
|
@@ -2337,7 +2271,7 @@ module KlaviyoAPI
|
|
2337
2271
|
# header parameters
|
2338
2272
|
header_params = opts[:header_params] || {}
|
2339
2273
|
# klaviyo api revision
|
2340
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2274
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2341
2275
|
# HTTP header 'Accept' (if needed)
|
2342
2276
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2343
2277
|
|
@@ -2373,9 +2307,9 @@ module KlaviyoAPI
|
|
2373
2307
|
# Get Delete Items Jobs
|
2374
2308
|
# Get all catalog item bulk delete jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2375
2309
|
# @param [Hash] opts the optional parameters
|
2376
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2377
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2378
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2310
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2311
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2312
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2379
2313
|
# @return [Hash<String, Object>]
|
2380
2314
|
def get_delete_items_jobs(opts = {})
|
2381
2315
|
data, _status_code, _headers = get_delete_items_jobs_with_http_info(opts)
|
@@ -2385,9 +2319,9 @@ module KlaviyoAPI
|
|
2385
2319
|
# Get Delete Items Jobs
|
2386
2320
|
# Get all catalog item bulk delete jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2387
2321
|
# @param [Hash] opts the optional parameters
|
2388
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2389
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2390
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2322
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2323
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2324
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2391
2325
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2392
2326
|
def get_delete_items_jobs_with_http_info(opts = {})
|
2393
2327
|
if @api_client.config.debugging
|
@@ -2409,7 +2343,7 @@ module KlaviyoAPI
|
|
2409
2343
|
# header parameters
|
2410
2344
|
header_params = opts[:header_params] || {}
|
2411
2345
|
# klaviyo api revision
|
2412
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2346
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2413
2347
|
# HTTP header 'Accept' (if needed)
|
2414
2348
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2415
2349
|
|
@@ -2444,9 +2378,9 @@ module KlaviyoAPI
|
|
2444
2378
|
|
2445
2379
|
# Get Delete Variants Job
|
2446
2380
|
# Get a catalog variant bulk delete job with the given job ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2447
|
-
# @param job_id [String]
|
2381
|
+
# @param job_id [String] ID of the job to retrieve.
|
2448
2382
|
# @param [Hash] opts the optional parameters
|
2449
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2383
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2450
2384
|
# @return [Hash<String, Object>]
|
2451
2385
|
def get_delete_variants_job(job_id, opts = {})
|
2452
2386
|
data, _status_code, _headers = get_delete_variants_job_with_http_info(job_id, opts)
|
@@ -2455,9 +2389,9 @@ module KlaviyoAPI
|
|
2455
2389
|
|
2456
2390
|
# Get Delete Variants Job
|
2457
2391
|
# Get a catalog variant bulk delete job with the given job ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2458
|
-
# @param job_id [String]
|
2392
|
+
# @param job_id [String] ID of the job to retrieve.
|
2459
2393
|
# @param [Hash] opts the optional parameters
|
2460
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2394
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2461
2395
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2462
2396
|
def get_delete_variants_job_with_http_info(job_id, opts = {})
|
2463
2397
|
if @api_client.config.debugging
|
@@ -2481,7 +2415,7 @@ module KlaviyoAPI
|
|
2481
2415
|
# header parameters
|
2482
2416
|
header_params = opts[:header_params] || {}
|
2483
2417
|
# klaviyo api revision
|
2484
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2418
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2485
2419
|
# HTTP header 'Accept' (if needed)
|
2486
2420
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2487
2421
|
|
@@ -2517,9 +2451,9 @@ module KlaviyoAPI
|
|
2517
2451
|
# Get Delete Variants Jobs
|
2518
2452
|
# Get all catalog variant bulk delete jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2519
2453
|
# @param [Hash] opts the optional parameters
|
2520
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2521
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2522
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2454
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2455
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2456
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2523
2457
|
# @return [Hash<String, Object>]
|
2524
2458
|
def get_delete_variants_jobs(opts = {})
|
2525
2459
|
data, _status_code, _headers = get_delete_variants_jobs_with_http_info(opts)
|
@@ -2529,9 +2463,9 @@ module KlaviyoAPI
|
|
2529
2463
|
# Get Delete Variants Jobs
|
2530
2464
|
# Get all catalog variant bulk delete jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2531
2465
|
# @param [Hash] opts the optional parameters
|
2532
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2533
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2534
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2466
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2467
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2468
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2535
2469
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2536
2470
|
def get_delete_variants_jobs_with_http_info(opts = {})
|
2537
2471
|
if @api_client.config.debugging
|
@@ -2553,7 +2487,7 @@ module KlaviyoAPI
|
|
2553
2487
|
# header parameters
|
2554
2488
|
header_params = opts[:header_params] || {}
|
2555
2489
|
# klaviyo api revision
|
2556
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2490
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2557
2491
|
# HTTP header 'Accept' (if needed)
|
2558
2492
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2559
2493
|
|
@@ -2587,12 +2521,12 @@ module KlaviyoAPI
|
|
2587
2521
|
end
|
2588
2522
|
|
2589
2523
|
# Get Update Categories Job
|
2590
|
-
# Get a catalog category bulk update job with the given job ID.
|
2591
|
-
# @param job_id [String]
|
2524
|
+
# Get a catalog category bulk update job with the given job ID. An `include` parameter can be provided to get the following related resource data: `categories`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2525
|
+
# @param job_id [String] ID of the job to retrieve.
|
2592
2526
|
# @param [Hash] opts the optional parameters
|
2593
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2594
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
2595
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
2527
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2528
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2529
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2596
2530
|
# @return [Hash<String, Object>]
|
2597
2531
|
def get_update_categories_job(job_id, opts = {})
|
2598
2532
|
data, _status_code, _headers = get_update_categories_job_with_http_info(job_id, opts)
|
@@ -2600,12 +2534,12 @@ module KlaviyoAPI
|
|
2600
2534
|
end
|
2601
2535
|
|
2602
2536
|
# Get Update Categories Job
|
2603
|
-
# Get a catalog category bulk update job with the given job ID.
|
2604
|
-
# @param job_id [String]
|
2537
|
+
# Get a catalog category bulk update job with the given job ID. An `include` parameter can be provided to get the following related resource data: `categories`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2538
|
+
# @param job_id [String] ID of the job to retrieve.
|
2605
2539
|
# @param [Hash] opts the optional parameters
|
2606
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2607
|
-
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-
|
2608
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
2540
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2541
|
+
# @option opts [Array<String>] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2542
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2609
2543
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2610
2544
|
def get_update_categories_job_with_http_info(job_id, opts = {})
|
2611
2545
|
if @api_client.config.debugging
|
@@ -2639,7 +2573,7 @@ module KlaviyoAPI
|
|
2639
2573
|
# header parameters
|
2640
2574
|
header_params = opts[:header_params] || {}
|
2641
2575
|
# klaviyo api revision
|
2642
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2576
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2643
2577
|
# HTTP header 'Accept' (if needed)
|
2644
2578
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2645
2579
|
|
@@ -2675,9 +2609,9 @@ module KlaviyoAPI
|
|
2675
2609
|
# Get Update Categories Jobs
|
2676
2610
|
# Get all catalog category bulk update jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2677
2611
|
# @param [Hash] opts the optional parameters
|
2678
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2679
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2680
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2612
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2613
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2614
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2681
2615
|
# @return [Hash<String, Object>]
|
2682
2616
|
def get_update_categories_jobs(opts = {})
|
2683
2617
|
data, _status_code, _headers = get_update_categories_jobs_with_http_info(opts)
|
@@ -2687,9 +2621,9 @@ module KlaviyoAPI
|
|
2687
2621
|
# Get Update Categories Jobs
|
2688
2622
|
# Get all catalog category bulk update jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2689
2623
|
# @param [Hash] opts the optional parameters
|
2690
|
-
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2691
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2692
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2624
|
+
# @option opts [Array<String>] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2625
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2626
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2693
2627
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2694
2628
|
def get_update_categories_jobs_with_http_info(opts = {})
|
2695
2629
|
if @api_client.config.debugging
|
@@ -2711,7 +2645,7 @@ module KlaviyoAPI
|
|
2711
2645
|
# header parameters
|
2712
2646
|
header_params = opts[:header_params] || {}
|
2713
2647
|
# klaviyo api revision
|
2714
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2648
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2715
2649
|
# HTTP header 'Accept' (if needed)
|
2716
2650
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2717
2651
|
|
@@ -2745,12 +2679,12 @@ module KlaviyoAPI
|
|
2745
2679
|
end
|
2746
2680
|
|
2747
2681
|
# Get Update Items Job
|
2748
|
-
# Get a catalog item bulk update job with the given job ID.
|
2749
|
-
# @param job_id [String]
|
2682
|
+
# Get a catalog item bulk update job with the given job ID. An `include` parameter can be provided to get the following related resource data: `items`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2683
|
+
# @param job_id [String] ID of the job to retrieve.
|
2750
2684
|
# @param [Hash] opts the optional parameters
|
2751
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2752
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
2753
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
2685
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2686
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2687
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2754
2688
|
# @return [Hash<String, Object>]
|
2755
2689
|
def get_update_items_job(job_id, opts = {})
|
2756
2690
|
data, _status_code, _headers = get_update_items_job_with_http_info(job_id, opts)
|
@@ -2758,12 +2692,12 @@ module KlaviyoAPI
|
|
2758
2692
|
end
|
2759
2693
|
|
2760
2694
|
# Get Update Items Job
|
2761
|
-
# Get a catalog item bulk update job with the given job ID.
|
2762
|
-
# @param job_id [String]
|
2695
|
+
# Get a catalog item bulk update job with the given job ID. An `include` parameter can be provided to get the following related resource data: `items`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2696
|
+
# @param job_id [String] ID of the job to retrieve.
|
2763
2697
|
# @param [Hash] opts the optional parameters
|
2764
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2765
|
-
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-
|
2766
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
2698
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2699
|
+
# @option opts [Array<String>] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2700
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2767
2701
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2768
2702
|
def get_update_items_job_with_http_info(job_id, opts = {})
|
2769
2703
|
if @api_client.config.debugging
|
@@ -2777,7 +2711,7 @@ module KlaviyoAPI
|
|
2777
2711
|
if @api_client.config.client_side_validation && opts[:'fields_catalog_item_bulk_update_job'] && !opts[:'fields_catalog_item_bulk_update_job'].all? { |item| allowable_values.include?(item) }
|
2778
2712
|
fail ArgumentError, "invalid value for \"fields_catalog_item_bulk_update_job\", must include one of #{allowable_values}"
|
2779
2713
|
end
|
2780
|
-
allowable_values = ["external_id", "title", "description", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
2714
|
+
allowable_values = ["external_id", "title", "description", "price", "url", "image_full_url", "image_thumbnail_url", "images", "custom_metadata", "published", "created", "updated"]
|
2781
2715
|
if @api_client.config.client_side_validation && opts[:'fields_catalog_item'] && !opts[:'fields_catalog_item'].all? { |item| allowable_values.include?(item) }
|
2782
2716
|
fail ArgumentError, "invalid value for \"fields_catalog_item\", must include one of #{allowable_values}"
|
2783
2717
|
end
|
@@ -2797,7 +2731,7 @@ module KlaviyoAPI
|
|
2797
2731
|
# header parameters
|
2798
2732
|
header_params = opts[:header_params] || {}
|
2799
2733
|
# klaviyo api revision
|
2800
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2734
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2801
2735
|
# HTTP header 'Accept' (if needed)
|
2802
2736
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2803
2737
|
|
@@ -2833,9 +2767,9 @@ module KlaviyoAPI
|
|
2833
2767
|
# Get Update Items Jobs
|
2834
2768
|
# Get all catalog item bulk update jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2835
2769
|
# @param [Hash] opts the optional parameters
|
2836
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2837
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2838
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2770
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2771
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2772
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2839
2773
|
# @return [Hash<String, Object>]
|
2840
2774
|
def get_update_items_jobs(opts = {})
|
2841
2775
|
data, _status_code, _headers = get_update_items_jobs_with_http_info(opts)
|
@@ -2845,9 +2779,9 @@ module KlaviyoAPI
|
|
2845
2779
|
# Get Update Items Jobs
|
2846
2780
|
# Get all catalog item bulk update jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2847
2781
|
# @param [Hash] opts the optional parameters
|
2848
|
-
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2849
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2850
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2782
|
+
# @option opts [Array<String>] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2783
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2784
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2851
2785
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2852
2786
|
def get_update_items_jobs_with_http_info(opts = {})
|
2853
2787
|
if @api_client.config.debugging
|
@@ -2869,7 +2803,7 @@ module KlaviyoAPI
|
|
2869
2803
|
# header parameters
|
2870
2804
|
header_params = opts[:header_params] || {}
|
2871
2805
|
# klaviyo api revision
|
2872
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2806
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2873
2807
|
# HTTP header 'Accept' (if needed)
|
2874
2808
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2875
2809
|
|
@@ -2903,12 +2837,12 @@ module KlaviyoAPI
|
|
2903
2837
|
end
|
2904
2838
|
|
2905
2839
|
# Get Update Variants Job
|
2906
|
-
# Get a catalog variate bulk update job with the given job ID.
|
2907
|
-
# @param job_id [String]
|
2840
|
+
# Get a catalog variate bulk update job with the given job ID. An `include` parameter can be provided to get the following related resource data: `variants`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2841
|
+
# @param job_id [String] ID of the job to retrieve.
|
2908
2842
|
# @param [Hash] opts the optional parameters
|
2909
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2910
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
2911
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
2843
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2844
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2845
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2912
2846
|
# @return [Hash<String, Object>]
|
2913
2847
|
def get_update_variants_job(job_id, opts = {})
|
2914
2848
|
data, _status_code, _headers = get_update_variants_job_with_http_info(job_id, opts)
|
@@ -2916,12 +2850,12 @@ module KlaviyoAPI
|
|
2916
2850
|
end
|
2917
2851
|
|
2918
2852
|
# Get Update Variants Job
|
2919
|
-
# Get a catalog variate bulk update job with the given job ID.
|
2920
|
-
# @param job_id [String]
|
2853
|
+
# Get a catalog variate bulk update job with the given job ID. An `include` parameter can be provided to get the following related resource data: `variants`.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2854
|
+
# @param job_id [String] ID of the job to retrieve.
|
2921
2855
|
# @param [Hash] opts the optional parameters
|
2922
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2923
|
-
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-
|
2924
|
-
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-
|
2856
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2857
|
+
# @option opts [Array<String>] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2858
|
+
# @option opts [Array<String>] :include For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
2925
2859
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
2926
2860
|
def get_update_variants_job_with_http_info(job_id, opts = {})
|
2927
2861
|
if @api_client.config.debugging
|
@@ -2955,7 +2889,7 @@ module KlaviyoAPI
|
|
2955
2889
|
# header parameters
|
2956
2890
|
header_params = opts[:header_params] || {}
|
2957
2891
|
# klaviyo api revision
|
2958
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2892
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
2959
2893
|
# HTTP header 'Accept' (if needed)
|
2960
2894
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2961
2895
|
|
@@ -2991,9 +2925,9 @@ module KlaviyoAPI
|
|
2991
2925
|
# Get Update Variants Jobs
|
2992
2926
|
# Get all catalog variant bulk update jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
2993
2927
|
# @param [Hash] opts the optional parameters
|
2994
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
2995
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
2996
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2928
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2929
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2930
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
2997
2931
|
# @return [Hash<String, Object>]
|
2998
2932
|
def get_update_variants_jobs(opts = {})
|
2999
2933
|
data, _status_code, _headers = get_update_variants_jobs_with_http_info(opts)
|
@@ -3003,9 +2937,9 @@ module KlaviyoAPI
|
|
3003
2937
|
# Get Update Variants Jobs
|
3004
2938
|
# Get all catalog variant bulk update jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `Catalogs Read`
|
3005
2939
|
# @param [Hash] opts the optional parameters
|
3006
|
-
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-
|
3007
|
-
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-
|
3008
|
-
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-
|
2940
|
+
# @option opts [Array<String>] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
2941
|
+
# @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals`
|
2942
|
+
# @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
3009
2943
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
3010
2944
|
def get_update_variants_jobs_with_http_info(opts = {})
|
3011
2945
|
if @api_client.config.debugging
|
@@ -3027,7 +2961,7 @@ module KlaviyoAPI
|
|
3027
2961
|
# header parameters
|
3028
2962
|
header_params = opts[:header_params] || {}
|
3029
2963
|
# klaviyo api revision
|
3030
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
2964
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3031
2965
|
# HTTP header 'Accept' (if needed)
|
3032
2966
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3033
2967
|
|
@@ -3061,7 +2995,7 @@ module KlaviyoAPI
|
|
3061
2995
|
end
|
3062
2996
|
|
3063
2997
|
# Spawn Create Categories Job
|
3064
|
-
# Create a catalog category bulk create job to create a batch of catalog categories.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
2998
|
+
# Create a catalog category bulk create job to create a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3065
2999
|
# @param catalog_category_create_job_create_query [CatalogCategoryCreateJobCreateQuery]
|
3066
3000
|
# @param [Hash] opts the optional parameters
|
3067
3001
|
# @return [Hash<String, Object>]
|
@@ -3071,7 +3005,7 @@ module KlaviyoAPI
|
|
3071
3005
|
end
|
3072
3006
|
|
3073
3007
|
# Spawn Create Categories Job
|
3074
|
-
# Create a catalog category bulk create job to create a batch of catalog categories.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3008
|
+
# Create a catalog category bulk create job to create a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3075
3009
|
# @param catalog_category_create_job_create_query [CatalogCategoryCreateJobCreateQuery]
|
3076
3010
|
# @param [Hash] opts the optional parameters
|
3077
3011
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3092,7 +3026,7 @@ module KlaviyoAPI
|
|
3092
3026
|
# header parameters
|
3093
3027
|
header_params = opts[:header_params] || {}
|
3094
3028
|
# klaviyo api revision
|
3095
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3029
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3096
3030
|
# HTTP header 'Accept' (if needed)
|
3097
3031
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3098
3032
|
# HTTP header 'Content-Type'
|
@@ -3131,7 +3065,7 @@ module KlaviyoAPI
|
|
3131
3065
|
end
|
3132
3066
|
|
3133
3067
|
# Spawn Create Items Job
|
3134
|
-
# Create a catalog item bulk create job to create a batch of catalog items.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3068
|
+
# Create a catalog item bulk create job to create a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3135
3069
|
# @param catalog_item_create_job_create_query [CatalogItemCreateJobCreateQuery]
|
3136
3070
|
# @param [Hash] opts the optional parameters
|
3137
3071
|
# @return [Hash<String, Object>]
|
@@ -3141,7 +3075,7 @@ module KlaviyoAPI
|
|
3141
3075
|
end
|
3142
3076
|
|
3143
3077
|
# Spawn Create Items Job
|
3144
|
-
# Create a catalog item bulk create job to create a batch of catalog items.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3078
|
+
# Create a catalog item bulk create job to create a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3145
3079
|
# @param catalog_item_create_job_create_query [CatalogItemCreateJobCreateQuery]
|
3146
3080
|
# @param [Hash] opts the optional parameters
|
3147
3081
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3162,7 +3096,7 @@ module KlaviyoAPI
|
|
3162
3096
|
# header parameters
|
3163
3097
|
header_params = opts[:header_params] || {}
|
3164
3098
|
# klaviyo api revision
|
3165
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3099
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3166
3100
|
# HTTP header 'Accept' (if needed)
|
3167
3101
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3168
3102
|
# HTTP header 'Content-Type'
|
@@ -3201,7 +3135,7 @@ module KlaviyoAPI
|
|
3201
3135
|
end
|
3202
3136
|
|
3203
3137
|
# Spawn Create Variants Job
|
3204
|
-
# Create a catalog variant bulk create job to create a batch of catalog variants.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3138
|
+
# Create a catalog variant bulk create job to create a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3205
3139
|
# @param catalog_variant_create_job_create_query [CatalogVariantCreateJobCreateQuery]
|
3206
3140
|
# @param [Hash] opts the optional parameters
|
3207
3141
|
# @return [Hash<String, Object>]
|
@@ -3211,7 +3145,7 @@ module KlaviyoAPI
|
|
3211
3145
|
end
|
3212
3146
|
|
3213
3147
|
# Spawn Create Variants Job
|
3214
|
-
# Create a catalog variant bulk create job to create a batch of catalog variants.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3148
|
+
# Create a catalog variant bulk create job to create a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3215
3149
|
# @param catalog_variant_create_job_create_query [CatalogVariantCreateJobCreateQuery]
|
3216
3150
|
# @param [Hash] opts the optional parameters
|
3217
3151
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3232,7 +3166,7 @@ module KlaviyoAPI
|
|
3232
3166
|
# header parameters
|
3233
3167
|
header_params = opts[:header_params] || {}
|
3234
3168
|
# klaviyo api revision
|
3235
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3169
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3236
3170
|
# HTTP header 'Accept' (if needed)
|
3237
3171
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3238
3172
|
# HTTP header 'Content-Type'
|
@@ -3271,7 +3205,7 @@ module KlaviyoAPI
|
|
3271
3205
|
end
|
3272
3206
|
|
3273
3207
|
# Spawn Delete Categories Job
|
3274
|
-
# Create a catalog category bulk delete job to delete a batch of catalog categories.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3208
|
+
# Create a catalog category bulk delete job to delete a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3275
3209
|
# @param catalog_category_delete_job_create_query [CatalogCategoryDeleteJobCreateQuery]
|
3276
3210
|
# @param [Hash] opts the optional parameters
|
3277
3211
|
# @return [Hash<String, Object>]
|
@@ -3281,7 +3215,7 @@ module KlaviyoAPI
|
|
3281
3215
|
end
|
3282
3216
|
|
3283
3217
|
# Spawn Delete Categories Job
|
3284
|
-
# Create a catalog category bulk delete job to delete a batch of catalog categories.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3218
|
+
# Create a catalog category bulk delete job to delete a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3285
3219
|
# @param catalog_category_delete_job_create_query [CatalogCategoryDeleteJobCreateQuery]
|
3286
3220
|
# @param [Hash] opts the optional parameters
|
3287
3221
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3302,7 +3236,7 @@ module KlaviyoAPI
|
|
3302
3236
|
# header parameters
|
3303
3237
|
header_params = opts[:header_params] || {}
|
3304
3238
|
# klaviyo api revision
|
3305
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3239
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3306
3240
|
# HTTP header 'Accept' (if needed)
|
3307
3241
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3308
3242
|
# HTTP header 'Content-Type'
|
@@ -3341,7 +3275,7 @@ module KlaviyoAPI
|
|
3341
3275
|
end
|
3342
3276
|
|
3343
3277
|
# Spawn Delete Items Job
|
3344
|
-
# Create a catalog item bulk delete job to delete a batch of catalog items.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3278
|
+
# Create a catalog item bulk delete job to delete a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3345
3279
|
# @param catalog_item_delete_job_create_query [CatalogItemDeleteJobCreateQuery]
|
3346
3280
|
# @param [Hash] opts the optional parameters
|
3347
3281
|
# @return [Hash<String, Object>]
|
@@ -3351,7 +3285,7 @@ module KlaviyoAPI
|
|
3351
3285
|
end
|
3352
3286
|
|
3353
3287
|
# Spawn Delete Items Job
|
3354
|
-
# Create a catalog item bulk delete job to delete a batch of catalog items.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3288
|
+
# Create a catalog item bulk delete job to delete a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3355
3289
|
# @param catalog_item_delete_job_create_query [CatalogItemDeleteJobCreateQuery]
|
3356
3290
|
# @param [Hash] opts the optional parameters
|
3357
3291
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3372,7 +3306,7 @@ module KlaviyoAPI
|
|
3372
3306
|
# header parameters
|
3373
3307
|
header_params = opts[:header_params] || {}
|
3374
3308
|
# klaviyo api revision
|
3375
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3309
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3376
3310
|
# HTTP header 'Accept' (if needed)
|
3377
3311
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3378
3312
|
# HTTP header 'Content-Type'
|
@@ -3411,7 +3345,7 @@ module KlaviyoAPI
|
|
3411
3345
|
end
|
3412
3346
|
|
3413
3347
|
# Spawn Delete Variants Job
|
3414
|
-
# Create a catalog variant bulk delete job to delete a batch of catalog variants.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3348
|
+
# Create a catalog variant bulk delete job to delete a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3415
3349
|
# @param catalog_variant_delete_job_create_query [CatalogVariantDeleteJobCreateQuery]
|
3416
3350
|
# @param [Hash] opts the optional parameters
|
3417
3351
|
# @return [Hash<String, Object>]
|
@@ -3421,7 +3355,7 @@ module KlaviyoAPI
|
|
3421
3355
|
end
|
3422
3356
|
|
3423
3357
|
# Spawn Delete Variants Job
|
3424
|
-
# Create a catalog variant bulk delete job to delete a batch of catalog variants.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3358
|
+
# Create a catalog variant bulk delete job to delete a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3425
3359
|
# @param catalog_variant_delete_job_create_query [CatalogVariantDeleteJobCreateQuery]
|
3426
3360
|
# @param [Hash] opts the optional parameters
|
3427
3361
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3442,7 +3376,7 @@ module KlaviyoAPI
|
|
3442
3376
|
# header parameters
|
3443
3377
|
header_params = opts[:header_params] || {}
|
3444
3378
|
# klaviyo api revision
|
3445
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3379
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3446
3380
|
# HTTP header 'Accept' (if needed)
|
3447
3381
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3448
3382
|
# HTTP header 'Content-Type'
|
@@ -3481,7 +3415,7 @@ module KlaviyoAPI
|
|
3481
3415
|
end
|
3482
3416
|
|
3483
3417
|
# Spawn Update Categories Job
|
3484
|
-
# Create a catalog category bulk update job to update a batch of catalog categories.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3418
|
+
# Create a catalog category bulk update job to update a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3485
3419
|
# @param catalog_category_update_job_create_query [CatalogCategoryUpdateJobCreateQuery]
|
3486
3420
|
# @param [Hash] opts the optional parameters
|
3487
3421
|
# @return [Hash<String, Object>]
|
@@ -3491,7 +3425,7 @@ module KlaviyoAPI
|
|
3491
3425
|
end
|
3492
3426
|
|
3493
3427
|
# Spawn Update Categories Job
|
3494
|
-
# Create a catalog category bulk update job to update a batch of catalog categories.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3428
|
+
# Create a catalog category bulk update job to update a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3495
3429
|
# @param catalog_category_update_job_create_query [CatalogCategoryUpdateJobCreateQuery]
|
3496
3430
|
# @param [Hash] opts the optional parameters
|
3497
3431
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3512,7 +3446,7 @@ module KlaviyoAPI
|
|
3512
3446
|
# header parameters
|
3513
3447
|
header_params = opts[:header_params] || {}
|
3514
3448
|
# klaviyo api revision
|
3515
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3449
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3516
3450
|
# HTTP header 'Accept' (if needed)
|
3517
3451
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3518
3452
|
# HTTP header 'Content-Type'
|
@@ -3551,7 +3485,7 @@ module KlaviyoAPI
|
|
3551
3485
|
end
|
3552
3486
|
|
3553
3487
|
# Spawn Update Items Job
|
3554
|
-
# Create a catalog item bulk update job to update a batch of catalog items.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3488
|
+
# Create a catalog item bulk update job to update a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3555
3489
|
# @param catalog_item_update_job_create_query [CatalogItemUpdateJobCreateQuery]
|
3556
3490
|
# @param [Hash] opts the optional parameters
|
3557
3491
|
# @return [Hash<String, Object>]
|
@@ -3561,7 +3495,7 @@ module KlaviyoAPI
|
|
3561
3495
|
end
|
3562
3496
|
|
3563
3497
|
# Spawn Update Items Job
|
3564
|
-
# Create a catalog item bulk update job to update a batch of catalog items.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3498
|
+
# Create a catalog item bulk update job to update a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3565
3499
|
# @param catalog_item_update_job_create_query [CatalogItemUpdateJobCreateQuery]
|
3566
3500
|
# @param [Hash] opts the optional parameters
|
3567
3501
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3582,7 +3516,7 @@ module KlaviyoAPI
|
|
3582
3516
|
# header parameters
|
3583
3517
|
header_params = opts[:header_params] || {}
|
3584
3518
|
# klaviyo api revision
|
3585
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3519
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3586
3520
|
# HTTP header 'Accept' (if needed)
|
3587
3521
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3588
3522
|
# HTTP header 'Content-Type'
|
@@ -3621,7 +3555,7 @@ module KlaviyoAPI
|
|
3621
3555
|
end
|
3622
3556
|
|
3623
3557
|
# Spawn Update Variants Job
|
3624
|
-
# Create a catalog variant bulk update job to update a batch of catalog variants.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3558
|
+
# Create a catalog variant bulk update job to update a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3625
3559
|
# @param catalog_variant_update_job_create_query [CatalogVariantUpdateJobCreateQuery]
|
3626
3560
|
# @param [Hash] opts the optional parameters
|
3627
3561
|
# @return [Hash<String, Object>]
|
@@ -3631,7 +3565,7 @@ module KlaviyoAPI
|
|
3631
3565
|
end
|
3632
3566
|
|
3633
3567
|
# Spawn Update Variants Job
|
3634
|
-
# Create a catalog variant bulk update job to update a batch of catalog variants.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3568
|
+
# Create a catalog variant bulk update job to update a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 4MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3635
3569
|
# @param catalog_variant_update_job_create_query [CatalogVariantUpdateJobCreateQuery]
|
3636
3570
|
# @param [Hash] opts the optional parameters
|
3637
3571
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3652,7 +3586,7 @@ module KlaviyoAPI
|
|
3652
3586
|
# header parameters
|
3653
3587
|
header_params = opts[:header_params] || {}
|
3654
3588
|
# klaviyo api revision
|
3655
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3589
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3656
3590
|
# HTTP header 'Accept' (if needed)
|
3657
3591
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3658
3592
|
# HTTP header 'Content-Type'
|
@@ -3692,7 +3626,7 @@ module KlaviyoAPI
|
|
3692
3626
|
|
3693
3627
|
# Update Catalog Category
|
3694
3628
|
# Update a catalog category with the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3695
|
-
# @param id [String] The catalog category ID is a compound ID (string), with format: `
|
3629
|
+
# @param id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
3696
3630
|
# @param catalog_category_update_query [CatalogCategoryUpdateQuery]
|
3697
3631
|
# @param [Hash] opts the optional parameters
|
3698
3632
|
# @return [Hash<String, Object>]
|
@@ -3703,7 +3637,7 @@ module KlaviyoAPI
|
|
3703
3637
|
|
3704
3638
|
# Update Catalog Category
|
3705
3639
|
# Update a catalog category with the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3706
|
-
# @param id [String] The catalog category ID is a compound ID (string), with format: `
|
3640
|
+
# @param id [String] The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
3707
3641
|
# @param catalog_category_update_query [CatalogCategoryUpdateQuery]
|
3708
3642
|
# @param [Hash] opts the optional parameters
|
3709
3643
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3728,7 +3662,7 @@ module KlaviyoAPI
|
|
3728
3662
|
# header parameters
|
3729
3663
|
header_params = opts[:header_params] || {}
|
3730
3664
|
# klaviyo api revision
|
3731
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3665
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3732
3666
|
# HTTP header 'Accept' (if needed)
|
3733
3667
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3734
3668
|
# HTTP header 'Content-Type'
|
@@ -3766,48 +3700,37 @@ module KlaviyoAPI
|
|
3766
3700
|
return data, status_code, headers
|
3767
3701
|
end
|
3768
3702
|
|
3769
|
-
# Update Catalog Category Relationships
|
3703
|
+
# Update Catalog Category Relationships Items
|
3770
3704
|
# Update item relationships for the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3771
3705
|
# @param id [String]
|
3772
|
-
# @param related_resource [String]
|
3773
3706
|
# @param catalog_category_item_op [CatalogCategoryItemOp]
|
3774
3707
|
# @param [Hash] opts the optional parameters
|
3775
3708
|
# @return [nil]
|
3776
|
-
def
|
3777
|
-
|
3709
|
+
def update_catalog_category_relationships_items(id, catalog_category_item_op, opts = {})
|
3710
|
+
update_catalog_category_relationships_items_with_http_info(id, catalog_category_item_op, opts)
|
3778
3711
|
nil
|
3779
3712
|
end
|
3780
3713
|
|
3781
|
-
# Update Catalog Category Relationships
|
3714
|
+
# Update Catalog Category Relationships Items
|
3782
3715
|
# Update item relationships for the given category ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3783
3716
|
# @param id [String]
|
3784
|
-
# @param related_resource [String]
|
3785
3717
|
# @param catalog_category_item_op [CatalogCategoryItemOp]
|
3786
3718
|
# @param [Hash] opts the optional parameters
|
3787
3719
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
3788
|
-
def
|
3720
|
+
def update_catalog_category_relationships_items_with_http_info(id, catalog_category_item_op, opts = {})
|
3789
3721
|
if @api_client.config.debugging
|
3790
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
3722
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.update_catalog_category_relationships_items ...'
|
3791
3723
|
end
|
3792
3724
|
# verify the required parameter 'id' is set
|
3793
3725
|
if @api_client.config.client_side_validation && id.nil?
|
3794
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
3795
|
-
end
|
3796
|
-
# verify the required parameter 'related_resource' is set
|
3797
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
3798
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.update_catalog_category_relationships"
|
3799
|
-
end
|
3800
|
-
# verify enum value
|
3801
|
-
allowable_values = ["items"]
|
3802
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
3803
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
3726
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.update_catalog_category_relationships_items"
|
3804
3727
|
end
|
3805
3728
|
# verify the required parameter 'catalog_category_item_op' is set
|
3806
3729
|
if @api_client.config.client_side_validation && catalog_category_item_op.nil?
|
3807
|
-
fail ArgumentError, "Missing the required parameter 'catalog_category_item_op' when calling CatalogsApi.
|
3730
|
+
fail ArgumentError, "Missing the required parameter 'catalog_category_item_op' when calling CatalogsApi.update_catalog_category_relationships_items"
|
3808
3731
|
end
|
3809
3732
|
# resource path
|
3810
|
-
local_var_path = '/api/catalog-categories/{id}/relationships/
|
3733
|
+
local_var_path = '/api/catalog-categories/{id}/relationships/items/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
3811
3734
|
|
3812
3735
|
# query parameters
|
3813
3736
|
query_params = opts[:query_params] || {}
|
@@ -3815,7 +3738,7 @@ module KlaviyoAPI
|
|
3815
3738
|
# header parameters
|
3816
3739
|
header_params = opts[:header_params] || {}
|
3817
3740
|
# klaviyo api revision
|
3818
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3741
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3819
3742
|
# HTTP header 'Accept' (if needed)
|
3820
3743
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3821
3744
|
# HTTP header 'Content-Type'
|
@@ -3837,7 +3760,7 @@ module KlaviyoAPI
|
|
3837
3760
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
3838
3761
|
|
3839
3762
|
new_options = opts.merge(
|
3840
|
-
:operation => :"CatalogsApi.
|
3763
|
+
:operation => :"CatalogsApi.update_catalog_category_relationships_items",
|
3841
3764
|
:header_params => header_params,
|
3842
3765
|
:query_params => query_params,
|
3843
3766
|
:form_params => form_params,
|
@@ -3848,14 +3771,14 @@ module KlaviyoAPI
|
|
3848
3771
|
|
3849
3772
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
3850
3773
|
if @api_client.config.debugging
|
3851
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
3774
|
+
@api_client.config.logger.debug "API called: CatalogsApi#update_catalog_category_relationships_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3852
3775
|
end
|
3853
3776
|
return data, status_code, headers
|
3854
3777
|
end
|
3855
3778
|
|
3856
3779
|
# Update Catalog Item
|
3857
3780
|
# Update a catalog item with the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3858
|
-
# @param id [String] The catalog item ID is a compound ID (string), with format: `
|
3781
|
+
# @param id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
3859
3782
|
# @param catalog_item_update_query [CatalogItemUpdateQuery]
|
3860
3783
|
# @param [Hash] opts the optional parameters
|
3861
3784
|
# @return [Hash<String, Object>]
|
@@ -3866,7 +3789,7 @@ module KlaviyoAPI
|
|
3866
3789
|
|
3867
3790
|
# Update Catalog Item
|
3868
3791
|
# Update a catalog item with the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3869
|
-
# @param id [String] The catalog item ID is a compound ID (string), with format: `
|
3792
|
+
# @param id [String] The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
3870
3793
|
# @param catalog_item_update_query [CatalogItemUpdateQuery]
|
3871
3794
|
# @param [Hash] opts the optional parameters
|
3872
3795
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -3891,7 +3814,7 @@ module KlaviyoAPI
|
|
3891
3814
|
# header parameters
|
3892
3815
|
header_params = opts[:header_params] || {}
|
3893
3816
|
# klaviyo api revision
|
3894
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3817
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3895
3818
|
# HTTP header 'Accept' (if needed)
|
3896
3819
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3897
3820
|
# HTTP header 'Content-Type'
|
@@ -3929,48 +3852,37 @@ module KlaviyoAPI
|
|
3929
3852
|
return data, status_code, headers
|
3930
3853
|
end
|
3931
3854
|
|
3932
|
-
# Update Catalog Item Relationships
|
3855
|
+
# Update Catalog Item Relationships Categories
|
3933
3856
|
# Update catalog category relationships for the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3934
3857
|
# @param id [String]
|
3935
|
-
# @param related_resource [String]
|
3936
3858
|
# @param catalog_item_category_op [CatalogItemCategoryOp]
|
3937
3859
|
# @param [Hash] opts the optional parameters
|
3938
3860
|
# @return [nil]
|
3939
|
-
def
|
3940
|
-
|
3861
|
+
def update_catalog_item_relationships_categories(id, catalog_item_category_op, opts = {})
|
3862
|
+
update_catalog_item_relationships_categories_with_http_info(id, catalog_item_category_op, opts)
|
3941
3863
|
nil
|
3942
3864
|
end
|
3943
3865
|
|
3944
|
-
# Update Catalog Item Relationships
|
3866
|
+
# Update Catalog Item Relationships Categories
|
3945
3867
|
# Update catalog category relationships for the given item ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
3946
3868
|
# @param id [String]
|
3947
|
-
# @param related_resource [String]
|
3948
3869
|
# @param catalog_item_category_op [CatalogItemCategoryOp]
|
3949
3870
|
# @param [Hash] opts the optional parameters
|
3950
3871
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
3951
|
-
def
|
3872
|
+
def update_catalog_item_relationships_categories_with_http_info(id, catalog_item_category_op, opts = {})
|
3952
3873
|
if @api_client.config.debugging
|
3953
|
-
@api_client.config.logger.debug 'Calling API: CatalogsApi.
|
3874
|
+
@api_client.config.logger.debug 'Calling API: CatalogsApi.update_catalog_item_relationships_categories ...'
|
3954
3875
|
end
|
3955
3876
|
# verify the required parameter 'id' is set
|
3956
3877
|
if @api_client.config.client_side_validation && id.nil?
|
3957
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.
|
3958
|
-
end
|
3959
|
-
# verify the required parameter 'related_resource' is set
|
3960
|
-
if @api_client.config.client_side_validation && related_resource.nil?
|
3961
|
-
fail ArgumentError, "Missing the required parameter 'related_resource' when calling CatalogsApi.update_catalog_item_relationships"
|
3962
|
-
end
|
3963
|
-
# verify enum value
|
3964
|
-
allowable_values = ["categories"]
|
3965
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(related_resource)
|
3966
|
-
fail ArgumentError, "invalid value for \"related_resource\", must be one of #{allowable_values}"
|
3878
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CatalogsApi.update_catalog_item_relationships_categories"
|
3967
3879
|
end
|
3968
3880
|
# verify the required parameter 'catalog_item_category_op' is set
|
3969
3881
|
if @api_client.config.client_side_validation && catalog_item_category_op.nil?
|
3970
|
-
fail ArgumentError, "Missing the required parameter 'catalog_item_category_op' when calling CatalogsApi.
|
3882
|
+
fail ArgumentError, "Missing the required parameter 'catalog_item_category_op' when calling CatalogsApi.update_catalog_item_relationships_categories"
|
3971
3883
|
end
|
3972
3884
|
# resource path
|
3973
|
-
local_var_path = '/api/catalog-items/{id}/relationships/
|
3885
|
+
local_var_path = '/api/catalog-items/{id}/relationships/categories/'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
3974
3886
|
|
3975
3887
|
# query parameters
|
3976
3888
|
query_params = opts[:query_params] || {}
|
@@ -3978,7 +3890,7 @@ module KlaviyoAPI
|
|
3978
3890
|
# header parameters
|
3979
3891
|
header_params = opts[:header_params] || {}
|
3980
3892
|
# klaviyo api revision
|
3981
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3893
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
3982
3894
|
# HTTP header 'Accept' (if needed)
|
3983
3895
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3984
3896
|
# HTTP header 'Content-Type'
|
@@ -4000,7 +3912,7 @@ module KlaviyoAPI
|
|
4000
3912
|
auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
|
4001
3913
|
|
4002
3914
|
new_options = opts.merge(
|
4003
|
-
:operation => :"CatalogsApi.
|
3915
|
+
:operation => :"CatalogsApi.update_catalog_item_relationships_categories",
|
4004
3916
|
:header_params => header_params,
|
4005
3917
|
:query_params => query_params,
|
4006
3918
|
:form_params => form_params,
|
@@ -4011,14 +3923,14 @@ module KlaviyoAPI
|
|
4011
3923
|
|
4012
3924
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
4013
3925
|
if @api_client.config.debugging
|
4014
|
-
@api_client.config.logger.debug "API called: CatalogsApi#
|
3926
|
+
@api_client.config.logger.debug "API called: CatalogsApi#update_catalog_item_relationships_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4015
3927
|
end
|
4016
3928
|
return data, status_code, headers
|
4017
3929
|
end
|
4018
3930
|
|
4019
3931
|
# Update Catalog Variant
|
4020
3932
|
# Update a catalog item variant with the given variant ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
4021
|
-
# @param id [String] The catalog variant ID is a compound ID (string), with format: `
|
3933
|
+
# @param id [String] The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
4022
3934
|
# @param catalog_variant_update_query [CatalogVariantUpdateQuery]
|
4023
3935
|
# @param [Hash] opts the optional parameters
|
4024
3936
|
# @return [Hash<String, Object>]
|
@@ -4029,7 +3941,7 @@ module KlaviyoAPI
|
|
4029
3941
|
|
4030
3942
|
# Update Catalog Variant
|
4031
3943
|
# Update a catalog item variant with the given variant ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Catalogs Write`
|
4032
|
-
# @param id [String] The catalog variant ID is a compound ID (string), with format: `
|
3944
|
+
# @param id [String] The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.
|
4033
3945
|
# @param catalog_variant_update_query [CatalogVariantUpdateQuery]
|
4034
3946
|
# @param [Hash] opts the optional parameters
|
4035
3947
|
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
|
@@ -4054,7 +3966,7 @@ module KlaviyoAPI
|
|
4054
3966
|
# header parameters
|
4055
3967
|
header_params = opts[:header_params] || {}
|
4056
3968
|
# klaviyo api revision
|
4057
|
-
header_params['revision'] = ENV['API_REVISION'] || "2023-
|
3969
|
+
header_params['revision'] = ENV['API_REVISION'] || "2023-02-22"
|
4058
3970
|
# HTTP header 'Accept' (if needed)
|
4059
3971
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4060
3972
|
# HTTP header 'Content-Type'
|