From a915d1e1bf8a266157e9f5260bbb3e8792ce7e11 Mon Sep 17 00:00:00 2001 From: klaviyo-sdk Date: Mon, 16 Oct 2023 21:01:37 +0000 Subject: [PATCH] version 5.0.0 --- CHANGELOG.md | 52 ++ README.md | 402 +++++++-------- klaviyo-api-sdk.gemspec | 4 +- lib/klaviyo-api-sdk.rb | 5 +- lib/klaviyo-api-sdk/api/accounts_api.rb | 14 +- lib/klaviyo-api-sdk/api/campaigns_api.rb | 148 +++--- lib/klaviyo-api-sdk/api/catalogs_api.rb | 458 +++++++++--------- lib/klaviyo-api-sdk/api/coupons_api.rb | 142 ++++-- lib/klaviyo-api-sdk/api/data_privacy_api.rb | 4 +- lib/klaviyo-api-sdk/api/events_api.rb | 88 ++-- lib/klaviyo-api-sdk/api/flows_api.rb | 188 +++---- lib/klaviyo-api-sdk/api/images_api.rb | 40 +- lib/klaviyo-api-sdk/api/lists_api.rb | 108 ++--- lib/klaviyo-api-sdk/api/metrics_api.rb | 24 +- lib/klaviyo-api-sdk/api/profiles_api.rb | 96 ++-- lib/klaviyo-api-sdk/api/segments_api.rb | 92 ++-- lib/klaviyo-api-sdk/api/tags_api.rb | 118 ++--- lib/klaviyo-api-sdk/api/templates_api.rb | 36 +- lib/klaviyo-api-sdk/api_client.rb | 4 +- lib/klaviyo-api-sdk/api_error.rb | 2 +- lib/klaviyo-api-sdk/configuration.rb | 2 +- .../models/audiences_sub_object.rb | 2 +- .../models/back_in_stock_subscription_enum.rb | 2 +- .../models/campaign_clone_query.rb | 2 +- .../campaign_clone_query_resource_object.rb | 2 +- ..._clone_query_resource_object_attributes.rb | 2 +- .../models/campaign_create_query.rb | 2 +- .../campaign_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...rce_object_attributes_campaign_messages.rb | 2 +- ...resource_object_attributes_send_options.rb | 2 +- ...urce_object_attributes_tracking_options.rb | 2 +- lib/klaviyo-api-sdk/models/campaign_enum.rb | 2 +- .../campaign_message_assign_template_query.rb | 2 +- ...e_assign_template_query_resource_object.rb | 7 +- ...ate_query_resource_object_relationships.rb | 7 +- ..._resource_object_relationships_template.rb | 2 +- ...urce_object_relationships_template_data.rb | 2 +- ...gn_message_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...uery_resource_object_attributes_content.rb | 2 +- .../models/campaign_message_enum.rb | 2 +- .../campaign_message_partial_update_query.rb | 2 +- ...ge_partial_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../models/campaign_partial_update_query.rb | 2 +- ...gn_partial_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- ...n_recipient_estimation_job_create_query.rb | 2 +- ...mation_job_create_query_resource_object.rb | 2 +- .../campaign_recipient_estimation_job_enum.rb | 2 +- .../models/campaign_send_job_create_query.rb | 2 +- ...n_send_job_create_query_resource_object.rb | 2 +- .../models/campaign_send_job_enum.rb | 2 +- .../campaign_send_job_partial_update_query.rb | 2 +- ...ob_partial_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../catalog_category_bulk_create_job_enum.rb | 2 +- .../catalog_category_bulk_delete_job_enum.rb | 2 +- .../catalog_category_bulk_update_job_enum.rb | 2 +- ...atalog_category_create_job_create_query.rb | 2 +- ...create_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...y_resource_object_attributes_categories.rb | 2 +- .../models/catalog_category_create_query.rb | 2 +- ...g_category_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ate_query_resource_object_relationships.rb | 2 +- ...ery_resource_object_relationships_items.rb | 2 +- ...e_object_relationships_items_data_inner.rb | 2 +- ...atalog_category_delete_job_create_query.rb | 2 +- ...delete_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...y_resource_object_attributes_categories.rb | 2 +- ...g_category_delete_query_resource_object.rb | 2 +- .../models/catalog_category_enum.rb | 2 +- .../models/catalog_category_item_op.rb | 2 +- ...atalog_category_update_job_create_query.rb | 2 +- ...update_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...y_resource_object_attributes_categories.rb | 2 +- .../models/catalog_category_update_query.rb | 2 +- ...g_category_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../catalog_item_bulk_create_job_enum.rb | 2 +- .../catalog_item_bulk_delete_job_enum.rb | 2 +- .../catalog_item_bulk_update_job_enum.rb | 2 +- .../models/catalog_item_category_op.rb | 2 +- .../catalog_item_create_job_create_query.rb | 2 +- ...create_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ..._query_resource_object_attributes_items.rb | 2 +- .../models/catalog_item_create_query.rb | 2 +- ...talog_item_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ate_query_resource_object_relationships.rb | 2 +- ...esource_object_relationships_categories.rb | 2 +- ...ect_relationships_categories_data_inner.rb | 2 +- .../catalog_item_delete_job_create_query.rb | 2 +- ...delete_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ..._query_resource_object_attributes_items.rb | 2 +- ...talog_item_delete_query_resource_object.rb | 2 +- .../models/catalog_item_enum.rb | 2 +- .../catalog_item_update_job_create_query.rb | 2 +- ...update_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ..._query_resource_object_attributes_items.rb | 2 +- .../models/catalog_item_update_query.rb | 2 +- ...talog_item_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../catalog_variant_bulk_create_job_enum.rb | 2 +- .../catalog_variant_bulk_delete_job_enum.rb | 2 +- .../catalog_variant_bulk_update_job_enum.rb | 2 +- ...catalog_variant_create_job_create_query.rb | 2 +- ...create_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ery_resource_object_attributes_variants.rb | 2 +- .../models/catalog_variant_create_query.rb | 2 +- ...og_variant_create_query_resource_object.rb | 7 +- ...create_query_resource_object_attributes.rb | 2 +- ...ate_query_resource_object_relationships.rb | 7 +- ...uery_resource_object_relationships_item.rb | 2 +- ...resource_object_relationships_item_data.rb | 2 +- ...catalog_variant_delete_job_create_query.rb | 2 +- ...delete_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ery_resource_object_attributes_variants.rb | 2 +- ...og_variant_delete_query_resource_object.rb | 2 +- .../models/catalog_variant_enum.rb | 2 +- ...catalog_variant_update_job_create_query.rb | 2 +- ...update_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ery_resource_object_attributes_variants.rb | 2 +- .../models/catalog_variant_update_query.rb | 2 +- ...og_variant_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../coupon_code_bulk_create_job_enum.rb | 2 +- .../coupon_code_create_job_create_query.rb | 2 +- ...create_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...resource_object_attributes_coupon_codes.rb | 2 +- .../models/coupon_code_create_query.rb | 2 +- ...oupon_code_create_query_resource_object.rb | 7 +- ...create_query_resource_object_attributes.rb | 2 +- ...ate_query_resource_object_relationships.rb | 7 +- ...ry_resource_object_relationships_coupon.rb | 2 +- ...source_object_relationships_coupon_data.rb | 2 +- .../models/coupon_code_enum.rb | 2 +- .../models/coupon_code_update_query.rb | 2 +- ...oupon_code_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../models/coupon_create_query.rb | 2 +- .../coupon_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/coupon_enum.rb | 2 +- .../models/coupon_update_query.rb | 2 +- .../coupon_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../data_privacy_create_deletion_job_query.rb | 2 +- ...eate_deletion_job_query_resource_object.rb | 2 +- ...on_job_query_resource_object_attributes.rb | 2 +- ...uery_resource_object_attributes_profile.rb | 2 +- .../models/data_privacy_deletion_job_enum.rb | 2 +- ...a_privacy_profile_query_resource_object.rb | 2 +- ...rofile_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/device_metadata.rb | 2 +- .../models/email_content_sub_object.rb | 2 +- .../models/email_send_options_sub_object.rb | 2 +- .../models/email_subscription_parameters.rb | 224 +++++++++ .../email_tracking_options_sub_object.rb | 2 +- .../models/event_create_query_v2.rb | 2 +- .../event_create_query_v2_resource_object.rb | 2 +- ...ate_query_v2_resource_object_attributes.rb | 2 +- ...ry_v2_resource_object_attributes_metric.rb | 2 +- ...y_v2_resource_object_attributes_profile.rb | 2 +- lib/klaviyo-api-sdk/models/event_enum.rb | 2 +- lib/klaviyo-api-sdk/models/flow_enum.rb | 2 +- .../models/flow_update_query.rb | 2 +- .../flow_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../models/get_accounts4_xx_response.rb | 2 +- .../get_accounts4_xx_response_errors_inner.rb | 2 +- ...counts4_xx_response_errors_inner_source.rb | 2 +- .../models/image_create_query.rb | 2 +- .../image_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/image_enum.rb | 2 +- .../models/image_partial_update_query.rb | 2 +- ...ge_partial_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../models/list_create_query.rb | 2 +- .../list_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/list_enum.rb | 2 +- .../models/list_members_add_query.rb | 2 +- .../list_members_add_query_data_inner.rb | 2 +- .../models/list_members_delete_query.rb | 2 +- .../models/list_partial_update_query.rb | 2 +- ...st_partial_update_query_resource_object.rb | 2 +- .../marketing_subscription_parameters.rb | 259 ++++++++++ .../models/metric_aggregate_enum.rb | 2 +- .../models/metric_aggregate_query.rb | 2 +- .../metric_aggregate_query_resource_object.rb | 2 +- ...regate_query_resource_object_attributes.rb | 2 +- .../metric_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/metric_enum.rb | 2 +- ...te_profile_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- .../models/onsite_profile_meta.rb | 2 +- .../models/profile_create_query.rb | 2 +- .../profile_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/profile_enum.rb | 2 +- .../profile_identifier_dto_resource_object.rb | 2 +- ...entifier_dto_resource_object_attributes.rb | 2 +- .../models/profile_location.rb | 20 +- .../models/profile_location_latitude.rb | 2 +- .../models/profile_location_longitude.rb | 2 +- .../models/profile_merge_enum.rb | 2 +- .../models/profile_merge_query.rb | 2 +- .../profile_merge_query_resource_object.rb | 7 +- ...rge_query_resource_object_relationships.rb | 7 +- ..._resource_object_relationships_profiles.rb | 2 +- ...bject_relationships_profiles_data_inner.rb | 2 +- lib/klaviyo-api-sdk/models/profile_meta.rb | 2 +- .../models/profile_meta_patch_properties.rb | 2 +- .../profile_meta_patch_properties_unset.rb | 2 +- .../models/profile_partial_update_query.rb | 2 +- ...le_partial_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- ...ofile_subscription_bulk_create_job_enum.rb | 2 +- ...ofile_subscription_bulk_delete_job_enum.rb | 2 +- ...bscription_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...bscription_delete_query_resource_object.rb | 2 +- ...delete_query_resource_object_attributes.rb | 2 +- ...rofile_suppression_bulk_create_job_enum.rb | 2 +- ...rofile_suppression_bulk_delete_job_enum.rb | 2 +- ...uppression_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...uppression_delete_query_resource_object.rb | 2 +- ...delete_query_resource_object_attributes.rb | 2 +- .../profile_upsert_query_resource_object.rb | 2 +- ...upsert_query_resource_object_attributes.rb | 14 +- .../models/push_token_create_query.rb | 2 +- ...push_token_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...uery_resource_object_attributes_profile.rb | 2 +- lib/klaviyo-api-sdk/models/push_token_enum.rb | 2 +- .../models/render_options_sub_object.rb | 2 +- lib/klaviyo-api-sdk/models/segment_enum.rb | 2 +- .../models/segment_partial_update_query.rb | 2 +- ...nt_partial_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../models/send_strategy_sub_object.rb | 2 +- .../server_bis_subscription_create_query.rb | 2 +- ...bscription_create_query_resource_object.rb | 7 +- ...create_query_resource_object_attributes.rb | 2 +- ...uery_resource_object_attributes_profile.rb | 2 +- ...ate_query_resource_object_relationships.rb | 7 +- ...y_resource_object_relationships_variant.rb | 2 +- ...ource_object_relationships_variant_data.rb | 2 +- .../models/sms_content_sub_object_create.rb | 2 +- .../models/sms_send_options_sub_object.rb | 2 +- .../models/sms_subscription_parameters.rb | 224 +++++++++ .../models/sms_tracking_options_sub_object.rb | 2 +- .../models/static_schedule_options.rb | 2 +- .../models/sto_schedule_options.rb | 2 +- .../models/subscription_channels.rb | 38 +- .../subscription_create_job_create_query.rb | 2 +- ...create_job_create_query_resource_object.rb | 7 +- ...create_query_resource_object_attributes.rb | 2 +- ...ery_resource_object_attributes_profiles.rb | 2 +- ...ate_query_resource_object_relationships.rb | 7 +- ...uery_resource_object_relationships_list.rb | 2 +- ...resource_object_relationships_list_data.rb | 2 +- .../subscription_delete_job_create_query.rb | 2 +- ...delete_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ery_resource_object_attributes_profiles.rb | 2 +- ...ate_query_resource_object_relationships.rb | 2 +- ...uery_resource_object_relationships_list.rb | 2 +- ...resource_object_relationships_list_data.rb | 2 +- .../suppression_create_job_create_query.rb | 2 +- ...create_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ery_resource_object_attributes_profiles.rb | 2 +- .../suppression_delete_job_create_query.rb | 2 +- ...delete_job_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ery_resource_object_attributes_profiles.rb | 2 +- lib/klaviyo-api-sdk/models/tag_campaign_op.rb | 2 +- .../models/tag_campaign_op_data_inner.rb | 2 +- .../models/tag_create_query.rb | 2 +- .../tag_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- ...ate_query_resource_object_relationships.rb | 2 +- ...resource_object_relationships_tag_group.rb | 2 +- ...rce_object_relationships_tag_group_data.rb | 2 +- lib/klaviyo-api-sdk/models/tag_enum.rb | 2 +- lib/klaviyo-api-sdk/models/tag_flow_op.rb | 2 +- .../models/tag_flow_op_data_inner.rb | 2 +- .../models/tag_group_create_query.rb | 2 +- .../tag_group_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/tag_group_enum.rb | 2 +- .../models/tag_group_update_query.rb | 2 +- .../tag_group_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/tag_list_op.rb | 2 +- .../models/tag_list_op_data_inner.rb | 2 +- lib/klaviyo-api-sdk/models/tag_segment_op.rb | 2 +- .../models/tag_segment_op_data_inner.rb | 2 +- .../models/tag_update_query.rb | 2 +- .../tag_update_query_resource_object.rb | 2 +- .../models/template_clone_query.rb | 2 +- .../template_clone_query_resource_object.rb | 2 +- ..._clone_query_resource_object_attributes.rb | 2 +- .../models/template_create_query.rb | 2 +- .../template_create_query_resource_object.rb | 2 +- ...create_query_resource_object_attributes.rb | 2 +- lib/klaviyo-api-sdk/models/template_enum.rb | 2 +- .../models/template_render_query.rb | 2 +- .../template_render_query_resource_object.rb | 2 +- ...render_query_resource_object_attributes.rb | 2 +- .../models/template_update_query.rb | 2 +- .../template_update_query_resource_object.rb | 2 +- ...update_query_resource_object_attributes.rb | 2 +- .../models/throttled_schedule_options.rb | 2 +- .../models/utm_params_sub_object.rb | 2 +- lib/klaviyo-api-sdk/version.rb | 2 +- 333 files changed, 2167 insertions(+), 1311 deletions(-) create mode 100644 lib/klaviyo-api-sdk/models/email_subscription_parameters.rb create mode 100644 lib/klaviyo-api-sdk/models/marketing_subscription_parameters.rb create mode 100644 lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index ea25c25..e4e5b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,58 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.0.0] - revision 2023-10-15 + +### Improved Endpoints + +#### Support for returning list suppressions via the [/profiles endpoint](https://developers.klaviyo.com/en/reference/get_profiles) + +We now support filtering on list suppression with the get profiles endpoint, which brings us to parity with v2 list suppression endpoint that was the previously recommended solution. + +Rules for suppression [filtering](https://developers.klaviyo.com/en/docs/filtering_): + +- You may not mix-and-match list and global filters +- You may only specify a single date filter +- You may or may not specify a reason +- You must specify a list_id to filter on any list suppression properties + +Examples: + +- To return profiles who were suppressed after a certain date: + `{filter: "greater-than(subscriptions.email.marketing.suppression.timestamp,2023-03-01T01:00:00Z)` +- To return profiles who were suppressed from a specific list after a certain date: + `{filter: "greater-than(subscriptions.email.marketing.list_suppressions.timestamp,2023-03-01T01:00:00Z),equals(subscriptions.email.marketing.list_suppressions.list_id,\"LIST_ID\"")` +- To return all profiles who were suppressed for a specific reason after a certain date: + `{"filter: 'greater-than(subscriptions.email.marketing.suppression.timestamp,2023-03-01T01:00:00Z),equals(subscriptions.email.marketing.suppression.reason\"user_suppressed\"")` + +### Optionally retrieve subscription status on Get List Profiles, Get Segment Profiles, Get Event Profile + +Now you can retrieve subscription status on any endpoint that returns profiles, including Get List Profiles, Get Segment Profiles and Get Event Profile. Use `{additional_fields_profile = ["subscriptions"]}` on these endpoints to include subscription information. + +## Breaking changes + +### Subscription object not returned by default on Get Profile / Get Profiles + +The subscription object is no longer returned by default with get profile(s) requests. However, it can be included by adding `{additional_fields_profile = ["subscriptions"]}s` to the request. This change will allow us to provide a more performant experience when making requests to Get Profiles without including the subscriptions object. + +### Profile Subscription Fields Renamed + +In the interest of providing more clarity and information on the subscription object, we have renamed several fields, and added several as well. This will provide more context on a contact's subscriptions and consent, as well as boolean fields to see who you can or cannot message. + +For SMSMarketing: + +- `timestamp` is now `consent_timestamp` +- `last_updated` is a new field that mirrors `consent_timestamp` +- `can_receive_sms_marketing` is a new field which is `True` if the profile is consented for SMS + +For EmailMarketing: + +- `timestamp` is now `consent_timestamp` +- `can_receive_email_marketing` is True if the profile does not have a global suppression +- `suppressions` is now `suppression` +- `last_updated` is a new field that is the most recent of all the dates on the object + + ## [4.2.0] - revision 2023-09-15 ### Added diff --git a/README.md b/README.md index 1895a5c..2a08b01 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Klaviyo Ruby SDK -- SDK version: 4.2.0 -- API revision: 2023-09-15 +- SDK version: 5.0.0 +- API revision: 2023-10-15 ## Helpful Resources -- [API Reference](https://developers.klaviyo.com/en/v2023-09-15/reference) -- [API Guides](https://developers.klaviyo.com/en/v2023-09-15/docs) +- [API Reference](https://developers.klaviyo.com/en/v2023-10-15/reference) +- [API Guides](https://developers.klaviyo.com/en/v2023-10-15/docs) - [Postman Workspace](https://www.postman.com/klaviyo/workspace/klaviyo-developers) ## Design & Approach @@ -90,13 +90,13 @@ gem build klaviyo-api-sdk.gemspec Then install the gem locally: ```shell -gem install ./klaviyo-api-sdk-4.2.0.gem +gem install ./klaviyo-api-sdk-5.0.0.gem ``` Finally add this to the Gemfile: - gem 'klaviyo-api-sdk', '~> 4.2.0' + gem 'klaviyo-api-sdk', '~> 5.0.0' To install directly from rubygems: @@ -460,7 +460,7 @@ response = KlaviyoAPI::Events.get_events(opts) ## Comprehensive list of Operations & Parameters _**NOTE:**_ -- Organization: Resource groups and operation_ids are listed in alphabetical order, first by Resource name, then by **OpenAPI Summary**. Operation summaries are those listed in the right side bar of the [API Reference](https://developers.klaviyo.com/en/v2023-09-15/reference/get_events). +- Organization: Resource groups and operation_ids are listed in alphabetical order, first by Resource name, then by **OpenAPI Summary**. Operation summaries are those listed in the right side bar of the [API Reference](https://developers.klaviyo.com/en/v2023-10-15/reference/get_events). - For example values / data types, as well as whether parameters are required/optional, please reference the corresponding API Reference link. - Some args are required for the API call to succeed, the API docs above are the source of truth regarding which params are required. @@ -472,7 +472,7 @@ _**NOTE:**_ ## Accounts -#### [Get Account](https://developers.klaviyo.com/en/v2023-09-15/reference/get_account) +#### [Get Account](https://developers.klaviyo.com/en/v2023-10-15/reference/get_account) ```ruby KlaviyoAPI::Accounts.get_account(id, opts) @@ -482,7 +482,7 @@ KlaviyoAPI::Accounts.get_account(id, opts) -#### [Get Accounts](https://developers.klaviyo.com/en/v2023-09-15/reference/get_accounts) +#### [Get Accounts](https://developers.klaviyo.com/en/v2023-10-15/reference/get_accounts) ```ruby KlaviyoAPI::Accounts.get_accounts(opts) @@ -496,7 +496,7 @@ KlaviyoAPI::Accounts.get_accounts(opts) ## Campaigns -#### [Create Campaign](https://developers.klaviyo.com/en/v2023-09-15/reference/create_campaign) +#### [Create Campaign](https://developers.klaviyo.com/en/v2023-10-15/reference/create_campaign) ```ruby KlaviyoAPI::Campaigns.create_campaign(body) @@ -506,7 +506,7 @@ KlaviyoAPI::Campaigns.create_campaign(body) -#### [Create Campaign Clone](https://developers.klaviyo.com/en/v2023-09-15/reference/create_campaign_clone) +#### [Create Campaign Clone](https://developers.klaviyo.com/en/v2023-10-15/reference/create_campaign_clone) ```ruby KlaviyoAPI::Campaigns.create_campaign_clone(body) @@ -516,7 +516,7 @@ KlaviyoAPI::Campaigns.create_campaign_clone(body) -#### [Assign Campaign Message Template](https://developers.klaviyo.com/en/v2023-09-15/reference/create_campaign_message_assign_template) +#### [Assign Campaign Message Template](https://developers.klaviyo.com/en/v2023-10-15/reference/create_campaign_message_assign_template) ```ruby KlaviyoAPI::Campaigns.create_campaign_message_assign_template(body) @@ -526,7 +526,7 @@ KlaviyoAPI::Campaigns.create_campaign_message_assign_template(body) -#### [Create Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2023-09-15/reference/create_campaign_recipient_estimation_job) +#### [Create Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2023-10-15/reference/create_campaign_recipient_estimation_job) ```ruby KlaviyoAPI::Campaigns.create_campaign_recipient_estimation_job(body) @@ -536,7 +536,7 @@ KlaviyoAPI::Campaigns.create_campaign_recipient_estimation_job(body) -#### [Create Campaign Send Job](https://developers.klaviyo.com/en/v2023-09-15/reference/create_campaign_send_job) +#### [Create Campaign Send Job](https://developers.klaviyo.com/en/v2023-10-15/reference/create_campaign_send_job) ```ruby KlaviyoAPI::Campaigns.create_campaign_send_job(body) @@ -546,7 +546,7 @@ KlaviyoAPI::Campaigns.create_campaign_send_job(body) -#### [Delete Campaign](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_campaign) +#### [Delete Campaign](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_campaign) ```ruby KlaviyoAPI::Campaigns.delete_campaign(id) @@ -556,7 +556,7 @@ KlaviyoAPI::Campaigns.delete_campaign(id) -#### [Get Campaign](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign) +#### [Get Campaign](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign) ```ruby KlaviyoAPI::Campaigns.get_campaign(id, opts) @@ -566,7 +566,7 @@ KlaviyoAPI::Campaigns.get_campaign(id, opts) -#### [Get Campaign Campaign Messages](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_campaign_messages) +#### [Get Campaign Campaign Messages](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_campaign_messages) ```ruby KlaviyoAPI::Campaigns.get_campaign_campaign_messages(id, opts) @@ -576,7 +576,7 @@ KlaviyoAPI::Campaigns.get_campaign_campaign_messages(id, opts) -#### [Get Campaign Message](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_message) +#### [Get Campaign Message](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message) ```ruby KlaviyoAPI::Campaigns.get_campaign_message(id, opts) @@ -586,7 +586,7 @@ KlaviyoAPI::Campaigns.get_campaign_message(id, opts) -#### [Get Campaign Message Campaign](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_message_campaign) +#### [Get Campaign Message Campaign](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_campaign) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_campaign(id, opts) @@ -596,7 +596,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_campaign(id, opts) -#### [Get Campaign Message Relationships Campaign](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_message_relationships_campaign) +#### [Get Campaign Message Relationships Campaign](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_relationships_campaign) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_relationships_campaign(id) @@ -606,7 +606,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_relationships_campaign(id) -#### [Get Campaign Message Relationships Template](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_message_relationships_template) +#### [Get Campaign Message Relationships Template](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_relationships_template) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_relationships_template(id) @@ -616,7 +616,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_relationships_template(id) -#### [Get Campaign Message Template](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_message_template) +#### [Get Campaign Message Template](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_message_template) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_template(id, opts) @@ -626,7 +626,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_template(id, opts) -#### [Get Campaign Recipient Estimation](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_recipient_estimation) +#### [Get Campaign Recipient Estimation](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_recipient_estimation) ```ruby KlaviyoAPI::Campaigns.get_campaign_recipient_estimation(id, opts) @@ -636,7 +636,7 @@ KlaviyoAPI::Campaigns.get_campaign_recipient_estimation(id, opts) -#### [Get Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_recipient_estimation_job) +#### [Get Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_recipient_estimation_job) ```ruby KlaviyoAPI::Campaigns.get_campaign_recipient_estimation_job(id, opts) @@ -646,7 +646,7 @@ KlaviyoAPI::Campaigns.get_campaign_recipient_estimation_job(id, opts) -#### [Get Campaign Relationships Campaign Messages](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_relationships_campaign_messages) +#### [Get Campaign Relationships Campaign Messages](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_relationships_campaign_messages) ```ruby KlaviyoAPI::Campaigns.get_campaign_relationships_campaign_messages(id) @@ -656,7 +656,7 @@ KlaviyoAPI::Campaigns.get_campaign_relationships_campaign_messages(id) -#### [Get Campaign Relationships Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_relationships_tags) +#### [Get Campaign Relationships Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_relationships_tags) ```ruby KlaviyoAPI::Campaigns.get_campaign_relationships_tags(id) @@ -666,7 +666,7 @@ KlaviyoAPI::Campaigns.get_campaign_relationships_tags(id) -#### [Get Campaign Send Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_send_job) +#### [Get Campaign Send Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_send_job) ```ruby KlaviyoAPI::Campaigns.get_campaign_send_job(id, opts) @@ -676,7 +676,7 @@ KlaviyoAPI::Campaigns.get_campaign_send_job(id, opts) -#### [Get Campaign Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaign_tags) +#### [Get Campaign Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaign_tags) ```ruby KlaviyoAPI::Campaigns.get_campaign_tags(id, opts) @@ -686,7 +686,7 @@ KlaviyoAPI::Campaigns.get_campaign_tags(id, opts) -#### [Get Campaigns](https://developers.klaviyo.com/en/v2023-09-15/reference/get_campaigns) +#### [Get Campaigns](https://developers.klaviyo.com/en/v2023-10-15/reference/get_campaigns) ```ruby KlaviyoAPI::Campaigns.get_campaigns(filter, opts) @@ -696,7 +696,7 @@ KlaviyoAPI::Campaigns.get_campaigns(filter, opts) -#### [Update Campaign](https://developers.klaviyo.com/en/v2023-09-15/reference/update_campaign) +#### [Update Campaign](https://developers.klaviyo.com/en/v2023-10-15/reference/update_campaign) ```ruby KlaviyoAPI::Campaigns.update_campaign(id, body) @@ -706,7 +706,7 @@ KlaviyoAPI::Campaigns.update_campaign(id, body) -#### [Update Campaign Message](https://developers.klaviyo.com/en/v2023-09-15/reference/update_campaign_message) +#### [Update Campaign Message](https://developers.klaviyo.com/en/v2023-10-15/reference/update_campaign_message) ```ruby KlaviyoAPI::Campaigns.update_campaign_message(id, body) @@ -716,7 +716,7 @@ KlaviyoAPI::Campaigns.update_campaign_message(id, body) -#### [Update Campaign Send Job](https://developers.klaviyo.com/en/v2023-09-15/reference/update_campaign_send_job) +#### [Update Campaign Send Job](https://developers.klaviyo.com/en/v2023-10-15/reference/update_campaign_send_job) ```ruby KlaviyoAPI::Campaigns.update_campaign_send_job(id, body) @@ -730,7 +730,7 @@ KlaviyoAPI::Campaigns.update_campaign_send_job(id, body) ## Catalogs -#### [Create Back In Stock Subscription](https://developers.klaviyo.com/en/v2023-09-15/reference/create_back_in_stock_subscription) +#### [Create Back In Stock Subscription](https://developers.klaviyo.com/en/v2023-10-15/reference/create_back_in_stock_subscription) ```ruby KlaviyoAPI::Catalogs.create_back_in_stock_subscription(body) @@ -740,7 +740,7 @@ KlaviyoAPI::Catalogs.create_back_in_stock_subscription(body) -#### [Create Catalog Category](https://developers.klaviyo.com/en/v2023-09-15/reference/create_catalog_category) +#### [Create Catalog Category](https://developers.klaviyo.com/en/v2023-10-15/reference/create_catalog_category) ```ruby KlaviyoAPI::Catalogs.create_catalog_category(body) @@ -750,7 +750,7 @@ KlaviyoAPI::Catalogs.create_catalog_category(body) -#### [Create Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-09-15/reference/create_catalog_category_relationships_items) +#### [Create Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-10-15/reference/create_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.create_catalog_category_relationships_items(id, body) @@ -760,7 +760,7 @@ KlaviyoAPI::Catalogs.create_catalog_category_relationships_items(id, body) -#### [Create Catalog Item](https://developers.klaviyo.com/en/v2023-09-15/reference/create_catalog_item) +#### [Create Catalog Item](https://developers.klaviyo.com/en/v2023-10-15/reference/create_catalog_item) ```ruby KlaviyoAPI::Catalogs.create_catalog_item(body) @@ -770,7 +770,7 @@ KlaviyoAPI::Catalogs.create_catalog_item(body) -#### [Create Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-09-15/reference/create_catalog_item_relationships_categories) +#### [Create Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-10-15/reference/create_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.create_catalog_item_relationships_categories(id, body) @@ -780,7 +780,7 @@ KlaviyoAPI::Catalogs.create_catalog_item_relationships_categories(id, body) -#### [Create Catalog Variant](https://developers.klaviyo.com/en/v2023-09-15/reference/create_catalog_variant) +#### [Create Catalog Variant](https://developers.klaviyo.com/en/v2023-10-15/reference/create_catalog_variant) ```ruby KlaviyoAPI::Catalogs.create_catalog_variant(body) @@ -790,7 +790,7 @@ KlaviyoAPI::Catalogs.create_catalog_variant(body) -#### [Delete Catalog Category](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_catalog_category) +#### [Delete Catalog Category](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_catalog_category) ```ruby KlaviyoAPI::Catalogs.delete_catalog_category(id) @@ -800,7 +800,7 @@ KlaviyoAPI::Catalogs.delete_catalog_category(id) -#### [Delete Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_catalog_category_relationships_items) +#### [Delete Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.delete_catalog_category_relationships_items(id, body) @@ -810,7 +810,7 @@ KlaviyoAPI::Catalogs.delete_catalog_category_relationships_items(id, body) -#### [Delete Catalog Item](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_catalog_item) +#### [Delete Catalog Item](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_catalog_item) ```ruby KlaviyoAPI::Catalogs.delete_catalog_item(id) @@ -820,7 +820,7 @@ KlaviyoAPI::Catalogs.delete_catalog_item(id) -#### [Delete Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_catalog_item_relationships_categories) +#### [Delete Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.delete_catalog_item_relationships_categories(id, body) @@ -830,7 +830,7 @@ KlaviyoAPI::Catalogs.delete_catalog_item_relationships_categories(id, body) -#### [Delete Catalog Variant](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_catalog_variant) +#### [Delete Catalog Variant](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_catalog_variant) ```ruby KlaviyoAPI::Catalogs.delete_catalog_variant(id) @@ -840,7 +840,7 @@ KlaviyoAPI::Catalogs.delete_catalog_variant(id) -#### [Get Catalog Categories](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_categories) +#### [Get Catalog Categories](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_categories) ```ruby KlaviyoAPI::Catalogs.get_catalog_categories(opts) @@ -850,7 +850,7 @@ KlaviyoAPI::Catalogs.get_catalog_categories(opts) -#### [Get Catalog Category](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_category) +#### [Get Catalog Category](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_category) ```ruby KlaviyoAPI::Catalogs.get_catalog_category(id, opts) @@ -860,7 +860,7 @@ KlaviyoAPI::Catalogs.get_catalog_category(id, opts) -#### [Get Catalog Category Items](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_category_items) +#### [Get Catalog Category Items](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_category_items) ```ruby KlaviyoAPI::Catalogs.get_catalog_category_items(id, opts) @@ -870,7 +870,7 @@ KlaviyoAPI::Catalogs.get_catalog_category_items(id, opts) -#### [Get Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_category_relationships_items) +#### [Get Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.get_catalog_category_relationships_items(id, opts) @@ -880,7 +880,7 @@ KlaviyoAPI::Catalogs.get_catalog_category_relationships_items(id, opts) -#### [Get Catalog Item](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_item) +#### [Get Catalog Item](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_item) ```ruby KlaviyoAPI::Catalogs.get_catalog_item(id, opts) @@ -890,7 +890,7 @@ KlaviyoAPI::Catalogs.get_catalog_item(id, opts) -#### [Get Catalog Item Categories](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_item_categories) +#### [Get Catalog Item Categories](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_item_categories) ```ruby KlaviyoAPI::Catalogs.get_catalog_item_categories(id, opts) @@ -900,7 +900,7 @@ KlaviyoAPI::Catalogs.get_catalog_item_categories(id, opts) -#### [Get Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_item_relationships_categories) +#### [Get Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.get_catalog_item_relationships_categories(id, opts) @@ -910,7 +910,7 @@ KlaviyoAPI::Catalogs.get_catalog_item_relationships_categories(id, opts) -#### [Get Catalog Item Variants](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_item_variants) +#### [Get Catalog Item Variants](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_item_variants) ```ruby KlaviyoAPI::Catalogs.get_catalog_item_variants(id, opts) @@ -920,7 +920,7 @@ KlaviyoAPI::Catalogs.get_catalog_item_variants(id, opts) -#### [Get Catalog Items](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_items) +#### [Get Catalog Items](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_items) ```ruby KlaviyoAPI::Catalogs.get_catalog_items(opts) @@ -930,7 +930,7 @@ KlaviyoAPI::Catalogs.get_catalog_items(opts) -#### [Get Catalog Variant](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_variant) +#### [Get Catalog Variant](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_variant) ```ruby KlaviyoAPI::Catalogs.get_catalog_variant(id, opts) @@ -940,7 +940,7 @@ KlaviyoAPI::Catalogs.get_catalog_variant(id, opts) -#### [Get Catalog Variants](https://developers.klaviyo.com/en/v2023-09-15/reference/get_catalog_variants) +#### [Get Catalog Variants](https://developers.klaviyo.com/en/v2023-10-15/reference/get_catalog_variants) ```ruby KlaviyoAPI::Catalogs.get_catalog_variants(opts) @@ -950,7 +950,7 @@ KlaviyoAPI::Catalogs.get_catalog_variants(opts) -#### [Get Create Categories Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_create_categories_job) +#### [Get Create Categories Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_create_categories_job) ```ruby KlaviyoAPI::Catalogs.get_create_categories_job(job_id, opts) @@ -960,7 +960,7 @@ KlaviyoAPI::Catalogs.get_create_categories_job(job_id, opts) -#### [Get Create Categories Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_create_categories_jobs) +#### [Get Create Categories Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_create_categories_jobs) ```ruby KlaviyoAPI::Catalogs.get_create_categories_jobs(opts) @@ -970,7 +970,7 @@ KlaviyoAPI::Catalogs.get_create_categories_jobs(opts) -#### [Get Create Items Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_create_items_job) +#### [Get Create Items Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_create_items_job) ```ruby KlaviyoAPI::Catalogs.get_create_items_job(job_id, opts) @@ -980,7 +980,7 @@ KlaviyoAPI::Catalogs.get_create_items_job(job_id, opts) -#### [Get Create Items Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_create_items_jobs) +#### [Get Create Items Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_create_items_jobs) ```ruby KlaviyoAPI::Catalogs.get_create_items_jobs(opts) @@ -990,7 +990,7 @@ KlaviyoAPI::Catalogs.get_create_items_jobs(opts) -#### [Get Create Variants Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_create_variants_job) +#### [Get Create Variants Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_create_variants_job) ```ruby KlaviyoAPI::Catalogs.get_create_variants_job(job_id, opts) @@ -1000,7 +1000,7 @@ KlaviyoAPI::Catalogs.get_create_variants_job(job_id, opts) -#### [Get Create Variants Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_create_variants_jobs) +#### [Get Create Variants Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_create_variants_jobs) ```ruby KlaviyoAPI::Catalogs.get_create_variants_jobs(opts) @@ -1010,7 +1010,7 @@ KlaviyoAPI::Catalogs.get_create_variants_jobs(opts) -#### [Get Delete Categories Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_delete_categories_job) +#### [Get Delete Categories Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_delete_categories_job) ```ruby KlaviyoAPI::Catalogs.get_delete_categories_job(job_id, opts) @@ -1020,7 +1020,7 @@ KlaviyoAPI::Catalogs.get_delete_categories_job(job_id, opts) -#### [Get Delete Categories Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_delete_categories_jobs) +#### [Get Delete Categories Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_delete_categories_jobs) ```ruby KlaviyoAPI::Catalogs.get_delete_categories_jobs(opts) @@ -1030,7 +1030,7 @@ KlaviyoAPI::Catalogs.get_delete_categories_jobs(opts) -#### [Get Delete Items Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_delete_items_job) +#### [Get Delete Items Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_delete_items_job) ```ruby KlaviyoAPI::Catalogs.get_delete_items_job(job_id, opts) @@ -1040,7 +1040,7 @@ KlaviyoAPI::Catalogs.get_delete_items_job(job_id, opts) -#### [Get Delete Items Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_delete_items_jobs) +#### [Get Delete Items Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_delete_items_jobs) ```ruby KlaviyoAPI::Catalogs.get_delete_items_jobs(opts) @@ -1050,7 +1050,7 @@ KlaviyoAPI::Catalogs.get_delete_items_jobs(opts) -#### [Get Delete Variants Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_delete_variants_job) +#### [Get Delete Variants Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_delete_variants_job) ```ruby KlaviyoAPI::Catalogs.get_delete_variants_job(job_id, opts) @@ -1060,7 +1060,7 @@ KlaviyoAPI::Catalogs.get_delete_variants_job(job_id, opts) -#### [Get Delete Variants Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_delete_variants_jobs) +#### [Get Delete Variants Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_delete_variants_jobs) ```ruby KlaviyoAPI::Catalogs.get_delete_variants_jobs(opts) @@ -1070,7 +1070,7 @@ KlaviyoAPI::Catalogs.get_delete_variants_jobs(opts) -#### [Get Update Categories Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_update_categories_job) +#### [Get Update Categories Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_update_categories_job) ```ruby KlaviyoAPI::Catalogs.get_update_categories_job(job_id, opts) @@ -1080,7 +1080,7 @@ KlaviyoAPI::Catalogs.get_update_categories_job(job_id, opts) -#### [Get Update Categories Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_update_categories_jobs) +#### [Get Update Categories Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_update_categories_jobs) ```ruby KlaviyoAPI::Catalogs.get_update_categories_jobs(opts) @@ -1090,7 +1090,7 @@ KlaviyoAPI::Catalogs.get_update_categories_jobs(opts) -#### [Get Update Items Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_update_items_job) +#### [Get Update Items Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_update_items_job) ```ruby KlaviyoAPI::Catalogs.get_update_items_job(job_id, opts) @@ -1100,7 +1100,7 @@ KlaviyoAPI::Catalogs.get_update_items_job(job_id, opts) -#### [Get Update Items Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_update_items_jobs) +#### [Get Update Items Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_update_items_jobs) ```ruby KlaviyoAPI::Catalogs.get_update_items_jobs(opts) @@ -1110,7 +1110,7 @@ KlaviyoAPI::Catalogs.get_update_items_jobs(opts) -#### [Get Update Variants Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_update_variants_job) +#### [Get Update Variants Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_update_variants_job) ```ruby KlaviyoAPI::Catalogs.get_update_variants_job(job_id, opts) @@ -1120,7 +1120,7 @@ KlaviyoAPI::Catalogs.get_update_variants_job(job_id, opts) -#### [Get Update Variants Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_update_variants_jobs) +#### [Get Update Variants Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_update_variants_jobs) ```ruby KlaviyoAPI::Catalogs.get_update_variants_jobs(opts) @@ -1130,7 +1130,7 @@ KlaviyoAPI::Catalogs.get_update_variants_jobs(opts) -#### [Spawn Create Categories Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_create_categories_job) +#### [Spawn Create Categories Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_create_categories_job) ```ruby KlaviyoAPI::Catalogs.spawn_create_categories_job(body) @@ -1140,7 +1140,7 @@ KlaviyoAPI::Catalogs.spawn_create_categories_job(body) -#### [Spawn Create Items Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_create_items_job) +#### [Spawn Create Items Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_create_items_job) ```ruby KlaviyoAPI::Catalogs.spawn_create_items_job(body) @@ -1150,7 +1150,7 @@ KlaviyoAPI::Catalogs.spawn_create_items_job(body) -#### [Spawn Create Variants Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_create_variants_job) +#### [Spawn Create Variants Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_create_variants_job) ```ruby KlaviyoAPI::Catalogs.spawn_create_variants_job(body) @@ -1160,7 +1160,7 @@ KlaviyoAPI::Catalogs.spawn_create_variants_job(body) -#### [Spawn Delete Categories Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_delete_categories_job) +#### [Spawn Delete Categories Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_delete_categories_job) ```ruby KlaviyoAPI::Catalogs.spawn_delete_categories_job(body) @@ -1170,7 +1170,7 @@ KlaviyoAPI::Catalogs.spawn_delete_categories_job(body) -#### [Spawn Delete Items Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_delete_items_job) +#### [Spawn Delete Items Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_delete_items_job) ```ruby KlaviyoAPI::Catalogs.spawn_delete_items_job(body) @@ -1180,7 +1180,7 @@ KlaviyoAPI::Catalogs.spawn_delete_items_job(body) -#### [Spawn Delete Variants Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_delete_variants_job) +#### [Spawn Delete Variants Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_delete_variants_job) ```ruby KlaviyoAPI::Catalogs.spawn_delete_variants_job(body) @@ -1190,7 +1190,7 @@ KlaviyoAPI::Catalogs.spawn_delete_variants_job(body) -#### [Spawn Update Categories Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_update_categories_job) +#### [Spawn Update Categories Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_update_categories_job) ```ruby KlaviyoAPI::Catalogs.spawn_update_categories_job(body) @@ -1200,7 +1200,7 @@ KlaviyoAPI::Catalogs.spawn_update_categories_job(body) -#### [Spawn Update Items Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_update_items_job) +#### [Spawn Update Items Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_update_items_job) ```ruby KlaviyoAPI::Catalogs.spawn_update_items_job(body) @@ -1210,7 +1210,7 @@ KlaviyoAPI::Catalogs.spawn_update_items_job(body) -#### [Spawn Update Variants Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_update_variants_job) +#### [Spawn Update Variants Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_update_variants_job) ```ruby KlaviyoAPI::Catalogs.spawn_update_variants_job(body) @@ -1220,7 +1220,7 @@ KlaviyoAPI::Catalogs.spawn_update_variants_job(body) -#### [Update Catalog Category](https://developers.klaviyo.com/en/v2023-09-15/reference/update_catalog_category) +#### [Update Catalog Category](https://developers.klaviyo.com/en/v2023-10-15/reference/update_catalog_category) ```ruby KlaviyoAPI::Catalogs.update_catalog_category(id, body) @@ -1230,7 +1230,7 @@ KlaviyoAPI::Catalogs.update_catalog_category(id, body) -#### [Update Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-09-15/reference/update_catalog_category_relationships_items) +#### [Update Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2023-10-15/reference/update_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.update_catalog_category_relationships_items(id, body) @@ -1240,7 +1240,7 @@ KlaviyoAPI::Catalogs.update_catalog_category_relationships_items(id, body) -#### [Update Catalog Item](https://developers.klaviyo.com/en/v2023-09-15/reference/update_catalog_item) +#### [Update Catalog Item](https://developers.klaviyo.com/en/v2023-10-15/reference/update_catalog_item) ```ruby KlaviyoAPI::Catalogs.update_catalog_item(id, body) @@ -1250,7 +1250,7 @@ KlaviyoAPI::Catalogs.update_catalog_item(id, body) -#### [Update Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-09-15/reference/update_catalog_item_relationships_categories) +#### [Update Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2023-10-15/reference/update_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.update_catalog_item_relationships_categories(id, body) @@ -1260,7 +1260,7 @@ KlaviyoAPI::Catalogs.update_catalog_item_relationships_categories(id, body) -#### [Update Catalog Variant](https://developers.klaviyo.com/en/v2023-09-15/reference/update_catalog_variant) +#### [Update Catalog Variant](https://developers.klaviyo.com/en/v2023-10-15/reference/update_catalog_variant) ```ruby KlaviyoAPI::Catalogs.update_catalog_variant(id, body) @@ -1274,7 +1274,7 @@ KlaviyoAPI::Catalogs.update_catalog_variant(id, body) ## Coupons -#### [Create Coupon](https://developers.klaviyo.com/en/v2023-09-15/reference/create_coupon) +#### [Create Coupon](https://developers.klaviyo.com/en/v2023-10-15/reference/create_coupon) ```ruby KlaviyoAPI::Coupons.create_coupon(body) @@ -1284,7 +1284,7 @@ KlaviyoAPI::Coupons.create_coupon(body) -#### [Create Coupon Code](https://developers.klaviyo.com/en/v2023-09-15/reference/create_coupon_code) +#### [Create Coupon Code](https://developers.klaviyo.com/en/v2023-10-15/reference/create_coupon_code) ```ruby KlaviyoAPI::Coupons.create_coupon_code(body) @@ -1294,7 +1294,7 @@ KlaviyoAPI::Coupons.create_coupon_code(body) -#### [Delete Coupon](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_coupon) +#### [Delete Coupon](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_coupon) ```ruby KlaviyoAPI::Coupons.delete_coupon(id) @@ -1304,7 +1304,7 @@ KlaviyoAPI::Coupons.delete_coupon(id) -#### [Delete Coupon Code](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_coupon_code) +#### [Delete Coupon Code](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_coupon_code) ```ruby KlaviyoAPI::Coupons.delete_coupon_code(id) @@ -1314,7 +1314,7 @@ KlaviyoAPI::Coupons.delete_coupon_code(id) -#### [Get Coupon](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon) +#### [Get Coupon](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon) ```ruby KlaviyoAPI::Coupons.get_coupon(id, opts) @@ -1324,7 +1324,7 @@ KlaviyoAPI::Coupons.get_coupon(id, opts) -#### [Get Coupon Code](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_code) +#### [Get Coupon Code](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_code) ```ruby KlaviyoAPI::Coupons.get_coupon_code(id, opts) @@ -1334,7 +1334,7 @@ KlaviyoAPI::Coupons.get_coupon_code(id, opts) -#### [Get Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_code_bulk_create_job) +#### [Get Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_code_bulk_create_job) ```ruby KlaviyoAPI::Coupons.get_coupon_code_bulk_create_job(job_id, opts) @@ -1344,7 +1344,7 @@ KlaviyoAPI::Coupons.get_coupon_code_bulk_create_job(job_id, opts) -#### [Get Coupon Code Bulk Create Jobs](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_code_bulk_create_jobs) +#### [Get Coupon Code Bulk Create Jobs](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_code_bulk_create_jobs) ```ruby KlaviyoAPI::Coupons.get_coupon_code_bulk_create_jobs(opts) @@ -1354,7 +1354,7 @@ KlaviyoAPI::Coupons.get_coupon_code_bulk_create_jobs(opts) -#### [Get Coupon Code Relationships Coupon](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_code_relationships_coupon) +#### [Get Coupon Code Relationships Coupon](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_code_relationships_coupon) ```ruby KlaviyoAPI::Coupons.get_coupon_code_relationships_coupon(id, opts) @@ -1364,7 +1364,7 @@ KlaviyoAPI::Coupons.get_coupon_code_relationships_coupon(id, opts) -#### [Get Coupon Codes](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_codes) +#### [Get Coupon Codes](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_codes) ```ruby KlaviyoAPI::Coupons.get_coupon_codes(opts) @@ -1374,7 +1374,7 @@ KlaviyoAPI::Coupons.get_coupon_codes(opts) -#### [Get Coupon Codes For Coupon](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_codes_for_coupon) +#### [Get Coupon Codes For Coupon](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_codes_for_coupon) ```ruby KlaviyoAPI::Coupons.get_coupon_codes_for_coupon(id, opts) @@ -1384,7 +1384,7 @@ KlaviyoAPI::Coupons.get_coupon_codes_for_coupon(id, opts) -#### [Get Coupon For Coupon Code](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_for_coupon_code) +#### [Get Coupon For Coupon Code](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_for_coupon_code) ```ruby KlaviyoAPI::Coupons.get_coupon_for_coupon_code(id, opts) @@ -1394,7 +1394,7 @@ KlaviyoAPI::Coupons.get_coupon_for_coupon_code(id, opts) -#### [Get Coupon Relationships Coupon Codes](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupon_relationships_coupon_codes) +#### [Get Coupon Relationships Coupon Codes](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupon_relationships_coupon_codes) ```ruby KlaviyoAPI::Coupons.get_coupon_relationships_coupon_codes(id) @@ -1404,7 +1404,7 @@ KlaviyoAPI::Coupons.get_coupon_relationships_coupon_codes(id) -#### [Get Coupons](https://developers.klaviyo.com/en/v2023-09-15/reference/get_coupons) +#### [Get Coupons](https://developers.klaviyo.com/en/v2023-10-15/reference/get_coupons) ```ruby KlaviyoAPI::Coupons.get_coupons(opts) @@ -1414,7 +1414,7 @@ KlaviyoAPI::Coupons.get_coupons(opts) -#### [Spawn Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2023-09-15/reference/spawn_coupon_code_bulk_create_job) +#### [Spawn Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2023-10-15/reference/spawn_coupon_code_bulk_create_job) ```ruby KlaviyoAPI::Coupons.spawn_coupon_code_bulk_create_job(body) @@ -1424,7 +1424,7 @@ KlaviyoAPI::Coupons.spawn_coupon_code_bulk_create_job(body) -#### [Update Coupon](https://developers.klaviyo.com/en/v2023-09-15/reference/update_coupon) +#### [Update Coupon](https://developers.klaviyo.com/en/v2023-10-15/reference/update_coupon) ```ruby KlaviyoAPI::Coupons.update_coupon(id, body) @@ -1434,7 +1434,7 @@ KlaviyoAPI::Coupons.update_coupon(id, body) -#### [Update Coupon Code](https://developers.klaviyo.com/en/v2023-09-15/reference/update_coupon_code) +#### [Update Coupon Code](https://developers.klaviyo.com/en/v2023-10-15/reference/update_coupon_code) ```ruby KlaviyoAPI::Coupons.update_coupon_code(id, body) @@ -1448,7 +1448,7 @@ KlaviyoAPI::Coupons.update_coupon_code(id, body) ## Data Privacy -#### [Request Profile Deletion](https://developers.klaviyo.com/en/v2023-09-15/reference/request_profile_deletion) +#### [Request Profile Deletion](https://developers.klaviyo.com/en/v2023-10-15/reference/request_profile_deletion) ```ruby KlaviyoAPI::DataPrivacy.request_profile_deletion(body) @@ -1462,7 +1462,7 @@ KlaviyoAPI::DataPrivacy.request_profile_deletion(body) ## Events -#### [Create Event](https://developers.klaviyo.com/en/v2023-09-15/reference/create_event) +#### [Create Event](https://developers.klaviyo.com/en/v2023-10-15/reference/create_event) ```ruby KlaviyoAPI::Events.create_event(body) @@ -1472,7 +1472,7 @@ KlaviyoAPI::Events.create_event(body) -#### [Get Event](https://developers.klaviyo.com/en/v2023-09-15/reference/get_event) +#### [Get Event](https://developers.klaviyo.com/en/v2023-10-15/reference/get_event) ```ruby KlaviyoAPI::Events.get_event(id, opts) @@ -1482,7 +1482,7 @@ KlaviyoAPI::Events.get_event(id, opts) -#### [Get Event Metric](https://developers.klaviyo.com/en/v2023-09-15/reference/get_event_metric) +#### [Get Event Metric](https://developers.klaviyo.com/en/v2023-10-15/reference/get_event_metric) ```ruby KlaviyoAPI::Events.get_event_metric(id, opts) @@ -1492,7 +1492,7 @@ KlaviyoAPI::Events.get_event_metric(id, opts) -#### [Get Event Profile](https://developers.klaviyo.com/en/v2023-09-15/reference/get_event_profile) +#### [Get Event Profile](https://developers.klaviyo.com/en/v2023-10-15/reference/get_event_profile) ```ruby KlaviyoAPI::Events.get_event_profile(id, opts) @@ -1502,7 +1502,7 @@ KlaviyoAPI::Events.get_event_profile(id, opts) -#### [Get Event Relationships Metric](https://developers.klaviyo.com/en/v2023-09-15/reference/get_event_relationships_metric) +#### [Get Event Relationships Metric](https://developers.klaviyo.com/en/v2023-10-15/reference/get_event_relationships_metric) ```ruby KlaviyoAPI::Events.get_event_relationships_metric(id) @@ -1512,7 +1512,7 @@ KlaviyoAPI::Events.get_event_relationships_metric(id) -#### [Get Event Relationships Profile](https://developers.klaviyo.com/en/v2023-09-15/reference/get_event_relationships_profile) +#### [Get Event Relationships Profile](https://developers.klaviyo.com/en/v2023-10-15/reference/get_event_relationships_profile) ```ruby KlaviyoAPI::Events.get_event_relationships_profile(id) @@ -1522,7 +1522,7 @@ KlaviyoAPI::Events.get_event_relationships_profile(id) -#### [Get Events](https://developers.klaviyo.com/en/v2023-09-15/reference/get_events) +#### [Get Events](https://developers.klaviyo.com/en/v2023-10-15/reference/get_events) ```ruby KlaviyoAPI::Events.get_events(opts) @@ -1536,7 +1536,7 @@ KlaviyoAPI::Events.get_events(opts) ## Flows -#### [Get Flow](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow) +#### [Get Flow](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow) ```ruby KlaviyoAPI::Flows.get_flow(id, opts) @@ -1546,7 +1546,7 @@ KlaviyoAPI::Flows.get_flow(id, opts) -#### [Get Flow Action](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_action) +#### [Get Flow Action](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_action) ```ruby KlaviyoAPI::Flows.get_flow_action(id, opts) @@ -1556,7 +1556,7 @@ KlaviyoAPI::Flows.get_flow_action(id, opts) -#### [Get Flow For Flow Action](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_action_flow) +#### [Get Flow For Flow Action](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_action_flow) ```ruby KlaviyoAPI::Flows.get_flow_action_flow(id, opts) @@ -1566,7 +1566,7 @@ KlaviyoAPI::Flows.get_flow_action_flow(id, opts) -#### [Get Flow Action Messages](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_action_messages) +#### [Get Flow Action Messages](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_action_messages) ```ruby KlaviyoAPI::Flows.get_flow_action_messages(id, opts) @@ -1576,7 +1576,7 @@ KlaviyoAPI::Flows.get_flow_action_messages(id, opts) -#### [Get Flow Action Relationships Flow](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_action_relationships_flow) +#### [Get Flow Action Relationships Flow](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_action_relationships_flow) ```ruby KlaviyoAPI::Flows.get_flow_action_relationships_flow(id) @@ -1586,7 +1586,7 @@ KlaviyoAPI::Flows.get_flow_action_relationships_flow(id) -#### [Get Flow Action Relationships Messages](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_action_relationships_messages) +#### [Get Flow Action Relationships Messages](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_action_relationships_messages) ```ruby KlaviyoAPI::Flows.get_flow_action_relationships_messages(id, opts) @@ -1596,7 +1596,7 @@ KlaviyoAPI::Flows.get_flow_action_relationships_messages(id, opts) -#### [Get Flow Flow Actions](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_flow_actions) +#### [Get Flow Flow Actions](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_flow_actions) ```ruby KlaviyoAPI::Flows.get_flow_flow_actions(id, opts) @@ -1606,7 +1606,7 @@ KlaviyoAPI::Flows.get_flow_flow_actions(id, opts) -#### [Get Flow Message](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_message) +#### [Get Flow Message](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_message) ```ruby KlaviyoAPI::Flows.get_flow_message(id, opts) @@ -1616,7 +1616,7 @@ KlaviyoAPI::Flows.get_flow_message(id, opts) -#### [Get Flow Action For Message](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_message_action) +#### [Get Flow Action For Message](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_message_action) ```ruby KlaviyoAPI::Flows.get_flow_message_action(id, opts) @@ -1626,7 +1626,7 @@ KlaviyoAPI::Flows.get_flow_message_action(id, opts) -#### [Get Flow Message Relationships Action](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_message_relationships_action) +#### [Get Flow Message Relationships Action](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_message_relationships_action) ```ruby KlaviyoAPI::Flows.get_flow_message_relationships_action(id) @@ -1636,7 +1636,7 @@ KlaviyoAPI::Flows.get_flow_message_relationships_action(id) -#### [Get Flow Message Relationships Template](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_message_relationships_template) +#### [Get Flow Message Relationships Template](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_message_relationships_template) ```ruby KlaviyoAPI::Flows.get_flow_message_relationships_template(id) @@ -1646,7 +1646,7 @@ KlaviyoAPI::Flows.get_flow_message_relationships_template(id) -#### [Get Flow Message Template](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_message_template) +#### [Get Flow Message Template](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_message_template) ```ruby KlaviyoAPI::Flows.get_flow_message_template(id, opts) @@ -1656,7 +1656,7 @@ KlaviyoAPI::Flows.get_flow_message_template(id, opts) -#### [Get Flow Relationships Flow Actions](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_relationships_flow_actions) +#### [Get Flow Relationships Flow Actions](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_relationships_flow_actions) ```ruby KlaviyoAPI::Flows.get_flow_relationships_flow_actions(id, opts) @@ -1666,7 +1666,7 @@ KlaviyoAPI::Flows.get_flow_relationships_flow_actions(id, opts) -#### [Get Flow Relationships Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_relationships_tags) +#### [Get Flow Relationships Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_relationships_tags) ```ruby KlaviyoAPI::Flows.get_flow_relationships_tags(id) @@ -1676,7 +1676,7 @@ KlaviyoAPI::Flows.get_flow_relationships_tags(id) -#### [Get Flow Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flow_tags) +#### [Get Flow Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flow_tags) ```ruby KlaviyoAPI::Flows.get_flow_tags(id, opts) @@ -1686,7 +1686,7 @@ KlaviyoAPI::Flows.get_flow_tags(id, opts) -#### [Get Flows](https://developers.klaviyo.com/en/v2023-09-15/reference/get_flows) +#### [Get Flows](https://developers.klaviyo.com/en/v2023-10-15/reference/get_flows) ```ruby KlaviyoAPI::Flows.get_flows(opts) @@ -1696,7 +1696,7 @@ KlaviyoAPI::Flows.get_flows(opts) -#### [Update Flow Status](https://developers.klaviyo.com/en/v2023-09-15/reference/update_flow) +#### [Update Flow Status](https://developers.klaviyo.com/en/v2023-10-15/reference/update_flow) ```ruby KlaviyoAPI::Flows.update_flow(id, body) @@ -1710,7 +1710,7 @@ KlaviyoAPI::Flows.update_flow(id, body) ## Images -#### [Get Image](https://developers.klaviyo.com/en/v2023-09-15/reference/get_image) +#### [Get Image](https://developers.klaviyo.com/en/v2023-10-15/reference/get_image) ```ruby KlaviyoAPI::Images.get_image(id, opts) @@ -1720,7 +1720,7 @@ KlaviyoAPI::Images.get_image(id, opts) -#### [Get Images](https://developers.klaviyo.com/en/v2023-09-15/reference/get_images) +#### [Get Images](https://developers.klaviyo.com/en/v2023-10-15/reference/get_images) ```ruby KlaviyoAPI::Images.get_images(opts) @@ -1730,7 +1730,7 @@ KlaviyoAPI::Images.get_images(opts) -#### [Update Image](https://developers.klaviyo.com/en/v2023-09-15/reference/update_image) +#### [Update Image](https://developers.klaviyo.com/en/v2023-10-15/reference/update_image) ```ruby KlaviyoAPI::Images.update_image(id, body) @@ -1740,7 +1740,7 @@ KlaviyoAPI::Images.update_image(id, body) -#### [Upload Image From File](https://developers.klaviyo.com/en/v2023-09-15/reference/upload_image_from_file) +#### [Upload Image From File](https://developers.klaviyo.com/en/v2023-10-15/reference/upload_image_from_file) ```ruby KlaviyoAPI::Images.upload_image_from_file(file, opts) @@ -1750,7 +1750,7 @@ KlaviyoAPI::Images.upload_image_from_file(file, opts) -#### [Upload Image From URL](https://developers.klaviyo.com/en/v2023-09-15/reference/upload_image_from_url) +#### [Upload Image From URL](https://developers.klaviyo.com/en/v2023-10-15/reference/upload_image_from_url) ```ruby KlaviyoAPI::Images.upload_image_from_url(body) @@ -1764,7 +1764,7 @@ KlaviyoAPI::Images.upload_image_from_url(body) ## Lists -#### [Create List](https://developers.klaviyo.com/en/v2023-09-15/reference/create_list) +#### [Create List](https://developers.klaviyo.com/en/v2023-10-15/reference/create_list) ```ruby KlaviyoAPI::Lists.create_list(body) @@ -1774,7 +1774,7 @@ KlaviyoAPI::Lists.create_list(body) -#### [Add Profile To List](https://developers.klaviyo.com/en/v2023-09-15/reference/create_list_relationships) +#### [Add Profile To List](https://developers.klaviyo.com/en/v2023-10-15/reference/create_list_relationships) ```ruby KlaviyoAPI::Lists.create_list_relationships(id, body) @@ -1784,7 +1784,7 @@ KlaviyoAPI::Lists.create_list_relationships(id, body) -#### [Delete List](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_list) +#### [Delete List](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_list) ```ruby KlaviyoAPI::Lists.delete_list(id) @@ -1794,7 +1794,7 @@ KlaviyoAPI::Lists.delete_list(id) -#### [Remove Profile From List](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_list_relationships) +#### [Remove Profile From List](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_list_relationships) ```ruby KlaviyoAPI::Lists.delete_list_relationships(id, body) @@ -1804,7 +1804,7 @@ KlaviyoAPI::Lists.delete_list_relationships(id, body) -#### [Get List](https://developers.klaviyo.com/en/v2023-09-15/reference/get_list) +#### [Get List](https://developers.klaviyo.com/en/v2023-10-15/reference/get_list) ```ruby KlaviyoAPI::Lists.get_list(id, opts) @@ -1814,7 +1814,7 @@ KlaviyoAPI::Lists.get_list(id, opts) -#### [Get List Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/get_list_profiles) +#### [Get List Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/get_list_profiles) ```ruby KlaviyoAPI::Lists.get_list_profiles(id, opts) @@ -1824,7 +1824,7 @@ KlaviyoAPI::Lists.get_list_profiles(id, opts) -#### [Get List Relationships Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/get_list_relationships_profiles) +#### [Get List Relationships Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/get_list_relationships_profiles) ```ruby KlaviyoAPI::Lists.get_list_relationships_profiles(id, opts) @@ -1834,7 +1834,7 @@ KlaviyoAPI::Lists.get_list_relationships_profiles(id, opts) -#### [Get List Relationships Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_list_relationships_tags) +#### [Get List Relationships Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_list_relationships_tags) ```ruby KlaviyoAPI::Lists.get_list_relationships_tags(id) @@ -1844,7 +1844,7 @@ KlaviyoAPI::Lists.get_list_relationships_tags(id) -#### [Get List Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_list_tags) +#### [Get List Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_list_tags) ```ruby KlaviyoAPI::Lists.get_list_tags(id, opts) @@ -1854,7 +1854,7 @@ KlaviyoAPI::Lists.get_list_tags(id, opts) -#### [Get Lists](https://developers.klaviyo.com/en/v2023-09-15/reference/get_lists) +#### [Get Lists](https://developers.klaviyo.com/en/v2023-10-15/reference/get_lists) ```ruby KlaviyoAPI::Lists.get_lists(opts) @@ -1864,7 +1864,7 @@ KlaviyoAPI::Lists.get_lists(opts) -#### [Update List](https://developers.klaviyo.com/en/v2023-09-15/reference/update_list) +#### [Update List](https://developers.klaviyo.com/en/v2023-10-15/reference/update_list) ```ruby KlaviyoAPI::Lists.update_list(id, body) @@ -1878,7 +1878,7 @@ KlaviyoAPI::Lists.update_list(id, body) ## Metrics -#### [Get Metric](https://developers.klaviyo.com/en/v2023-09-15/reference/get_metric) +#### [Get Metric](https://developers.klaviyo.com/en/v2023-10-15/reference/get_metric) ```ruby KlaviyoAPI::Metrics.get_metric(id, opts) @@ -1888,7 +1888,7 @@ KlaviyoAPI::Metrics.get_metric(id, opts) -#### [Get Metrics](https://developers.klaviyo.com/en/v2023-09-15/reference/get_metrics) +#### [Get Metrics](https://developers.klaviyo.com/en/v2023-10-15/reference/get_metrics) ```ruby KlaviyoAPI::Metrics.get_metrics(opts) @@ -1898,7 +1898,7 @@ KlaviyoAPI::Metrics.get_metrics(opts) -#### [Query Metric Aggregates](https://developers.klaviyo.com/en/v2023-09-15/reference/query_metric_aggregates) +#### [Query Metric Aggregates](https://developers.klaviyo.com/en/v2023-10-15/reference/query_metric_aggregates) ```ruby KlaviyoAPI::Metrics.query_metric_aggregates(body) @@ -1912,7 +1912,7 @@ KlaviyoAPI::Metrics.query_metric_aggregates(body) ## Profiles -#### [Create Profile](https://developers.klaviyo.com/en/v2023-09-15/reference/create_profile) +#### [Create Profile](https://developers.klaviyo.com/en/v2023-10-15/reference/create_profile) ```ruby KlaviyoAPI::Profiles.create_profile(body) @@ -1922,7 +1922,7 @@ KlaviyoAPI::Profiles.create_profile(body) -#### [Create or Update Push Token](https://developers.klaviyo.com/en/v2023-09-15/reference/create_push_token) +#### [Create or Update Push Token](https://developers.klaviyo.com/en/v2023-10-15/reference/create_push_token) ```ruby KlaviyoAPI::Profiles.create_push_token(body) @@ -1932,7 +1932,7 @@ KlaviyoAPI::Profiles.create_push_token(body) -#### [Get Profile](https://developers.klaviyo.com/en/v2023-09-15/reference/get_profile) +#### [Get Profile](https://developers.klaviyo.com/en/v2023-10-15/reference/get_profile) ```ruby KlaviyoAPI::Profiles.get_profile(id, opts) @@ -1942,7 +1942,7 @@ KlaviyoAPI::Profiles.get_profile(id, opts) -#### [Get Profile Lists](https://developers.klaviyo.com/en/v2023-09-15/reference/get_profile_lists) +#### [Get Profile Lists](https://developers.klaviyo.com/en/v2023-10-15/reference/get_profile_lists) ```ruby KlaviyoAPI::Profiles.get_profile_lists(id, opts) @@ -1952,7 +1952,7 @@ KlaviyoAPI::Profiles.get_profile_lists(id, opts) -#### [Get Profile Relationships Lists](https://developers.klaviyo.com/en/v2023-09-15/reference/get_profile_relationships_lists) +#### [Get Profile Relationships Lists](https://developers.klaviyo.com/en/v2023-10-15/reference/get_profile_relationships_lists) ```ruby KlaviyoAPI::Profiles.get_profile_relationships_lists(id) @@ -1962,7 +1962,7 @@ KlaviyoAPI::Profiles.get_profile_relationships_lists(id) -#### [Get Profile Relationships Segments](https://developers.klaviyo.com/en/v2023-09-15/reference/get_profile_relationships_segments) +#### [Get Profile Relationships Segments](https://developers.klaviyo.com/en/v2023-10-15/reference/get_profile_relationships_segments) ```ruby KlaviyoAPI::Profiles.get_profile_relationships_segments(id) @@ -1972,7 +1972,7 @@ KlaviyoAPI::Profiles.get_profile_relationships_segments(id) -#### [Get Profile Segments](https://developers.klaviyo.com/en/v2023-09-15/reference/get_profile_segments) +#### [Get Profile Segments](https://developers.klaviyo.com/en/v2023-10-15/reference/get_profile_segments) ```ruby KlaviyoAPI::Profiles.get_profile_segments(id, opts) @@ -1982,7 +1982,7 @@ KlaviyoAPI::Profiles.get_profile_segments(id, opts) -#### [Get Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/get_profiles) +#### [Get Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/get_profiles) ```ruby KlaviyoAPI::Profiles.get_profiles(opts) @@ -1992,7 +1992,7 @@ KlaviyoAPI::Profiles.get_profiles(opts) -#### [Merge Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/merge_profiles) +#### [Merge Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/merge_profiles) ```ruby KlaviyoAPI::Profiles.merge_profiles(body) @@ -2002,7 +2002,7 @@ KlaviyoAPI::Profiles.merge_profiles(body) -#### [Subscribe Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/subscribe_profiles) +#### [Subscribe Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/subscribe_profiles) ```ruby KlaviyoAPI::Profiles.subscribe_profiles(body) @@ -2012,7 +2012,7 @@ KlaviyoAPI::Profiles.subscribe_profiles(body) -#### [Suppress Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/suppress_profiles) +#### [Suppress Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/suppress_profiles) ```ruby KlaviyoAPI::Profiles.suppress_profiles(body) @@ -2022,7 +2022,7 @@ KlaviyoAPI::Profiles.suppress_profiles(body) -#### [Unsubscribe Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/unsubscribe_profiles) +#### [Unsubscribe Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/unsubscribe_profiles) ```ruby KlaviyoAPI::Profiles.unsubscribe_profiles(body) @@ -2032,7 +2032,7 @@ KlaviyoAPI::Profiles.unsubscribe_profiles(body) -#### [Unsuppress Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/unsuppress_profiles) +#### [Unsuppress Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/unsuppress_profiles) ```ruby KlaviyoAPI::Profiles.unsuppress_profiles(body) @@ -2042,7 +2042,7 @@ KlaviyoAPI::Profiles.unsuppress_profiles(body) -#### [Update Profile](https://developers.klaviyo.com/en/v2023-09-15/reference/update_profile) +#### [Update Profile](https://developers.klaviyo.com/en/v2023-10-15/reference/update_profile) ```ruby KlaviyoAPI::Profiles.update_profile(id, body) @@ -2056,7 +2056,7 @@ KlaviyoAPI::Profiles.update_profile(id, body) ## Segments -#### [Get Segment](https://developers.klaviyo.com/en/v2023-09-15/reference/get_segment) +#### [Get Segment](https://developers.klaviyo.com/en/v2023-10-15/reference/get_segment) ```ruby KlaviyoAPI::Segments.get_segment(id, opts) @@ -2066,7 +2066,7 @@ KlaviyoAPI::Segments.get_segment(id, opts) -#### [Get Segment Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/get_segment_profiles) +#### [Get Segment Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/get_segment_profiles) ```ruby KlaviyoAPI::Segments.get_segment_profiles(id, opts) @@ -2076,7 +2076,7 @@ KlaviyoAPI::Segments.get_segment_profiles(id, opts) -#### [Get Segment Relationships Profiles](https://developers.klaviyo.com/en/v2023-09-15/reference/get_segment_relationships_profiles) +#### [Get Segment Relationships Profiles](https://developers.klaviyo.com/en/v2023-10-15/reference/get_segment_relationships_profiles) ```ruby KlaviyoAPI::Segments.get_segment_relationships_profiles(id, opts) @@ -2086,7 +2086,7 @@ KlaviyoAPI::Segments.get_segment_relationships_profiles(id, opts) -#### [Get Segment Relationships Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_segment_relationships_tags) +#### [Get Segment Relationships Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_segment_relationships_tags) ```ruby KlaviyoAPI::Segments.get_segment_relationships_tags(id) @@ -2096,7 +2096,7 @@ KlaviyoAPI::Segments.get_segment_relationships_tags(id) -#### [Get Segment Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_segment_tags) +#### [Get Segment Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_segment_tags) ```ruby KlaviyoAPI::Segments.get_segment_tags(id, opts) @@ -2106,7 +2106,7 @@ KlaviyoAPI::Segments.get_segment_tags(id, opts) -#### [Get Segments](https://developers.klaviyo.com/en/v2023-09-15/reference/get_segments) +#### [Get Segments](https://developers.klaviyo.com/en/v2023-10-15/reference/get_segments) ```ruby KlaviyoAPI::Segments.get_segments(opts) @@ -2116,7 +2116,7 @@ KlaviyoAPI::Segments.get_segments(opts) -#### [Update Segment](https://developers.klaviyo.com/en/v2023-09-15/reference/update_segment) +#### [Update Segment](https://developers.klaviyo.com/en/v2023-10-15/reference/update_segment) ```ruby KlaviyoAPI::Segments.update_segment(id, body) @@ -2130,7 +2130,7 @@ KlaviyoAPI::Segments.update_segment(id, body) ## Tags -#### [Create Tag](https://developers.klaviyo.com/en/v2023-09-15/reference/create_tag) +#### [Create Tag](https://developers.klaviyo.com/en/v2023-10-15/reference/create_tag) ```ruby KlaviyoAPI::Tags.create_tag(body) @@ -2140,7 +2140,7 @@ KlaviyoAPI::Tags.create_tag(body) -#### [Create Tag Group](https://developers.klaviyo.com/en/v2023-09-15/reference/create_tag_group) +#### [Create Tag Group](https://developers.klaviyo.com/en/v2023-10-15/reference/create_tag_group) ```ruby KlaviyoAPI::Tags.create_tag_group(body) @@ -2150,7 +2150,7 @@ KlaviyoAPI::Tags.create_tag_group(body) -#### [Create Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2023-09-15/reference/create_tag_relationships_campaigns) +#### [Create Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2023-10-15/reference/create_tag_relationships_campaigns) ```ruby KlaviyoAPI::Tags.create_tag_relationships_campaigns(id, body) @@ -2160,7 +2160,7 @@ KlaviyoAPI::Tags.create_tag_relationships_campaigns(id, body) -#### [Create Tag Relationships Flows](https://developers.klaviyo.com/en/v2023-09-15/reference/create_tag_relationships_flows) +#### [Create Tag Relationships Flows](https://developers.klaviyo.com/en/v2023-10-15/reference/create_tag_relationships_flows) ```ruby KlaviyoAPI::Tags.create_tag_relationships_flows(id, body) @@ -2170,7 +2170,7 @@ KlaviyoAPI::Tags.create_tag_relationships_flows(id, body) -#### [Create Tag Relationships Lists](https://developers.klaviyo.com/en/v2023-09-15/reference/create_tag_relationships_lists) +#### [Create Tag Relationships Lists](https://developers.klaviyo.com/en/v2023-10-15/reference/create_tag_relationships_lists) ```ruby KlaviyoAPI::Tags.create_tag_relationships_lists(id, body) @@ -2180,7 +2180,7 @@ KlaviyoAPI::Tags.create_tag_relationships_lists(id, body) -#### [Create Tag Relationships Segments](https://developers.klaviyo.com/en/v2023-09-15/reference/create_tag_relationships_segments) +#### [Create Tag Relationships Segments](https://developers.klaviyo.com/en/v2023-10-15/reference/create_tag_relationships_segments) ```ruby KlaviyoAPI::Tags.create_tag_relationships_segments(id, body) @@ -2190,7 +2190,7 @@ KlaviyoAPI::Tags.create_tag_relationships_segments(id, body) -#### [Delete Tag](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_tag) +#### [Delete Tag](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_tag) ```ruby KlaviyoAPI::Tags.delete_tag(id) @@ -2200,7 +2200,7 @@ KlaviyoAPI::Tags.delete_tag(id) -#### [Delete Tag Group](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_tag_group) +#### [Delete Tag Group](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_tag_group) ```ruby KlaviyoAPI::Tags.delete_tag_group(id) @@ -2210,7 +2210,7 @@ KlaviyoAPI::Tags.delete_tag_group(id) -#### [Delete Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_tag_relationships_campaigns) +#### [Delete Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_tag_relationships_campaigns) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_campaigns(id, body) @@ -2220,7 +2220,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_campaigns(id, body) -#### [Delete Tag Relationships Flows](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_tag_relationships_flows) +#### [Delete Tag Relationships Flows](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_tag_relationships_flows) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_flows(id, body) @@ -2230,7 +2230,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_flows(id, body) -#### [Delete Tag Relationships Lists](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_tag_relationships_lists) +#### [Delete Tag Relationships Lists](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_tag_relationships_lists) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_lists(id, body) @@ -2240,7 +2240,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_lists(id, body) -#### [Delete Tag Relationships Segments](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_tag_relationships_segments) +#### [Delete Tag Relationships Segments](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_tag_relationships_segments) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_segments(id, body) @@ -2250,7 +2250,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_segments(id, body) -#### [Get Tag](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag) +#### [Get Tag](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag) ```ruby KlaviyoAPI::Tags.get_tag(id, opts) @@ -2260,7 +2260,7 @@ KlaviyoAPI::Tags.get_tag(id, opts) -#### [Get Tag Group](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_group) +#### [Get Tag Group](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_group) ```ruby KlaviyoAPI::Tags.get_tag_group(id, opts) @@ -2270,7 +2270,7 @@ KlaviyoAPI::Tags.get_tag_group(id, opts) -#### [Get Tag Group Relationships Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_group_relationships_tags) +#### [Get Tag Group Relationships Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_group_relationships_tags) ```ruby KlaviyoAPI::Tags.get_tag_group_relationships_tags(id) @@ -2280,7 +2280,7 @@ KlaviyoAPI::Tags.get_tag_group_relationships_tags(id) -#### [Get Tag Group Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_group_tags) +#### [Get Tag Group Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_group_tags) ```ruby KlaviyoAPI::Tags.get_tag_group_tags(id, opts) @@ -2290,7 +2290,7 @@ KlaviyoAPI::Tags.get_tag_group_tags(id, opts) -#### [Get Tag Groups](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_groups) +#### [Get Tag Groups](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_groups) ```ruby KlaviyoAPI::Tags.get_tag_groups(opts) @@ -2300,7 +2300,7 @@ KlaviyoAPI::Tags.get_tag_groups(opts) -#### [Get Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_relationships_campaigns) +#### [Get Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_relationships_campaigns) ```ruby KlaviyoAPI::Tags.get_tag_relationships_campaigns(id) @@ -2310,7 +2310,7 @@ KlaviyoAPI::Tags.get_tag_relationships_campaigns(id) -#### [Get Tag Relationships Flows](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_relationships_flows) +#### [Get Tag Relationships Flows](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_relationships_flows) ```ruby KlaviyoAPI::Tags.get_tag_relationships_flows(id) @@ -2320,7 +2320,7 @@ KlaviyoAPI::Tags.get_tag_relationships_flows(id) -#### [Get Tag Relationships Lists](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_relationships_lists) +#### [Get Tag Relationships Lists](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_relationships_lists) ```ruby KlaviyoAPI::Tags.get_tag_relationships_lists(id) @@ -2330,7 +2330,7 @@ KlaviyoAPI::Tags.get_tag_relationships_lists(id) -#### [Get Tag Relationships Segments](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_relationships_segments) +#### [Get Tag Relationships Segments](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_relationships_segments) ```ruby KlaviyoAPI::Tags.get_tag_relationships_segments(id) @@ -2340,7 +2340,7 @@ KlaviyoAPI::Tags.get_tag_relationships_segments(id) -#### [Get Tag Relationships Tag Group](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_relationships_tag_group) +#### [Get Tag Relationships Tag Group](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_relationships_tag_group) ```ruby KlaviyoAPI::Tags.get_tag_relationships_tag_group(id) @@ -2350,7 +2350,7 @@ KlaviyoAPI::Tags.get_tag_relationships_tag_group(id) -#### [Get Tag Tag Group](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tag_tag_group) +#### [Get Tag Tag Group](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tag_tag_group) ```ruby KlaviyoAPI::Tags.get_tag_tag_group(id, opts) @@ -2360,7 +2360,7 @@ KlaviyoAPI::Tags.get_tag_tag_group(id, opts) -#### [Get Tags](https://developers.klaviyo.com/en/v2023-09-15/reference/get_tags) +#### [Get Tags](https://developers.klaviyo.com/en/v2023-10-15/reference/get_tags) ```ruby KlaviyoAPI::Tags.get_tags(opts) @@ -2370,7 +2370,7 @@ KlaviyoAPI::Tags.get_tags(opts) -#### [Update Tag](https://developers.klaviyo.com/en/v2023-09-15/reference/update_tag) +#### [Update Tag](https://developers.klaviyo.com/en/v2023-10-15/reference/update_tag) ```ruby KlaviyoAPI::Tags.update_tag(id, body) @@ -2380,7 +2380,7 @@ KlaviyoAPI::Tags.update_tag(id, body) -#### [Update Tag Group](https://developers.klaviyo.com/en/v2023-09-15/reference/update_tag_group) +#### [Update Tag Group](https://developers.klaviyo.com/en/v2023-10-15/reference/update_tag_group) ```ruby KlaviyoAPI::Tags.update_tag_group(id, body) @@ -2394,7 +2394,7 @@ KlaviyoAPI::Tags.update_tag_group(id, body) ## Templates -#### [Create Template](https://developers.klaviyo.com/en/v2023-09-15/reference/create_template) +#### [Create Template](https://developers.klaviyo.com/en/v2023-10-15/reference/create_template) ```ruby KlaviyoAPI::Templates.create_template(body) @@ -2404,7 +2404,7 @@ KlaviyoAPI::Templates.create_template(body) -#### [Create Template Clone](https://developers.klaviyo.com/en/v2023-09-15/reference/create_template_clone) +#### [Create Template Clone](https://developers.klaviyo.com/en/v2023-10-15/reference/create_template_clone) ```ruby KlaviyoAPI::Templates.create_template_clone(body) @@ -2414,7 +2414,7 @@ KlaviyoAPI::Templates.create_template_clone(body) -#### [Create Template Render](https://developers.klaviyo.com/en/v2023-09-15/reference/create_template_render) +#### [Create Template Render](https://developers.klaviyo.com/en/v2023-10-15/reference/create_template_render) ```ruby KlaviyoAPI::Templates.create_template_render(body) @@ -2424,7 +2424,7 @@ KlaviyoAPI::Templates.create_template_render(body) -#### [Delete Template](https://developers.klaviyo.com/en/v2023-09-15/reference/delete_template) +#### [Delete Template](https://developers.klaviyo.com/en/v2023-10-15/reference/delete_template) ```ruby KlaviyoAPI::Templates.delete_template(id) @@ -2434,7 +2434,7 @@ KlaviyoAPI::Templates.delete_template(id) -#### [Get Template](https://developers.klaviyo.com/en/v2023-09-15/reference/get_template) +#### [Get Template](https://developers.klaviyo.com/en/v2023-10-15/reference/get_template) ```ruby KlaviyoAPI::Templates.get_template(id, opts) @@ -2444,7 +2444,7 @@ KlaviyoAPI::Templates.get_template(id, opts) -#### [Get Templates](https://developers.klaviyo.com/en/v2023-09-15/reference/get_templates) +#### [Get Templates](https://developers.klaviyo.com/en/v2023-10-15/reference/get_templates) ```ruby KlaviyoAPI::Templates.get_templates(opts) @@ -2454,7 +2454,7 @@ KlaviyoAPI::Templates.get_templates(opts) -#### [Update Template](https://developers.klaviyo.com/en/v2023-09-15/reference/update_template) +#### [Update Template](https://developers.klaviyo.com/en/v2023-10-15/reference/update_template) ```ruby KlaviyoAPI::Templates.update_template(id, body) diff --git a/klaviyo-api-sdk.gemspec b/klaviyo-api-sdk.gemspec index bedf86e..8d3907d 100644 --- a/klaviyo-api-sdk.gemspec +++ b/klaviyo-api-sdk.gemspec @@ -5,7 +5,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -17,7 +17,7 @@ require "klaviyo-api-sdk/version" Gem::Specification.new do |s| s.name = "klaviyo-api-sdk" - s.version = "4.2.0" + s.version = "5.0.0" s.authors = ['Klaviyo Team'] s.email = ['libraries@klaviyo.com'] s.summary = 'You heard us, a Ruby wrapper for the Klaviyo API' diff --git a/lib/klaviyo-api-sdk.rb b/lib/klaviyo-api-sdk.rb index fb5781d..90d291b 100644 --- a/lib/klaviyo-api-sdk.rb +++ b/lib/klaviyo-api-sdk.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -165,6 +165,7 @@ require 'klaviyo-api-sdk/models/device_metadata' require 'klaviyo-api-sdk/models/email_content_sub_object' require 'klaviyo-api-sdk/models/email_send_options_sub_object' +require 'klaviyo-api-sdk/models/email_subscription_parameters' require 'klaviyo-api-sdk/models/email_tracking_options_sub_object' require 'klaviyo-api-sdk/models/event_create_query_v2' require 'klaviyo-api-sdk/models/event_create_query_v2_resource_object' @@ -195,6 +196,7 @@ require 'klaviyo-api-sdk/models/list_members_delete_query' require 'klaviyo-api-sdk/models/list_partial_update_query' require 'klaviyo-api-sdk/models/list_partial_update_query_resource_object' +require 'klaviyo-api-sdk/models/marketing_subscription_parameters' require 'klaviyo-api-sdk/models/metric_aggregate_enum' require 'klaviyo-api-sdk/models/metric_aggregate_query' require 'klaviyo-api-sdk/models/metric_aggregate_query_resource_object' @@ -248,6 +250,7 @@ require 'klaviyo-api-sdk/models/render_options_sub_object' require 'klaviyo-api-sdk/models/sms_content_sub_object_create' require 'klaviyo-api-sdk/models/sms_send_options_sub_object' +require 'klaviyo-api-sdk/models/sms_subscription_parameters' require 'klaviyo-api-sdk/models/sms_tracking_options_sub_object' require 'klaviyo-api-sdk/models/sto_schedule_options' require 'klaviyo-api-sdk/models/segment_enum' diff --git a/lib/klaviyo-api-sdk/api/accounts_api.rb b/lib/klaviyo-api-sdk/api/accounts_api.rb index 40ab5ee..95d289b 100644 --- a/lib/klaviyo-api-sdk/api/accounts_api.rb +++ b/lib/klaviyo-api-sdk/api/accounts_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -23,7 +23,7 @@ def initialize(api_client = ApiClient.default) # Retrieve a single account object by its account ID. You can only request the account by which the private API key was generated.

*Rate limits*:
Burst: `1/s`
Steady: `15/m` **Scopes:** `accounts:read` # @param id [String] The ID of the account # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_account(id, opts = {}) data, _status_code, _headers = get_account_with_http_info(id, opts) @@ -34,7 +34,7 @@ def get_account(id, opts = {}) # Retrieve a single account object by its account ID. You can only request the account by which the private API key was generated.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read` # @param id [String] The ID of the account # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_account_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -58,7 +58,7 @@ def get_account_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -94,7 +94,7 @@ def get_account_with_http_info(id, opts = {}) # Get Accounts # Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.

*Rate limits*:
Burst: `1/s`
Steady: `15/m` **Scopes:** `accounts:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_accounts(opts = {}) data, _status_code, _headers = get_accounts_with_http_info(opts) @@ -104,7 +104,7 @@ def get_accounts(opts = {}) # Get Accounts # Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_accounts_with_http_info(opts = {}) if @api_client.config.debugging @@ -124,7 +124,7 @@ def get_accounts_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) diff --git a/lib/klaviyo-api-sdk/api/campaigns_api.rb b/lib/klaviyo-api-sdk/api/campaigns_api.rb index c99666d..7c689e4 100644 --- a/lib/klaviyo-api-sdk/api/campaigns_api.rb +++ b/lib/klaviyo-api-sdk/api/campaigns_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_campaign_with_http_info(campaign_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -121,7 +121,7 @@ def create_campaign_clone_with_http_info(campaign_clone_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -191,7 +191,7 @@ def create_campaign_message_assign_template_with_http_info(campaign_message_assi # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -261,7 +261,7 @@ def create_campaign_recipient_estimation_job_with_http_info(campaign_recipient_e # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -331,7 +331,7 @@ def create_campaign_send_job_with_http_info(campaign_send_job_create_query, opts # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -401,7 +401,7 @@ def delete_campaign_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -438,10 +438,10 @@ def delete_campaign_with_http_info(id, opts = {}) # Returns a specific campaign based on a required id.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The campaign ID to be retrieved # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_campaign(id, opts = {}) data, _status_code, _headers = get_campaign_with_http_info(id, opts) @@ -452,10 +452,10 @@ def get_campaign(id, opts = {}) # Returns a specific campaign based on a required id.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The campaign ID to be retrieved # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -494,7 +494,7 @@ def get_campaign_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -531,10 +531,10 @@ def get_campaign_with_http_info(id, opts = {}) # Return all messages that belong to the given campaign.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_campaign_campaign_messages(id, opts = {}) data, _status_code, _headers = get_campaign_campaign_messages_with_http_info(id, opts) @@ -545,10 +545,10 @@ def get_campaign_campaign_messages(id, opts = {}) # Return all messages that belong to the given campaign.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_campaign_messages_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -587,7 +587,7 @@ def get_campaign_campaign_messages_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -624,10 +624,10 @@ def get_campaign_campaign_messages_with_http_info(id, opts = {}) # Returns a specific message based on a required id.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The message ID to be retrieved # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_campaign_message(id, opts = {}) data, _status_code, _headers = get_campaign_message_with_http_info(id, opts) @@ -638,10 +638,10 @@ def get_campaign_message(id, opts = {}) # Returns a specific message based on a required id.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The message ID to be retrieved # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_message_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -680,7 +680,7 @@ def get_campaign_message_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -717,7 +717,7 @@ def get_campaign_message_with_http_info(id, opts = {}) # Return the related campaign

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_campaign_message_campaign(id, opts = {}) data, _status_code, _headers = get_campaign_message_campaign_with_http_info(id, opts) @@ -728,7 +728,7 @@ def get_campaign_message_campaign(id, opts = {}) # Return the related campaign<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_message_campaign_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -752,7 +752,7 @@ def get_campaign_message_campaign_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -817,7 +817,7 @@ def get_campaign_message_relationships_campaign_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -882,7 +882,7 @@ def get_campaign_message_relationships_template_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -919,7 +919,7 @@ def get_campaign_message_relationships_template_with_http_info(id, opts = {}) # Return the related template

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` `templates:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_campaign_message_template(id, opts = {}) data, _status_code, _headers = get_campaign_message_template_with_http_info(id, opts) @@ -930,7 +930,7 @@ def get_campaign_message_template(id, opts = {}) # Return the related template<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` `templates:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_message_template_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -954,7 +954,7 @@ def get_campaign_message_template_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -991,7 +991,7 @@ def get_campaign_message_template_with_http_info(id, opts = {}) # Get the estimated recipient count for a campaign with the provided campaign ID. You can refresh this count by using the `Create Campaign Recipient Estimation Job` endpoint.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The ID of the campaign for which to get the estimated number of recipients # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_recipient_estimation For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_campaign_recipient_estimation(id, opts = {}) data, _status_code, _headers = get_campaign_recipient_estimation_with_http_info(id, opts) @@ -1002,7 +1002,7 @@ def get_campaign_recipient_estimation(id, opts = {}) # Get the estimated recipient count for a campaign with the provided campaign ID. You can refresh this count by using the `Create Campaign Recipient Estimation Job` endpoint.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The ID of the campaign for which to get the estimated number of recipients # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_recipient_estimation For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_recipient_estimation_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1026,7 +1026,7 @@ def get_campaign_recipient_estimation_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1063,7 +1063,7 @@ def get_campaign_recipient_estimation_with_http_info(id, opts = {}) # Retrieve the status of a recipient estimation job triggered with the `Create Campaign Recipient Estimation Job` endpoint.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The ID of the campaign to get recipient estimation status # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_recipient_estimation_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_campaign_recipient_estimation_job(id, opts = {}) data, _status_code, _headers = get_campaign_recipient_estimation_job_with_http_info(id, opts) @@ -1074,7 +1074,7 @@ def get_campaign_recipient_estimation_job(id, opts = {}) # Retrieve the status of a recipient estimation job triggered with the `Create Campaign Recipient Estimation Job` endpoint.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The ID of the campaign to get recipient estimation status # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_recipient_estimation_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_recipient_estimation_job_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1098,7 +1098,7 @@ def get_campaign_recipient_estimation_job_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1163,7 +1163,7 @@ def get_campaign_relationships_campaign_messages_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1228,7 +1228,7 @@ def get_campaign_relationships_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1265,7 +1265,7 @@ def get_campaign_relationships_tags_with_http_info(id, opts = {}) # Get a campaign send job

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The ID of the campaign to send # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_send_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_send_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_campaign_send_job(id, opts = {}) data, _status_code, _headers = get_campaign_send_job_with_http_info(id, opts) @@ -1276,7 +1276,7 @@ def get_campaign_send_job(id, opts = {}) # Get a campaign send job<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` # @param id [String] The ID of the campaign to send # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_send_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_send_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_send_job_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1300,7 +1300,7 @@ def get_campaign_send_job_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1337,7 +1337,7 @@ def get_campaign_send_job_with_http_info(id, opts = {}) # Return all tags that belong to the given campaign.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `campaigns:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_campaign_tags(id, opts = {}) data, _status_code, _headers = get_campaign_tags_with_http_info(id, opts) @@ -1348,7 +1348,7 @@ def get_campaign_tags(id, opts = {}) # Return all tags that belong to the given campaign.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `campaigns:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaign_tags_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1372,7 +1372,7 @@ def get_campaign_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1407,14 +1407,14 @@ def get_campaign_tags_with_http_info(id, opts = {}) # Get Campaigns # Returns some or all campaigns based on filters. A channel filter is required to list campaigns. Please provide either: `?filter=equals(messages.channel,'email')` to list email campaigns, or `?filter=equals(messages.channel,'sms')` to list SMS campaigns.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `campaigns:read` - # @param filter [String] For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`messages.channel`: `equals`<br>`name`: `contains`<br>`status`: `any`, `equals`<br>`archived`: `equals`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`scheduled_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @param filter [String] For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`messages.channel`: `equals`<br>`name`: `contains`<br>`status`: `any`, `equals`<br>`archived`: `equals`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`scheduled_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_campaigns(filter, opts = {}) data, _status_code, _headers = get_campaigns_with_http_info(filter, opts) @@ -1423,14 +1423,14 @@ def get_campaigns(filter, opts = {}) # Get Campaigns # Returns some or all campaigns based on filters. A channel filter is required to list campaigns. Please provide either: `?filter=equals(messages.channel,'email')` to list email campaigns, or `?filter=equals(messages.channel,'sms')` to list SMS campaigns.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `campaigns:read` - # @param filter [String] For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`messages.channel`: `equals`<br>`name`: `contains`<br>`status`: `any`, `equals`<br>`archived`: `equals`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`scheduled_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @param filter [String] For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`messages.channel`: `equals`<br>`name`: `contains`<br>`status`: `any`, `equals`<br>`archived`: `equals`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`scheduled_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_campaigns_with_http_info(filter, opts = {}) if @api_client.config.debugging @@ -1476,7 +1476,7 @@ def get_campaigns_with_http_info(filter, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1547,7 +1547,7 @@ def update_campaign_with_http_info(id, campaign_partial_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1623,7 +1623,7 @@ def update_campaign_message_with_http_info(id, campaign_message_partial_update_q # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1699,7 +1699,7 @@ def update_campaign_send_job_with_http_info(id, campaign_send_job_partial_update # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/catalogs_api.rb b/lib/klaviyo-api-sdk/api/catalogs_api.rb index 0f93041..483db80 100644 --- a/lib/klaviyo-api-sdk/api/catalogs_api.rb +++ b/lib/klaviyo-api-sdk/api/catalogs_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_back_in_stock_subscription_with_http_info(server_bis_subscription_cre # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -121,7 +121,7 @@ def create_catalog_category_with_http_info(catalog_category_create_query, opts = # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -197,7 +197,7 @@ def create_catalog_category_relationships_items_with_http_info(id, catalog_categ # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -267,7 +267,7 @@ def create_catalog_item_with_http_info(catalog_item_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -343,7 +343,7 @@ def create_catalog_item_relationships_categories_with_http_info(id, catalog_item # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -413,7 +413,7 @@ def create_catalog_variant_with_http_info(catalog_variant_create_query, opts = { # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -483,7 +483,7 @@ def delete_catalog_category_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -554,7 +554,7 @@ def delete_catalog_category_relationships_items_with_http_info(id, catalog_categ # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -624,7 +624,7 @@ def delete_catalog_item_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -695,7 +695,7 @@ def delete_catalog_item_relationships_categories_with_http_info(id, catalog_item # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -765,7 +765,7 @@ def delete_catalog_variant_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -801,10 +801,10 @@ def delete_catalog_variant_with_http_info(id, opts = {}) # Get Catalog Categories # Get all catalog categories in an account. Catalog categories can be sorted by the following fields, in ascending and descending order: `created` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 categories per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_catalog_categories(opts = {}) data, _status_code, _headers = get_catalog_categories_with_http_info(opts) @@ -814,10 +814,10 @@ def get_catalog_categories(opts = {}) # Get Catalog Categories # Get all catalog categories in an account. Catalog categories can be sorted by the following fields, in ascending and descending order: `created` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 categories per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_categories_with_http_info(opts = {}) if @api_client.config.debugging @@ -844,7 +844,7 @@ def get_catalog_categories_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -881,7 +881,7 @@ def get_catalog_categories_with_http_info(opts = {}) # Get a catalog category with the given category ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @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`. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_catalog_category(id, opts = {}) data, _status_code, _headers = get_catalog_category_with_http_info(id, opts) @@ -892,7 +892,7 @@ def get_catalog_category(id, opts = {}) # Get a catalog category with the given category ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `catalogs:read` # @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`. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_category_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -916,7 +916,7 @@ def get_catalog_category_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -950,15 +950,15 @@ def get_catalog_category_with_http_info(id, opts = {}) end # Get Catalog Category Items - # 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.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` + # 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` Returns a maximum of 100 items per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_catalog_category_items(id, opts = {}) data, _status_code, _headers = get_catalog_category_items_with_http_info(id, opts) @@ -966,15 +966,15 @@ def get_catalog_category_items(id, opts = {}) end # Get Catalog Category Items - # 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` + # 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` Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `catalogs:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_category_items_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1015,7 +1015,7 @@ def get_catalog_category_items_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1052,7 +1052,7 @@ def get_catalog_category_items_with_http_info(id, opts = {}) # Get all items in the given category ID. Returns a maximum of 100 items per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_catalog_category_relationships_items(id, opts = {}) data, _status_code, _headers = get_catalog_category_relationships_items_with_http_info(id, opts) @@ -1063,7 +1063,7 @@ def get_catalog_category_relationships_items(id, opts = {}) # 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` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_category_relationships_items_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1083,7 +1083,7 @@ def get_catalog_category_relationships_items_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1117,12 +1117,12 @@ def get_catalog_category_relationships_items_with_http_info(id, opts = {}) end # Get Catalog Item - # Get a specific catalog item with the given item ID. Include parameters can be provided to get the following related resource data: `variants`

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` + # Get a specific catalog item with the given item ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @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`. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_catalog_item(id, opts = {}) data, _status_code, _headers = get_catalog_item_with_http_info(id, opts) @@ -1130,12 +1130,12 @@ def get_catalog_item(id, opts = {}) end # Get Catalog Item - # 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` + # Get a specific catalog item with the given item ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `catalogs:read` # @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`. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_item_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1169,7 +1169,7 @@ def get_catalog_item_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1206,10 +1206,10 @@ def get_catalog_item_with_http_info(id, opts = {}) # 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.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_catalog_item_categories(id, opts = {}) data, _status_code, _headers = get_catalog_item_categories_with_http_info(id, opts) @@ -1220,10 +1220,10 @@ def get_catalog_item_categories(id, opts = {}) # 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` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`name`: `contains` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_item_categories_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1254,7 +1254,7 @@ def get_catalog_item_categories_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1291,7 +1291,7 @@ def get_catalog_item_categories_with_http_info(id, opts = {}) # Get all catalog categories that a particular item is in. Returns a maximum of 100 categories per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_catalog_item_relationships_categories(id, opts = {}) data, _status_code, _headers = get_catalog_item_relationships_categories_with_http_info(id, opts) @@ -1302,7 +1302,7 @@ def get_catalog_item_relationships_categories(id, opts = {}) # 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` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_item_relationships_categories_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1322,7 +1322,7 @@ def get_catalog_item_relationships_categories_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1359,10 +1359,10 @@ def get_catalog_item_relationships_categories_with_http_info(id, opts = {}) # 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.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_catalog_item_variants(id, opts = {}) data, _status_code, _headers = get_catalog_item_variants_with_http_info(id, opts) @@ -1373,10 +1373,10 @@ def get_catalog_item_variants(id, opts = {}) # 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` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_item_variants_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1407,7 +1407,7 @@ def get_catalog_item_variants_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1441,14 +1441,14 @@ def get_catalog_item_variants_with_http_info(id, opts = {}) end # Get Catalog Items - # 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` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 items per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` - # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # Get all catalog items in an account. Catalog items can be sorted by the following fields, in ascending and descending order: `created` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 items per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` + # @param [Hash] opts the optional parameters + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_catalog_items(opts = {}) data, _status_code, _headers = get_catalog_items_with_http_info(opts) @@ -1456,14 +1456,14 @@ def get_catalog_items(opts = {}) end # Get Catalog Items - # 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` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `catalogs:read` - # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # Get all catalog items in an account. Catalog items can be sorted by the following fields, in ascending and descending order: `created` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 items per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `catalogs:read` + # @param [Hash] opts the optional parameters + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`category.id`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_items_with_http_info(opts = {}) if @api_client.config.debugging @@ -1500,7 +1500,7 @@ def get_catalog_items_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1537,7 +1537,7 @@ def get_catalog_items_with_http_info(opts = {}) # Get a catalog item variant with the given variant ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @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`. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_catalog_variant(id, opts = {}) data, _status_code, _headers = get_catalog_variant_with_http_info(id, opts) @@ -1548,7 +1548,7 @@ def get_catalog_variant(id, opts = {}) # 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` # @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`. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_variant_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1572,7 +1572,7 @@ def get_catalog_variant_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1608,10 +1608,10 @@ def get_catalog_variant_with_http_info(id, opts = {}) # Get Catalog Variants # Get all variants in an account. Variants can be sorted by the following fields, in ascending and descending order: `created` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 variants per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_catalog_variants(opts = {}) data, _status_code, _headers = get_catalog_variants_with_http_info(opts) @@ -1621,10 +1621,10 @@ def get_catalog_variants(opts = {}) # Get Catalog Variants # Get all variants in an account. Variants can be sorted by the following fields, in ascending and descending order: `created` Currently, the only supported integration type is `$custom`, and the only supported catalog type is `$default`. Returns a maximum of 100 variants per request.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`ids`: `any`<br>`item.id`: `equals`<br>`sku`: `equals`<br>`title`: `contains`<br>`published`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_catalog_variants_with_http_info(opts = {}) if @api_client.config.debugging @@ -1651,7 +1651,7 @@ def get_catalog_variants_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1688,9 +1688,9 @@ def get_catalog_variants_with_http_info(opts = {}) # 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`.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_create_categories_job(job_id, opts = {}) data, _status_code, _headers = get_create_categories_job_with_http_info(job_id, opts) @@ -1701,9 +1701,9 @@ def get_create_categories_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_create_categories_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -1737,7 +1737,7 @@ def get_create_categories_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1773,9 +1773,9 @@ def get_create_categories_job_with_http_info(job_id, opts = {}) # Get Create Categories Jobs # Get all catalog category bulk create jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_create_categories_jobs(opts = {}) data, _status_code, _headers = get_create_categories_jobs_with_http_info(opts) @@ -1785,9 +1785,9 @@ def get_create_categories_jobs(opts = {}) # Get Create Categories Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_create_categories_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -1809,7 +1809,7 @@ def get_create_categories_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1846,9 +1846,9 @@ def get_create_categories_jobs_with_http_info(opts = {}) # 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`.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_create_items_job(job_id, opts = {}) data, _status_code, _headers = get_create_items_job_with_http_info(job_id, opts) @@ -1859,9 +1859,9 @@ def get_create_items_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_create_items_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -1895,7 +1895,7 @@ def get_create_items_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1931,9 +1931,9 @@ def get_create_items_job_with_http_info(job_id, opts = {}) # Get Create Items Jobs # Get all catalog item bulk create jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_create_items_jobs(opts = {}) data, _status_code, _headers = get_create_items_jobs_with_http_info(opts) @@ -1943,9 +1943,9 @@ def get_create_items_jobs(opts = {}) # Get Create Items Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_create_items_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -1967,7 +1967,7 @@ def get_create_items_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2004,9 +2004,9 @@ def get_create_items_jobs_with_http_info(opts = {}) # 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`.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_create_variants_job(job_id, opts = {}) data, _status_code, _headers = get_create_variants_job_with_http_info(job_id, opts) @@ -2017,9 +2017,9 @@ def get_create_variants_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_create_variants_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -2053,7 +2053,7 @@ def get_create_variants_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2089,9 +2089,9 @@ def get_create_variants_job_with_http_info(job_id, opts = {}) # Get Create Variants Jobs # Get all catalog variant bulk create jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_create_variants_jobs(opts = {}) data, _status_code, _headers = get_create_variants_jobs_with_http_info(opts) @@ -2101,9 +2101,9 @@ def get_create_variants_jobs(opts = {}) # Get Create Variants Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_create_variants_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -2125,7 +2125,7 @@ def get_create_variants_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2162,7 +2162,7 @@ def get_create_variants_jobs_with_http_info(opts = {}) # Get a catalog category bulk delete job with the given job ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_delete_categories_job(job_id, opts = {}) data, _status_code, _headers = get_delete_categories_job_with_http_info(job_id, opts) @@ -2173,7 +2173,7 @@ def get_delete_categories_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_delete_categories_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -2197,7 +2197,7 @@ def get_delete_categories_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2233,9 +2233,9 @@ def get_delete_categories_job_with_http_info(job_id, opts = {}) # Get Delete Categories Jobs # Get all catalog category bulk delete jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_delete_categories_jobs(opts = {}) data, _status_code, _headers = get_delete_categories_jobs_with_http_info(opts) @@ -2245,9 +2245,9 @@ def get_delete_categories_jobs(opts = {}) # Get Delete Categories Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_delete_categories_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -2269,7 +2269,7 @@ def get_delete_categories_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2306,7 +2306,7 @@ def get_delete_categories_jobs_with_http_info(opts = {}) # Get a catalog item bulk delete job with the given job ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_delete_items_job(job_id, opts = {}) data, _status_code, _headers = get_delete_items_job_with_http_info(job_id, opts) @@ -2317,7 +2317,7 @@ def get_delete_items_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_delete_items_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -2341,7 +2341,7 @@ def get_delete_items_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2377,9 +2377,9 @@ def get_delete_items_job_with_http_info(job_id, opts = {}) # Get Delete Items Jobs # Get all catalog item bulk delete jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_delete_items_jobs(opts = {}) data, _status_code, _headers = get_delete_items_jobs_with_http_info(opts) @@ -2389,9 +2389,9 @@ def get_delete_items_jobs(opts = {}) # Get Delete Items Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_delete_items_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -2413,7 +2413,7 @@ def get_delete_items_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2450,7 +2450,7 @@ def get_delete_items_jobs_with_http_info(opts = {}) # Get a catalog variant bulk delete job with the given job ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_delete_variants_job(job_id, opts = {}) data, _status_code, _headers = get_delete_variants_job_with_http_info(job_id, opts) @@ -2461,7 +2461,7 @@ def get_delete_variants_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_delete_variants_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -2485,7 +2485,7 @@ def get_delete_variants_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2521,9 +2521,9 @@ def get_delete_variants_job_with_http_info(job_id, opts = {}) # Get Delete Variants Jobs # Get all catalog variant bulk delete jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_delete_variants_jobs(opts = {}) data, _status_code, _headers = get_delete_variants_jobs_with_http_info(opts) @@ -2533,9 +2533,9 @@ def get_delete_variants_jobs(opts = {}) # Get Delete Variants Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_delete_variants_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -2557,7 +2557,7 @@ def get_delete_variants_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2594,9 +2594,9 @@ def get_delete_variants_jobs_with_http_info(opts = {}) # 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`.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_update_categories_job(job_id, opts = {}) data, _status_code, _headers = get_update_categories_job_with_http_info(job_id, opts) @@ -2607,9 +2607,9 @@ def get_update_categories_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_update_categories_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -2643,7 +2643,7 @@ def get_update_categories_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2679,9 +2679,9 @@ def get_update_categories_job_with_http_info(job_id, opts = {}) # Get Update Categories Jobs # Get all catalog category bulk update jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_update_categories_jobs(opts = {}) data, _status_code, _headers = get_update_categories_jobs_with_http_info(opts) @@ -2691,9 +2691,9 @@ def get_update_categories_jobs(opts = {}) # Get Update Categories Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_update_categories_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -2715,7 +2715,7 @@ def get_update_categories_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2752,9 +2752,9 @@ def get_update_categories_jobs_with_http_info(opts = {}) # 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`.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_update_items_job(job_id, opts = {}) data, _status_code, _headers = get_update_items_job_with_http_info(job_id, opts) @@ -2765,9 +2765,9 @@ def get_update_items_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_update_items_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -2801,7 +2801,7 @@ def get_update_items_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2837,9 +2837,9 @@ def get_update_items_job_with_http_info(job_id, opts = {}) # Get Update Items Jobs # Get all catalog item bulk update jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_update_items_jobs(opts = {}) data, _status_code, _headers = get_update_items_jobs_with_http_info(opts) @@ -2849,9 +2849,9 @@ def get_update_items_jobs(opts = {}) # Get Update Items Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_update_items_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -2873,7 +2873,7 @@ def get_update_items_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2910,9 +2910,9 @@ def get_update_items_jobs_with_http_info(opts = {}) # 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`.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_update_variants_job(job_id, opts = {}) data, _status_code, _headers = get_update_variants_job_with_http_info(job_id, opts) @@ -2923,9 +2923,9 @@ def get_update_variants_job(job_id, opts = {}) # 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` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_update_variants_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -2959,7 +2959,7 @@ def get_update_variants_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -2995,9 +2995,9 @@ def get_update_variants_job_with_http_info(job_id, opts = {}) # Get Update Variants Jobs # Get all catalog variant bulk update jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `catalogs:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_update_variants_jobs(opts = {}) data, _status_code, _headers = get_update_variants_jobs_with_http_info(opts) @@ -3007,9 +3007,9 @@ def get_update_variants_jobs(opts = {}) # Get Update Variants Jobs # 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` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_update_variants_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -3031,7 +3031,7 @@ def get_update_variants_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -3096,7 +3096,7 @@ def spawn_create_categories_job_with_http_info(catalog_category_create_job_creat # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3166,7 +3166,7 @@ def spawn_create_items_job_with_http_info(catalog_item_create_job_create_query, # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3236,7 +3236,7 @@ def spawn_create_variants_job_with_http_info(catalog_variant_create_job_create_q # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3306,7 +3306,7 @@ def spawn_delete_categories_job_with_http_info(catalog_category_delete_job_creat # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3376,7 +3376,7 @@ def spawn_delete_items_job_with_http_info(catalog_item_delete_job_create_query, # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3446,7 +3446,7 @@ def spawn_delete_variants_job_with_http_info(catalog_variant_delete_job_create_q # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3516,7 +3516,7 @@ def spawn_update_categories_job_with_http_info(catalog_category_update_job_creat # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3586,7 +3586,7 @@ def spawn_update_items_job_with_http_info(catalog_item_update_job_create_query, # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3656,7 +3656,7 @@ def spawn_update_variants_job_with_http_info(catalog_variant_update_job_create_q # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3732,7 +3732,7 @@ def update_catalog_category_with_http_info(id, catalog_category_update_query, op # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3808,7 +3808,7 @@ def update_catalog_category_relationships_items_with_http_info(id, catalog_categ # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3884,7 +3884,7 @@ def update_catalog_item_with_http_info(id, catalog_item_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3960,7 +3960,7 @@ def update_catalog_item_relationships_categories_with_http_info(id, catalog_item # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -4036,7 +4036,7 @@ def update_catalog_variant_with_http_info(id, catalog_variant_update_query, opts # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/coupons_api.rb b/lib/klaviyo-api-sdk/api/coupons_api.rb index d887d96..f105073 100644 --- a/lib/klaviyo-api-sdk/api/coupons_api.rb +++ b/lib/klaviyo-api-sdk/api/coupons_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_coupon_with_http_info(coupon_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -121,7 +121,7 @@ def create_coupon_code_with_http_info(coupon_code_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -191,7 +191,7 @@ def delete_coupon_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -256,7 +256,7 @@ def delete_coupon_code_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -293,7 +293,7 @@ def delete_coupon_code_with_http_info(id, opts = {}) # Get a specific coupon with the given coupon ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupons:read` # @param id [String] The internal id of a Coupon is equivalent to its external id stored within an integration. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_coupon(id, opts = {}) data, _status_code, _headers = get_coupon_with_http_info(id, opts) @@ -304,7 +304,7 @@ def get_coupon(id, opts = {}) # Get a specific coupon with the given coupon ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupons:read` # @param id [String] The internal id of a Coupon is equivalent to its external id stored within an integration. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -328,7 +328,7 @@ def get_coupon_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -365,7 +365,9 @@ def get_coupon_with_http_info(id, opts = {}) # Returns a Coupon Code specified by the given identifier.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `coupon-codes:read` # @param id [String] The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_coupon_code(id, opts = {}) data, _status_code, _headers = get_coupon_code_with_http_info(id, opts) @@ -376,7 +378,9 @@ def get_coupon_code(id, opts = {}) # Returns a Coupon Code specified by the given identifier.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `coupon-codes:read` # @param id [String] The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_code_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -390,17 +394,27 @@ def get_coupon_code_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && opts[:'fields_coupon_code'] && !opts[:'fields_coupon_code'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_coupon_code\", must include one of #{allowable_values}" end + allowable_values = ["external_id", "description"] + if @api_client.config.client_side_validation && opts[:'fields_coupon'] && !opts[:'fields_coupon'].all? { |item| allowable_values.include?(item) } + fail ArgumentError, "invalid value for \"fields_coupon\", must include one of #{allowable_values}" + end + allowable_values = ["coupon"] + if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) } + fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}" + end # resource path local_var_path = '/api/coupon-codes/{id}/'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'fields[coupon-code]'] = @api_client.build_collection_param(opts[:'fields_coupon_code'], :csv) if !opts[:'fields_coupon_code'].nil? + query_params[:'fields[coupon]'] = @api_client.build_collection_param(opts[:'fields_coupon'], :csv) if !opts[:'fields_coupon'].nil? + query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil? # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -437,7 +451,9 @@ def get_coupon_code_with_http_info(id, opts = {}) # Get a coupon code bulk create job with the given job ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupon-codes:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_coupon_code_bulk_create_job(job_id, opts = {}) data, _status_code, _headers = get_coupon_code_bulk_create_job_with_http_info(job_id, opts) @@ -448,7 +464,9 @@ def get_coupon_code_bulk_create_job(job_id, opts = {}) # Get a coupon code bulk create job with the given job ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupon-codes:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_code_bulk_create_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -462,17 +480,27 @@ def get_coupon_code_bulk_create_job_with_http_info(job_id, opts = {}) if @api_client.config.client_side_validation && opts[:'fields_coupon_code_bulk_create_job'] && !opts[:'fields_coupon_code_bulk_create_job'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_coupon_code_bulk_create_job\", must include one of #{allowable_values}" end + allowable_values = ["unique_code", "expires_at", "status"] + if @api_client.config.client_side_validation && opts[:'fields_coupon_code'] && !opts[:'fields_coupon_code'].all? { |item| allowable_values.include?(item) } + fail ArgumentError, "invalid value for \"fields_coupon_code\", must include one of #{allowable_values}" + end + allowable_values = ["coupon-codes"] + if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) } + fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}" + end # resource path local_var_path = '/api/coupon-code-bulk-create-jobs/{job_id}/'.sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'fields[coupon-code-bulk-create-job]'] = @api_client.build_collection_param(opts[:'fields_coupon_code_bulk_create_job'], :csv) if !opts[:'fields_coupon_code_bulk_create_job'].nil? + query_params[:'fields[coupon-code]'] = @api_client.build_collection_param(opts[:'fields_coupon_code'], :csv) if !opts[:'fields_coupon_code'].nil? + query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil? # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -508,9 +536,9 @@ def get_coupon_code_bulk_create_job_with_http_info(job_id, opts = {}) # Get Coupon Code Bulk Create Jobs # Get all coupon code bulk create jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupon-codes:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_coupon_code_bulk_create_jobs(opts = {}) data, _status_code, _headers = get_coupon_code_bulk_create_jobs_with_http_info(opts) @@ -520,9 +548,9 @@ def get_coupon_code_bulk_create_jobs(opts = {}) # Get Coupon Code Bulk Create Jobs # Get all coupon code bulk create jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupon-codes:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_code_bulk_create_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -544,7 +572,7 @@ def get_coupon_code_bulk_create_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -581,7 +609,7 @@ def get_coupon_code_bulk_create_jobs_with_http_info(opts = {}) # Gets a list of coupon code relationships associated with the given coupon id

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupon-codes:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_coupon_code_relationships_coupon(id, opts = {}) data, _status_code, _headers = get_coupon_code_relationships_coupon_with_http_info(id, opts) @@ -592,7 +620,7 @@ def get_coupon_code_relationships_coupon(id, opts = {}) # Gets a list of coupon code relationships associated with the given coupon id<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupon-codes:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_code_relationships_coupon_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -612,7 +640,7 @@ def get_coupon_code_relationships_coupon_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -648,9 +676,11 @@ def get_coupon_code_relationships_coupon_with_http_info(id, opts = {}) # Get Coupon Codes # Gets a list of coupon codes associated with a coupon/coupons or a profile/profiles. A coupon/coupons or a profile/profiles must be provided as required filter params.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `coupon-codes:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_coupon_codes(opts = {}) data, _status_code, _headers = get_coupon_codes_with_http_info(opts) @@ -660,9 +690,11 @@ def get_coupon_codes(opts = {}) # Get Coupon Codes # Gets a list of coupon codes associated with a coupon/coupons or a profile/profiles. A coupon/coupons or a profile/profiles must be provided as required filter params.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `coupon-codes:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_codes_with_http_info(opts = {}) if @api_client.config.debugging @@ -672,19 +704,29 @@ def get_coupon_codes_with_http_info(opts = {}) if @api_client.config.client_side_validation && opts[:'fields_coupon_code'] && !opts[:'fields_coupon_code'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_coupon_code\", must include one of #{allowable_values}" end + allowable_values = ["external_id", "description"] + if @api_client.config.client_side_validation && opts[:'fields_coupon'] && !opts[:'fields_coupon'].all? { |item| allowable_values.include?(item) } + fail ArgumentError, "invalid value for \"fields_coupon\", must include one of #{allowable_values}" + end + allowable_values = ["coupon"] + if @api_client.config.client_side_validation && opts[:'include'] && !opts[:'include'].all? { |item| allowable_values.include?(item) } + fail ArgumentError, "invalid value for \"include\", must include one of #{allowable_values}" + end # resource path local_var_path = '/api/coupon-codes/' # query parameters query_params = opts[:query_params] || {} query_params[:'fields[coupon-code]'] = @api_client.build_collection_param(opts[:'fields_coupon_code'], :csv) if !opts[:'fields_coupon_code'].nil? + query_params[:'fields[coupon]'] = @api_client.build_collection_param(opts[:'fields_coupon'], :csv) if !opts[:'fields_coupon'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? + query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil? query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil? # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -721,9 +763,9 @@ def get_coupon_codes_with_http_info(opts = {}) # Gets a list of coupon codes associated with the given coupon id

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupon-codes:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_coupon_codes_for_coupon(id, opts = {}) data, _status_code, _headers = get_coupon_codes_for_coupon_with_http_info(id, opts) @@ -734,9 +776,9 @@ def get_coupon_codes_for_coupon(id, opts = {}) # Gets a list of coupon codes associated with the given coupon id<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupon-codes:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`expires_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`status`: `equals`<br>`coupon.id`: `any`, `equals`<br>`profile.id`: `any`, `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_codes_for_coupon_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -762,7 +804,7 @@ def get_coupon_codes_for_coupon_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -799,7 +841,7 @@ def get_coupon_codes_for_coupon_with_http_info(id, opts = {}) # Gets a list of coupon codes associated with the given coupon id

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupons:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_coupon_for_coupon_code(id, opts = {}) data, _status_code, _headers = get_coupon_for_coupon_code_with_http_info(id, opts) @@ -810,7 +852,7 @@ def get_coupon_for_coupon_code(id, opts = {}) # Gets a list of coupon codes associated with the given coupon id<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupons:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupon_for_coupon_code_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -834,7 +876,7 @@ def get_coupon_for_coupon_code_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -899,7 +941,7 @@ def get_coupon_relationships_coupon_codes_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -935,8 +977,8 @@ def get_coupon_relationships_coupon_codes_with_http_info(id, opts = {}) # Get Coupons # Get all coupons in an account. To learn more, see our [Coupons API guide](https://developers.klaviyo.com/en/docs/use_klaviyos_coupons_api).

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupons:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_coupons(opts = {}) data, _status_code, _headers = get_coupons_with_http_info(opts) @@ -946,8 +988,8 @@ def get_coupons(opts = {}) # Get Coupons # Get all coupons in an account. To learn more, see our [Coupons API guide](https://developers.klaviyo.com/en/docs/use_klaviyos_coupons_api).<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `coupons:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_coupons_with_http_info(opts = {}) if @api_client.config.debugging @@ -968,7 +1010,7 @@ def get_coupons_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1033,7 +1075,7 @@ def spawn_coupon_code_bulk_create_job_with_http_info(coupon_code_create_job_crea # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1109,7 +1151,7 @@ def update_coupon_with_http_info(id, coupon_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1185,7 +1227,7 @@ def update_coupon_code_with_http_info(id, coupon_code_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/data_privacy_api.rb b/lib/klaviyo-api-sdk/api/data_privacy_api.rb index e34b366..6387063 100644 --- a/lib/klaviyo-api-sdk/api/data_privacy_api.rb +++ b/lib/klaviyo-api-sdk/api/data_privacy_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def request_profile_deletion_with_http_info(data_privacy_create_deletion_job_que # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/events_api.rb b/lib/klaviyo-api-sdk/api/events_api.rb index 7538a90..4e87707 100644 --- a/lib/klaviyo-api-sdk/api/events_api.rb +++ b/lib/klaviyo-api-sdk/api/events_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_event_with_http_info(event_create_query_v2, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -90,13 +90,13 @@ def create_event_with_http_info(event_create_query_v2, opts = {}) end # Get Event - # Get an event with the given event ID. Include parameters can be provided to get the following related resource data: `metric`, `profile`

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `events:read` + # Get an event with the given event ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `events:read` # @param id [String] ID of the event # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_event(id, opts = {}) data, _status_code, _headers = get_event_with_http_info(id, opts) @@ -104,13 +104,13 @@ def get_event(id, opts = {}) end # Get Event - # Get an event with the given event ID. Include parameters can be provided to get the following related resource data: `metric`, `profile`<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `events:read` + # Get an event with the given event ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `events:read` # @param id [String] ID of the event # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_event_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -128,7 +128,7 @@ def get_event_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && opts[:'fields_metric'] && !opts[:'fields_metric'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_metric\", must include one of #{allowable_values}" end - allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.timestamp", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppressions", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail"] + allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "location.ip", "properties"] if @api_client.config.client_side_validation && opts[:'fields_profile'] && !opts[:'fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_profile\", must include one of #{allowable_values}" end @@ -149,7 +149,7 @@ def get_event_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -186,7 +186,7 @@ def get_event_with_http_info(id, opts = {}) # Get the metric for an event with the given event ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `events:read` `metrics:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_event_metric(id, opts = {}) data, _status_code, _headers = get_event_metric_with_http_info(id, opts) @@ -197,7 +197,7 @@ def get_event_metric(id, opts = {}) # Get the metric for an event with the given event ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` `metrics:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_event_metric_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -221,7 +221,7 @@ def get_event_metric_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -258,8 +258,8 @@ def get_event_metric_with_http_info(id, opts = {}) # Get the profile associated with an event with the given event ID.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `events:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_event_profile(id, opts = {}) data, _status_code, _headers = get_event_profile_with_http_info(id, opts) @@ -270,8 +270,8 @@ def get_event_profile(id, opts = {}) # Get the profile associated with an event with the given event ID.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_event_profile_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -281,11 +281,11 @@ def get_event_profile_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling EventsApi.get_event_profile" end - allowable_values = ["predictive_analytics"] + allowable_values = ["subscriptions", "predictive_analytics"] if @api_client.config.client_side_validation && opts[:'additional_fields_profile'] && !opts[:'additional_fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"additional_fields_profile\", must include one of #{allowable_values}" end - allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.timestamp", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppressions", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] + allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "location.ip", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.can_receive_email_marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.consent_timestamp", "subscriptions.email.marketing.last_updated", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppression", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.can_receive_sms_marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.consent_timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "subscriptions.sms.marketing.last_updated", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] if @api_client.config.client_side_validation && opts[:'fields_profile'] && !opts[:'fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_profile\", must include one of #{allowable_values}" end @@ -300,7 +300,7 @@ def get_event_profile_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -365,7 +365,7 @@ def get_event_relationships_metric_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -430,7 +430,7 @@ def get_event_relationships_profile_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -464,15 +464,15 @@ def get_event_relationships_profile_with_http_info(id, opts = {}) end # Get Events - # Get all events in an account Requests can be sorted by the following fields: `datetime`, `timestamp` Include parameters can be provided to get the following related resource data: `metric`, `profile` Returns a maximum of 200 events per page.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `events:read` + # Get all events in an account Requests can be sorted by the following fields: `datetime`, `timestamp` Returns a maximum of 200 events per page.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `events:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`datetime`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`timestamp`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`datetime`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`timestamp`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_events(opts = {}) data, _status_code, _headers = get_events_with_http_info(opts) @@ -480,15 +480,15 @@ def get_events(opts = {}) end # Get Events - # Get all events in an account Requests can be sorted by the following fields: `datetime`, `timestamp` Include parameters can be provided to get the following related resource data: `metric`, `profile` Returns a maximum of 200 events per page.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` + # Get all events in an account Requests can be sorted by the following fields: `datetime`, `timestamp` Returns a maximum of 200 events per page.<br><br>*Rate limits*:<br>Burst: `350/s`<br>Steady: `3500/m` **Scopes:** `events:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`datetime`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`timestamp`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`datetime`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`timestamp`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_events_with_http_info(opts = {}) if @api_client.config.debugging @@ -502,7 +502,7 @@ def get_events_with_http_info(opts = {}) if @api_client.config.client_side_validation && opts[:'fields_metric'] && !opts[:'fields_metric'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_metric\", must include one of #{allowable_values}" end - allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.timestamp", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppressions", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail"] + allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "location.ip", "properties"] if @api_client.config.client_side_validation && opts[:'fields_profile'] && !opts[:'fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_profile\", must include one of #{allowable_values}" end @@ -530,7 +530,7 @@ def get_events_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) diff --git a/lib/klaviyo-api-sdk/api/flows_api.rb b/lib/klaviyo-api-sdk/api/flows_api.rb index b6d3f2a..ff140ee 100644 --- a/lib/klaviyo-api-sdk/api/flows_api.rb +++ b/lib/klaviyo-api-sdk/api/flows_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -20,13 +20,13 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Get Flow - # Get a flow with the given flow ID. Include parameters can be provided to get the following related resource data: `flow-actions`

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` + # Get a flow with the given flow ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_flow(id, opts = {}) data, _status_code, _headers = get_flow_with_http_info(id, opts) @@ -34,13 +34,13 @@ def get_flow(id, opts = {}) end # Get Flow - # Get a flow with the given flow ID. Include parameters can be provided to get the following related resource data: `flow-actions`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` + # Get a flow with the given flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -79,7 +79,7 @@ def get_flow_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -113,13 +113,13 @@ def get_flow_with_http_info(id, opts = {}) end # Get Flow Action - # Get a flow action from a flow with the given flow action ID. Include parameters can be provided to get the following related resource data: `flow`, `flow-messages`

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` + # Get a flow action from a flow with the given flow action ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_flow_action(id, opts = {}) data, _status_code, _headers = get_flow_action_with_http_info(id, opts) @@ -127,13 +127,13 @@ def get_flow_action(id, opts = {}) end # Get Flow Action - # Get a flow action from a flow with the given flow action ID. Include parameters can be provided to get the following related resource data: `flow`, `flow-messages`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` + # Get a flow action from a flow with the given flow action ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_action_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -172,7 +172,7 @@ def get_flow_action_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -209,7 +209,7 @@ def get_flow_action_with_http_info(id, opts = {}) # Get the flow associated with the given action ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_flow_action_flow(id, opts = {}) data, _status_code, _headers = get_flow_action_flow_with_http_info(id, opts) @@ -220,7 +220,7 @@ def get_flow_action_flow(id, opts = {}) # Get the flow associated with the given action ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_action_flow_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -244,7 +244,7 @@ def get_flow_action_flow_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -281,10 +281,10 @@ def get_flow_action_flow_with_http_info(id, opts = {}) # Get all flow messages associated with the given action ID. Flow messages can be sorted by the following fields, in ascending and descending order: ascending: `id`, `name`, `created`, `updated` descending: `-id`, `-name`, `-created`, `-updated` Returns a maximum of 50 flows per request, which can be paginated with offset pagination. Offset pagination uses the following parameters: `page[size]` and `page[number]`

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 100. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_flow_action_messages(id, opts = {}) data, _status_code, _headers = get_flow_action_messages_with_http_info(id, opts) @@ -295,10 +295,10 @@ def get_flow_action_messages(id, opts = {}) # Get all flow messages associated with the given action ID. Flow messages can be sorted by the following fields, in ascending and descending order: ascending: `id`, `name`, `created`, `updated` descending: `-id`, `-name`, `-created`, `-updated` Returns a maximum of 50 flows per request, which can be paginated with offset pagination. Offset pagination uses the following parameters: `page[size]` and `page[number]`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 100. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_action_messages_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -337,7 +337,7 @@ def get_flow_action_messages_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -402,7 +402,7 @@ def get_flow_action_relationships_flow_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -439,10 +439,10 @@ def get_flow_action_relationships_flow_with_http_info(id, opts = {}) # Get all relationships for flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_flow_action_relationships_messages(id, opts = {}) data, _status_code, _headers = get_flow_action_relationships_messages_with_http_info(id, opts) @@ -453,10 +453,10 @@ def get_flow_action_relationships_messages(id, opts = {}) # Get all relationships for flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_action_relationships_messages_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -491,7 +491,7 @@ def get_flow_action_relationships_messages_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -528,11 +528,11 @@ def get_flow_action_relationships_messages_with_http_info(id, opts = {}) # Get all flow actions associated with the given flow ID. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`action_type`: `any`, `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`action_type`: `any`, `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_flow_flow_actions(id, opts = {}) data, _status_code, _headers = get_flow_flow_actions_with_http_info(id, opts) @@ -543,11 +543,11 @@ def get_flow_flow_actions(id, opts = {}) # Get all flow actions associated with the given flow ID. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`action_type`: `any`, `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`action_type`: `any`, `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_flow_actions_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -587,7 +587,7 @@ def get_flow_flow_actions_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -621,13 +621,13 @@ def get_flow_flow_actions_with_http_info(id, opts = {}) end # Get Flow Message - # Get the flow message of a flow with the given message ID. Include parameters can be provided to get the following related resource data: 'flow-actions'

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` + # Get the flow message of a flow with the given message ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_flow_message(id, opts = {}) data, _status_code, _headers = get_flow_message_with_http_info(id, opts) @@ -635,13 +635,13 @@ def get_flow_message(id, opts = {}) end # Get Flow Message - # Get the flow message of a flow with the given message ID. Include parameters can be provided to get the following related resource data: 'flow-actions'<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` + # Get the flow message of a flow with the given message ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_message_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -680,7 +680,7 @@ def get_flow_message_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -717,7 +717,7 @@ def get_flow_message_with_http_info(id, opts = {}) # Get the flow action for a flow message with the given message ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_flow_message_action(id, opts = {}) data, _status_code, _headers = get_flow_message_action_with_http_info(id, opts) @@ -728,7 +728,7 @@ def get_flow_message_action(id, opts = {}) # Get the flow action for a flow message with the given message ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_message_action_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -752,7 +752,7 @@ def get_flow_message_action_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -817,7 +817,7 @@ def get_flow_message_relationships_action_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -882,7 +882,7 @@ def get_flow_message_relationships_template_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -919,7 +919,7 @@ def get_flow_message_relationships_template_with_http_info(id, opts = {}) # Return the related template

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `templates:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_flow_message_template(id, opts = {}) data, _status_code, _headers = get_flow_message_template_with_http_info(id, opts) @@ -930,7 +930,7 @@ def get_flow_message_template(id, opts = {}) # Return the related template<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `templates:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_message_template_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -954,7 +954,7 @@ def get_flow_message_template_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -991,9 +991,9 @@ def get_flow_message_template_with_http_info(id, opts = {}) # Get all [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for flow actions associated with the given flow ID. Flow action relationships can be sorted by the following fields, in ascending and descending order: `id`, `status`, `created`, `updated` Use filters to narrow your results. Returns a maximum of 50 flow action relationships per request, which can be paginated with offset pagination. Offset pagination uses the following parameters: `page[size]` and `page[number]`.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`action_type`: `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`action_type`: `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 100. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_flow_relationships_flow_actions(id, opts = {}) data, _status_code, _headers = get_flow_relationships_flow_actions_with_http_info(id, opts) @@ -1004,9 +1004,9 @@ def get_flow_relationships_flow_actions(id, opts = {}) # Get all [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for flow actions associated with the given flow ID. Flow action relationships can be sorted by the following fields, in ascending and descending order: `id`, `status`, `created`, `updated` Use filters to narrow your results. Returns a maximum of 50 flow action relationships per request, which can be paginated with offset pagination. Offset pagination uses the following parameters: `page[size]` and `page[number]`.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`action_type`: `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`action_type`: `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 100. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_relationships_flow_actions_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1040,7 +1040,7 @@ def get_flow_relationships_flow_actions_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1105,7 +1105,7 @@ def get_flow_relationships_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1142,7 +1142,7 @@ def get_flow_relationships_tags_with_http_info(id, opts = {}) # Return all tags associated with the given flow ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_flow_tags(id, opts = {}) data, _status_code, _headers = get_flow_tags_with_http_info(id, opts) @@ -1153,7 +1153,7 @@ def get_flow_tags(id, opts = {}) # Return all tags associated with the given flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flow_tags_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1177,7 +1177,7 @@ def get_flow_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1213,14 +1213,14 @@ def get_flow_tags_with_http_info(id, opts = {}) # Get Flows # Get all flows in an account. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `flows:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`status`: `equals`<br>`archived`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`trigger_type`: `equals` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`status`: `equals`<br>`archived`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`trigger_type`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_flows(opts = {}) data, _status_code, _headers = get_flows_with_http_info(opts) @@ -1230,14 +1230,14 @@ def get_flows(opts = {}) # Get Flows # Get all flows in an account. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`status`: `equals`<br>`archived`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`trigger_type`: `equals` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`status`: `equals`<br>`archived`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`trigger_type`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 50. Min: 1. Max: 50. (default to 50) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_flows_with_http_info(opts = {}) if @api_client.config.debugging @@ -1288,7 +1288,7 @@ def get_flows_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1359,7 +1359,7 @@ def update_flow_with_http_info(id, flow_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/images_api.rb b/lib/klaviyo-api-sdk/api/images_api.rb index 6d3364e..d29a7e9 100644 --- a/lib/klaviyo-api-sdk/api/images_api.rb +++ b/lib/klaviyo-api-sdk/api/images_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -23,7 +23,7 @@ def initialize(api_client = ApiClient.default) # Get the image with the given image ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `images:read` # @param id [String] The ID of the image # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_image(id, opts = {}) data, _status_code, _headers = get_image_with_http_info(id, opts) @@ -34,7 +34,7 @@ def get_image(id, opts = {}) # Get the image with the given image ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `images:read` # @param id [String] The ID of the image # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_image_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -58,7 +58,7 @@ def get_image_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -94,11 +94,11 @@ def get_image_with_http_info(id, opts = {}) # Get Images # Get all images in an account.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `images:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`format`: `any`, `equals`<br>`name`: `any`, `contains`, `ends-with`, `equals`, `starts-with`<br>`size`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`hidden`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`format`: `any`, `equals`<br>`name`: `any`, `contains`, `ends-with`, `equals`, `starts-with`<br>`size`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`hidden`: `any`, `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_images(opts = {}) data, _status_code, _headers = get_images_with_http_info(opts) @@ -108,11 +108,11 @@ def get_images(opts = {}) # Get Images # Get all images in an account.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `images:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`format`: `any`, `equals`<br>`name`: `any`, `contains`, `ends-with`, `equals`, `starts-with`<br>`size`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`hidden`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`format`: `any`, `equals`<br>`name`: `any`, `contains`, `ends-with`, `equals`, `starts-with`<br>`size`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`hidden`: `any`, `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_images_with_http_info(opts = {}) if @api_client.config.debugging @@ -148,7 +148,7 @@ def get_images_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -219,7 +219,7 @@ def update_image_with_http_info(id, image_partial_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -258,7 +258,7 @@ def update_image_with_http_info(id, image_partial_update_query, opts = {}) end # Upload Image From File - # Upload an image from a file. If you want to import an image from an existing url or a data uri, use the Create Image API instead. + # Upload an image from a file. If you want to import an image from an existing url or a data uri, use the Upload Image From URL endpoint instead. # @param file [File] The image file to upload. Supported image formats: jpeg,png,gif. Maximum image size: 5MB. # @param [Hash] opts the optional parameters # @option opts [String] :name A name for the image. Defaults to the filename if not provided. If the name matches an existing image, a suffix will be added. @@ -270,7 +270,7 @@ def upload_image_from_file(file, opts = {}) end # Upload Image From File - # Upload an image from a file. If you want to import an image from an existing url or a data uri, use the Create Image API instead. + # Upload an image from a file. If you want to import an image from an existing url or a data uri, use the Upload Image From URL endpoint instead. # @param file [File] The image file to upload. Supported image formats: jpeg,png,gif. Maximum image size: 5MB. # @param [Hash] opts the optional parameters # @option opts [String] :name A name for the image. Defaults to the filename if not provided. If the name matches an existing image, a suffix will be added. @@ -293,7 +293,7 @@ def upload_image_from_file_with_http_info(file, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -335,7 +335,7 @@ def upload_image_from_file_with_http_info(file, opts = {}) end # Upload Image From URL - # Import an image from a url or data uri. If you want to upload an image from a file, use the Upload Image API instead.

*Rate limits*:
Burst: `3/s`
Steady: `100/d` **Scopes:** `images:write` + # Import an image from a url or data uri. If you want to upload an image from a file, use the Upload Image From File endpoint instead.

*Rate limits*:
Burst: `3/s`
Steady: `100/d` **Scopes:** `images:write` # @param image_create_query [ImageCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -345,7 +345,7 @@ def upload_image_from_url(image_create_query, opts = {}) end # Upload Image From URL - # Import an image from a url or data uri. If you want to upload an image from a file, use the Upload Image API instead.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `100/d` **Scopes:** `images:write` + # Import an image from a url or data uri. If you want to upload an image from a file, use the Upload Image From File endpoint instead.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `100/d` **Scopes:** `images:write` # @param image_create_query [ImageCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -366,7 +366,7 @@ def upload_image_from_url_with_http_info(image_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/lists_api.rb b/lib/klaviyo-api-sdk/api/lists_api.rb index 7ad3f6d..a347766 100644 --- a/lib/klaviyo-api-sdk/api/lists_api.rb +++ b/lib/klaviyo-api-sdk/api/lists_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_list_with_http_info(list_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -90,7 +90,7 @@ def create_list_with_http_info(list_create_query, opts = {}) end # Add Profile To List - # Add a profile to a list with the given list ID. It is recommended that you use the [Subscribe Profiles endpoint](https://developers.klaviyo.com/en/reference/subscribe_profiles) if you're trying to give a profile consent to receive email marketing. This endpoint accepts a maximum of 1000 profiles per call.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `list:write` `profiles:write` + # Add a profile to a list with the given list ID. It is recommended that you use the [Subscribe Profiles endpoint](https://developers.klaviyo.com/en/reference/subscribe_profiles) if you're trying to give a profile consent to receive email marketing, SMS marketing, or both. This endpoint accepts a maximum of 1000 profiles per call.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `list:write` `profiles:write` # @param id [String] # @param list_members_add_query [ListMembersAddQuery] # @param [Hash] opts the optional parameters @@ -101,7 +101,7 @@ def create_list_relationships(id, list_members_add_query, opts = {}) end # Add Profile To List - # Add a profile to a list with the given list ID. It is recommended that you use the [Subscribe Profiles endpoint](https://developers.klaviyo.com/en/reference/subscribe_profiles) if you're trying to give a profile consent to receive email marketing. This endpoint accepts a maximum of 1000 profiles per call.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `list:write` `profiles:write` + # Add a profile to a list with the given list ID. It is recommended that you use the [Subscribe Profiles endpoint](https://developers.klaviyo.com/en/reference/subscribe_profiles) if you're trying to give a profile consent to receive email marketing, SMS marketing, or both. This endpoint accepts a maximum of 1000 profiles per call.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `list:write` `profiles:write` # @param id [String] # @param list_members_add_query [ListMembersAddQuery] # @param [Hash] opts the optional parameters @@ -127,7 +127,7 @@ def create_list_relationships_with_http_info(id, list_members_add_query, opts = # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -197,7 +197,7 @@ def delete_list_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -268,7 +268,7 @@ def delete_list_relationships_with_http_info(id, list_members_delete_query, opts # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -307,13 +307,13 @@ def delete_list_relationships_with_http_info(id, list_members_delete_query, opts end # Get List - # Get a list with the given list ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[list]=profile_count` parameter in your API request:
Burst: `1/s`
Steady: `15/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` + # Get a list with the given list ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[list]=profile_count` parameter in your API request:
Burst: `1/s`
Steady: `15/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` # @param id [String] Primary key that uniquely identifies this list. Generated by Klaviyo. # @param [Hash] opts the optional parameters # @option opts [Array] :additional_fields_list Request additional fields not included by default in the response. Supported values: 'profile_count' - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_list(id, opts = {}) data, _status_code, _headers = get_list_with_http_info(id, opts) @@ -321,13 +321,13 @@ def get_list(id, opts = {}) end # Get List - # Get a list with the given list ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[list]=profile_count` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` + # Get a list with the given list ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[list]=profile_count` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` # @param id [String] Primary key that uniquely identifies this list. Generated by Klaviyo. # @param [Hash] opts the optional parameters # @option opts [Array] :additional_fields_list Request additional fields not included by default in the response. Supported values: 'profile_count' - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_list_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -366,7 +366,7 @@ def get_list_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -400,15 +400,15 @@ def get_list_with_http_info(id, opts = {}) end # Get List Profiles - # Get all profiles within a list with the given list ID. Filter to request a subset of all profiles. Profiles can be filtered by `email`, `phone_number`, `push_token`, and `joined_group_at` fields. Profiles can be sorted by the following fields, in ascending and descending order: `joined_group_at`

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:
Burst: `10/s`
Steady: `150/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` `profiles:read` + # Get all profiles within a list with the given list ID. Filter to request a subset of all profiles. Profiles can be filtered by `email`, `phone_number`, `push_token`, and `joined_group_at` fields. Profiles can be sorted by the following fields, in ascending and descending order: `joined_group_at`

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:
Burst: `10/s`
Steady: `150/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_list_profiles(id, opts = {}) data, _status_code, _headers = get_list_profiles_with_http_info(id, opts) @@ -416,15 +416,15 @@ def get_list_profiles(id, opts = {}) end # Get List Profiles - # Get all profiles within a list with the given list ID. Filter to request a subset of all profiles. Profiles can be filtered by `email`, `phone_number`, `push_token`, and `joined_group_at` fields. Profiles can be sorted by the following fields, in ascending and descending order: `joined_group_at`<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:<br>Burst: `10/s`<br>Steady: `150/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` `profiles:read` + # Get all profiles within a list with the given list ID. Filter to request a subset of all profiles. Profiles can be filtered by `email`, `phone_number`, `push_token`, and `joined_group_at` fields. Profiles can be sorted by the following fields, in ascending and descending order: `joined_group_at`<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:<br>Burst: `10/s`<br>Steady: `150/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `list:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_list_profiles_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -434,11 +434,11 @@ def get_list_profiles_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ListsApi.get_list_profiles" end - allowable_values = ["predictive_analytics"] + allowable_values = ["subscriptions", "predictive_analytics"] if @api_client.config.client_side_validation && opts[:'additional_fields_profile'] && !opts[:'additional_fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"additional_fields_profile\", must include one of #{allowable_values}" end - allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.timestamp", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppressions", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "joined_group_at", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] + allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "location.ip", "properties", "joined_group_at", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.can_receive_email_marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.consent_timestamp", "subscriptions.email.marketing.last_updated", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppression", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.can_receive_sms_marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.consent_timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "subscriptions.sms.marketing.last_updated", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] if @api_client.config.client_side_validation && opts[:'fields_profile'] && !opts[:'fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_profile\", must include one of #{allowable_values}" end @@ -469,7 +469,7 @@ def get_list_profiles_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -506,10 +506,10 @@ def get_list_profiles_with_http_info(id, opts = {}) # Get profile membership [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for a list with the given list ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `list:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 1000. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_list_relationships_profiles(id, opts = {}) data, _status_code, _headers = get_list_relationships_profiles_with_http_info(id, opts) @@ -520,10 +520,10 @@ def get_list_relationships_profiles(id, opts = {}) # Get profile membership [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for a list with the given list ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `list:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 1000. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_list_relationships_profiles_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -558,7 +558,7 @@ def get_list_relationships_profiles_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -623,7 +623,7 @@ def get_list_relationships_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -660,7 +660,7 @@ def get_list_relationships_tags_with_http_info(id, opts = {}) # Return all tags associated with the given list ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `list:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_list_tags(id, opts = {}) data, _status_code, _headers = get_list_tags_with_http_info(id, opts) @@ -671,7 +671,7 @@ def get_list_tags(id, opts = {}) # Return all tags associated with the given list ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `list:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_list_tags_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -695,7 +695,7 @@ def get_list_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -731,11 +731,11 @@ def get_list_tags_with_http_info(id, opts = {}) # Get Lists # Get all lists in an account. Filter to request a subset of all lists. Lists can be filtered by `id`, `name`, `created`, and `updated` fields. Returns a maximum of 10 results per page.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `list:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_lists(opts = {}) data, _status_code, _headers = get_lists_with_http_info(opts) @@ -745,11 +745,11 @@ def get_lists(opts = {}) # Get Lists # Get all lists in an account. Filter to request a subset of all lists. Lists can be filtered by `id`, `name`, `created`, and `updated` fields. Returns a maximum of 10 results per page.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `list:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_lists_with_http_info(opts = {}) if @api_client.config.debugging @@ -781,7 +781,7 @@ def get_lists_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -852,7 +852,7 @@ def update_list_with_http_info(id, list_partial_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/metrics_api.rb b/lib/klaviyo-api-sdk/api/metrics_api.rb index 8165fd4..a6fe504 100644 --- a/lib/klaviyo-api-sdk/api/metrics_api.rb +++ b/lib/klaviyo-api-sdk/api/metrics_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -23,7 +23,7 @@ def initialize(api_client = ApiClient.default) # Get a metric with the given metric ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `metrics:read` # @param id [String] Metric ID # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_metric(id, opts = {}) data, _status_code, _headers = get_metric_with_http_info(id, opts) @@ -34,7 +34,7 @@ def get_metric(id, opts = {}) # Get a metric with the given metric ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `metrics:read` # @param id [String] Metric ID # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_metric_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -58,7 +58,7 @@ def get_metric_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -94,9 +94,9 @@ def get_metric_with_http_info(id, opts = {}) # Get Metrics # Get all metrics in an account. Requests can be filtered by the following fields: integration `name`, integration `category` Returns a maximum of 200 results per page.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `metrics:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`integration.name`: `equals`<br>`integration.category`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`integration.name`: `equals`<br>`integration.category`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_metrics(opts = {}) data, _status_code, _headers = get_metrics_with_http_info(opts) @@ -106,9 +106,9 @@ def get_metrics(opts = {}) # Get Metrics # Get all metrics in an account. Requests can be filtered by the following fields: integration `name`, integration `category` Returns a maximum of 200 results per page.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `metrics:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`integration.name`: `equals`<br>`integration.category`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`integration.name`: `equals`<br>`integration.category`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_metrics_with_http_info(opts = {}) if @api_client.config.debugging @@ -130,7 +130,7 @@ def get_metrics_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -195,7 +195,7 @@ def query_metric_aggregates_with_http_info(metric_aggregate_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/profiles_api.rb b/lib/klaviyo-api-sdk/api/profiles_api.rb index 1c32efb..1c033e3 100644 --- a/lib/klaviyo-api-sdk/api/profiles_api.rb +++ b/lib/klaviyo-api-sdk/api/profiles_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_profile_with_http_info(profile_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -121,7 +121,7 @@ def create_push_token_with_http_info(push_token_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -160,14 +160,14 @@ def create_push_token_with_http_info(push_token_create_query, opts = {}) end # Get Profile - # Get the profile with the given profile ID. Include parameters can be provided to get the following related resource data: `lists` (memberships), `segments` (memberships)

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:read` + # Get the profile with the given profile ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_profile(id, opts = {}) data, _status_code, _headers = get_profile_with_http_info(id, opts) @@ -175,14 +175,14 @@ def get_profile(id, opts = {}) end # Get Profile - # Get the profile with the given profile ID. Include parameters can be provided to get the following related resource data: `lists` (memberships), `segments` (memberships)<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:read` + # Get the profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_profile_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -192,7 +192,7 @@ def get_profile_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling ProfilesApi.get_profile" end - allowable_values = ["predictive_analytics"] + allowable_values = ["subscriptions", "predictive_analytics"] if @api_client.config.client_side_validation && opts[:'additional_fields_profile'] && !opts[:'additional_fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"additional_fields_profile\", must include one of #{allowable_values}" end @@ -200,7 +200,7 @@ def get_profile_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && opts[:'fields_list'] && !opts[:'fields_list'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_list\", must include one of #{allowable_values}" end - allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.timestamp", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppressions", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] + allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "location.ip", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.can_receive_email_marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.consent_timestamp", "subscriptions.email.marketing.last_updated", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppression", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.can_receive_sms_marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.consent_timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "subscriptions.sms.marketing.last_updated", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] if @api_client.config.client_side_validation && opts[:'fields_profile'] && !opts[:'fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_profile\", must include one of #{allowable_values}" end @@ -226,7 +226,7 @@ def get_profile_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -263,7 +263,7 @@ def get_profile_with_http_info(id, opts = {}) # Get list memberships for a profile with the given profile ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `list:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_profile_lists(id, opts = {}) data, _status_code, _headers = get_profile_lists_with_http_info(id, opts) @@ -274,7 +274,7 @@ def get_profile_lists(id, opts = {}) # Get list memberships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `list:read` `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_profile_lists_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -298,7 +298,7 @@ def get_profile_lists_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -363,7 +363,7 @@ def get_profile_relationships_lists_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -428,7 +428,7 @@ def get_profile_relationships_segments_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -465,7 +465,7 @@ def get_profile_relationships_segments_with_http_info(id, opts = {}) # Get segment memberships for a profile with the given profile ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `profiles:read` `segments:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_profile_segments(id, opts = {}) data, _status_code, _headers = get_profile_segments_with_http_info(id, opts) @@ -476,7 +476,7 @@ def get_profile_segments(id, opts = {}) # Get segment memberships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `profiles:read` `segments:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_profile_segments_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -500,7 +500,7 @@ def get_profile_segments_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -534,14 +534,14 @@ def get_profile_segments_with_http_info(id, opts = {}) end # Get Profiles - # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `updated`, `email`

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:
Burst: `10/s`
Steady: `150/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read` + # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `updated`, `email`, `subscriptions.email.marketing.suppression.timestamp`, `subscriptions.email.marketing.list_suppressions.timestamp`

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:
Burst: `10/s`
Steady: `150/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`external_id`: `any`, `equals`<br>`_kx`: `equals`<br>`created`: `greater-than`, `less-than`<br>`updated`: `greater-than`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`external_id`: `any`, `equals`<br>`_kx`: `equals`<br>`created`: `greater-than`, `less-than`<br>`updated`: `greater-than`, `less-than`<br>`subscriptions.email.marketing.suppression.timestamp` : `greater-than`, `greater-or-equal`, `less-than`, `less-or-equal`<br>`subscriptions.email.marketing.suppression.reason` : `equals`<br>`subscriptions.email.marketing.list_suppressions.list_id` : `equals`<br>`subscriptions.email.marketing.list_suppressions.reason` : `equals`<br>`subscriptions.email.marketing.list_suppressions.timestamp` : `greater-than`, `greater-or-equal`, `less-than`, `less-or-equal` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_profiles(opts = {}) data, _status_code, _headers = get_profiles_with_http_info(opts) @@ -549,24 +549,24 @@ def get_profiles(opts = {}) end # Get Profiles - # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `updated`, `email`<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:<br>Burst: `10/s`<br>Steady: `150/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read` + # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `updated`, `email`, `subscriptions.email.marketing.suppression.timestamp`, `subscriptions.email.marketing.list_suppressions.timestamp`<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:<br>Burst: `10/s`<br>Steady: `150/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`external_id`: `any`, `equals`<br>`_kx`: `equals`<br>`created`: `greater-than`, `less-than`<br>`updated`: `greater-than`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`external_id`: `any`, `equals`<br>`_kx`: `equals`<br>`created`: `greater-than`, `less-than`<br>`updated`: `greater-than`, `less-than`<br>`subscriptions.email.marketing.suppression.timestamp` : `greater-than`, `greater-or-equal`, `less-than`, `less-or-equal`<br>`subscriptions.email.marketing.suppression.reason` : `equals`<br>`subscriptions.email.marketing.list_suppressions.list_id` : `equals`<br>`subscriptions.email.marketing.list_suppressions.reason` : `equals`<br>`subscriptions.email.marketing.list_suppressions.timestamp` : `greater-than`, `greater-or-equal`, `less-than`, `less-or-equal` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_profiles_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProfilesApi.get_profiles ...' end - allowable_values = ["predictive_analytics"] + allowable_values = ["subscriptions", "predictive_analytics"] if @api_client.config.client_side_validation && opts[:'additional_fields_profile'] && !opts[:'additional_fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"additional_fields_profile\", must include one of #{allowable_values}" end - allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.timestamp", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppressions", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] + allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "location.ip", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.can_receive_email_marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.consent_timestamp", "subscriptions.email.marketing.last_updated", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppression", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.can_receive_sms_marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.consent_timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "subscriptions.sms.marketing.last_updated", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] if @api_client.config.client_side_validation && opts[:'fields_profile'] && !opts[:'fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_profile\", must include one of #{allowable_values}" end @@ -578,7 +578,7 @@ def get_profiles_with_http_info(opts = {}) fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ProfilesApi.get_profiles, must be greater than or equal to 1.' end - allowable_values = ["created", "-created", "email", "-email", "id", "-id", "updated", "-updated"] + allowable_values = ["created", "-created", "email", "-email", "id", "-id", "updated", "-updated", "subscriptions.email.marketing.list_suppressions.timestamp", "-subscriptions.email.marketing.list_suppressions.timestamp", "subscriptions.email.marketing.suppression.timestamp", "-subscriptions.email.marketing.suppression.timestamp"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end @@ -597,7 +597,7 @@ def get_profiles_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -662,7 +662,7 @@ def merge_profiles_with_http_info(profile_merge_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -732,7 +732,7 @@ def subscribe_profiles_with_http_info(subscription_create_job_create_query, opts # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -802,7 +802,7 @@ def suppress_profiles_with_http_info(suppression_create_job_create_query, opts = # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -872,7 +872,7 @@ def unsubscribe_profiles_with_http_info(subscription_delete_job_create_query, op # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -942,7 +942,7 @@ def unsuppress_profiles_with_http_info(suppression_delete_job_create_query, opts # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1018,7 +1018,7 @@ def update_profile_with_http_info(id, profile_partial_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/segments_api.rb b/lib/klaviyo-api-sdk/api/segments_api.rb index 332703a..82419eb 100644 --- a/lib/klaviyo-api-sdk/api/segments_api.rb +++ b/lib/klaviyo-api-sdk/api/segments_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -20,13 +20,13 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Get Segment - # Get a segment with the given segment ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[segment]=profile_count` parameter in your API request:
Burst: `1/s`
Steady: `15/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `segments:read` + # Get a segment with the given segment ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m`

Rate limits when using the `additional-fields[segment]=profile_count` parameter in your API request:
Burst: `1/s`
Steady: `15/m`

To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `segments:read` # @param id [String] # @param [Hash] opts the optional parameters # @option opts [Array] :additional_fields_segment Request additional fields not included by default in the response. Supported values: 'profile_count' - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_segment(id, opts = {}) data, _status_code, _headers = get_segment_with_http_info(id, opts) @@ -34,13 +34,13 @@ def get_segment(id, opts = {}) end # Get Segment - # Get a segment with the given segment ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[segment]=profile_count` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-09-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `segments:read` + # Get a segment with the given segment ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[segment]=profile_count` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2023-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `segments:read` # @param id [String] # @param [Hash] opts the optional parameters # @option opts [Array] :additional_fields_segment Request additional fields not included by default in the response. Supported values: 'profile_count' - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_segment_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -79,7 +79,7 @@ def get_segment_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -116,12 +116,12 @@ def get_segment_with_http_info(id, opts = {}) # Get all profiles within a segment with the given segment ID. Filter to request a subset of all profiles. Profiles can be filtered by `email`, `phone_number`, `push_token`, and `joined_group_at` fields. Profiles can be sorted by the following fields, in ascending and descending order: `joined_group_at`

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:read` `segments:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_segment_profiles(id, opts = {}) data, _status_code, _headers = get_segment_profiles_with_http_info(id, opts) @@ -132,12 +132,12 @@ def get_segment_profiles(id, opts = {}) # Get all profiles within a segment with the given segment ID. Filter to request a subset of all profiles. Profiles can be filtered by `email`, `phone_number`, `push_token`, and `joined_group_at` fields. Profiles can be sorted by the following fields, in ascending and descending order: `joined_group_at`<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:read` `segments:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :additional_fields_profile Request additional fields not included by default in the response. Supported values: 'subscriptions', 'predictive_analytics' + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_segment_profiles_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -147,11 +147,11 @@ def get_segment_profiles_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SegmentsApi.get_segment_profiles" end - allowable_values = ["predictive_analytics"] + allowable_values = ["subscriptions", "predictive_analytics"] if @api_client.config.client_side_validation && opts[:'additional_fields_profile'] && !opts[:'additional_fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"additional_fields_profile\", must include one of #{allowable_values}" end - allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "properties", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.timestamp", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppressions", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "joined_group_at", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] + allowable_values = ["email", "phone_number", "external_id", "first_name", "last_name", "organization", "title", "image", "created", "updated", "last_event_date", "location", "location.address1", "location.address2", "location.city", "location.country", "location.latitude", "location.longitude", "location.region", "location.zip", "location.timezone", "location.ip", "properties", "joined_group_at", "subscriptions", "subscriptions.email", "subscriptions.email.marketing", "subscriptions.email.marketing.can_receive_email_marketing", "subscriptions.email.marketing.consent", "subscriptions.email.marketing.consent_timestamp", "subscriptions.email.marketing.last_updated", "subscriptions.email.marketing.method", "subscriptions.email.marketing.method_detail", "subscriptions.email.marketing.custom_method_detail", "subscriptions.email.marketing.double_optin", "subscriptions.email.marketing.suppression", "subscriptions.email.marketing.list_suppressions", "subscriptions.sms", "subscriptions.sms.marketing", "subscriptions.sms.marketing.can_receive_sms_marketing", "subscriptions.sms.marketing.consent", "subscriptions.sms.marketing.consent_timestamp", "subscriptions.sms.marketing.method", "subscriptions.sms.marketing.method_detail", "subscriptions.sms.marketing.last_updated", "predictive_analytics", "predictive_analytics.historic_clv", "predictive_analytics.predicted_clv", "predictive_analytics.total_clv", "predictive_analytics.historic_number_of_orders", "predictive_analytics.predicted_number_of_orders", "predictive_analytics.average_days_between_orders", "predictive_analytics.average_order_value", "predictive_analytics.churn_probability", "predictive_analytics.expected_date_of_next_order"] if @api_client.config.client_side_validation && opts[:'fields_profile'] && !opts[:'fields_profile'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_profile\", must include one of #{allowable_values}" end @@ -182,7 +182,7 @@ def get_segment_profiles_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -219,10 +219,10 @@ def get_segment_profiles_with_http_info(id, opts = {}) # Get all profile membership [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for the given segment ID.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:read` `segments:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 1000. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_segment_relationships_profiles(id, opts = {}) data, _status_code, _headers = get_segment_relationships_profiles_with_http_info(id, opts) @@ -233,10 +233,10 @@ def get_segment_relationships_profiles(id, opts = {}) # Get all profile membership [relationships](https://developers.klaviyo.com/en/reference/api_overview#relationships) for the given segment ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:read` `segments:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`push_token`: `any`, `equals`<br>`_kx`: `equals`<br>`joined_group_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 1000. (default to 20) - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_segment_relationships_profiles_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -271,7 +271,7 @@ def get_segment_relationships_profiles_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -336,7 +336,7 @@ def get_segment_relationships_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -373,7 +373,7 @@ def get_segment_relationships_tags_with_http_info(id, opts = {}) # Return all tags associated with the given segment ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `segments:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_segment_tags(id, opts = {}) data, _status_code, _headers = get_segment_tags_with_http_info(id, opts) @@ -384,7 +384,7 @@ def get_segment_tags(id, opts = {}) # Return all tags associated with the given segment ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `segments:read` `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_segment_tags_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -408,7 +408,7 @@ def get_segment_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -444,11 +444,11 @@ def get_segment_tags_with_http_info(id, opts = {}) # Get Segments # Get all segments in an account. Filter to request a subset of all segments. Segments can be filtered by `name`, `created`, and `updated` fields. Returns a maximum of 10 results per page.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `segments:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Hash] def get_segments(opts = {}) data, _status_code, _headers = get_segments_with_http_info(opts) @@ -458,11 +458,11 @@ def get_segments(opts = {}) # Get Segments # Get all segments in an account. Filter to request a subset of all segments. Segments can be filtered by `name`, `created`, and `updated` fields. Returns a maximum of 10 results per page.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `segments:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `any`, `equals`<br>`id`: `any`, `equals`<br>`created`: `greater-than`<br>`updated`: `greater-than` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_segments_with_http_info(opts = {}) if @api_client.config.debugging @@ -494,7 +494,7 @@ def get_segments_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -565,7 +565,7 @@ def update_segment_with_http_info(id, segment_partial_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/tags_api.rb b/lib/klaviyo-api-sdk/api/tags_api.rb index a37393c..9cc6e8a 100644 --- a/lib/klaviyo-api-sdk/api/tags_api.rb +++ b/lib/klaviyo-api-sdk/api/tags_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_tag_with_http_info(tag_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -121,7 +121,7 @@ def create_tag_group_with_http_info(tag_group_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -197,7 +197,7 @@ def create_tag_relationships_campaigns_with_http_info(id, tag_campaign_op, opts # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -273,7 +273,7 @@ def create_tag_relationships_flows_with_http_info(id, tag_flow_op, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -349,7 +349,7 @@ def create_tag_relationships_lists_with_http_info(id, tag_list_op, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -425,7 +425,7 @@ def create_tag_relationships_segments_with_http_info(id, tag_segment_op, opts = # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -495,7 +495,7 @@ def delete_tag_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -560,7 +560,7 @@ def delete_tag_group_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -631,7 +631,7 @@ def delete_tag_relationships_campaigns_with_http_info(id, tag_campaign_op, opts # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -707,7 +707,7 @@ def delete_tag_relationships_flows_with_http_info(id, tag_flow_op, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -783,7 +783,7 @@ def delete_tag_relationships_lists_with_http_info(id, tag_list_op, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -859,7 +859,7 @@ def delete_tag_relationships_segments_with_http_info(id, tag_segment_op, opts = # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -901,9 +901,9 @@ def delete_tag_relationships_segments_with_http_info(id, tag_segment_op, opts = # Retrieve the tag with the given tag ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `tags:read` # @param id [String] The Tag ID # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Hash] def get_tag(id, opts = {}) data, _status_code, _headers = get_tag_with_http_info(id, opts) @@ -914,9 +914,9 @@ def get_tag(id, opts = {}) # Retrieve the tag with the given tag ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read` # @param id [String] The Tag ID # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_tag_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -950,7 +950,7 @@ def get_tag_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -987,7 +987,7 @@ def get_tag_with_http_info(id, opts = {}) # Retrieve the tag group with the given tag group ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `tags:read` # @param id [String] The Tag Group ID # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_tag_group(id, opts = {}) data, _status_code, _headers = get_tag_group_with_http_info(id, opts) @@ -998,7 +998,7 @@ def get_tag_group(id, opts = {}) # Retrieve the tag group with the given tag group ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read` # @param id [String] The Tag Group ID # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_tag_group_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1022,7 +1022,7 @@ def get_tag_group_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1087,7 +1087,7 @@ def get_tag_group_relationships_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1124,7 +1124,7 @@ def get_tag_group_relationships_tags_with_http_info(id, opts = {}) # Return the tags for a given tag group ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_tag_group_tags(id, opts = {}) data, _status_code, _headers = get_tag_group_tags_with_http_info(id, opts) @@ -1135,7 +1135,7 @@ def get_tag_group_tags(id, opts = {}) # Return the tags for a given tag group ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_tag_group_tags_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1159,7 +1159,7 @@ def get_tag_group_tags_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1195,10 +1195,10 @@ def get_tag_group_tags_with_http_info(id, opts = {}) # Get Tag Groups # List all tag groups in an account. Every account has one default tag group. Tag groups can be filtered by `name`, `exclusive`, and `default`, and sorted by `name` or `id` in ascending or descending order. Returns a maximum of 25 tag groups per request, which can be paginated with [cursor-based pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination).

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `tags:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`exclusive`: `equals`<br>`default`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`exclusive`: `equals`<br>`default`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_tag_groups(opts = {}) data, _status_code, _headers = get_tag_groups_with_http_info(opts) @@ -1208,10 +1208,10 @@ def get_tag_groups(opts = {}) # Get Tag Groups # List all tag groups in an account. Every account has one default tag group. Tag groups can be filtered by `name`, `exclusive`, and `default`, and sorted by `name` or `id` in ascending or descending order. Returns a maximum of 25 tag groups per request, which can be paginated with [cursor-based pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination).<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`exclusive`: `equals`<br>`default`: `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`exclusive`: `equals`<br>`default`: `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_tag_groups_with_http_info(opts = {}) if @api_client.config.debugging @@ -1238,7 +1238,7 @@ def get_tag_groups_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1303,7 +1303,7 @@ def get_tag_relationships_campaigns_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1368,7 +1368,7 @@ def get_tag_relationships_flows_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1433,7 +1433,7 @@ def get_tag_relationships_lists_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1498,7 +1498,7 @@ def get_tag_relationships_segments_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1563,7 +1563,7 @@ def get_tag_relationships_tag_group_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1600,7 +1600,7 @@ def get_tag_relationships_tag_group_with_http_info(id, opts = {}) # Returns the tag group resource for a given tag ID.

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_tag_tag_group(id, opts = {}) data, _status_code, _headers = get_tag_tag_group_with_http_info(id, opts) @@ -1611,7 +1611,7 @@ def get_tag_tag_group(id, opts = {}) # Returns the tag group resource for a given tag ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_tag_tag_group_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -1635,7 +1635,7 @@ def get_tag_tag_group_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1671,12 +1671,12 @@ def get_tag_tag_group_with_http_info(id, opts = {}) # Get Tags # List all tags in an account. Tags can be filtered by `name`, and sorted by `name` or `id` in ascending or descending order. Returns a maximum of 50 tags per request, which can be paginated with [cursor-based pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination).

*Rate limits*:
Burst: `3/s`
Steady: `60/m` **Scopes:** `tags:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_tags(opts = {}) data, _status_code, _headers = get_tags_with_http_info(opts) @@ -1686,12 +1686,12 @@ def get_tags(opts = {}) # Get Tags # List all tags in an account. Tags can be filtered by `name`, and sorted by `name` or `id` in ascending or descending order. Returns a maximum of 50 tags per request, which can be paginated with [cursor-based pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination).<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with` - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_tags_with_http_info(opts = {}) if @api_client.config.debugging @@ -1728,7 +1728,7 @@ def get_tags_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1799,7 +1799,7 @@ def update_tag_with_http_info(id, tag_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1875,7 +1875,7 @@ def update_tag_group_with_http_info(id, tag_group_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api/templates_api.rb b/lib/klaviyo-api-sdk/api/templates_api.rb index aa5defc..6539336 100644 --- a/lib/klaviyo-api-sdk/api/templates_api.rb +++ b/lib/klaviyo-api-sdk/api/templates_api.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_template_with_http_info(template_create_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -121,7 +121,7 @@ def create_template_clone_with_http_info(template_clone_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -191,7 +191,7 @@ def create_template_render_with_http_info(template_render_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -261,7 +261,7 @@ def delete_template_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -298,7 +298,7 @@ def delete_template_with_http_info(id, opts = {}) # Get a template with the given template ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `templates:read` # @param id [String] The ID of template # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_template(id, opts = {}) data, _status_code, _headers = get_template_with_http_info(id, opts) @@ -309,7 +309,7 @@ def get_template(id, opts = {}) # Get a template with the given template ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:read` # @param id [String] The ID of template # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_template_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -333,7 +333,7 @@ def get_template_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -369,10 +369,10 @@ def get_template_with_http_info(id, opts = {}) # Get Templates # Get all templates in an account. Filter to request a subset of all templates. Templates can be sorted by the following fields, in ascending and descending order: `id`, `name`, `created`, `updated` Returns a maximum of 10 results per page.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `templates:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`name`: `any`, `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`name`: `any`, `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Hash] def get_templates(opts = {}) data, _status_code, _headers = get_templates_with_http_info(opts) @@ -382,10 +382,10 @@ def get_templates(opts = {}) # Get Templates # Get all templates in an account. Filter to request a subset of all templates. Templates can be sorted by the following fields, in ascending and descending order: `id`, `name`, `created`, `updated` Returns a maximum of 10 results per page.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `templates:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`name`: `any`, `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-09-15/reference/api-overview#sorting + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`name`: `any`, `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2023-10-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_templates_with_http_info(opts = {}) if @api_client.config.debugging @@ -412,7 +412,7 @@ def get_templates_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -483,7 +483,7 @@ def update_template_with_http_info(id, template_update_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2023-09-15" + header_params['revision'] = ENV['API_REVISION'] || "2023-10-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' diff --git a/lib/klaviyo-api-sdk/api_client.rb b/lib/klaviyo-api-sdk/api_client.rb index 2c09ec0..6381ccc 100644 --- a/lib/klaviyo-api-sdk/api_client.rb +++ b/lib/klaviyo-api-sdk/api_client.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -32,7 +32,7 @@ class ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) @config = config - @user_agent = "klaviyo-api-ruby/4.2.0" + @user_agent = "klaviyo-api-ruby/5.0.0" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent diff --git a/lib/klaviyo-api-sdk/api_error.rb b/lib/klaviyo-api-sdk/api_error.rb index bc28cb1..2788d2b 100644 --- a/lib/klaviyo-api-sdk/api_error.rb +++ b/lib/klaviyo-api-sdk/api_error.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/configuration.rb b/lib/klaviyo-api-sdk/configuration.rb index 6e24794..2c7976a 100644 --- a/lib/klaviyo-api-sdk/configuration.rb +++ b/lib/klaviyo-api-sdk/configuration.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/audiences_sub_object.rb b/lib/klaviyo-api-sdk/models/audiences_sub_object.rb index 9e00d52..ab8438a 100644 --- a/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/audiences_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/back_in_stock_subscription_enum.rb b/lib/klaviyo-api-sdk/models/back_in_stock_subscription_enum.rb index b1d190c..2d5342d 100644 --- a/lib/klaviyo-api-sdk/models/back_in_stock_subscription_enum.rb +++ b/lib/klaviyo-api-sdk/models/back_in_stock_subscription_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_clone_query.rb b/lib/klaviyo-api-sdk/models/campaign_clone_query.rb index a60b19c..aea5b07 100644 --- a/lib/klaviyo-api-sdk/models/campaign_clone_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_clone_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb index 4ea23c0..3930192 100644 --- a/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes.rb index 89cb083..6123713 100644 --- a/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_create_query.rb b/lib/klaviyo-api-sdk/models/campaign_create_query.rb index be81787..2b0c2ce 100644 --- a/lib/klaviyo-api-sdk/models/campaign_create_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb index 123656d..1f1c4cf 100644 --- a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes.rb index 2611b7a..355f5ec 100644 --- a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_campaign_messages.rb b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_campaign_messages.rb index e947f00..33affe8 100644 --- a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_campaign_messages.rb +++ b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_campaign_messages.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_send_options.rb b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_send_options.rb index 885cd18..d4f114c 100644 --- a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_send_options.rb +++ b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_send_options.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_tracking_options.rb b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_tracking_options.rb index f1b52a1..a3ed360 100644 --- a/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_tracking_options.rb +++ b/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_tracking_options.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_enum.rb b/lib/klaviyo-api-sdk/models/campaign_enum.rb index d547221..c77e733 100644 --- a/lib/klaviyo-api-sdk/models/campaign_enum.rb +++ b/lib/klaviyo-api-sdk/models/campaign_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb index e8637af..c019b4b 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb index 23b3ea4..4d9b414 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -91,6 +91,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "id", id cannot be nil.') end + if @relationships.nil? + invalid_properties.push('invalid value for "relationships", relationships cannot be nil.') + end + invalid_properties end @@ -99,6 +103,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @id.nil? + return false if @relationships.nil? true end diff --git a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships.rb index cf7f12c..be9d178 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,12 +66,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @template.nil? + invalid_properties.push('invalid value for "template", template cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @template.nil? true end diff --git a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template.rb b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template.rb index 72373d8..1e5bb9c 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template_data.rb b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template_data.rb index 94f88b7..0fd8fb8 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template_data.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template_data.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object.rb index 30a618e..b8b8732 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes.rb index c9e687c..5c0a18c 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes_content.rb b/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes_content.rb index 807d7f5..1008996 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes_content.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes_content.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_enum.rb b/lib/klaviyo-api-sdk/models/campaign_message_enum.rb index 06259e4..0784253 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_enum.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb b/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb index 0479570..9fcfeaa 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb index 3e85861..551d662 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object_attributes.rb index fda795b..a1868d4 100644 --- a/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb b/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb index e83308c..f728ad8 100644 --- a/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb index 25206b1..a366910 100644 --- a/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object_attributes.rb index fb83aec..dfbac11 100644 --- a/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb b/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb index 6699972..b12778a 100644 --- a/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb index e25bc76..3054bd6 100644 --- a/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb b/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb index e012211..c1d4601 100644 --- a/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb b/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb index 9e1c461..f7b1c71 100644 --- a/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object.rb index f6a6f55..e94ac0c 100644 --- a/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb b/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb index 4c0a314..ccfd2ac 100644 --- a/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb b/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb index 879ed1f..7bfa62f 100644 --- a/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +++ b/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb index d8dd0e1..6ff19da 100644 --- a/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb index 4575f96..98776ae 100644 --- a/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb index 9123266..98f7841 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb index c94504f..1370cbf 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb index e42a631..dff27f1 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb index ae8606e..a5ad217 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb index ab8e88f..ef9e22c 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes.rb index 92fdda9..6aaa7ca 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes_categories.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes_categories.rb index 4a40a07..6ec0b17 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes_categories.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes_categories.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb index 574e30a..ac89651 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object.rb index 1cb2dfe..19caba1 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_attributes.rb index 8350901..c5cef93 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships.rb index 40242cf..a180de9 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items.rb index adfdcae..4ca76f2 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items_data_inner.rb b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items_data_inner.rb index 63a7851..aaf4db5 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_relationships_items_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb index 388c015..5443959 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb index 8250243..7c8230d 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes.rb index 38d5a3e..6e9af79 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes_categories.rb b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes_categories.rb index 42e1ee0..c059109 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes_categories.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes_categories.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb index 4922f4b..d07aa7c 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_enum.rb b/lib/klaviyo-api-sdk/models/catalog_category_enum.rb index 5f50db0..fab7f14 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb b/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb index f85d032..670e441 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb index 1528864..69a63f9 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb index f71d86f..3e972e6 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes.rb index e8f375e..10a47a3 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes_categories.rb b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes_categories.rb index 3a0959f..ce69058 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes_categories.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes_categories.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb b/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb index 7d1bb25..3fd2ab6 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object.rb index 7e18b3b..969df7e 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_attributes.rb index 6321ce6..37b96a7 100644 --- a/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb index e49b087..b6beab2 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb index 796da4b..776b20f 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb index 71afbe3..374a488 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb b/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb index 3b1bbed..7ae20a6 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb index 083efa0..f4d6dfa 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb index 63de243..d31e93d 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes.rb index b989079..c7b8af3 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes_items.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes_items.rb index ce8ee24..93f702d 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes_items.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes_items.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb index 358c123..f3a88ec 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb index f278d13..98cd922 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_attributes.rb index 77db8c8..f60a5dc 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships.rb index 874b554..222b881 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories.rb index 7bfbd08..c68b391 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories_data_inner.rb b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories_data_inner.rb index 0fe666c..72556ea 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb index 47856f9..599514a 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb index c040595..c93794a 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes.rb index a056102..0991892 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes_items.rb b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes_items.rb index ba44009..c8a08f3 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes_items.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes_items.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb index 4ac47c4..7227bf1 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_enum.rb b/lib/klaviyo-api-sdk/models/catalog_item_enum.rb index ee3f79f..ff4c585 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb index e8817ad..1ebae20 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb index 8da1f20..addd5bc 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes.rb index 3dd8fa0..dbccf19 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes_items.rb b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes_items.rb index 32dc4d2..d2ce54c 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes_items.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes_items.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb b/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb index 15c9d9a..9e7d193 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb index 561a0da..2c54fc5 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object_attributes.rb index 63070e6..0ca8c4a 100644 --- a/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb index 4179228..fc266cf 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb index 67b820b..b19853c 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb b/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb index 542f892..0efa626 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb index a92fa04..1727e64 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb index c9424fc..94001e4 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes.rb index 6b988f7..2f3ea58 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes_variants.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes_variants.rb index 7cfecb8..bf17051 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes_variants.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes_variants.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb index 8e8814f..c97812c 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object.rb index 418cac1..47513a1 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,6 +90,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end + if @relationships.nil? + invalid_properties.push('invalid value for "relationships", relationships cannot be nil.') + end + invalid_properties end @@ -98,6 +102,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @attributes.nil? + return false if @relationships.nil? true end diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_attributes.rb index 8ad5ad8..4334876 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships.rb index 6455aa7..f8d5cb5 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,12 +66,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @item.nil? + invalid_properties.push('invalid value for "item", item cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @item.nil? true end diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item.rb index 1153ed6..bf93509 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item_data.rb b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item_data.rb index ade7dfa..6e620a1 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item_data.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item_data.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb index 6b511f1..79ff4a2 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb index 32cf0c3..f526dd2 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes.rb index d94d0c5..d66b2fd 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes_variants.rb b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes_variants.rb index 79e4b45..ce615c5 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes_variants.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes_variants.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb index e988fd2..cd7e5da 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb b/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb index bf9bd9b..9a7b249 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb index f8c03c2..9ea1d83 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb index 15d2f46..674d4e7 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes.rb index c57cd26..67aa328 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes_variants.rb b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes_variants.rb index aa2b299..8a754d5 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes_variants.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes_variants.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb b/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb index f196759..b59a1e2 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object.rb index 388c3b7..e8ea808 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object_attributes.rb index 01a4204..8e564c5 100644 --- a/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_bulk_create_job_enum.rb b/lib/klaviyo-api-sdk/models/coupon_code_bulk_create_job_enum.rb index c09a688..8c80a57 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_bulk_create_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_bulk_create_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query.rb index d64c254..62a9ed0 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object.rb index 29cb0e4..711ee28 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes.rb index 7b0f3b6..1dcef21 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes_coupon_codes.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes_coupon_codes.rb index 2aab195..42c4a44 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes_coupon_codes.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_job_create_query_resource_object_attributes_coupon_codes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_query.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_query.rb index d024e79..49edb13 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_query.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object.rb index 27b0026..1cff6ec 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,6 +90,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end + if @relationships.nil? + invalid_properties.push('invalid value for "relationships", relationships cannot be nil.') + end + invalid_properties end @@ -98,6 +102,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @attributes.nil? + return false if @relationships.nil? true end diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_attributes.rb index 492c511..f90deed 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships.rb index 08b999f..07a7491 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,12 +66,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @coupon.nil? + invalid_properties.push('invalid value for "coupon", coupon cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @coupon.nil? true end diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon.rb index cf82227..305868c 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon_data.rb b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon_data.rb index 3e170ae..526f562 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon_data.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_create_query_resource_object_relationships_coupon_data.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_enum.rb b/lib/klaviyo-api-sdk/models/coupon_code_enum.rb index d1e44ea..15279e8 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_enum.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_update_query.rb b/lib/klaviyo-api-sdk/models/coupon_code_update_query.rb index cdcbf96..219a3f0 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_update_query.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object.rb index 22b3f24..c7c4d77 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object_attributes.rb index 69511f8..ede934e 100644 --- a/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/coupon_code_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_create_query.rb b/lib/klaviyo-api-sdk/models/coupon_create_query.rb index a3d507f..35b2573 100644 --- a/lib/klaviyo-api-sdk/models/coupon_create_query.rb +++ b/lib/klaviyo-api-sdk/models/coupon_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object.rb index 84b902d..b815aac 100644 --- a/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object_attributes.rb index 6108b84..d0e16c9 100644 --- a/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/coupon_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_enum.rb b/lib/klaviyo-api-sdk/models/coupon_enum.rb index 5272853..82bfda4 100644 --- a/lib/klaviyo-api-sdk/models/coupon_enum.rb +++ b/lib/klaviyo-api-sdk/models/coupon_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_update_query.rb b/lib/klaviyo-api-sdk/models/coupon_update_query.rb index b06e38b..be4e0d1 100644 --- a/lib/klaviyo-api-sdk/models/coupon_update_query.rb +++ b/lib/klaviyo-api-sdk/models/coupon_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object.rb index 1c2ac59..ce68d70 100644 --- a/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object_attributes.rb index e142ee3..d40b239 100644 --- a/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/coupon_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb index da280ac..b4a049e 100644 --- a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +++ b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb index 94ed6b9..aeb30f6 100644 --- a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes.rb index d122d0c..13eb6af 100644 --- a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes_profile.rb b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes_profile.rb index e3ddfb1..54816da 100644 --- a/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes_profile.rb +++ b/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes_profile.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb b/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb index 36021e5..874a4fa 100644 --- a/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object.rb b/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object.rb index 18fde44..5562a8e 100644 --- a/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object_attributes.rb index 86d602d..b5ed390 100644 --- a/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/device_metadata.rb b/lib/klaviyo-api-sdk/models/device_metadata.rb index 8d8b0a6..1e8e422 100644 --- a/lib/klaviyo-api-sdk/models/device_metadata.rb +++ b/lib/klaviyo-api-sdk/models/device_metadata.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/email_content_sub_object.rb b/lib/klaviyo-api-sdk/models/email_content_sub_object.rb index e769e8b..da48fb8 100644 --- a/lib/klaviyo-api-sdk/models/email_content_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/email_content_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/email_send_options_sub_object.rb b/lib/klaviyo-api-sdk/models/email_send_options_sub_object.rb index 944393a..e9a30bd 100644 --- a/lib/klaviyo-api-sdk/models/email_send_options_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/email_send_options_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb b/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb new file mode 100644 index 0000000..bf38c8e --- /dev/null +++ b/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb @@ -0,0 +1,224 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2023-10-15 +Contact: developers@klaviyo.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.2.1 + +=end + +require 'date' +require 'time' + +module KlaviyoAPI + class EmailSubscriptionParameters + attr_accessor :marketing + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'marketing' => :'marketing' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'marketing' => :'MarketingSubscriptionParameters' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `KlaviyoAPI::EmailSubscriptionParameters` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `KlaviyoAPI::EmailSubscriptionParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'marketing') + self.marketing = attributes[:'marketing'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @marketing.nil? + invalid_properties.push('invalid value for "marketing", marketing cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @marketing.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + marketing == o.marketing + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [marketing].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = KlaviyoAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/klaviyo-api-sdk/models/email_tracking_options_sub_object.rb b/lib/klaviyo-api-sdk/models/email_tracking_options_sub_object.rb index f489a38..5c74f60 100644 --- a/lib/klaviyo-api-sdk/models/email_tracking_options_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/email_tracking_options_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/event_create_query_v2.rb b/lib/klaviyo-api-sdk/models/event_create_query_v2.rb index 0bfc729..ff04026 100644 --- a/lib/klaviyo-api-sdk/models/event_create_query_v2.rb +++ b/lib/klaviyo-api-sdk/models/event_create_query_v2.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object.rb b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object.rb index 95c9e07..78c631d 100644 --- a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes.rb index 0fbbcdf..8eb03b5 100644 --- a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_metric.rb b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_metric.rb index cb26521..dcb9f6c 100644 --- a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_metric.rb +++ b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_metric.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_profile.rb b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_profile.rb index 76a223f..6235ddc 100644 --- a/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_profile.rb +++ b/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_profile.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/event_enum.rb b/lib/klaviyo-api-sdk/models/event_enum.rb index 772a002..371450e 100644 --- a/lib/klaviyo-api-sdk/models/event_enum.rb +++ b/lib/klaviyo-api-sdk/models/event_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/flow_enum.rb b/lib/klaviyo-api-sdk/models/flow_enum.rb index 52ce299..0e704d4 100644 --- a/lib/klaviyo-api-sdk/models/flow_enum.rb +++ b/lib/klaviyo-api-sdk/models/flow_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/flow_update_query.rb b/lib/klaviyo-api-sdk/models/flow_update_query.rb index ec52a94..74cfcb3 100644 --- a/lib/klaviyo-api-sdk/models/flow_update_query.rb +++ b/lib/klaviyo-api-sdk/models/flow_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb index 0a2d026..5ad7922 100644 --- a/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/flow_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/flow_update_query_resource_object_attributes.rb index 139f4b8..0e8cd53 100644 --- a/lib/klaviyo-api-sdk/models/flow_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/flow_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/get_accounts4_xx_response.rb b/lib/klaviyo-api-sdk/models/get_accounts4_xx_response.rb index 2365813..478f0a5 100644 --- a/lib/klaviyo-api-sdk/models/get_accounts4_xx_response.rb +++ b/lib/klaviyo-api-sdk/models/get_accounts4_xx_response.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner.rb b/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner.rb index d017c7c..5856f13 100644 --- a/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner.rb +++ b/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner_source.rb b/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner_source.rb index 4493abe..aaeddbb 100644 --- a/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner_source.rb +++ b/lib/klaviyo-api-sdk/models/get_accounts4_xx_response_errors_inner_source.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/image_create_query.rb b/lib/klaviyo-api-sdk/models/image_create_query.rb index f520281..a429595 100644 --- a/lib/klaviyo-api-sdk/models/image_create_query.rb +++ b/lib/klaviyo-api-sdk/models/image_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/image_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/image_create_query_resource_object.rb index 4f0f327..5970f97 100644 --- a/lib/klaviyo-api-sdk/models/image_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/image_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/image_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/image_create_query_resource_object_attributes.rb index b4768be..493eb9a 100644 --- a/lib/klaviyo-api-sdk/models/image_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/image_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/image_enum.rb b/lib/klaviyo-api-sdk/models/image_enum.rb index 42d998a..eb03e1d 100644 --- a/lib/klaviyo-api-sdk/models/image_enum.rb +++ b/lib/klaviyo-api-sdk/models/image_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/image_partial_update_query.rb b/lib/klaviyo-api-sdk/models/image_partial_update_query.rb index d94ed7a..3f35734 100644 --- a/lib/klaviyo-api-sdk/models/image_partial_update_query.rb +++ b/lib/klaviyo-api-sdk/models/image_partial_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object.rb index 99ded9e..925ca93 100644 --- a/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object_attributes.rb index 5081364..e834287 100644 --- a/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/image_partial_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_create_query.rb b/lib/klaviyo-api-sdk/models/list_create_query.rb index 1a37f15..1fd482a 100644 --- a/lib/klaviyo-api-sdk/models/list_create_query.rb +++ b/lib/klaviyo-api-sdk/models/list_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/list_create_query_resource_object.rb index 91547a6..ce492f8 100644 --- a/lib/klaviyo-api-sdk/models/list_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/list_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/list_create_query_resource_object_attributes.rb index 6814897..684746c 100644 --- a/lib/klaviyo-api-sdk/models/list_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/list_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_enum.rb b/lib/klaviyo-api-sdk/models/list_enum.rb index 68e8d26..0580d15 100644 --- a/lib/klaviyo-api-sdk/models/list_enum.rb +++ b/lib/klaviyo-api-sdk/models/list_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_members_add_query.rb b/lib/klaviyo-api-sdk/models/list_members_add_query.rb index 7fc364b..8aaaeb5 100644 --- a/lib/klaviyo-api-sdk/models/list_members_add_query.rb +++ b/lib/klaviyo-api-sdk/models/list_members_add_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb b/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb index 1324678..6781c15 100644 --- a/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_members_delete_query.rb b/lib/klaviyo-api-sdk/models/list_members_delete_query.rb index 24bad94..c1aa88b 100644 --- a/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +++ b/lib/klaviyo-api-sdk/models/list_members_delete_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_partial_update_query.rb b/lib/klaviyo-api-sdk/models/list_partial_update_query.rb index 35d61a8..8ed0630 100644 --- a/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +++ b/lib/klaviyo-api-sdk/models/list_partial_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb index 35174bd..76a4af8 100644 --- a/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/marketing_subscription_parameters.rb b/lib/klaviyo-api-sdk/models/marketing_subscription_parameters.rb new file mode 100644 index 0000000..4e4473a --- /dev/null +++ b/lib/klaviyo-api-sdk/models/marketing_subscription_parameters.rb @@ -0,0 +1,259 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2023-10-15 +Contact: developers@klaviyo.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.2.1 + +=end + +require 'date' +require 'time' + +module KlaviyoAPI + class MarketingSubscriptionParameters + # The Consent status to subscribe to for the \"Marketing\" type. Currently supports \"SUBSCRIBED\". + attr_accessor :consent + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'consent' => :'consent' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'consent' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `KlaviyoAPI::MarketingSubscriptionParameters` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `KlaviyoAPI::MarketingSubscriptionParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'consent') + self.consent = attributes[:'consent'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @consent.nil? + invalid_properties.push('invalid value for "consent", consent cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @consent.nil? + consent_validator = EnumAttributeValidator.new('String', ["SUBSCRIBED"]) + return false unless consent_validator.valid?(@consent) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] consent Object to be assigned + def consent=(consent) + validator = EnumAttributeValidator.new('String', ["SUBSCRIBED"]) + unless validator.valid?(consent) + fail ArgumentError, "invalid value for \"consent\", must be one of #{validator.allowable_values}." + end + @consent = consent + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + consent == o.consent + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [consent].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = KlaviyoAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb b/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb index 56871f6..50ce4a1 100644 --- a/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb +++ b/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb b/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb index 1efd54c..d82f754 100644 --- a/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +++ b/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object.rb b/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object.rb index 0ca5d37..90558a0 100644 --- a/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb index ad5b6ec..56024ef 100644 --- a/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/metric_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/metric_create_query_resource_object.rb index c98150d..c0fbea6 100644 --- a/lib/klaviyo-api-sdk/models/metric_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/metric_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/metric_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/metric_create_query_resource_object_attributes.rb index 3e4cc4f..bb857da 100644 --- a/lib/klaviyo-api-sdk/models/metric_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/metric_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/metric_enum.rb b/lib/klaviyo-api-sdk/models/metric_enum.rb index 2c41f3f..fba3f43 100644 --- a/lib/klaviyo-api-sdk/models/metric_enum.rb +++ b/lib/klaviyo-api-sdk/models/metric_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object.rb index 54ae1cd..dcd5b4f 100644 --- a/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object_attributes.rb index ca75281..46fceb4 100644 --- a/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb b/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb index a2372fa..f8f1111 100644 --- a/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +++ b/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_create_query.rb b/lib/klaviyo-api-sdk/models/profile_create_query.rb index 402c752..3573880 100644 --- a/lib/klaviyo-api-sdk/models/profile_create_query.rb +++ b/lib/klaviyo-api-sdk/models/profile_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb index 0a815f7..ad193ce 100644 --- a/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_create_query_resource_object_attributes.rb index cea84b9..f731195 100644 --- a/lib/klaviyo-api-sdk/models/profile_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_enum.rb b/lib/klaviyo-api-sdk/models/profile_enum.rb index bd5f086..a5545de 100644 --- a/lib/klaviyo-api-sdk/models/profile_enum.rb +++ b/lib/klaviyo-api-sdk/models/profile_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object.rb index de6ff33..089e65d 100644 --- a/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object_attributes.rb index 57fc99e..801f398 100644 --- a/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_location.rb b/lib/klaviyo-api-sdk/models/profile_location.rb index d562940..61021c2 100644 --- a/lib/klaviyo-api-sdk/models/profile_location.rb +++ b/lib/klaviyo-api-sdk/models/profile_location.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,9 @@ class ProfileLocation # Time zone name. We recommend using time zones from the IANA Time Zone Database. attr_accessor :timezone + # IP Address + attr_accessor :ip + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -51,7 +54,8 @@ def self.attribute_map :'longitude' => :'longitude', :'region' => :'region', :'zip' => :'zip', - :'timezone' => :'timezone' + :'timezone' => :'timezone', + :'ip' => :'ip' } end @@ -71,7 +75,8 @@ def self.openapi_types :'longitude' => :'ProfileLocationLongitude', :'region' => :'String', :'zip' => :'String', - :'timezone' => :'String' + :'timezone' => :'String', + :'ip' => :'String' } end @@ -131,6 +136,10 @@ def initialize(attributes = {}) if attributes.key?(:'timezone') self.timezone = attributes[:'timezone'] end + + if attributes.key?(:'ip') + self.ip = attributes[:'ip'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -159,7 +168,8 @@ def ==(o) longitude == o.longitude && region == o.region && zip == o.zip && - timezone == o.timezone + timezone == o.timezone && + ip == o.ip end # @see the `==` method @@ -171,7 +181,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [address1, address2, city, country, latitude, longitude, region, zip, timezone].hash + [address1, address2, city, country, latitude, longitude, region, zip, timezone, ip].hash end # Builds the object from hash diff --git a/lib/klaviyo-api-sdk/models/profile_location_latitude.rb b/lib/klaviyo-api-sdk/models/profile_location_latitude.rb index 576bf9e..553d5b0 100644 --- a/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +++ b/lib/klaviyo-api-sdk/models/profile_location_latitude.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_location_longitude.rb b/lib/klaviyo-api-sdk/models/profile_location_longitude.rb index 4406e2b..bf6fe13 100644 --- a/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +++ b/lib/klaviyo-api-sdk/models/profile_location_longitude.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_merge_enum.rb b/lib/klaviyo-api-sdk/models/profile_merge_enum.rb index fca84d1..d511e1c 100644 --- a/lib/klaviyo-api-sdk/models/profile_merge_enum.rb +++ b/lib/klaviyo-api-sdk/models/profile_merge_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_merge_query.rb b/lib/klaviyo-api-sdk/models/profile_merge_query.rb index 6290955..6608784 100644 --- a/lib/klaviyo-api-sdk/models/profile_merge_query.rb +++ b/lib/klaviyo-api-sdk/models/profile_merge_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object.rb index 52aab44..1f5dc16 100644 --- a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -91,6 +91,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "id", id cannot be nil.') end + if @relationships.nil? + invalid_properties.push('invalid value for "relationships", relationships cannot be nil.') + end + invalid_properties end @@ -99,6 +103,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @id.nil? + return false if @relationships.nil? true end diff --git a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships.rb index c06027e..0ad75b2 100644 --- a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,12 +66,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @profiles.nil? + invalid_properties.push('invalid value for "profiles", profiles cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @profiles.nil? true end diff --git a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles.rb b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles.rb index 876cd68..c61a8a1 100644 --- a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles.rb +++ b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles_data_inner.rb b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles_data_inner.rb index fc126e2..44edde7 100644 --- a/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/profile_merge_query_resource_object_relationships_profiles_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_meta.rb b/lib/klaviyo-api-sdk/models/profile_meta.rb index 84d41e1..88a9932 100644 --- a/lib/klaviyo-api-sdk/models/profile_meta.rb +++ b/lib/klaviyo-api-sdk/models/profile_meta.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_meta_patch_properties.rb b/lib/klaviyo-api-sdk/models/profile_meta_patch_properties.rb index aaea5d3..1b1b5f1 100644 --- a/lib/klaviyo-api-sdk/models/profile_meta_patch_properties.rb +++ b/lib/klaviyo-api-sdk/models/profile_meta_patch_properties.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_meta_patch_properties_unset.rb b/lib/klaviyo-api-sdk/models/profile_meta_patch_properties_unset.rb index ce2def0..c301988 100644 --- a/lib/klaviyo-api-sdk/models/profile_meta_patch_properties_unset.rb +++ b/lib/klaviyo-api-sdk/models/profile_meta_patch_properties_unset.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb b/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb index 5b45aea..2d36b22 100644 --- a/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +++ b/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb index 1aa6499..98b7588 100644 --- a/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object_attributes.rb index 84d2faf..90901c1 100644 --- a/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb b/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb index fd7a5dd..f13ccfb 100644 --- a/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_subscription_bulk_delete_job_enum.rb b/lib/klaviyo-api-sdk/models/profile_subscription_bulk_delete_job_enum.rb index 6b9a04f..41dd6bb 100644 --- a/lib/klaviyo-api-sdk/models/profile_subscription_bulk_delete_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/profile_subscription_bulk_delete_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object.rb index 683754f..4c0f5b5 100644 --- a/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object_attributes.rb index bd73e37..4e12985 100644 --- a/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object.rb index a950fe4..c8369b5 100644 --- a/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object_attributes.rb index 9c87709..1f9b9e3 100644 --- a/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb b/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb index f9712da..e666d06 100644 --- a/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_suppression_bulk_delete_job_enum.rb b/lib/klaviyo-api-sdk/models/profile_suppression_bulk_delete_job_enum.rb index 8c85010..9e7b428 100644 --- a/lib/klaviyo-api-sdk/models/profile_suppression_bulk_delete_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/profile_suppression_bulk_delete_job_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object.rb index ad725c5..a74470f 100644 --- a/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object_attributes.rb index 2bcd9f8..c4c0f57 100644 --- a/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object.rb index b6c593a..bbd5090 100644 --- a/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object_attributes.rb index 6a443c6..d2fe3a2 100644 --- a/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object.rb index 7e1caee..5d3cbfa 100644 --- a/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object_attributes.rb index ce99e54..e7f0623 100644 --- a/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -27,6 +27,9 @@ class ProfileUpsertQueryResourceObjectAttributes # Id that can be used to identify a profile when other identifiers are not available attr_accessor :anonymous_id + # Also known as the `exchange_id`, this is an encrypted identifier used for identifying a profile by Klaviyo's web tracking. You can use this field as a filter when retrieving profiles via the Get Profiles endpoint. + attr_accessor :_kx + # Individual's first name attr_accessor :first_name @@ -56,6 +59,7 @@ def self.attribute_map :'phone_number' => :'phone_number', :'external_id' => :'external_id', :'anonymous_id' => :'anonymous_id', + :'_kx' => :'_kx', :'first_name' => :'first_name', :'last_name' => :'last_name', :'organization' => :'organization', @@ -79,6 +83,7 @@ def self.openapi_types :'phone_number' => :'String', :'external_id' => :'String', :'anonymous_id' => :'String', + :'_kx' => :'String', :'first_name' => :'String', :'last_name' => :'String', :'organization' => :'String', @@ -127,6 +132,10 @@ def initialize(attributes = {}) self.anonymous_id = attributes[:'anonymous_id'] end + if attributes.key?(:'_kx') + self._kx = attributes[:'_kx'] + end + if attributes.key?(:'first_name') self.first_name = attributes[:'first_name'] end @@ -182,6 +191,7 @@ def ==(o) phone_number == o.phone_number && external_id == o.external_id && anonymous_id == o.anonymous_id && + _kx == o._kx && first_name == o.first_name && last_name == o.last_name && organization == o.organization && @@ -201,7 +211,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [email, phone_number, external_id, anonymous_id, first_name, last_name, organization, title, image, location, properties, meta].hash + [email, phone_number, external_id, anonymous_id, _kx, first_name, last_name, organization, title, image, location, properties, meta].hash end # Builds the object from hash diff --git a/lib/klaviyo-api-sdk/models/push_token_create_query.rb b/lib/klaviyo-api-sdk/models/push_token_create_query.rb index 7a232ed..9303a86 100644 --- a/lib/klaviyo-api-sdk/models/push_token_create_query.rb +++ b/lib/klaviyo-api-sdk/models/push_token_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object.rb index 2b40a77..15de352 100644 --- a/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes.rb index e331534..d638c2f 100644 --- a/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes_profile.rb b/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes_profile.rb index 34afbbd..249fbe6 100644 --- a/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes_profile.rb +++ b/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes_profile.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/push_token_enum.rb b/lib/klaviyo-api-sdk/models/push_token_enum.rb index 6cbf600..86c764f 100644 --- a/lib/klaviyo-api-sdk/models/push_token_enum.rb +++ b/lib/klaviyo-api-sdk/models/push_token_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/render_options_sub_object.rb b/lib/klaviyo-api-sdk/models/render_options_sub_object.rb index 92be0b9..aadc113 100644 --- a/lib/klaviyo-api-sdk/models/render_options_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/render_options_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/segment_enum.rb b/lib/klaviyo-api-sdk/models/segment_enum.rb index 326b429..b36f7a0 100644 --- a/lib/klaviyo-api-sdk/models/segment_enum.rb +++ b/lib/klaviyo-api-sdk/models/segment_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb b/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb index 28541c0..7b4cee2 100644 --- a/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +++ b/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb index 3d30ce5..5760dc5 100644 --- a/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object_attributes.rb index 7a7cfb5..61e18ee 100644 --- a/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb b/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb index cc6149c..1781a05 100644 --- a/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query.rb b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query.rb index c3cfe85..274d82f 100644 --- a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query.rb +++ b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object.rb index 938efc8..7b04c5f 100644 --- a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,6 +90,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end + if @relationships.nil? + invalid_properties.push('invalid value for "relationships", relationships cannot be nil.') + end + invalid_properties end @@ -98,6 +102,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @attributes.nil? + return false if @relationships.nil? true end diff --git a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes.rb index 208da49..0f2395c 100644 --- a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes_profile.rb b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes_profile.rb index 7f1f160..4e5abb0 100644 --- a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes_profile.rb +++ b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes_profile.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships.rb index aa0380c..888ce31 100644 --- a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,12 +66,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @variant.nil? + invalid_properties.push('invalid value for "variant", variant cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @variant.nil? true end diff --git a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant.rb b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant.rb index 2fb8a38..194951a 100644 --- a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant.rb +++ b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant_data.rb b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant_data.rb index d81ade8..96ccdcc 100644 --- a/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant_data.rb +++ b/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant_data.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/sms_content_sub_object_create.rb b/lib/klaviyo-api-sdk/models/sms_content_sub_object_create.rb index 64e023d..26b5ffc 100644 --- a/lib/klaviyo-api-sdk/models/sms_content_sub_object_create.rb +++ b/lib/klaviyo-api-sdk/models/sms_content_sub_object_create.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/sms_send_options_sub_object.rb b/lib/klaviyo-api-sdk/models/sms_send_options_sub_object.rb index 9bf80bc..eb3a4e8 100644 --- a/lib/klaviyo-api-sdk/models/sms_send_options_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/sms_send_options_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb b/lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb new file mode 100644 index 0000000..0c881ee --- /dev/null +++ b/lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb @@ -0,0 +1,224 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2023-10-15 +Contact: developers@klaviyo.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 6.2.1 + +=end + +require 'date' +require 'time' + +module KlaviyoAPI + class SMSSubscriptionParameters + attr_accessor :marketing + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'marketing' => :'marketing' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'marketing' => :'MarketingSubscriptionParameters' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `KlaviyoAPI::SMSSubscriptionParameters` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `KlaviyoAPI::SMSSubscriptionParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'marketing') + self.marketing = attributes[:'marketing'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @marketing.nil? + invalid_properties.push('invalid value for "marketing", marketing cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @marketing.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + marketing == o.marketing + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [marketing].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = KlaviyoAPI.const_get(type) + klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/klaviyo-api-sdk/models/sms_tracking_options_sub_object.rb b/lib/klaviyo-api-sdk/models/sms_tracking_options_sub_object.rb index 4da5e40..bee9749 100644 --- a/lib/klaviyo-api-sdk/models/sms_tracking_options_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/sms_tracking_options_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/static_schedule_options.rb b/lib/klaviyo-api-sdk/models/static_schedule_options.rb index de7d129..fd7245c 100644 --- a/lib/klaviyo-api-sdk/models/static_schedule_options.rb +++ b/lib/klaviyo-api-sdk/models/static_schedule_options.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/sto_schedule_options.rb b/lib/klaviyo-api-sdk/models/sto_schedule_options.rb index a9e11ac..0ac6b4b 100644 --- a/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +++ b/lib/klaviyo-api-sdk/models/sto_schedule_options.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_channels.rb b/lib/klaviyo-api-sdk/models/subscription_channels.rb index 6fef415..421bea5 100644 --- a/lib/klaviyo-api-sdk/models/subscription_channels.rb +++ b/lib/klaviyo-api-sdk/models/subscription_channels.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -15,34 +15,10 @@ module KlaviyoAPI class SubscriptionChannels - # The communication types to subscribe to on the \"EMAIL\" Channel. Currently supports \"MARKETING\". attr_accessor :email - # The communication types to subscribe to on the \"SMS\" Channel. Currently supports \"MARKETING\". attr_accessor :sms - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -59,8 +35,8 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'email' => :'Array', - :'sms' => :'Array' + :'email' => :'EmailSubscriptionParameters', + :'sms' => :'SMSSubscriptionParameters' } end @@ -86,15 +62,11 @@ def initialize(attributes = {}) } if attributes.key?(:'email') - if (value = attributes[:'email']).is_a?(Array) - self.email = value - end + self.email = attributes[:'email'] end if attributes.key?(:'sms') - if (value = attributes[:'sms']).is_a?(Array) - self.sms = value - end + self.sms = attributes[:'sms'] end end diff --git a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb index a0936fd..51d4ba3 100644 --- a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb index b3fec2a..01ee821 100644 --- a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,6 +90,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end + if @relationships.nil? + invalid_properties.push('invalid value for "relationships", relationships cannot be nil.') + end + invalid_properties end @@ -98,6 +102,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @attributes.nil? + return false if @relationships.nil? true end diff --git a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb index d4a8895..109e9cd 100644 --- a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes_profiles.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes_profiles.rb index 97e1f5a..7252dd4 100644 --- a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes_profiles.rb +++ b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes_profiles.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships.rb index 30d76bc..19ce56d 100644 --- a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,12 +66,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @list.nil? + invalid_properties.push('invalid value for "list", list cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @list.nil? true end diff --git a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list.rb index 1fb354b..78de35c 100644 --- a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list.rb +++ b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list_data.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list_data.rb index 2786878..b2d63b1 100644 --- a/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list_data.rb +++ b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list_data.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query.rb b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query.rb index 3a8be6a..20dcfc5 100644 --- a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object.rb index 1339633..efaf37f 100644 --- a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes.rb index 297afd4..cf9c356 100644 --- a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes_profiles.rb b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes_profiles.rb index 480a5cb..3316af2 100644 --- a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes_profiles.rb +++ b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes_profiles.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships.rb index 2d1ed16..77a6c6f 100644 --- a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list.rb b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list.rb index b687260..0e3a9fe 100644 --- a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list.rb +++ b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list_data.rb b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list_data.rb index d6f9921..17ce9f4 100644 --- a/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list_data.rb +++ b/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_relationships_list_data.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb index 47b35b7..def635f 100644 --- a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb index 9b11e87..4b89770 100644 --- a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes.rb index 1a22a76..4a2ea4f 100644 --- a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes_profiles.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes_profiles.rb index 21b9b4f..b850c32 100644 --- a/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes_profiles.rb +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes_profiles.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query.rb index ca7f28b..9c1d393 100644 --- a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object.rb index 5a6deb4..976a61b 100644 --- a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes.rb index a7a94c6..6082d3c 100644 --- a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes_profiles.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes_profiles.rb index 620308f..8f6a21e 100644 --- a/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes_profiles.rb +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes_profiles.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_campaign_op.rb b/lib/klaviyo-api-sdk/models/tag_campaign_op.rb index babf176..7950f3e 100644 --- a/lib/klaviyo-api-sdk/models/tag_campaign_op.rb +++ b/lib/klaviyo-api-sdk/models/tag_campaign_op.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_campaign_op_data_inner.rb b/lib/klaviyo-api-sdk/models/tag_campaign_op_data_inner.rb index 9cda250..d263a62 100644 --- a/lib/klaviyo-api-sdk/models/tag_campaign_op_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/tag_campaign_op_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_create_query.rb b/lib/klaviyo-api-sdk/models/tag_create_query.rb index f27fb9e..ad1f49a 100644 --- a/lib/klaviyo-api-sdk/models/tag_create_query.rb +++ b/lib/klaviyo-api-sdk/models/tag_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object.rb index 73b8888..6c490cb 100644 --- a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_attributes.rb index 0200686..8a64fe2 100644 --- a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships.rb index f926bee..b7f01c7 100644 --- a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group.rb b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group.rb index 9b81071..9f6c7c6 100644 --- a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group.rb +++ b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group_data.rb b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group_data.rb index 58819c6..2bdadb2 100644 --- a/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group_data.rb +++ b/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group_data.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_enum.rb b/lib/klaviyo-api-sdk/models/tag_enum.rb index 340b892..e463da8 100644 --- a/lib/klaviyo-api-sdk/models/tag_enum.rb +++ b/lib/klaviyo-api-sdk/models/tag_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_flow_op.rb b/lib/klaviyo-api-sdk/models/tag_flow_op.rb index ca0dabe..f99122b 100644 --- a/lib/klaviyo-api-sdk/models/tag_flow_op.rb +++ b/lib/klaviyo-api-sdk/models/tag_flow_op.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_flow_op_data_inner.rb b/lib/klaviyo-api-sdk/models/tag_flow_op_data_inner.rb index 8d457fe..1b7b14d 100644 --- a/lib/klaviyo-api-sdk/models/tag_flow_op_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/tag_flow_op_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_group_create_query.rb b/lib/klaviyo-api-sdk/models/tag_group_create_query.rb index 0685f03..9b553a2 100644 --- a/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +++ b/lib/klaviyo-api-sdk/models/tag_group_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb index 7bfb56f..79de140 100644 --- a/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object_attributes.rb index ae271cc..269db4e 100644 --- a/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_group_enum.rb b/lib/klaviyo-api-sdk/models/tag_group_enum.rb index 25de676..f5aad3a 100644 --- a/lib/klaviyo-api-sdk/models/tag_group_enum.rb +++ b/lib/klaviyo-api-sdk/models/tag_group_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_group_update_query.rb b/lib/klaviyo-api-sdk/models/tag_group_update_query.rb index 0454fa0..62c8af2 100644 --- a/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +++ b/lib/klaviyo-api-sdk/models/tag_group_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb index a5e65e5..91552a3 100644 --- a/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object_attributes.rb index 626d657..63bc987 100644 --- a/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_list_op.rb b/lib/klaviyo-api-sdk/models/tag_list_op.rb index 6d35a8e..fe9f87b 100644 --- a/lib/klaviyo-api-sdk/models/tag_list_op.rb +++ b/lib/klaviyo-api-sdk/models/tag_list_op.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb b/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb index 859b39f..9905d81 100644 --- a/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_segment_op.rb b/lib/klaviyo-api-sdk/models/tag_segment_op.rb index 68571eb..d5d9615 100644 --- a/lib/klaviyo-api-sdk/models/tag_segment_op.rb +++ b/lib/klaviyo-api-sdk/models/tag_segment_op.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb b/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb index 3cec12f..4c79e8a 100644 --- a/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_update_query.rb b/lib/klaviyo-api-sdk/models/tag_update_query.rb index 5469c89..5dcb6c5 100644 --- a/lib/klaviyo-api-sdk/models/tag_update_query.rb +++ b/lib/klaviyo-api-sdk/models/tag_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb index d34ab26..f23a40e 100644 --- a/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_clone_query.rb b/lib/klaviyo-api-sdk/models/template_clone_query.rb index 2451fff..1f92d15 100644 --- a/lib/klaviyo-api-sdk/models/template_clone_query.rb +++ b/lib/klaviyo-api-sdk/models/template_clone_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb b/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb index e4c0ee2..2d605a0 100644 --- a/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_clone_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/template_clone_query_resource_object_attributes.rb index b2a7eda..f60d35b 100644 --- a/lib/klaviyo-api-sdk/models/template_clone_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/template_clone_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_create_query.rb b/lib/klaviyo-api-sdk/models/template_create_query.rb index 2c31682..ee1ff34 100644 --- a/lib/klaviyo-api-sdk/models/template_create_query.rb +++ b/lib/klaviyo-api-sdk/models/template_create_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb index 28c961b..af0529b 100644 --- a/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb index 6c41ec8..0b328f7 100644 --- a/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_enum.rb b/lib/klaviyo-api-sdk/models/template_enum.rb index 6ba1e9a..7b1582b 100644 --- a/lib/klaviyo-api-sdk/models/template_enum.rb +++ b/lib/klaviyo-api-sdk/models/template_enum.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_render_query.rb b/lib/klaviyo-api-sdk/models/template_render_query.rb index 732797f..d800e6a 100644 --- a/lib/klaviyo-api-sdk/models/template_render_query.rb +++ b/lib/klaviyo-api-sdk/models/template_render_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb b/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb index 1694772..c2c7a5e 100644 --- a/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_render_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/template_render_query_resource_object_attributes.rb index 8194919..aa33ded 100644 --- a/lib/klaviyo-api-sdk/models/template_render_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/template_render_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_update_query.rb b/lib/klaviyo-api-sdk/models/template_update_query.rb index 40a30e0..6eb4676 100644 --- a/lib/klaviyo-api-sdk/models/template_update_query.rb +++ b/lib/klaviyo-api-sdk/models/template_update_query.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb b/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb index 5657a56..f7f7b13 100644 --- a/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/template_update_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/template_update_query_resource_object_attributes.rb index e37ceb9..f078524 100644 --- a/lib/klaviyo-api-sdk/models/template_update_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/template_update_query_resource_object_attributes.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb b/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb index 4d854e3..ea59d1f 100644 --- a/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +++ b/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb b/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb index 53b0c95..db92022 100644 --- a/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +++ b/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/version.rb b/lib/klaviyo-api-sdk/version.rb index f03f127..d330a8c 100644 --- a/lib/klaviyo-api-sdk/version.rb +++ b/lib/klaviyo-api-sdk/version.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2023-09-15 +The version of the OpenAPI document: 2023-10-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1