diff --git a/CHANGELOG.md b/CHANGELOG.md index c41312a..1b1fb22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,28 @@ 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). +## [7.0.0] - revision 2024-05-15 + +### Added + + - Bulk Create Events API with + - We have added support for creating events in bulk via the `KlaviyoAPI::Event.bulk_create_events` method + - Create multiple events for new and existing profiles and/or update profile properties in a single API call. For more information, see our [Events API overview](https://developers.klaviyo.com/en/reference/events_api_overview). + +### Changed + + - Accounts Api + - `KlaviyoAPI::Accounts.get_accounts` and `KlaviyoAPI::Accounts.get_account` have been updated to return the account's locale, e.g. `en-US`. + + - **Breaking** Subscribe API Synchronous Validation Improved + - To provide better feedback for handling SMS subscriptions, we’ve added improved validation behavior to `KlaviyoAPI::Profiles.subscribe_profiles` method. In prior revisions, such requests may appear as 202s but will fail to update SMS consent. To handle this issue, 400 validation errors are returned for the following cases + 1. If a profile is subscribed to SMS marketing and [age-gating is enabled](https://help.klaviyo.com/hc/en-us/articles/4408311712667) but age_gated_date_of_birth is not provided, or the DOB does not meet the region's requirements. + 2. If the account does not have a sending number in the phone number’s region. + 3. If the phone number is in a region not supported by Klaviyo. + 4. If consented_at is set and the list or global setting is double opt-in. + - Use `KLAVIYO_API_REVISION` as the env var for controlling which Klaviyo API to call, instead of `API_REVISION`. However, `API_REVISION` is a fallback, to avoid making this a breaking change + + ## [6.0.0] - revision 2024-02-15 ### Added: diff --git a/README.md b/README.md index 1ed3483..e25e7f6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Klaviyo Ruby SDK -- SDK version: 6.0.0 -- API revision: 2024-02-15 +- SDK version: 7.0.0 +- API revision: 2024-05-15 ## Helpful Resources -- [API Reference](https://developers.klaviyo.com/en/v2024-02-15/reference) -- [API Guides](https://developers.klaviyo.com/en/v2024-02-15/docs) +- [API Reference](https://developers.klaviyo.com/en/v2024-05-15/reference) +- [API Guides](https://developers.klaviyo.com/en/v2024-05-15/docs) - [Postman Workspace](https://www.postman.com/klaviyo/workspace/klaviyo-developers) ## Design & Approach @@ -94,13 +94,13 @@ gem build klaviyo-api-sdk.gemspec Then install the gem locally: ```shell -gem install ./klaviyo-api-sdk-6.0.0.gem +gem install ./klaviyo-api-sdk-7.0.0.gem ``` Finally add this to the Gemfile: - gem 'klaviyo-api-sdk', '~> 6.0.0' + gem 'klaviyo-api-sdk', '~> 7.0.0' To install directly from rubygems: @@ -464,7 +464,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/v2024-02-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/v2024-05-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. @@ -476,7 +476,7 @@ _**NOTE:**_ ## Accounts -#### [Get Account](https://developers.klaviyo.com/en/v2024-02-15/reference/get_account) +#### [Get Account](https://developers.klaviyo.com/en/v2024-05-15/reference/get_account) ```ruby KlaviyoAPI::Accounts.get_account(id, opts) @@ -486,7 +486,7 @@ KlaviyoAPI::Accounts.get_account(id, opts) -#### [Get Accounts](https://developers.klaviyo.com/en/v2024-02-15/reference/get_accounts) +#### [Get Accounts](https://developers.klaviyo.com/en/v2024-05-15/reference/get_accounts) ```ruby KlaviyoAPI::Accounts.get_accounts(opts) @@ -500,7 +500,7 @@ KlaviyoAPI::Accounts.get_accounts(opts) ## Campaigns -#### [Create Campaign](https://developers.klaviyo.com/en/v2024-02-15/reference/create_campaign) +#### [Create Campaign](https://developers.klaviyo.com/en/v2024-05-15/reference/create_campaign) ```ruby KlaviyoAPI::Campaigns.create_campaign(body) @@ -510,7 +510,7 @@ KlaviyoAPI::Campaigns.create_campaign(body) -#### [Create Campaign Clone](https://developers.klaviyo.com/en/v2024-02-15/reference/create_campaign_clone) +#### [Create Campaign Clone](https://developers.klaviyo.com/en/v2024-05-15/reference/create_campaign_clone) ```ruby KlaviyoAPI::Campaigns.create_campaign_clone(body) @@ -520,7 +520,7 @@ KlaviyoAPI::Campaigns.create_campaign_clone(body) -#### [Assign Campaign Message Template](https://developers.klaviyo.com/en/v2024-02-15/reference/create_campaign_message_assign_template) +#### [Assign Campaign Message Template](https://developers.klaviyo.com/en/v2024-05-15/reference/create_campaign_message_assign_template) ```ruby KlaviyoAPI::Campaigns.create_campaign_message_assign_template(body) @@ -530,7 +530,7 @@ KlaviyoAPI::Campaigns.create_campaign_message_assign_template(body) -#### [Create Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2024-02-15/reference/create_campaign_recipient_estimation_job) +#### [Create Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2024-05-15/reference/create_campaign_recipient_estimation_job) ```ruby KlaviyoAPI::Campaigns.create_campaign_recipient_estimation_job(body) @@ -540,7 +540,7 @@ KlaviyoAPI::Campaigns.create_campaign_recipient_estimation_job(body) -#### [Create Campaign Send Job](https://developers.klaviyo.com/en/v2024-02-15/reference/create_campaign_send_job) +#### [Create Campaign Send Job](https://developers.klaviyo.com/en/v2024-05-15/reference/create_campaign_send_job) ```ruby KlaviyoAPI::Campaigns.create_campaign_send_job(body) @@ -550,7 +550,7 @@ KlaviyoAPI::Campaigns.create_campaign_send_job(body) -#### [Delete Campaign](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_campaign) +#### [Delete Campaign](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_campaign) ```ruby KlaviyoAPI::Campaigns.delete_campaign(id) @@ -560,7 +560,7 @@ KlaviyoAPI::Campaigns.delete_campaign(id) -#### [Get Campaign](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign) +#### [Get Campaign](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign) ```ruby KlaviyoAPI::Campaigns.get_campaign(id, opts) @@ -570,7 +570,7 @@ KlaviyoAPI::Campaigns.get_campaign(id, opts) -#### [Get Campaign Campaign Messages](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_campaign_messages) +#### [Get Campaign Campaign Messages](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_campaign_messages) ```ruby KlaviyoAPI::Campaigns.get_campaign_campaign_messages(id, opts) @@ -580,7 +580,7 @@ KlaviyoAPI::Campaigns.get_campaign_campaign_messages(id, opts) -#### [Get Campaign Message](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_message) +#### [Get Campaign Message](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_message) ```ruby KlaviyoAPI::Campaigns.get_campaign_message(id, opts) @@ -590,7 +590,7 @@ KlaviyoAPI::Campaigns.get_campaign_message(id, opts) -#### [Get Campaign Message Campaign](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_message_campaign) +#### [Get Campaign Message Campaign](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_message_campaign) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_campaign(id, opts) @@ -600,7 +600,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_campaign(id, opts) -#### [Get Campaign Message Relationships Campaign](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_message_relationships_campaign) +#### [Get Campaign Message Relationships Campaign](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_message_relationships_campaign) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_relationships_campaign(id) @@ -610,7 +610,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_relationships_campaign(id) -#### [Get Campaign Message Relationships Template](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_message_relationships_template) +#### [Get Campaign Message Relationships Template](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_message_relationships_template) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_relationships_template(id) @@ -620,7 +620,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_relationships_template(id) -#### [Get Campaign Message Template](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_message_template) +#### [Get Campaign Message Template](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_message_template) ```ruby KlaviyoAPI::Campaigns.get_campaign_message_template(id, opts) @@ -630,7 +630,7 @@ KlaviyoAPI::Campaigns.get_campaign_message_template(id, opts) -#### [Get Campaign Recipient Estimation](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_recipient_estimation) +#### [Get Campaign Recipient Estimation](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_recipient_estimation) ```ruby KlaviyoAPI::Campaigns.get_campaign_recipient_estimation(id, opts) @@ -640,7 +640,7 @@ KlaviyoAPI::Campaigns.get_campaign_recipient_estimation(id, opts) -#### [Get Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_recipient_estimation_job) +#### [Get Campaign Recipient Estimation Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_recipient_estimation_job) ```ruby KlaviyoAPI::Campaigns.get_campaign_recipient_estimation_job(id, opts) @@ -650,7 +650,7 @@ KlaviyoAPI::Campaigns.get_campaign_recipient_estimation_job(id, opts) -#### [Get Campaign Relationships Campaign Messages](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_relationships_campaign_messages) +#### [Get Campaign Relationships Campaign Messages](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_relationships_campaign_messages) ```ruby KlaviyoAPI::Campaigns.get_campaign_relationships_campaign_messages(id) @@ -660,7 +660,7 @@ KlaviyoAPI::Campaigns.get_campaign_relationships_campaign_messages(id) -#### [Get Campaign Relationships Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_relationships_tags) +#### [Get Campaign Relationships Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_relationships_tags) ```ruby KlaviyoAPI::Campaigns.get_campaign_relationships_tags(id) @@ -670,7 +670,7 @@ KlaviyoAPI::Campaigns.get_campaign_relationships_tags(id) -#### [Get Campaign Send Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_send_job) +#### [Get Campaign Send Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_send_job) ```ruby KlaviyoAPI::Campaigns.get_campaign_send_job(id, opts) @@ -680,7 +680,7 @@ KlaviyoAPI::Campaigns.get_campaign_send_job(id, opts) -#### [Get Campaign Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaign_tags) +#### [Get Campaign Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaign_tags) ```ruby KlaviyoAPI::Campaigns.get_campaign_tags(id, opts) @@ -690,7 +690,7 @@ KlaviyoAPI::Campaigns.get_campaign_tags(id, opts) -#### [Get Campaigns](https://developers.klaviyo.com/en/v2024-02-15/reference/get_campaigns) +#### [Get Campaigns](https://developers.klaviyo.com/en/v2024-05-15/reference/get_campaigns) ```ruby KlaviyoAPI::Campaigns.get_campaigns(filter, opts) @@ -700,7 +700,7 @@ KlaviyoAPI::Campaigns.get_campaigns(filter, opts) -#### [Update Campaign](https://developers.klaviyo.com/en/v2024-02-15/reference/update_campaign) +#### [Update Campaign](https://developers.klaviyo.com/en/v2024-05-15/reference/update_campaign) ```ruby KlaviyoAPI::Campaigns.update_campaign(id, body) @@ -710,7 +710,7 @@ KlaviyoAPI::Campaigns.update_campaign(id, body) -#### [Update Campaign Message](https://developers.klaviyo.com/en/v2024-02-15/reference/update_campaign_message) +#### [Update Campaign Message](https://developers.klaviyo.com/en/v2024-05-15/reference/update_campaign_message) ```ruby KlaviyoAPI::Campaigns.update_campaign_message(id, body) @@ -720,7 +720,7 @@ KlaviyoAPI::Campaigns.update_campaign_message(id, body) -#### [Update Campaign Send Job](https://developers.klaviyo.com/en/v2024-02-15/reference/update_campaign_send_job) +#### [Update Campaign Send Job](https://developers.klaviyo.com/en/v2024-05-15/reference/update_campaign_send_job) ```ruby KlaviyoAPI::Campaigns.update_campaign_send_job(id, body) @@ -734,7 +734,7 @@ KlaviyoAPI::Campaigns.update_campaign_send_job(id, body) ## Catalogs -#### [Create Back In Stock Subscription](https://developers.klaviyo.com/en/v2024-02-15/reference/create_back_in_stock_subscription) +#### [Create Back In Stock Subscription](https://developers.klaviyo.com/en/v2024-05-15/reference/create_back_in_stock_subscription) ```ruby KlaviyoAPI::Catalogs.create_back_in_stock_subscription(body) @@ -744,7 +744,7 @@ KlaviyoAPI::Catalogs.create_back_in_stock_subscription(body) -#### [Create Catalog Category](https://developers.klaviyo.com/en/v2024-02-15/reference/create_catalog_category) +#### [Create Catalog Category](https://developers.klaviyo.com/en/v2024-05-15/reference/create_catalog_category) ```ruby KlaviyoAPI::Catalogs.create_catalog_category(body) @@ -754,7 +754,7 @@ KlaviyoAPI::Catalogs.create_catalog_category(body) -#### [Create Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-02-15/reference/create_catalog_category_relationships_items) +#### [Create Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-05-15/reference/create_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.create_catalog_category_relationships_items(id, body) @@ -764,7 +764,7 @@ KlaviyoAPI::Catalogs.create_catalog_category_relationships_items(id, body) -#### [Create Catalog Item](https://developers.klaviyo.com/en/v2024-02-15/reference/create_catalog_item) +#### [Create Catalog Item](https://developers.klaviyo.com/en/v2024-05-15/reference/create_catalog_item) ```ruby KlaviyoAPI::Catalogs.create_catalog_item(body) @@ -774,7 +774,7 @@ KlaviyoAPI::Catalogs.create_catalog_item(body) -#### [Create Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-02-15/reference/create_catalog_item_relationships_categories) +#### [Create Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-05-15/reference/create_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.create_catalog_item_relationships_categories(id, body) @@ -784,7 +784,7 @@ KlaviyoAPI::Catalogs.create_catalog_item_relationships_categories(id, body) -#### [Create Catalog Variant](https://developers.klaviyo.com/en/v2024-02-15/reference/create_catalog_variant) +#### [Create Catalog Variant](https://developers.klaviyo.com/en/v2024-05-15/reference/create_catalog_variant) ```ruby KlaviyoAPI::Catalogs.create_catalog_variant(body) @@ -794,7 +794,7 @@ KlaviyoAPI::Catalogs.create_catalog_variant(body) -#### [Delete Catalog Category](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_catalog_category) +#### [Delete Catalog Category](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_catalog_category) ```ruby KlaviyoAPI::Catalogs.delete_catalog_category(id) @@ -804,7 +804,7 @@ KlaviyoAPI::Catalogs.delete_catalog_category(id) -#### [Delete Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_catalog_category_relationships_items) +#### [Delete Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.delete_catalog_category_relationships_items(id, body) @@ -814,7 +814,7 @@ KlaviyoAPI::Catalogs.delete_catalog_category_relationships_items(id, body) -#### [Delete Catalog Item](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_catalog_item) +#### [Delete Catalog Item](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_catalog_item) ```ruby KlaviyoAPI::Catalogs.delete_catalog_item(id) @@ -824,7 +824,7 @@ KlaviyoAPI::Catalogs.delete_catalog_item(id) -#### [Delete Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_catalog_item_relationships_categories) +#### [Delete Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.delete_catalog_item_relationships_categories(id, body) @@ -834,7 +834,7 @@ KlaviyoAPI::Catalogs.delete_catalog_item_relationships_categories(id, body) -#### [Delete Catalog Variant](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_catalog_variant) +#### [Delete Catalog Variant](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_catalog_variant) ```ruby KlaviyoAPI::Catalogs.delete_catalog_variant(id) @@ -844,7 +844,7 @@ KlaviyoAPI::Catalogs.delete_catalog_variant(id) -#### [Get Catalog Categories](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_categories) +#### [Get Catalog Categories](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_categories) ```ruby KlaviyoAPI::Catalogs.get_catalog_categories(opts) @@ -854,7 +854,7 @@ KlaviyoAPI::Catalogs.get_catalog_categories(opts) -#### [Get Catalog Category](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_category) +#### [Get Catalog Category](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_category) ```ruby KlaviyoAPI::Catalogs.get_catalog_category(id, opts) @@ -864,7 +864,7 @@ KlaviyoAPI::Catalogs.get_catalog_category(id, opts) -#### [Get Catalog Category Items](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_category_items) +#### [Get Catalog Category Items](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_category_items) ```ruby KlaviyoAPI::Catalogs.get_catalog_category_items(id, opts) @@ -874,7 +874,7 @@ KlaviyoAPI::Catalogs.get_catalog_category_items(id, opts) -#### [Get Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_category_relationships_items) +#### [Get Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.get_catalog_category_relationships_items(id, opts) @@ -884,7 +884,7 @@ KlaviyoAPI::Catalogs.get_catalog_category_relationships_items(id, opts) -#### [Get Catalog Item](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_item) +#### [Get Catalog Item](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_item) ```ruby KlaviyoAPI::Catalogs.get_catalog_item(id, opts) @@ -894,7 +894,7 @@ KlaviyoAPI::Catalogs.get_catalog_item(id, opts) -#### [Get Catalog Item Categories](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_item_categories) +#### [Get Catalog Item Categories](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_item_categories) ```ruby KlaviyoAPI::Catalogs.get_catalog_item_categories(id, opts) @@ -904,7 +904,7 @@ KlaviyoAPI::Catalogs.get_catalog_item_categories(id, opts) -#### [Get Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_item_relationships_categories) +#### [Get Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.get_catalog_item_relationships_categories(id, opts) @@ -914,7 +914,7 @@ KlaviyoAPI::Catalogs.get_catalog_item_relationships_categories(id, opts) -#### [Get Catalog Item Variants](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_item_variants) +#### [Get Catalog Item Variants](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_item_variants) ```ruby KlaviyoAPI::Catalogs.get_catalog_item_variants(id, opts) @@ -924,7 +924,7 @@ KlaviyoAPI::Catalogs.get_catalog_item_variants(id, opts) -#### [Get Catalog Items](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_items) +#### [Get Catalog Items](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_items) ```ruby KlaviyoAPI::Catalogs.get_catalog_items(opts) @@ -934,7 +934,7 @@ KlaviyoAPI::Catalogs.get_catalog_items(opts) -#### [Get Catalog Variant](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_variant) +#### [Get Catalog Variant](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_variant) ```ruby KlaviyoAPI::Catalogs.get_catalog_variant(id, opts) @@ -944,7 +944,7 @@ KlaviyoAPI::Catalogs.get_catalog_variant(id, opts) -#### [Get Catalog Variants](https://developers.klaviyo.com/en/v2024-02-15/reference/get_catalog_variants) +#### [Get Catalog Variants](https://developers.klaviyo.com/en/v2024-05-15/reference/get_catalog_variants) ```ruby KlaviyoAPI::Catalogs.get_catalog_variants(opts) @@ -954,7 +954,7 @@ KlaviyoAPI::Catalogs.get_catalog_variants(opts) -#### [Get Create Categories Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_create_categories_job) +#### [Get Create Categories Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_create_categories_job) ```ruby KlaviyoAPI::Catalogs.get_create_categories_job(job_id, opts) @@ -964,7 +964,7 @@ KlaviyoAPI::Catalogs.get_create_categories_job(job_id, opts) -#### [Get Create Categories Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_create_categories_jobs) +#### [Get Create Categories Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_create_categories_jobs) ```ruby KlaviyoAPI::Catalogs.get_create_categories_jobs(opts) @@ -974,7 +974,7 @@ KlaviyoAPI::Catalogs.get_create_categories_jobs(opts) -#### [Get Create Items Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_create_items_job) +#### [Get Create Items Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_create_items_job) ```ruby KlaviyoAPI::Catalogs.get_create_items_job(job_id, opts) @@ -984,7 +984,7 @@ KlaviyoAPI::Catalogs.get_create_items_job(job_id, opts) -#### [Get Create Items Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_create_items_jobs) +#### [Get Create Items Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_create_items_jobs) ```ruby KlaviyoAPI::Catalogs.get_create_items_jobs(opts) @@ -994,7 +994,7 @@ KlaviyoAPI::Catalogs.get_create_items_jobs(opts) -#### [Get Create Variants Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_create_variants_job) +#### [Get Create Variants Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_create_variants_job) ```ruby KlaviyoAPI::Catalogs.get_create_variants_job(job_id, opts) @@ -1004,7 +1004,7 @@ KlaviyoAPI::Catalogs.get_create_variants_job(job_id, opts) -#### [Get Create Variants Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_create_variants_jobs) +#### [Get Create Variants Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_create_variants_jobs) ```ruby KlaviyoAPI::Catalogs.get_create_variants_jobs(opts) @@ -1014,7 +1014,7 @@ KlaviyoAPI::Catalogs.get_create_variants_jobs(opts) -#### [Get Delete Categories Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_delete_categories_job) +#### [Get Delete Categories Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_delete_categories_job) ```ruby KlaviyoAPI::Catalogs.get_delete_categories_job(job_id, opts) @@ -1024,7 +1024,7 @@ KlaviyoAPI::Catalogs.get_delete_categories_job(job_id, opts) -#### [Get Delete Categories Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_delete_categories_jobs) +#### [Get Delete Categories Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_delete_categories_jobs) ```ruby KlaviyoAPI::Catalogs.get_delete_categories_jobs(opts) @@ -1034,7 +1034,7 @@ KlaviyoAPI::Catalogs.get_delete_categories_jobs(opts) -#### [Get Delete Items Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_delete_items_job) +#### [Get Delete Items Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_delete_items_job) ```ruby KlaviyoAPI::Catalogs.get_delete_items_job(job_id, opts) @@ -1044,7 +1044,7 @@ KlaviyoAPI::Catalogs.get_delete_items_job(job_id, opts) -#### [Get Delete Items Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_delete_items_jobs) +#### [Get Delete Items Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_delete_items_jobs) ```ruby KlaviyoAPI::Catalogs.get_delete_items_jobs(opts) @@ -1054,7 +1054,7 @@ KlaviyoAPI::Catalogs.get_delete_items_jobs(opts) -#### [Get Delete Variants Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_delete_variants_job) +#### [Get Delete Variants Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_delete_variants_job) ```ruby KlaviyoAPI::Catalogs.get_delete_variants_job(job_id, opts) @@ -1064,7 +1064,7 @@ KlaviyoAPI::Catalogs.get_delete_variants_job(job_id, opts) -#### [Get Delete Variants Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_delete_variants_jobs) +#### [Get Delete Variants Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_delete_variants_jobs) ```ruby KlaviyoAPI::Catalogs.get_delete_variants_jobs(opts) @@ -1074,7 +1074,7 @@ KlaviyoAPI::Catalogs.get_delete_variants_jobs(opts) -#### [Get Update Categories Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_update_categories_job) +#### [Get Update Categories Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_update_categories_job) ```ruby KlaviyoAPI::Catalogs.get_update_categories_job(job_id, opts) @@ -1084,7 +1084,7 @@ KlaviyoAPI::Catalogs.get_update_categories_job(job_id, opts) -#### [Get Update Categories Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_update_categories_jobs) +#### [Get Update Categories Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_update_categories_jobs) ```ruby KlaviyoAPI::Catalogs.get_update_categories_jobs(opts) @@ -1094,7 +1094,7 @@ KlaviyoAPI::Catalogs.get_update_categories_jobs(opts) -#### [Get Update Items Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_update_items_job) +#### [Get Update Items Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_update_items_job) ```ruby KlaviyoAPI::Catalogs.get_update_items_job(job_id, opts) @@ -1104,7 +1104,7 @@ KlaviyoAPI::Catalogs.get_update_items_job(job_id, opts) -#### [Get Update Items Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_update_items_jobs) +#### [Get Update Items Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_update_items_jobs) ```ruby KlaviyoAPI::Catalogs.get_update_items_jobs(opts) @@ -1114,7 +1114,7 @@ KlaviyoAPI::Catalogs.get_update_items_jobs(opts) -#### [Get Update Variants Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_update_variants_job) +#### [Get Update Variants Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_update_variants_job) ```ruby KlaviyoAPI::Catalogs.get_update_variants_job(job_id, opts) @@ -1124,7 +1124,7 @@ KlaviyoAPI::Catalogs.get_update_variants_job(job_id, opts) -#### [Get Update Variants Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_update_variants_jobs) +#### [Get Update Variants Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_update_variants_jobs) ```ruby KlaviyoAPI::Catalogs.get_update_variants_jobs(opts) @@ -1134,7 +1134,7 @@ KlaviyoAPI::Catalogs.get_update_variants_jobs(opts) -#### [Spawn Create Categories Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_create_categories_job) +#### [Spawn Create Categories Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_create_categories_job) ```ruby KlaviyoAPI::Catalogs.spawn_create_categories_job(body) @@ -1144,7 +1144,7 @@ KlaviyoAPI::Catalogs.spawn_create_categories_job(body) -#### [Spawn Create Items Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_create_items_job) +#### [Spawn Create Items Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_create_items_job) ```ruby KlaviyoAPI::Catalogs.spawn_create_items_job(body) @@ -1154,7 +1154,7 @@ KlaviyoAPI::Catalogs.spawn_create_items_job(body) -#### [Spawn Create Variants Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_create_variants_job) +#### [Spawn Create Variants Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_create_variants_job) ```ruby KlaviyoAPI::Catalogs.spawn_create_variants_job(body) @@ -1164,7 +1164,7 @@ KlaviyoAPI::Catalogs.spawn_create_variants_job(body) -#### [Spawn Delete Categories Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_delete_categories_job) +#### [Spawn Delete Categories Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_delete_categories_job) ```ruby KlaviyoAPI::Catalogs.spawn_delete_categories_job(body) @@ -1174,7 +1174,7 @@ KlaviyoAPI::Catalogs.spawn_delete_categories_job(body) -#### [Spawn Delete Items Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_delete_items_job) +#### [Spawn Delete Items Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_delete_items_job) ```ruby KlaviyoAPI::Catalogs.spawn_delete_items_job(body) @@ -1184,7 +1184,7 @@ KlaviyoAPI::Catalogs.spawn_delete_items_job(body) -#### [Spawn Delete Variants Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_delete_variants_job) +#### [Spawn Delete Variants Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_delete_variants_job) ```ruby KlaviyoAPI::Catalogs.spawn_delete_variants_job(body) @@ -1194,7 +1194,7 @@ KlaviyoAPI::Catalogs.spawn_delete_variants_job(body) -#### [Spawn Update Categories Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_update_categories_job) +#### [Spawn Update Categories Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_update_categories_job) ```ruby KlaviyoAPI::Catalogs.spawn_update_categories_job(body) @@ -1204,7 +1204,7 @@ KlaviyoAPI::Catalogs.spawn_update_categories_job(body) -#### [Spawn Update Items Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_update_items_job) +#### [Spawn Update Items Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_update_items_job) ```ruby KlaviyoAPI::Catalogs.spawn_update_items_job(body) @@ -1214,7 +1214,7 @@ KlaviyoAPI::Catalogs.spawn_update_items_job(body) -#### [Spawn Update Variants Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_update_variants_job) +#### [Spawn Update Variants Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_update_variants_job) ```ruby KlaviyoAPI::Catalogs.spawn_update_variants_job(body) @@ -1224,7 +1224,7 @@ KlaviyoAPI::Catalogs.spawn_update_variants_job(body) -#### [Update Catalog Category](https://developers.klaviyo.com/en/v2024-02-15/reference/update_catalog_category) +#### [Update Catalog Category](https://developers.klaviyo.com/en/v2024-05-15/reference/update_catalog_category) ```ruby KlaviyoAPI::Catalogs.update_catalog_category(id, body) @@ -1234,7 +1234,7 @@ KlaviyoAPI::Catalogs.update_catalog_category(id, body) -#### [Update Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-02-15/reference/update_catalog_category_relationships_items) +#### [Update Catalog Category Relationships Items](https://developers.klaviyo.com/en/v2024-05-15/reference/update_catalog_category_relationships_items) ```ruby KlaviyoAPI::Catalogs.update_catalog_category_relationships_items(id, body) @@ -1244,7 +1244,7 @@ KlaviyoAPI::Catalogs.update_catalog_category_relationships_items(id, body) -#### [Update Catalog Item](https://developers.klaviyo.com/en/v2024-02-15/reference/update_catalog_item) +#### [Update Catalog Item](https://developers.klaviyo.com/en/v2024-05-15/reference/update_catalog_item) ```ruby KlaviyoAPI::Catalogs.update_catalog_item(id, body) @@ -1254,7 +1254,7 @@ KlaviyoAPI::Catalogs.update_catalog_item(id, body) -#### [Update Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-02-15/reference/update_catalog_item_relationships_categories) +#### [Update Catalog Item Relationships Categories](https://developers.klaviyo.com/en/v2024-05-15/reference/update_catalog_item_relationships_categories) ```ruby KlaviyoAPI::Catalogs.update_catalog_item_relationships_categories(id, body) @@ -1264,7 +1264,7 @@ KlaviyoAPI::Catalogs.update_catalog_item_relationships_categories(id, body) -#### [Update Catalog Variant](https://developers.klaviyo.com/en/v2024-02-15/reference/update_catalog_variant) +#### [Update Catalog Variant](https://developers.klaviyo.com/en/v2024-05-15/reference/update_catalog_variant) ```ruby KlaviyoAPI::Catalogs.update_catalog_variant(id, body) @@ -1278,7 +1278,7 @@ KlaviyoAPI::Catalogs.update_catalog_variant(id, body) ## Coupons -#### [Create Coupon](https://developers.klaviyo.com/en/v2024-02-15/reference/create_coupon) +#### [Create Coupon](https://developers.klaviyo.com/en/v2024-05-15/reference/create_coupon) ```ruby KlaviyoAPI::Coupons.create_coupon(body) @@ -1288,7 +1288,7 @@ KlaviyoAPI::Coupons.create_coupon(body) -#### [Create Coupon Code](https://developers.klaviyo.com/en/v2024-02-15/reference/create_coupon_code) +#### [Create Coupon Code](https://developers.klaviyo.com/en/v2024-05-15/reference/create_coupon_code) ```ruby KlaviyoAPI::Coupons.create_coupon_code(body) @@ -1298,7 +1298,7 @@ KlaviyoAPI::Coupons.create_coupon_code(body) -#### [Delete Coupon](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_coupon) +#### [Delete Coupon](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_coupon) ```ruby KlaviyoAPI::Coupons.delete_coupon(id) @@ -1308,7 +1308,7 @@ KlaviyoAPI::Coupons.delete_coupon(id) -#### [Delete Coupon Code](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_coupon_code) +#### [Delete Coupon Code](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_coupon_code) ```ruby KlaviyoAPI::Coupons.delete_coupon_code(id) @@ -1318,7 +1318,7 @@ KlaviyoAPI::Coupons.delete_coupon_code(id) -#### [Get Coupon](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon) +#### [Get Coupon](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon) ```ruby KlaviyoAPI::Coupons.get_coupon(id, opts) @@ -1328,7 +1328,7 @@ KlaviyoAPI::Coupons.get_coupon(id, opts) -#### [Get Coupon Code](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_code) +#### [Get Coupon Code](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_code) ```ruby KlaviyoAPI::Coupons.get_coupon_code(id, opts) @@ -1338,7 +1338,7 @@ KlaviyoAPI::Coupons.get_coupon_code(id, opts) -#### [Get Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_code_bulk_create_job) +#### [Get Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_code_bulk_create_job) ```ruby KlaviyoAPI::Coupons.get_coupon_code_bulk_create_job(job_id, opts) @@ -1348,7 +1348,7 @@ KlaviyoAPI::Coupons.get_coupon_code_bulk_create_job(job_id, opts) -#### [Get Coupon Code Bulk Create Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_code_bulk_create_jobs) +#### [Get Coupon Code Bulk Create Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_code_bulk_create_jobs) ```ruby KlaviyoAPI::Coupons.get_coupon_code_bulk_create_jobs(opts) @@ -1358,7 +1358,7 @@ KlaviyoAPI::Coupons.get_coupon_code_bulk_create_jobs(opts) -#### [Get Coupon Code Relationships Coupon](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_code_relationships_coupon) +#### [Get Coupon Code Relationships Coupon](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_code_relationships_coupon) ```ruby KlaviyoAPI::Coupons.get_coupon_code_relationships_coupon(id, opts) @@ -1368,7 +1368,7 @@ KlaviyoAPI::Coupons.get_coupon_code_relationships_coupon(id, opts) -#### [Get Coupon Codes](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_codes) +#### [Get Coupon Codes](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_codes) ```ruby KlaviyoAPI::Coupons.get_coupon_codes(opts) @@ -1378,7 +1378,7 @@ KlaviyoAPI::Coupons.get_coupon_codes(opts) -#### [Get Coupon Codes For Coupon](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_codes_for_coupon) +#### [Get Coupon Codes For Coupon](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_codes_for_coupon) ```ruby KlaviyoAPI::Coupons.get_coupon_codes_for_coupon(id, opts) @@ -1388,7 +1388,7 @@ KlaviyoAPI::Coupons.get_coupon_codes_for_coupon(id, opts) -#### [Get Coupon For Coupon Code](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_for_coupon_code) +#### [Get Coupon For Coupon Code](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_for_coupon_code) ```ruby KlaviyoAPI::Coupons.get_coupon_for_coupon_code(id, opts) @@ -1398,7 +1398,7 @@ KlaviyoAPI::Coupons.get_coupon_for_coupon_code(id, opts) -#### [Get Coupon Relationships Coupon Codes](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupon_relationships_coupon_codes) +#### [Get Coupon Relationships Coupon Codes](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupon_relationships_coupon_codes) ```ruby KlaviyoAPI::Coupons.get_coupon_relationships_coupon_codes(id) @@ -1408,7 +1408,7 @@ KlaviyoAPI::Coupons.get_coupon_relationships_coupon_codes(id) -#### [Get Coupons](https://developers.klaviyo.com/en/v2024-02-15/reference/get_coupons) +#### [Get Coupons](https://developers.klaviyo.com/en/v2024-05-15/reference/get_coupons) ```ruby KlaviyoAPI::Coupons.get_coupons(opts) @@ -1418,7 +1418,7 @@ KlaviyoAPI::Coupons.get_coupons(opts) -#### [Spawn Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_coupon_code_bulk_create_job) +#### [Spawn Coupon Code Bulk Create Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_coupon_code_bulk_create_job) ```ruby KlaviyoAPI::Coupons.spawn_coupon_code_bulk_create_job(body) @@ -1428,7 +1428,7 @@ KlaviyoAPI::Coupons.spawn_coupon_code_bulk_create_job(body) -#### [Update Coupon](https://developers.klaviyo.com/en/v2024-02-15/reference/update_coupon) +#### [Update Coupon](https://developers.klaviyo.com/en/v2024-05-15/reference/update_coupon) ```ruby KlaviyoAPI::Coupons.update_coupon(id, body) @@ -1438,7 +1438,7 @@ KlaviyoAPI::Coupons.update_coupon(id, body) -#### [Update Coupon Code](https://developers.klaviyo.com/en/v2024-02-15/reference/update_coupon_code) +#### [Update Coupon Code](https://developers.klaviyo.com/en/v2024-05-15/reference/update_coupon_code) ```ruby KlaviyoAPI::Coupons.update_coupon_code(id, body) @@ -1452,7 +1452,7 @@ KlaviyoAPI::Coupons.update_coupon_code(id, body) ## Data Privacy -#### [Request Profile Deletion](https://developers.klaviyo.com/en/v2024-02-15/reference/request_profile_deletion) +#### [Request Profile Deletion](https://developers.klaviyo.com/en/v2024-05-15/reference/request_profile_deletion) ```ruby KlaviyoAPI::DataPrivacy.request_profile_deletion(body) @@ -1466,7 +1466,17 @@ KlaviyoAPI::DataPrivacy.request_profile_deletion(body) ## Events -#### [Create Event](https://developers.klaviyo.com/en/v2024-02-15/reference/create_event) +#### [Bulk Create Events](https://developers.klaviyo.com/en/v2024-05-15/reference/bulk_create_events) + +```ruby +KlaviyoAPI::Events.bulk_create_events(body) +``` + + + + + +#### [Create Event](https://developers.klaviyo.com/en/v2024-05-15/reference/create_event) ```ruby KlaviyoAPI::Events.create_event(body) @@ -1476,7 +1486,7 @@ KlaviyoAPI::Events.create_event(body) -#### [Get Event](https://developers.klaviyo.com/en/v2024-02-15/reference/get_event) +#### [Get Event](https://developers.klaviyo.com/en/v2024-05-15/reference/get_event) ```ruby KlaviyoAPI::Events.get_event(id, opts) @@ -1486,7 +1496,7 @@ KlaviyoAPI::Events.get_event(id, opts) -#### [Get Event Metric](https://developers.klaviyo.com/en/v2024-02-15/reference/get_event_metric) +#### [Get Event Metric](https://developers.klaviyo.com/en/v2024-05-15/reference/get_event_metric) ```ruby KlaviyoAPI::Events.get_event_metric(id, opts) @@ -1496,7 +1506,7 @@ KlaviyoAPI::Events.get_event_metric(id, opts) -#### [Get Event Profile](https://developers.klaviyo.com/en/v2024-02-15/reference/get_event_profile) +#### [Get Event Profile](https://developers.klaviyo.com/en/v2024-05-15/reference/get_event_profile) ```ruby KlaviyoAPI::Events.get_event_profile(id, opts) @@ -1506,7 +1516,7 @@ KlaviyoAPI::Events.get_event_profile(id, opts) -#### [Get Event Relationships Metric](https://developers.klaviyo.com/en/v2024-02-15/reference/get_event_relationships_metric) +#### [Get Event Relationships Metric](https://developers.klaviyo.com/en/v2024-05-15/reference/get_event_relationships_metric) ```ruby KlaviyoAPI::Events.get_event_relationships_metric(id) @@ -1516,7 +1526,7 @@ KlaviyoAPI::Events.get_event_relationships_metric(id) -#### [Get Event Relationships Profile](https://developers.klaviyo.com/en/v2024-02-15/reference/get_event_relationships_profile) +#### [Get Event Relationships Profile](https://developers.klaviyo.com/en/v2024-05-15/reference/get_event_relationships_profile) ```ruby KlaviyoAPI::Events.get_event_relationships_profile(id) @@ -1526,7 +1536,7 @@ KlaviyoAPI::Events.get_event_relationships_profile(id) -#### [Get Events](https://developers.klaviyo.com/en/v2024-02-15/reference/get_events) +#### [Get Events](https://developers.klaviyo.com/en/v2024-05-15/reference/get_events) ```ruby KlaviyoAPI::Events.get_events(opts) @@ -1540,7 +1550,7 @@ KlaviyoAPI::Events.get_events(opts) ## Flows -#### [Get Flow](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow) +#### [Get Flow](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow) ```ruby KlaviyoAPI::Flows.get_flow(id, opts) @@ -1550,7 +1560,7 @@ KlaviyoAPI::Flows.get_flow(id, opts) -#### [Get Flow Action](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_action) +#### [Get Flow Action](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_action) ```ruby KlaviyoAPI::Flows.get_flow_action(id, opts) @@ -1560,7 +1570,7 @@ KlaviyoAPI::Flows.get_flow_action(id, opts) -#### [Get Flow For Flow Action](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_action_flow) +#### [Get Flow For Flow Action](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_action_flow) ```ruby KlaviyoAPI::Flows.get_flow_action_flow(id, opts) @@ -1570,7 +1580,7 @@ KlaviyoAPI::Flows.get_flow_action_flow(id, opts) -#### [Get Flow Action Messages](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_action_messages) +#### [Get Flow Action Messages](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_action_messages) ```ruby KlaviyoAPI::Flows.get_flow_action_messages(id, opts) @@ -1580,7 +1590,7 @@ KlaviyoAPI::Flows.get_flow_action_messages(id, opts) -#### [Get Flow Action Relationships Flow](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_action_relationships_flow) +#### [Get Flow Action Relationships Flow](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_action_relationships_flow) ```ruby KlaviyoAPI::Flows.get_flow_action_relationships_flow(id) @@ -1590,7 +1600,7 @@ KlaviyoAPI::Flows.get_flow_action_relationships_flow(id) -#### [Get Flow Action Relationships Messages](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_action_relationships_messages) +#### [Get Flow Action Relationships Messages](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_action_relationships_messages) ```ruby KlaviyoAPI::Flows.get_flow_action_relationships_messages(id, opts) @@ -1600,7 +1610,7 @@ KlaviyoAPI::Flows.get_flow_action_relationships_messages(id, opts) -#### [Get Flow Flow Actions](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_flow_actions) +#### [Get Flow Flow Actions](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_flow_actions) ```ruby KlaviyoAPI::Flows.get_flow_flow_actions(id, opts) @@ -1610,7 +1620,7 @@ KlaviyoAPI::Flows.get_flow_flow_actions(id, opts) -#### [Get Flow Message](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_message) +#### [Get Flow Message](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_message) ```ruby KlaviyoAPI::Flows.get_flow_message(id, opts) @@ -1620,7 +1630,7 @@ KlaviyoAPI::Flows.get_flow_message(id, opts) -#### [Get Flow Action For Message](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_message_action) +#### [Get Flow Action For Message](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_message_action) ```ruby KlaviyoAPI::Flows.get_flow_message_action(id, opts) @@ -1630,7 +1640,7 @@ KlaviyoAPI::Flows.get_flow_message_action(id, opts) -#### [Get Flow Message Relationships Action](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_message_relationships_action) +#### [Get Flow Message Relationships Action](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_message_relationships_action) ```ruby KlaviyoAPI::Flows.get_flow_message_relationships_action(id) @@ -1640,7 +1650,7 @@ KlaviyoAPI::Flows.get_flow_message_relationships_action(id) -#### [Get Flow Message Relationships Template](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_message_relationships_template) +#### [Get Flow Message Relationships Template](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_message_relationships_template) ```ruby KlaviyoAPI::Flows.get_flow_message_relationships_template(id) @@ -1650,7 +1660,7 @@ KlaviyoAPI::Flows.get_flow_message_relationships_template(id) -#### [Get Flow Message Template](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_message_template) +#### [Get Flow Message Template](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_message_template) ```ruby KlaviyoAPI::Flows.get_flow_message_template(id, opts) @@ -1660,7 +1670,7 @@ KlaviyoAPI::Flows.get_flow_message_template(id, opts) -#### [Get Flow Relationships Flow Actions](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_relationships_flow_actions) +#### [Get Flow Relationships Flow Actions](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_relationships_flow_actions) ```ruby KlaviyoAPI::Flows.get_flow_relationships_flow_actions(id, opts) @@ -1670,7 +1680,7 @@ KlaviyoAPI::Flows.get_flow_relationships_flow_actions(id, opts) -#### [Get Flow Relationships Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_relationships_tags) +#### [Get Flow Relationships Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_relationships_tags) ```ruby KlaviyoAPI::Flows.get_flow_relationships_tags(id) @@ -1680,7 +1690,7 @@ KlaviyoAPI::Flows.get_flow_relationships_tags(id) -#### [Get Flow Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flow_tags) +#### [Get Flow Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flow_tags) ```ruby KlaviyoAPI::Flows.get_flow_tags(id, opts) @@ -1690,7 +1700,7 @@ KlaviyoAPI::Flows.get_flow_tags(id, opts) -#### [Get Flows](https://developers.klaviyo.com/en/v2024-02-15/reference/get_flows) +#### [Get Flows](https://developers.klaviyo.com/en/v2024-05-15/reference/get_flows) ```ruby KlaviyoAPI::Flows.get_flows(opts) @@ -1700,7 +1710,7 @@ KlaviyoAPI::Flows.get_flows(opts) -#### [Update Flow Status](https://developers.klaviyo.com/en/v2024-02-15/reference/update_flow) +#### [Update Flow Status](https://developers.klaviyo.com/en/v2024-05-15/reference/update_flow) ```ruby KlaviyoAPI::Flows.update_flow(id, body) @@ -1714,7 +1724,7 @@ KlaviyoAPI::Flows.update_flow(id, body) ## Images -#### [Get Image](https://developers.klaviyo.com/en/v2024-02-15/reference/get_image) +#### [Get Image](https://developers.klaviyo.com/en/v2024-05-15/reference/get_image) ```ruby KlaviyoAPI::Images.get_image(id, opts) @@ -1724,7 +1734,7 @@ KlaviyoAPI::Images.get_image(id, opts) -#### [Get Images](https://developers.klaviyo.com/en/v2024-02-15/reference/get_images) +#### [Get Images](https://developers.klaviyo.com/en/v2024-05-15/reference/get_images) ```ruby KlaviyoAPI::Images.get_images(opts) @@ -1734,7 +1744,7 @@ KlaviyoAPI::Images.get_images(opts) -#### [Update Image](https://developers.klaviyo.com/en/v2024-02-15/reference/update_image) +#### [Update Image](https://developers.klaviyo.com/en/v2024-05-15/reference/update_image) ```ruby KlaviyoAPI::Images.update_image(id, body) @@ -1744,7 +1754,7 @@ KlaviyoAPI::Images.update_image(id, body) -#### [Upload Image From File](https://developers.klaviyo.com/en/v2024-02-15/reference/upload_image_from_file) +#### [Upload Image From File](https://developers.klaviyo.com/en/v2024-05-15/reference/upload_image_from_file) ```ruby KlaviyoAPI::Images.upload_image_from_file(file, opts) @@ -1754,7 +1764,7 @@ KlaviyoAPI::Images.upload_image_from_file(file, opts) -#### [Upload Image From URL](https://developers.klaviyo.com/en/v2024-02-15/reference/upload_image_from_url) +#### [Upload Image From URL](https://developers.klaviyo.com/en/v2024-05-15/reference/upload_image_from_url) ```ruby KlaviyoAPI::Images.upload_image_from_url(body) @@ -1768,7 +1778,7 @@ KlaviyoAPI::Images.upload_image_from_url(body) ## Lists -#### [Create List](https://developers.klaviyo.com/en/v2024-02-15/reference/create_list) +#### [Create List](https://developers.klaviyo.com/en/v2024-05-15/reference/create_list) ```ruby KlaviyoAPI::Lists.create_list(body) @@ -1778,7 +1788,7 @@ KlaviyoAPI::Lists.create_list(body) -#### [Add Profile To List](https://developers.klaviyo.com/en/v2024-02-15/reference/create_list_relationships) +#### [Add Profile To List](https://developers.klaviyo.com/en/v2024-05-15/reference/create_list_relationships) ```ruby KlaviyoAPI::Lists.create_list_relationships(id, body) @@ -1788,7 +1798,7 @@ KlaviyoAPI::Lists.create_list_relationships(id, body) -#### [Delete List](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_list) +#### [Delete List](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_list) ```ruby KlaviyoAPI::Lists.delete_list(id) @@ -1798,7 +1808,7 @@ KlaviyoAPI::Lists.delete_list(id) -#### [Remove Profile From List](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_list_relationships) +#### [Remove Profile From List](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_list_relationships) ```ruby KlaviyoAPI::Lists.delete_list_relationships(id, body) @@ -1808,7 +1818,7 @@ KlaviyoAPI::Lists.delete_list_relationships(id, body) -#### [Get List](https://developers.klaviyo.com/en/v2024-02-15/reference/get_list) +#### [Get List](https://developers.klaviyo.com/en/v2024-05-15/reference/get_list) ```ruby KlaviyoAPI::Lists.get_list(id, opts) @@ -1818,7 +1828,7 @@ KlaviyoAPI::Lists.get_list(id, opts) -#### [Get List Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/get_list_profiles) +#### [Get List Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/get_list_profiles) ```ruby KlaviyoAPI::Lists.get_list_profiles(id, opts) @@ -1828,7 +1838,7 @@ KlaviyoAPI::Lists.get_list_profiles(id, opts) -#### [Get List Relationships Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/get_list_relationships_profiles) +#### [Get List Relationships Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/get_list_relationships_profiles) ```ruby KlaviyoAPI::Lists.get_list_relationships_profiles(id, opts) @@ -1838,7 +1848,7 @@ KlaviyoAPI::Lists.get_list_relationships_profiles(id, opts) -#### [Get List Relationships Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_list_relationships_tags) +#### [Get List Relationships Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_list_relationships_tags) ```ruby KlaviyoAPI::Lists.get_list_relationships_tags(id) @@ -1848,7 +1858,7 @@ KlaviyoAPI::Lists.get_list_relationships_tags(id) -#### [Get List Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_list_tags) +#### [Get List Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_list_tags) ```ruby KlaviyoAPI::Lists.get_list_tags(id, opts) @@ -1858,7 +1868,7 @@ KlaviyoAPI::Lists.get_list_tags(id, opts) -#### [Get Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/get_lists) +#### [Get Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/get_lists) ```ruby KlaviyoAPI::Lists.get_lists(opts) @@ -1868,7 +1878,7 @@ KlaviyoAPI::Lists.get_lists(opts) -#### [Update List](https://developers.klaviyo.com/en/v2024-02-15/reference/update_list) +#### [Update List](https://developers.klaviyo.com/en/v2024-05-15/reference/update_list) ```ruby KlaviyoAPI::Lists.update_list(id, body) @@ -1882,7 +1892,7 @@ KlaviyoAPI::Lists.update_list(id, body) ## Metrics -#### [Get Metric](https://developers.klaviyo.com/en/v2024-02-15/reference/get_metric) +#### [Get Metric](https://developers.klaviyo.com/en/v2024-05-15/reference/get_metric) ```ruby KlaviyoAPI::Metrics.get_metric(id, opts) @@ -1892,7 +1902,7 @@ KlaviyoAPI::Metrics.get_metric(id, opts) -#### [Get Metrics](https://developers.klaviyo.com/en/v2024-02-15/reference/get_metrics) +#### [Get Metrics](https://developers.klaviyo.com/en/v2024-05-15/reference/get_metrics) ```ruby KlaviyoAPI::Metrics.get_metrics(opts) @@ -1902,7 +1912,7 @@ KlaviyoAPI::Metrics.get_metrics(opts) -#### [Query Metric Aggregates](https://developers.klaviyo.com/en/v2024-02-15/reference/query_metric_aggregates) +#### [Query Metric Aggregates](https://developers.klaviyo.com/en/v2024-05-15/reference/query_metric_aggregates) ```ruby KlaviyoAPI::Metrics.query_metric_aggregates(body) @@ -1916,7 +1926,7 @@ KlaviyoAPI::Metrics.query_metric_aggregates(body) ## Profiles -#### [Create or Update Profile](https://developers.klaviyo.com/en/v2024-02-15/reference/create_or_update_profile) +#### [Create or Update Profile](https://developers.klaviyo.com/en/v2024-05-15/reference/create_or_update_profile) ```ruby KlaviyoAPI::Profiles.create_or_update_profile(body) @@ -1926,7 +1936,7 @@ KlaviyoAPI::Profiles.create_or_update_profile(body) -#### [Create Profile](https://developers.klaviyo.com/en/v2024-02-15/reference/create_profile) +#### [Create Profile](https://developers.klaviyo.com/en/v2024-05-15/reference/create_profile) ```ruby KlaviyoAPI::Profiles.create_profile(body) @@ -1936,7 +1946,7 @@ KlaviyoAPI::Profiles.create_profile(body) -#### [Create or Update Push Token](https://developers.klaviyo.com/en/v2024-02-15/reference/create_push_token) +#### [Create or Update Push Token](https://developers.klaviyo.com/en/v2024-05-15/reference/create_push_token) ```ruby KlaviyoAPI::Profiles.create_push_token(body) @@ -1946,7 +1956,7 @@ KlaviyoAPI::Profiles.create_push_token(body) -#### [Get Bulk Profile Import Job](https://developers.klaviyo.com/en/v2024-02-15/reference/get_bulk_profile_import_job) +#### [Get Bulk Profile Import Job](https://developers.klaviyo.com/en/v2024-05-15/reference/get_bulk_profile_import_job) ```ruby KlaviyoAPI::Profiles.get_bulk_profile_import_job(job_id, opts) @@ -1956,7 +1966,7 @@ KlaviyoAPI::Profiles.get_bulk_profile_import_job(job_id, opts) -#### [Get Bulk Profile Import Job Errors](https://developers.klaviyo.com/en/v2024-02-15/reference/get_bulk_profile_import_job_import_errors) +#### [Get Bulk Profile Import Job Errors](https://developers.klaviyo.com/en/v2024-05-15/reference/get_bulk_profile_import_job_import_errors) ```ruby KlaviyoAPI::Profiles.get_bulk_profile_import_job_import_errors(id, opts) @@ -1966,7 +1976,7 @@ KlaviyoAPI::Profiles.get_bulk_profile_import_job_import_errors(id, opts) -#### [Get Bulk Profile Import Job Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/get_bulk_profile_import_job_lists) +#### [Get Bulk Profile Import Job Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/get_bulk_profile_import_job_lists) ```ruby KlaviyoAPI::Profiles.get_bulk_profile_import_job_lists(id, opts) @@ -1976,7 +1986,7 @@ KlaviyoAPI::Profiles.get_bulk_profile_import_job_lists(id, opts) -#### [Get Bulk Profile Import Job Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/get_bulk_profile_import_job_profiles) +#### [Get Bulk Profile Import Job Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/get_bulk_profile_import_job_profiles) ```ruby KlaviyoAPI::Profiles.get_bulk_profile_import_job_profiles(id, opts) @@ -1986,7 +1996,7 @@ KlaviyoAPI::Profiles.get_bulk_profile_import_job_profiles(id, opts) -#### [Get Bulk Profile Import Job Relationships Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/get_bulk_profile_import_job_relationships_lists) +#### [Get Bulk Profile Import Job Relationships Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/get_bulk_profile_import_job_relationships_lists) ```ruby KlaviyoAPI::Profiles.get_bulk_profile_import_job_relationships_lists(id) @@ -1996,7 +2006,7 @@ KlaviyoAPI::Profiles.get_bulk_profile_import_job_relationships_lists(id) -#### [Get Bulk Profile Import Job Relationships Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/get_bulk_profile_import_job_relationships_profiles) +#### [Get Bulk Profile Import Job Relationships Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/get_bulk_profile_import_job_relationships_profiles) ```ruby KlaviyoAPI::Profiles.get_bulk_profile_import_job_relationships_profiles(id, opts) @@ -2006,7 +2016,7 @@ KlaviyoAPI::Profiles.get_bulk_profile_import_job_relationships_profiles(id, opts -#### [Get Bulk Profile Import Jobs](https://developers.klaviyo.com/en/v2024-02-15/reference/get_bulk_profile_import_jobs) +#### [Get Bulk Profile Import Jobs](https://developers.klaviyo.com/en/v2024-05-15/reference/get_bulk_profile_import_jobs) ```ruby KlaviyoAPI::Profiles.get_bulk_profile_import_jobs(opts) @@ -2016,7 +2026,7 @@ KlaviyoAPI::Profiles.get_bulk_profile_import_jobs(opts) -#### [Get Profile](https://developers.klaviyo.com/en/v2024-02-15/reference/get_profile) +#### [Get Profile](https://developers.klaviyo.com/en/v2024-05-15/reference/get_profile) ```ruby KlaviyoAPI::Profiles.get_profile(id, opts) @@ -2026,7 +2036,7 @@ KlaviyoAPI::Profiles.get_profile(id, opts) -#### [Get Profile Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/get_profile_lists) +#### [Get Profile Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/get_profile_lists) ```ruby KlaviyoAPI::Profiles.get_profile_lists(id, opts) @@ -2036,7 +2046,7 @@ KlaviyoAPI::Profiles.get_profile_lists(id, opts) -#### [Get Profile Relationships Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/get_profile_relationships_lists) +#### [Get Profile Relationships Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/get_profile_relationships_lists) ```ruby KlaviyoAPI::Profiles.get_profile_relationships_lists(id) @@ -2046,7 +2056,7 @@ KlaviyoAPI::Profiles.get_profile_relationships_lists(id) -#### [Get Profile Relationships Segments](https://developers.klaviyo.com/en/v2024-02-15/reference/get_profile_relationships_segments) +#### [Get Profile Relationships Segments](https://developers.klaviyo.com/en/v2024-05-15/reference/get_profile_relationships_segments) ```ruby KlaviyoAPI::Profiles.get_profile_relationships_segments(id) @@ -2056,7 +2066,7 @@ KlaviyoAPI::Profiles.get_profile_relationships_segments(id) -#### [Get Profile Segments](https://developers.klaviyo.com/en/v2024-02-15/reference/get_profile_segments) +#### [Get Profile Segments](https://developers.klaviyo.com/en/v2024-05-15/reference/get_profile_segments) ```ruby KlaviyoAPI::Profiles.get_profile_segments(id, opts) @@ -2066,7 +2076,7 @@ KlaviyoAPI::Profiles.get_profile_segments(id, opts) -#### [Get Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/get_profiles) +#### [Get Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/get_profiles) ```ruby KlaviyoAPI::Profiles.get_profiles(opts) @@ -2076,7 +2086,7 @@ KlaviyoAPI::Profiles.get_profiles(opts) -#### [Merge Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/merge_profiles) +#### [Merge Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/merge_profiles) ```ruby KlaviyoAPI::Profiles.merge_profiles(body) @@ -2086,7 +2096,7 @@ KlaviyoAPI::Profiles.merge_profiles(body) -#### [Spawn Bulk Profile Import Job](https://developers.klaviyo.com/en/v2024-02-15/reference/spawn_bulk_profile_import_job) +#### [Spawn Bulk Profile Import Job](https://developers.klaviyo.com/en/v2024-05-15/reference/spawn_bulk_profile_import_job) ```ruby KlaviyoAPI::Profiles.spawn_bulk_profile_import_job(body) @@ -2096,7 +2106,7 @@ KlaviyoAPI::Profiles.spawn_bulk_profile_import_job(body) -#### [Subscribe Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/subscribe_profiles) +#### [Subscribe Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/subscribe_profiles) ```ruby KlaviyoAPI::Profiles.subscribe_profiles(body) @@ -2106,7 +2116,7 @@ KlaviyoAPI::Profiles.subscribe_profiles(body) -#### [Suppress Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/suppress_profiles) +#### [Suppress Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/suppress_profiles) ```ruby KlaviyoAPI::Profiles.suppress_profiles(body) @@ -2116,7 +2126,7 @@ KlaviyoAPI::Profiles.suppress_profiles(body) -#### [Unsubscribe Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/unsubscribe_profiles) +#### [Unsubscribe Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/unsubscribe_profiles) ```ruby KlaviyoAPI::Profiles.unsubscribe_profiles(body) @@ -2126,7 +2136,7 @@ KlaviyoAPI::Profiles.unsubscribe_profiles(body) -#### [Unsuppress Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/unsuppress_profiles) +#### [Unsuppress Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/unsuppress_profiles) ```ruby KlaviyoAPI::Profiles.unsuppress_profiles(body) @@ -2136,7 +2146,7 @@ KlaviyoAPI::Profiles.unsuppress_profiles(body) -#### [Update Profile](https://developers.klaviyo.com/en/v2024-02-15/reference/update_profile) +#### [Update Profile](https://developers.klaviyo.com/en/v2024-05-15/reference/update_profile) ```ruby KlaviyoAPI::Profiles.update_profile(id, body) @@ -2150,7 +2160,7 @@ KlaviyoAPI::Profiles.update_profile(id, body) ## Reporting -#### [Query Campaign Values](https://developers.klaviyo.com/en/v2024-02-15/reference/query_campaign_values) +#### [Query Campaign Values](https://developers.klaviyo.com/en/v2024-05-15/reference/query_campaign_values) ```ruby KlaviyoAPI::Reporting.query_campaign_values(body, opts) @@ -2160,7 +2170,7 @@ KlaviyoAPI::Reporting.query_campaign_values(body, opts) -#### [Query Flow Series](https://developers.klaviyo.com/en/v2024-02-15/reference/query_flow_series) +#### [Query Flow Series](https://developers.klaviyo.com/en/v2024-05-15/reference/query_flow_series) ```ruby KlaviyoAPI::Reporting.query_flow_series(body, opts) @@ -2170,7 +2180,7 @@ KlaviyoAPI::Reporting.query_flow_series(body, opts) -#### [Query Flow Values](https://developers.klaviyo.com/en/v2024-02-15/reference/query_flow_values) +#### [Query Flow Values](https://developers.klaviyo.com/en/v2024-05-15/reference/query_flow_values) ```ruby KlaviyoAPI::Reporting.query_flow_values(body, opts) @@ -2184,7 +2194,7 @@ KlaviyoAPI::Reporting.query_flow_values(body, opts) ## Segments -#### [Get Segment](https://developers.klaviyo.com/en/v2024-02-15/reference/get_segment) +#### [Get Segment](https://developers.klaviyo.com/en/v2024-05-15/reference/get_segment) ```ruby KlaviyoAPI::Segments.get_segment(id, opts) @@ -2194,7 +2204,7 @@ KlaviyoAPI::Segments.get_segment(id, opts) -#### [Get Segment Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/get_segment_profiles) +#### [Get Segment Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/get_segment_profiles) ```ruby KlaviyoAPI::Segments.get_segment_profiles(id, opts) @@ -2204,7 +2214,7 @@ KlaviyoAPI::Segments.get_segment_profiles(id, opts) -#### [Get Segment Relationships Profiles](https://developers.klaviyo.com/en/v2024-02-15/reference/get_segment_relationships_profiles) +#### [Get Segment Relationships Profiles](https://developers.klaviyo.com/en/v2024-05-15/reference/get_segment_relationships_profiles) ```ruby KlaviyoAPI::Segments.get_segment_relationships_profiles(id, opts) @@ -2214,7 +2224,7 @@ KlaviyoAPI::Segments.get_segment_relationships_profiles(id, opts) -#### [Get Segment Relationships Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_segment_relationships_tags) +#### [Get Segment Relationships Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_segment_relationships_tags) ```ruby KlaviyoAPI::Segments.get_segment_relationships_tags(id) @@ -2224,7 +2234,7 @@ KlaviyoAPI::Segments.get_segment_relationships_tags(id) -#### [Get Segment Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_segment_tags) +#### [Get Segment Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_segment_tags) ```ruby KlaviyoAPI::Segments.get_segment_tags(id, opts) @@ -2234,7 +2244,7 @@ KlaviyoAPI::Segments.get_segment_tags(id, opts) -#### [Get Segments](https://developers.klaviyo.com/en/v2024-02-15/reference/get_segments) +#### [Get Segments](https://developers.klaviyo.com/en/v2024-05-15/reference/get_segments) ```ruby KlaviyoAPI::Segments.get_segments(opts) @@ -2244,7 +2254,7 @@ KlaviyoAPI::Segments.get_segments(opts) -#### [Update Segment](https://developers.klaviyo.com/en/v2024-02-15/reference/update_segment) +#### [Update Segment](https://developers.klaviyo.com/en/v2024-05-15/reference/update_segment) ```ruby KlaviyoAPI::Segments.update_segment(id, body) @@ -2258,7 +2268,7 @@ KlaviyoAPI::Segments.update_segment(id, body) ## Tags -#### [Create Tag](https://developers.klaviyo.com/en/v2024-02-15/reference/create_tag) +#### [Create Tag](https://developers.klaviyo.com/en/v2024-05-15/reference/create_tag) ```ruby KlaviyoAPI::Tags.create_tag(body) @@ -2268,7 +2278,7 @@ KlaviyoAPI::Tags.create_tag(body) -#### [Create Tag Group](https://developers.klaviyo.com/en/v2024-02-15/reference/create_tag_group) +#### [Create Tag Group](https://developers.klaviyo.com/en/v2024-05-15/reference/create_tag_group) ```ruby KlaviyoAPI::Tags.create_tag_group(body) @@ -2278,7 +2288,7 @@ KlaviyoAPI::Tags.create_tag_group(body) -#### [Create Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2024-02-15/reference/create_tag_relationships_campaigns) +#### [Create Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2024-05-15/reference/create_tag_relationships_campaigns) ```ruby KlaviyoAPI::Tags.create_tag_relationships_campaigns(id, body) @@ -2288,7 +2298,7 @@ KlaviyoAPI::Tags.create_tag_relationships_campaigns(id, body) -#### [Create Tag Relationships Flows](https://developers.klaviyo.com/en/v2024-02-15/reference/create_tag_relationships_flows) +#### [Create Tag Relationships Flows](https://developers.klaviyo.com/en/v2024-05-15/reference/create_tag_relationships_flows) ```ruby KlaviyoAPI::Tags.create_tag_relationships_flows(id, body) @@ -2298,7 +2308,7 @@ KlaviyoAPI::Tags.create_tag_relationships_flows(id, body) -#### [Create Tag Relationships Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/create_tag_relationships_lists) +#### [Create Tag Relationships Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/create_tag_relationships_lists) ```ruby KlaviyoAPI::Tags.create_tag_relationships_lists(id, body) @@ -2308,7 +2318,7 @@ KlaviyoAPI::Tags.create_tag_relationships_lists(id, body) -#### [Create Tag Relationships Segments](https://developers.klaviyo.com/en/v2024-02-15/reference/create_tag_relationships_segments) +#### [Create Tag Relationships Segments](https://developers.klaviyo.com/en/v2024-05-15/reference/create_tag_relationships_segments) ```ruby KlaviyoAPI::Tags.create_tag_relationships_segments(id, body) @@ -2318,7 +2328,7 @@ KlaviyoAPI::Tags.create_tag_relationships_segments(id, body) -#### [Delete Tag](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_tag) +#### [Delete Tag](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_tag) ```ruby KlaviyoAPI::Tags.delete_tag(id) @@ -2328,7 +2338,7 @@ KlaviyoAPI::Tags.delete_tag(id) -#### [Delete Tag Group](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_tag_group) +#### [Delete Tag Group](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_tag_group) ```ruby KlaviyoAPI::Tags.delete_tag_group(id) @@ -2338,7 +2348,7 @@ KlaviyoAPI::Tags.delete_tag_group(id) -#### [Delete Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_tag_relationships_campaigns) +#### [Delete Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_tag_relationships_campaigns) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_campaigns(id, body) @@ -2348,7 +2358,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_campaigns(id, body) -#### [Delete Tag Relationships Flows](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_tag_relationships_flows) +#### [Delete Tag Relationships Flows](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_tag_relationships_flows) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_flows(id, body) @@ -2358,7 +2368,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_flows(id, body) -#### [Delete Tag Relationships Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_tag_relationships_lists) +#### [Delete Tag Relationships Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_tag_relationships_lists) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_lists(id, body) @@ -2368,7 +2378,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_lists(id, body) -#### [Delete Tag Relationships Segments](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_tag_relationships_segments) +#### [Delete Tag Relationships Segments](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_tag_relationships_segments) ```ruby KlaviyoAPI::Tags.delete_tag_relationships_segments(id, body) @@ -2378,7 +2388,7 @@ KlaviyoAPI::Tags.delete_tag_relationships_segments(id, body) -#### [Get Tag](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag) +#### [Get Tag](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag) ```ruby KlaviyoAPI::Tags.get_tag(id, opts) @@ -2388,7 +2398,7 @@ KlaviyoAPI::Tags.get_tag(id, opts) -#### [Get Tag Group](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_group) +#### [Get Tag Group](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_group) ```ruby KlaviyoAPI::Tags.get_tag_group(id, opts) @@ -2398,7 +2408,7 @@ KlaviyoAPI::Tags.get_tag_group(id, opts) -#### [Get Tag Group Relationships Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_group_relationships_tags) +#### [Get Tag Group Relationships Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_group_relationships_tags) ```ruby KlaviyoAPI::Tags.get_tag_group_relationships_tags(id) @@ -2408,7 +2418,7 @@ KlaviyoAPI::Tags.get_tag_group_relationships_tags(id) -#### [Get Tag Group Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_group_tags) +#### [Get Tag Group Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_group_tags) ```ruby KlaviyoAPI::Tags.get_tag_group_tags(id, opts) @@ -2418,7 +2428,7 @@ KlaviyoAPI::Tags.get_tag_group_tags(id, opts) -#### [Get Tag Groups](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_groups) +#### [Get Tag Groups](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_groups) ```ruby KlaviyoAPI::Tags.get_tag_groups(opts) @@ -2428,7 +2438,7 @@ KlaviyoAPI::Tags.get_tag_groups(opts) -#### [Get Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_relationships_campaigns) +#### [Get Tag Relationships Campaigns](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_relationships_campaigns) ```ruby KlaviyoAPI::Tags.get_tag_relationships_campaigns(id) @@ -2438,7 +2448,7 @@ KlaviyoAPI::Tags.get_tag_relationships_campaigns(id) -#### [Get Tag Relationships Flows](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_relationships_flows) +#### [Get Tag Relationships Flows](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_relationships_flows) ```ruby KlaviyoAPI::Tags.get_tag_relationships_flows(id) @@ -2448,7 +2458,7 @@ KlaviyoAPI::Tags.get_tag_relationships_flows(id) -#### [Get Tag Relationships Lists](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_relationships_lists) +#### [Get Tag Relationships Lists](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_relationships_lists) ```ruby KlaviyoAPI::Tags.get_tag_relationships_lists(id) @@ -2458,7 +2468,7 @@ KlaviyoAPI::Tags.get_tag_relationships_lists(id) -#### [Get Tag Relationships Segments](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_relationships_segments) +#### [Get Tag Relationships Segments](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_relationships_segments) ```ruby KlaviyoAPI::Tags.get_tag_relationships_segments(id) @@ -2468,7 +2478,7 @@ KlaviyoAPI::Tags.get_tag_relationships_segments(id) -#### [Get Tag Relationships Tag Group](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_relationships_tag_group) +#### [Get Tag Relationships Tag Group](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_relationships_tag_group) ```ruby KlaviyoAPI::Tags.get_tag_relationships_tag_group(id) @@ -2478,7 +2488,7 @@ KlaviyoAPI::Tags.get_tag_relationships_tag_group(id) -#### [Get Tag Tag Group](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tag_tag_group) +#### [Get Tag Tag Group](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tag_tag_group) ```ruby KlaviyoAPI::Tags.get_tag_tag_group(id, opts) @@ -2488,7 +2498,7 @@ KlaviyoAPI::Tags.get_tag_tag_group(id, opts) -#### [Get Tags](https://developers.klaviyo.com/en/v2024-02-15/reference/get_tags) +#### [Get Tags](https://developers.klaviyo.com/en/v2024-05-15/reference/get_tags) ```ruby KlaviyoAPI::Tags.get_tags(opts) @@ -2498,7 +2508,7 @@ KlaviyoAPI::Tags.get_tags(opts) -#### [Update Tag](https://developers.klaviyo.com/en/v2024-02-15/reference/update_tag) +#### [Update Tag](https://developers.klaviyo.com/en/v2024-05-15/reference/update_tag) ```ruby KlaviyoAPI::Tags.update_tag(id, body) @@ -2508,7 +2518,7 @@ KlaviyoAPI::Tags.update_tag(id, body) -#### [Update Tag Group](https://developers.klaviyo.com/en/v2024-02-15/reference/update_tag_group) +#### [Update Tag Group](https://developers.klaviyo.com/en/v2024-05-15/reference/update_tag_group) ```ruby KlaviyoAPI::Tags.update_tag_group(id, body) @@ -2522,7 +2532,7 @@ KlaviyoAPI::Tags.update_tag_group(id, body) ## Templates -#### [Create Template](https://developers.klaviyo.com/en/v2024-02-15/reference/create_template) +#### [Create Template](https://developers.klaviyo.com/en/v2024-05-15/reference/create_template) ```ruby KlaviyoAPI::Templates.create_template(body) @@ -2532,7 +2542,7 @@ KlaviyoAPI::Templates.create_template(body) -#### [Create Template Clone](https://developers.klaviyo.com/en/v2024-02-15/reference/create_template_clone) +#### [Create Template Clone](https://developers.klaviyo.com/en/v2024-05-15/reference/create_template_clone) ```ruby KlaviyoAPI::Templates.create_template_clone(body) @@ -2542,7 +2552,7 @@ KlaviyoAPI::Templates.create_template_clone(body) -#### [Create Template Render](https://developers.klaviyo.com/en/v2024-02-15/reference/create_template_render) +#### [Create Template Render](https://developers.klaviyo.com/en/v2024-05-15/reference/create_template_render) ```ruby KlaviyoAPI::Templates.create_template_render(body) @@ -2552,7 +2562,7 @@ KlaviyoAPI::Templates.create_template_render(body) -#### [Delete Template](https://developers.klaviyo.com/en/v2024-02-15/reference/delete_template) +#### [Delete Template](https://developers.klaviyo.com/en/v2024-05-15/reference/delete_template) ```ruby KlaviyoAPI::Templates.delete_template(id) @@ -2562,7 +2572,7 @@ KlaviyoAPI::Templates.delete_template(id) -#### [Get Template](https://developers.klaviyo.com/en/v2024-02-15/reference/get_template) +#### [Get Template](https://developers.klaviyo.com/en/v2024-05-15/reference/get_template) ```ruby KlaviyoAPI::Templates.get_template(id, opts) @@ -2572,7 +2582,7 @@ KlaviyoAPI::Templates.get_template(id, opts) -#### [Get Templates](https://developers.klaviyo.com/en/v2024-02-15/reference/get_templates) +#### [Get Templates](https://developers.klaviyo.com/en/v2024-05-15/reference/get_templates) ```ruby KlaviyoAPI::Templates.get_templates(opts) @@ -2582,7 +2592,7 @@ KlaviyoAPI::Templates.get_templates(opts) -#### [Update Template](https://developers.klaviyo.com/en/v2024-02-15/reference/update_template) +#### [Update Template](https://developers.klaviyo.com/en/v2024-05-15/reference/update_template) ```ruby KlaviyoAPI::Templates.update_template(id, body) diff --git a/klaviyo-api-sdk.gemspec b/klaviyo-api-sdk.gemspec index fcc393d..f7ebe18 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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 = "6.0.0" + s.version = "7.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 5b731c0..69ece26 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -19,6 +19,8 @@ # Models require 'klaviyo-api-sdk/models/audiences_sub_object' require 'klaviyo-api-sdk/models/back_in_stock_subscription_enum' +require 'klaviyo-api-sdk/models/base_event_create_query_resource_object' +require 'klaviyo-api-sdk/models/base_event_create_query_resource_object_attributes' require 'klaviyo-api-sdk/models/campaign_clone_query' require 'klaviyo-api-sdk/models/campaign_clone_query_resource_object' require 'klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes' @@ -173,12 +175,24 @@ 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_bulk_create_enum' +require 'klaviyo-api-sdk/models/event_bulk_create_job_enum' require 'klaviyo-api-sdk/models/event_create_query_v2' require 'klaviyo-api-sdk/models/event_create_query_v2_resource_object' require 'klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes' require 'klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_metric' require 'klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_profile' require 'klaviyo-api-sdk/models/event_enum' +require 'klaviyo-api-sdk/models/event_profile_create_query_resource_object' +require 'klaviyo-api-sdk/models/event_profile_create_query_resource_object_attributes' +require 'klaviyo-api-sdk/models/events_bulk_create_job' +require 'klaviyo-api-sdk/models/events_bulk_create_job_resource_object' +require 'klaviyo-api-sdk/models/events_bulk_create_job_resource_object_attributes' +require 'klaviyo-api-sdk/models/events_bulk_create_job_resource_object_attributes_events_bulk_create' +require 'klaviyo-api-sdk/models/events_bulk_create_query_resource_object' +require 'klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes' +require 'klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes_events' +require 'klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes_profile' require 'klaviyo-api-sdk/models/flow_enum' require 'klaviyo-api-sdk/models/flow_series_report_enum' require 'klaviyo-api-sdk/models/flow_series_request_dto' @@ -265,6 +279,8 @@ require 'klaviyo-api-sdk/models/profile_upsert_query' require 'klaviyo-api-sdk/models/profile_upsert_query_resource_object' require 'klaviyo-api-sdk/models/profile_upsert_query_resource_object_attributes' +require 'klaviyo-api-sdk/models/push_profile_upsert_query_resource_object' +require 'klaviyo-api-sdk/models/push_profile_upsert_query_resource_object_attributes' require 'klaviyo-api-sdk/models/push_token_create_query' require 'klaviyo-api-sdk/models/push_token_create_query_resource_object' require 'klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes' @@ -308,10 +324,20 @@ require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object' require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes' require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes_profiles' +require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships' +require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_list' +require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_list_data' +require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_segment' +require 'klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_segment_data' require 'klaviyo-api-sdk/models/suppression_delete_job_create_query' require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object' require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes' require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes_profiles' +require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships' +require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_list' +require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_list_data' +require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_segment' +require 'klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_segment_data' require 'klaviyo-api-sdk/models/tag_campaign_op' require 'klaviyo-api-sdk/models/tag_campaign_op_data_inner' require 'klaviyo-api-sdk/models/tag_create_query' diff --git a/lib/klaviyo-api-sdk/api/accounts_api.rb b/lib/klaviyo-api-sdk/api/accounts_api.rb index f769fd5..f9fedf1 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -44,7 +44,7 @@ def get_account_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.get_account" end - allowable_values = ["contact_information", "contact_information.default_sender_name", "contact_information.default_sender_email", "contact_information.website_url", "contact_information.organization_name", "contact_information.street_address", "contact_information.street_address.address1", "contact_information.street_address.address2", "contact_information.street_address.city", "contact_information.street_address.region", "contact_information.street_address.country", "contact_information.street_address.zip", "industry", "timezone", "preferred_currency", "public_api_key"] + allowable_values = ["test_account", "contact_information", "contact_information.default_sender_name", "contact_information.default_sender_email", "contact_information.website_url", "contact_information.organization_name", "contact_information.street_address", "contact_information.street_address.address1", "contact_information.street_address.address2", "contact_information.street_address.city", "contact_information.street_address.region", "contact_information.street_address.country", "contact_information.street_address.zip", "industry", "timezone", "preferred_currency", "public_api_key", "locale"] if @api_client.config.client_side_validation && opts[:'fields_account'] && !opts[:'fields_account'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_account\", must include one of #{allowable_values}" end @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_accounts(opts = {}) data, _status_code, _headers = get_accounts_with_http_info(opts) @@ -104,13 +104,13 @@ 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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @api_client.config.logger.debug 'Calling API: AccountsApi.get_accounts ...' end - allowable_values = ["contact_information", "contact_information.default_sender_name", "contact_information.default_sender_email", "contact_information.website_url", "contact_information.organization_name", "contact_information.street_address", "contact_information.street_address.address1", "contact_information.street_address.address2", "contact_information.street_address.city", "contact_information.street_address.region", "contact_information.street_address.country", "contact_information.street_address.zip", "industry", "timezone", "preferred_currency", "public_api_key"] + allowable_values = ["test_account", "contact_information", "contact_information.default_sender_name", "contact_information.default_sender_email", "contact_information.website_url", "contact_information.organization_name", "contact_information.street_address", "contact_information.street_address.address1", "contact_information.street_address.address2", "contact_information.street_address.city", "contact_information.street_address.region", "contact_information.street_address.country", "contact_information.street_address.zip", "industry", "timezone", "preferred_currency", "public_api_key", "locale"] if @api_client.config.client_side_validation && opts[:'fields_account'] && !opts[:'fields_account'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_account\", must include one of #{allowable_values}" end @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 5a99e7e..df4299b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-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 For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation_job For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_recipient_estimation_job For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_send_job For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign_send_job For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_campaign_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_campaign For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 a809a85..062ed4c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -953,12 +953,12 @@ def get_catalog_category_with_http_info(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -969,12 +969,12 @@ def get_catalog_category_items(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1120,9 +1120,9 @@ def get_catalog_category_relationships_items_with_http_info(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -1133,9 +1133,9 @@ def get_catalog_item(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1443,12 +1443,12 @@ def get_catalog_item_variants_with_http_info(id, opts = {}) # 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` 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sorting # @return [Hash] def get_catalog_items(opts = {}) data, _status_code, _headers = get_catalog_items_with_http_info(opts) @@ -1458,12 +1458,12 @@ def get_catalog_items(opts = {}) # 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` 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-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/v2024-05-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/v2024-02-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-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/v2024-05-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/v2024-02-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-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/v2024-05-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/v2024-02-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_delete_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_category For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_category_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_item For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_item_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_catalog_variant For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_catalog_variant_bulk_update_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -3065,7 +3065,7 @@ def get_update_variants_jobs_with_http_info(opts = {}) end # Spawn Create Categories Job - # Create a catalog category bulk create job to create a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog category bulk create job to create a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_category_create_job_create_query [CatalogCategoryCreateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3075,7 +3075,7 @@ def spawn_create_categories_job(catalog_category_create_job_create_query, opts = end # Spawn Create Categories Job - # Create a catalog category bulk create job to create a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog category bulk create job to create a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_category_create_job_create_query [CatalogCategoryCreateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3135,7 +3135,7 @@ def spawn_create_categories_job_with_http_info(catalog_category_create_job_creat end # Spawn Create Items Job - # Create a catalog item bulk create job to create a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog item bulk create job to create a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_item_create_job_create_query [CatalogItemCreateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3145,7 +3145,7 @@ def spawn_create_items_job(catalog_item_create_job_create_query, opts = {}) end # Spawn Create Items Job - # Create a catalog item bulk create job to create a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog item bulk create job to create a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_item_create_job_create_query [CatalogItemCreateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3205,7 +3205,7 @@ def spawn_create_items_job_with_http_info(catalog_item_create_job_create_query, end # Spawn Create Variants Job - # Create a catalog variant bulk create job to create a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog variant bulk create job to create a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_variant_create_job_create_query [CatalogVariantCreateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3215,7 +3215,7 @@ def spawn_create_variants_job(catalog_variant_create_job_create_query, opts = {} end # Spawn Create Variants Job - # Create a catalog variant bulk create job to create a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog variant bulk create job to create a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_variant_create_job_create_query [CatalogVariantCreateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3275,7 +3275,7 @@ def spawn_create_variants_job_with_http_info(catalog_variant_create_job_create_q end # Spawn Delete Categories Job - # Create a catalog category bulk delete job to delete a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog category bulk delete job to delete a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_category_delete_job_create_query [CatalogCategoryDeleteJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3285,7 +3285,7 @@ def spawn_delete_categories_job(catalog_category_delete_job_create_query, opts = end # Spawn Delete Categories Job - # Create a catalog category bulk delete job to delete a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog category bulk delete job to delete a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_category_delete_job_create_query [CatalogCategoryDeleteJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3345,7 +3345,7 @@ def spawn_delete_categories_job_with_http_info(catalog_category_delete_job_creat end # Spawn Delete Items Job - # Create a catalog item bulk delete job to delete a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog item bulk delete job to delete a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_item_delete_job_create_query [CatalogItemDeleteJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3355,7 +3355,7 @@ def spawn_delete_items_job(catalog_item_delete_job_create_query, opts = {}) end # Spawn Delete Items Job - # Create a catalog item bulk delete job to delete a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog item bulk delete job to delete a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_item_delete_job_create_query [CatalogItemDeleteJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3415,7 +3415,7 @@ def spawn_delete_items_job_with_http_info(catalog_item_delete_job_create_query, end # Spawn Delete Variants Job - # Create a catalog variant bulk delete job to delete a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog variant bulk delete job to delete a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_variant_delete_job_create_query [CatalogVariantDeleteJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3425,7 +3425,7 @@ def spawn_delete_variants_job(catalog_variant_delete_job_create_query, opts = {} end # Spawn Delete Variants Job - # Create a catalog variant bulk delete job to delete a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog variant bulk delete job to delete a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_variant_delete_job_create_query [CatalogVariantDeleteJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3485,7 +3485,7 @@ def spawn_delete_variants_job_with_http_info(catalog_variant_delete_job_create_q end # Spawn Update Categories Job - # Create a catalog category bulk update job to update a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog category bulk update job to update a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_category_update_job_create_query [CatalogCategoryUpdateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3495,7 +3495,7 @@ def spawn_update_categories_job(catalog_category_update_job_create_query, opts = end # Spawn Update Categories Job - # Create a catalog category bulk update job to update a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog category bulk update job to update a batch of catalog categories. Accepts up to 100 catalog categories per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_category_update_job_create_query [CatalogCategoryUpdateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3555,7 +3555,7 @@ def spawn_update_categories_job_with_http_info(catalog_category_update_job_creat end # Spawn Update Items Job - # Create a catalog item bulk update job to update a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog item bulk update job to update a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_item_update_job_create_query [CatalogItemUpdateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3565,7 +3565,7 @@ def spawn_update_items_job(catalog_item_update_job_create_query, opts = {}) end # Spawn Update Items Job - # Create a catalog item bulk update job to update a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog item bulk update job to update a batch of catalog items. Accepts up to 100 catalog items per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_item_update_job_create_query [CatalogItemUpdateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -3625,7 +3625,7 @@ def spawn_update_items_job_with_http_info(catalog_item_update_job_create_query, end # Spawn Update Variants Job - # Create a catalog variant bulk update job to update a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog variant bulk update job to update a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_variant_update_job_create_query [CatalogVariantUpdateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -3635,7 +3635,7 @@ def spawn_update_variants_job(catalog_variant_update_job_create_query, opts = {} end # Spawn Update Variants Job - # Create a catalog variant bulk update job to update a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` + # Create a catalog variant bulk update job to update a batch of catalog variants. Accepts up to 100 catalog variants per request. The maximum allowed payload size is 5MB. The maximum number of jobs in progress at one time is 500.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `catalogs:write` # @param catalog_variant_update_job_create_query [CatalogVariantUpdateJobCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 61baf8f..8468af9 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -365,9 +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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -378,9 +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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -414,7 +414,7 @@ def get_coupon_code_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -451,9 +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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -464,9 +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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -500,7 +500,7 @@ def get_coupon_code_bulk_create_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -536,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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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) @@ -548,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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code_bulk_create_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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 @@ -572,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -609,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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -620,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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -640,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -676,11 +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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Hash] def get_coupon_codes(opts = {}) data, _status_code, _headers = get_coupon_codes_with_http_info(opts) @@ -690,11 +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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -726,7 +726,7 @@ def get_coupon_codes_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -763,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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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) @@ -776,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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon_code For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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 @@ -804,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -838,10 +838,10 @@ def get_coupon_codes_for_coupon_with_http_info(id, opts = {}) end # Get Coupon For Coupon Code - # Gets a list of coupon codes associated with the given coupon id

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `coupons:read` + # Get the coupon associated with a given coupon code 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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -849,10 +849,10 @@ def get_coupon_for_coupon_code(id, opts = {}) end # Get Coupon For Coupon Code - # 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` + # Get the coupon associated with a given coupon code 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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -876,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -941,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -977,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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Hash] def get_coupons(opts = {}) data, _status_code, _headers = get_coupons_with_http_info(opts) @@ -988,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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_coupon For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -1010,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1075,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1151,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1227,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 b8061bc..f8c9051 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 5511d5e..7b6ef2f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -19,6 +19,76 @@ class EventsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Bulk Create Events + # Create a batch of events for one or more profiles. Accepts up to 1,000 events per request. The maximum allowed payload size is 5MB.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `events:write` + # @param events_bulk_create_job [EventsBulkCreateJob] + # @param [Hash] opts the optional parameters + # @return [nil] + def bulk_create_events(events_bulk_create_job, opts = {}) + bulk_create_events_with_http_info(events_bulk_create_job, opts) + nil + end + + # Bulk Create Events + # Create a batch of events for one or more profiles. Accepts up to 1,000 events per request. The maximum allowed payload size is 5MB.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `events:write` + # @param events_bulk_create_job [EventsBulkCreateJob] + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers + def bulk_create_events_with_http_info(events_bulk_create_job, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: EventsApi.bulk_create_events ...' + end + # verify the required parameter 'events_bulk_create_job' is set + if @api_client.config.client_side_validation && events_bulk_create_job.nil? + fail ArgumentError, "Missing the required parameter 'events_bulk_create_job' when calling EventsApi.bulk_create_events" + end + # resource path + local_var_path = '/api/event-bulk-create-jobs/' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # klaviyo api revision + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(events_bulk_create_job) + + # return_type + return_type = opts[:debug_return_type] + + # auth_names + auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key'] + + new_options = opts.merge( + :operation => :"EventsApi.bulk_create_events", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: EventsApi#bulk_create_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create Event # Create a new event to track a profile's activity. Successful response indicates that the event was validated and submitted for processing, but does not guarantee that processing is complete.

*Rate limits*:
Burst: `350/s`
Steady: `3500/m` **Scopes:** `events:write` # @param event_create_query_v2 [EventCreateQueryV2] @@ -51,7 +121,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -93,10 +163,10 @@ def create_event_with_http_info(event_create_query_v2, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships # @return [Hash] def get_event(id, opts = {}) data, _status_code, _headers = get_event_with_http_info(id, opts) @@ -107,10 +177,10 @@ def get_event(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -149,7 +219,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -186,7 +256,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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-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 +267,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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-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 +291,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -259,7 +329,7 @@ def get_event_metric_with_http_info(id, opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -271,7 +341,7 @@ def get_event_profile(id, opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -300,7 +370,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -365,7 +435,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -430,7 +500,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -466,13 +536,13 @@ def get_event_relationships_profile_with_http_info(id, opts = {}) # Get Events # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`profile`: `has`<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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`profile`: `has`<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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sorting # @return [Hash] def get_events(opts = {}) data, _status_code, _headers = get_events_with_http_info(opts) @@ -482,13 +552,13 @@ def get_events(opts = {}) # Get Events # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`profile`: `has`<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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_event For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`metric_id`: `equals`<br>`profile_id`: `equals`<br>`profile`: `has`<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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -530,7 +600,7 @@ def get_events_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 95da165..eddf50c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -23,10 +23,10 @@ def initialize(api_client = ApiClient.default) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships # @return [Hash] def get_flow(id, opts = {}) data, _status_code, _headers = get_flow_with_http_info(id, opts) @@ -37,10 +37,10 @@ def get_flow(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -116,10 +116,10 @@ def get_flow_with_http_info(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -130,10 +130,10 @@ def get_flow_action(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -624,10 +624,10 @@ def get_flow_flow_actions_with_http_info(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -638,10 +638,10 @@ def get_flow_message(id, opts = {}) # 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_message For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_flow_action For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_flow For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 24422f4..895a9b5 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_image For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 740c75c..7b2dd91 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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/v2024-05-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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/v2024-05-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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/v2024-05-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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/v2024-05-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `lists: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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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:** `lists: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/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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:** `lists: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/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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:** `lists:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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:** `lists:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 146a4a2..e064931 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_metric For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 8658b18..db41df8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,7 +51,7 @@ def create_or_update_profile_with_http_info(profile_upsert_query, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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_or_update_profile_with_http_info(profile_upsert_query, opts = {}) end # Create Profile - # Create a new profile. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:write` + # Create a new profile.

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:write` # @param profile_create_query [ProfileCreateQuery] # @param [Hash] opts the optional parameters # @return [Hash] @@ -100,7 +100,7 @@ def create_profile(profile_create_query, opts = {}) end # Create Profile - # Create a new profile. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write` + # Create a new profile.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write` # @param profile_create_query [ProfileCreateQuery] # @param [Hash] opts the optional parameters # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers @@ -121,7 +121,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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_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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -233,9 +233,9 @@ def create_push_token_with_http_info(push_token_create_query, opts = {}) # Get a bulk profile import job with the given job ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `lists:read` `profiles:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships # @return [Hash] def get_bulk_profile_import_job(job_id, opts = {}) data, _status_code, _headers = get_bulk_profile_import_job_with_http_info(job_id, opts) @@ -246,9 +246,9 @@ def get_bulk_profile_import_job(job_id, opts = {}) # Get a bulk profile import job with the given job ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `lists:read` `profiles:read` # @param job_id [String] ID of the job to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_bulk_profile_import_job_with_http_info(job_id, opts = {}) if @api_client.config.debugging @@ -282,7 +282,7 @@ def get_bulk_profile_import_job_with_http_info(job_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -319,8 +319,8 @@ def get_bulk_profile_import_job_with_http_info(job_id, opts = {}) # Get import errors for the bulk profile import job with the given ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_import_error For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_import_error For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) # @return [Hash] def get_bulk_profile_import_job_import_errors(id, opts = {}) @@ -332,8 +332,8 @@ def get_bulk_profile_import_job_import_errors(id, opts = {}) # Get import errors for the bulk profile import job with the given ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `profiles:read` # @param id [String] # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_import_error For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_import_error For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_bulk_profile_import_job_import_errors_with_http_info(id, opts = {}) @@ -368,7 +368,7 @@ def get_bulk_profile_import_job_import_errors_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -405,7 +405,7 @@ def get_bulk_profile_import_job_import_errors_with_http_info(id, opts = {}) # Get list for the bulk profile import job with the given ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets # @return [Hash] def get_bulk_profile_import_job_lists(id, opts = {}) data, _status_code, _headers = get_bulk_profile_import_job_lists_with_http_info(id, opts) @@ -416,7 +416,7 @@ def get_bulk_profile_import_job_lists(id, opts = {}) # Get list for the bulk profile import job with the given ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_bulk_profile_import_job_lists_with_http_info(id, opts = {}) if @api_client.config.debugging @@ -440,7 +440,7 @@ def get_bulk_profile_import_job_lists_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -478,8 +478,8 @@ def get_bulk_profile_import_job_lists_with_http_info(id, opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) # @return [Hash] def get_bulk_profile_import_job_profiles(id, opts = {}) @@ -492,8 +492,8 @@ def get_bulk_profile_import_job_profiles(id, opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_bulk_profile_import_job_profiles_with_http_info(id, opts = {}) @@ -533,7 +533,7 @@ def get_bulk_profile_import_job_profiles_with_http_info(id, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -598,7 +598,7 @@ def get_bulk_profile_import_job_relationships_lists_with_http_info(id, opts = {} # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -635,7 +635,7 @@ def get_bulk_profile_import_job_relationships_lists_with_http_info(id, opts = {} # Get profile relationships for the bulk profile import job with the given ID.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `profiles: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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) # @return [Hash] def get_bulk_profile_import_job_relationships_profiles(id, opts = {}) @@ -647,7 +647,7 @@ def get_bulk_profile_import_job_relationships_profiles(id, opts = {}) # Get profile relationships for the bulk profile import job with the given ID.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `profiles: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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @option opts [Integer] :page_size Default: 20. Min: 1. Max: 100. (default to 20) # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_bulk_profile_import_job_relationships_profiles_with_http_info(id, opts = {}) @@ -677,7 +677,7 @@ def get_bulk_profile_import_job_relationships_profiles_with_http_info(id, opts = # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -713,11 +713,11 @@ def get_bulk_profile_import_job_relationships_profiles_with_http_info(id, opts = # Get Bulk Profile Import Jobs # Get all bulk profile import jobs. Returns a maximum of 100 jobs per request.

*Rate limits*:
Burst: `10/s`
Steady: `150/m` **Scopes:** `lists:read` `profiles:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `any`, `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sorting # @return [Hash] def get_bulk_profile_import_jobs(opts = {}) data, _status_code, _headers = get_bulk_profile_import_jobs_with_http_info(opts) @@ -727,11 +727,11 @@ def get_bulk_profile_import_jobs(opts = {}) # Get Bulk Profile Import Jobs # Get all bulk profile import jobs. Returns a maximum of 100 jobs per request.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `lists:read` `profiles:read` # @param [Hash] opts the optional parameters - # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `any`, `equals` - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile_bulk_import_job For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`status`: `any`, `equals` + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sorting # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def get_bulk_profile_import_jobs_with_http_info(opts = {}) if @api_client.config.debugging @@ -767,7 +767,7 @@ def get_bulk_profile_import_jobs_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -805,10 +805,10 @@ def get_bulk_profile_import_jobs_with_http_info(opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships # @return [Hash] def get_profile(id, opts = {}) data, _status_code, _headers = get_profile_with_http_info(id, opts) @@ -820,10 +820,10 @@ def get_profile(id, opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -845,7 +845,7 @@ def get_profile_with_http_info(id, opts = {}) 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 - allowable_values = ["name", "created", "updated"] + allowable_values = ["name", "created", "updated", "is_active", "is_processing", "is_starred"] if @api_client.config.client_side_validation && opts[:'fields_segment'] && !opts[:'fields_segment'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_segment\", must include one of #{allowable_values}" end @@ -867,7 +867,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -904,7 +904,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:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -915,7 +915,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:** `lists: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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_list For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -939,7 +939,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1004,7 +1004,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1069,7 +1069,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1106,7 +1106,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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -1117,7 +1117,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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -1127,7 +1127,7 @@ def get_profile_segments_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_segments" end - allowable_values = ["name", "created", "updated"] + allowable_values = ["name", "created", "updated", "is_active", "is_processing", "is_starred"] if @api_client.config.client_side_validation && opts[:'fields_segment'] && !opts[:'fields_segment'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_segment\", must include one of #{allowable_values}" end @@ -1141,7 +1141,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1175,14 +1175,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`, `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/v2024-02-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/v2024-05-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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sorting # @return [Hash] def get_profiles(opts = {}) data, _status_code, _headers = get_profiles_with_http_info(opts) @@ -1190,14 +1190,14 @@ 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`, `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/v2024-02-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/v2024-05-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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -1238,7 +1238,7 @@ def get_profiles_with_http_info(opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -1303,7 +1303,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1373,7 +1373,7 @@ def spawn_bulk_profile_import_job_with_http_info(profile_import_job_create_query # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1443,7 +1443,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1482,7 +1482,7 @@ def subscribe_profiles_with_http_info(subscription_create_job_create_query, opts end # Suppress Profiles - # Manually suppress one or more profiles. Such profiles will have `USER_SUPPRESSED` as their suppression reason. Manually suppressed profiles _will not_ receive email marketing. Learn more about [suppressed profiles](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1). Learn about [collecting consent and best practices](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api). Not supported for SMS marketing. Maximum number of profile can be submitted for suppression: 100

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:write` `subscriptions:write` + # Manually suppress profiles using their email address, or by specifying a segment or list ID to suppress all current members. Suppressed profiles cannot receive email marketing, independent of their consent status. To learn more, see our [email suppressions guide](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1) and our [collecting consent guide](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api). Email addresses per request limit: 100

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:write` `subscriptions:write` # @param suppression_create_job_create_query [SuppressionCreateJobCreateQuery] Suppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, one will be created and immediately suppressed. # @param [Hash] opts the optional parameters # @return [nil] @@ -1492,7 +1492,7 @@ def suppress_profiles(suppression_create_job_create_query, opts = {}) end # Suppress Profiles - # Manually suppress one or more profiles. Such profiles will have `USER_SUPPRESSED` as their suppression reason. Manually suppressed profiles _will not_ receive email marketing. Learn more about [suppressed profiles](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1). Learn about [collecting consent and best practices](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api). Not supported for SMS marketing. Maximum number of profile can be submitted for suppression: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write` `subscriptions:write` + # Manually suppress profiles using their email address, or by specifying a segment or list ID to suppress all current members. Suppressed profiles cannot receive email marketing, independent of their consent status. To learn more, see our [email suppressions guide](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1) and our [collecting consent guide](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api). Email addresses per request limit: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write` `subscriptions:write` # @param suppression_create_job_create_query [SuppressionCreateJobCreateQuery] Suppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, one will be created and immediately suppressed. # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -1513,7 +1513,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1583,7 +1583,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1622,7 +1622,7 @@ def unsubscribe_profiles_with_http_info(subscription_delete_job_create_query, op end # Unsuppress Profiles - # Unsuppress one or more profiles, this will remove any Manual Suppressions (USER_SUPPRESSED) on these profiles. A profile may receive email marketing after a manual suppression is removed so long as they have not revoked [consent](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api), i.e. unsubscribed. Not supported for SMS marketing. Only manual suppressions (USER_SUPPRESSED) will be removed. `UNSUBSCRIBE` and `SPAM_REPORT` suppressions are removed whenever a [profile resubscribes](https://developers.klaviyo.com/en/reference/subscribe_profiles). `INVALID_EMAIL` and `HARD_BOUNCE` suppressions cannot be removed by the API. Maximum number of profile can be submitted for unsuppression: 100

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `subscriptions:write` + # Manually unsuppress profiles using their email address, or by specifying a segment or list ID to unsuppress all current members. This only removes suppressions with reason `USER_SUPPRESSED`, leaving unsubscribed profiles and profiles suppressed with reason `INVALID_EMAIL` or `HARD_BOUNCE` unchanged. To learn more, see our [email suppressions guide](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1) and our [collecting consent guide](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api). Email addresses per request limit: 100

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `subscriptions:write` # @param suppression_delete_job_create_query [SuppressionDeleteJobCreateQuery] Unsuppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, no action will be taken. # @param [Hash] opts the optional parameters # @return [nil] @@ -1632,7 +1632,7 @@ def unsuppress_profiles(suppression_delete_job_create_query, opts = {}) end # Unsuppress Profiles - # Unsuppress one or more profiles, this will remove any Manual Suppressions (USER_SUPPRESSED) on these profiles. A profile may receive email marketing after a manual suppression is removed so long as they have not revoked [consent](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api), i.e. unsubscribed. Not supported for SMS marketing. Only manual suppressions (USER_SUPPRESSED) will be removed. `UNSUBSCRIBE` and `SPAM_REPORT` suppressions are removed whenever a [profile resubscribes](https://developers.klaviyo.com/en/reference/subscribe_profiles). `INVALID_EMAIL` and `HARD_BOUNCE` suppressions cannot be removed by the API. Maximum number of profile can be submitted for unsuppression: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `subscriptions:write` + # Manually unsuppress profiles using their email address, or by specifying a segment or list ID to unsuppress all current members. This only removes suppressions with reason `USER_SUPPRESSED`, leaving unsubscribed profiles and profiles suppressed with reason `INVALID_EMAIL` or `HARD_BOUNCE` unchanged. To learn more, see our [email suppressions guide](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1) and our [collecting consent guide](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api). Email addresses per request limit: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `subscriptions:write` # @param suppression_delete_job_create_query [SuppressionDeleteJobCreateQuery] Unsuppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, no action will be taken. # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -1653,7 +1653,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -1692,7 +1692,7 @@ def unsuppress_profiles_with_http_info(suppression_delete_job_create_query, opts end # Update Profile - # Update the profile with the given profile ID. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.

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

*Rate limits*:
Burst: `75/s`
Steady: `700/m` **Scopes:** `profiles:write` # @param id [String] Primary key that uniquely identifies this profile. Generated by Klaviyo. # @param profile_partial_update_query [ProfilePartialUpdateQuery] # @param [Hash] opts the optional parameters @@ -1703,7 +1703,7 @@ def update_profile(id, profile_partial_update_query, opts = {}) end # Update Profile - # Update the profile with the given profile ID. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write` + # Update the profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write` # @param id [String] Primary key that uniquely identifies this profile. Generated by Klaviyo. # @param profile_partial_update_query [ProfilePartialUpdateQuery] # @param [Hash] opts the optional parameters @@ -1729,7 +1729,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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/reporting_api.rb b/lib/klaviyo-api-sdk/api/reporting_api.rb index c61ad01..7f406b3 100644 --- a/lib/klaviyo-api-sdk/api/reporting_api.rb +++ b/lib/klaviyo-api-sdk/api/reporting_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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) # Returns the requested campaign analytics values data

*Rate limits*:
Burst: `1/s`
Steady: `2/m`
Daily: `225/d` **Scopes:** `campaigns:read` # @param campaign_values_request_dto [CampaignValuesRequestDTO] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Hash] def query_campaign_values(campaign_values_request_dto, opts = {}) data, _status_code, _headers = query_campaign_values_with_http_info(campaign_values_request_dto, opts) @@ -34,7 +34,7 @@ def query_campaign_values(campaign_values_request_dto, opts = {}) # Returns the requested campaign analytics values data<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `2/m`<br>Daily: `225/d` **Scopes:** `campaigns:read` # @param campaign_values_request_dto [CampaignValuesRequestDTO] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def query_campaign_values_with_http_info(campaign_values_request_dto, opts = {}) if @api_client.config.debugging @@ -54,7 +54,7 @@ def query_campaign_values_with_http_info(campaign_values_request_dto, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -96,7 +96,7 @@ def query_campaign_values_with_http_info(campaign_values_request_dto, opts = {}) # Returns the requested flow analytics series data

*Rate limits*:
Burst: `1/s`
Steady: `2/m`
Daily: `225/d` **Scopes:** `flows:read` # @param flow_series_request_dto [FlowSeriesRequestDTO] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Hash] def query_flow_series(flow_series_request_dto, opts = {}) data, _status_code, _headers = query_flow_series_with_http_info(flow_series_request_dto, opts) @@ -107,7 +107,7 @@ def query_flow_series(flow_series_request_dto, opts = {}) # Returns the requested flow analytics series data<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `2/m`<br>Daily: `225/d` **Scopes:** `flows:read` # @param flow_series_request_dto [FlowSeriesRequestDTO] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def query_flow_series_with_http_info(flow_series_request_dto, opts = {}) if @api_client.config.debugging @@ -127,7 +127,7 @@ def query_flow_series_with_http_info(flow_series_request_dto, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' @@ -169,7 +169,7 @@ def query_flow_series_with_http_info(flow_series_request_dto, opts = {}) # Returns the requested flow analytics values data

*Rate limits*:
Burst: `1/s`
Steady: `2/m`
Daily: `225/d` **Scopes:** `flows:read` # @param flow_values_request_dto [FlowValuesRequestDTO] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Hash] def query_flow_values(flow_values_request_dto, opts = {}) data, _status_code, _headers = query_flow_values_with_http_info(flow_values_request_dto, opts) @@ -180,7 +180,7 @@ def query_flow_values(flow_values_request_dto, opts = {}) # Returns the requested flow analytics values data<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `2/m`<br>Daily: `225/d` **Scopes:** `flows:read` # @param flow_values_request_dto [FlowValuesRequestDTO] # @param [Hash] opts the optional parameters - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers def query_flow_values_with_http_info(flow_values_request_dto, opts = {}) if @api_client.config.debugging @@ -200,7 +200,7 @@ def query_flow_values_with_http_info(flow_values_request_dto, opts = {}) # header parameters header_params = opts[:header_params] || {} # klaviyo api revision - header_params['revision'] = ENV['API_REVISION'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 ed8537a..1c7354b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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/v2024-02-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-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/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -54,7 +54,7 @@ def get_segment_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && opts[:'additional_fields_segment'] && !opts[:'additional_fields_segment'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"additional_fields_segment\", must include one of #{allowable_values}" end - allowable_values = ["name", "created", "updated", "profile_count"] + allowable_values = ["name", "created", "updated", "is_active", "is_processing", "is_starred", "profile_count"] if @api_client.config.client_side_validation && opts[:'fields_segment'] && !opts[:'fields_segment'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_segment\", must include one of #{allowable_values}" end @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -117,11 +117,11 @@ def get_segment_with_http_info(id, opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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) @@ -133,11 +133,11 @@ def get_segment_profiles(id, opts = {}) # @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: 'subscriptions', 'predictive_analytics' - # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-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/v2024-02-15/reference/api-overview#pagination + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-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/v2024-02-15/reference/api-overview#sorting + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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`<br>`is_active`: `any`, `equals`<br>`is_starred`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination # @return [Hash] def get_segments(opts = {}) data, _status_code, _headers = get_segments_with_http_info(opts) @@ -458,17 +458,17 @@ 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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination + # @option opts [Array] :fields_segment For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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`<br>`is_active`: `any`, `equals`<br>`is_starred`: `equals` + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-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 @api_client.config.logger.debug 'Calling API: SegmentsApi.get_segments ...' end - allowable_values = ["name", "created", "updated"] + allowable_values = ["name", "created", "updated", "is_active", "is_processing", "is_starred"] if @api_client.config.client_side_validation && opts[:'fields_segment'] && !opts[:'fields_segment'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"fields_segment\", must include one of #{allowable_values}" end @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15" # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) @@ -528,7 +528,7 @@ def get_segments_with_http_info(opts = {}) end # Update Segment - # Update the name of a segment with the given segment ID.

*Rate limits*:
Burst: `1/s`
Steady: `15/m` **Scopes:** `segments:write` + # Update the name of a segment with the given segment ID.

*Rate limits*:
Burst: `1/s`
Steady: `15/m`
Daily: `100/d` **Scopes:** `segments:write` # @param id [String] # @param segment_partial_update_query [SegmentPartialUpdateQuery] # @param [Hash] opts the optional parameters @@ -539,7 +539,7 @@ def update_segment(id, segment_partial_update_query, opts = {}) end # Update Segment - # Update the name of a segment with the given segment ID.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `segments:write` + # Update the name of a segment with the given segment ID.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m`<br>Daily: `100/d` **Scopes:** `segments:write` # @param id [String] # @param segment_partial_update_query [SegmentPartialUpdateQuery] # @param [Hash] opts the optional parameters @@ -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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 618a3bd..0b3f73e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#relationships + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :include For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#relationships - # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_tag_group For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_tag For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#relationships + # @option opts [String] :page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 b696c2f..4afee83 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-02-15/reference/api-overview#sparse-fieldsets - # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-02-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/v2024-02-15/reference/api-overview#pagination - # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sorting + # @option opts [Array] :fields_template For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets + # @option opts [String] :filter For more information please visit https://developers.klaviyo.com/en/v2024-05-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/v2024-05-15/reference/api-overview#pagination + # @option opts [String] :sort For more information please visit https://developers.klaviyo.com/en/v2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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'] || "2024-02-15" + header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-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 ede3e58..b6df55a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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/6.0.0" + @user_agent = "klaviyo-api-ruby/7.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 36f1ddc..cbee86c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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 a3efc37..cb8d624 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 295a328..20f8e15 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'included', + :'excluded' ]) end 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 bd8be70..e527bd2 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/base_event_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/base_event_create_query_resource_object.rb new file mode 100644 index 0000000..211a3c7 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/base_event_create_query_resource_object.rb @@ -0,0 +1,238 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 BaseEventCreateQueryResourceObject + attr_accessor :type + + attr_accessor :attributes + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'attributes' => :'attributes' + } + 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 + { + :'type' => :'EventEnum', + :'attributes' => :'BaseEventCreateQueryResourceObjectAttributes' + } + 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::BaseEventCreateQueryResourceObject` 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::BaseEventCreateQueryResourceObject`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @attributes.nil? + invalid_properties.push('invalid value for "attributes", attributes 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 @type.nil? + return false if @attributes.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 && + type == o.type && + attributes == o.attributes + 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 + [type, attributes].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/base_event_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/base_event_create_query_resource_object_attributes.rb new file mode 100644 index 0000000..62e64fe --- /dev/null +++ b/lib/klaviyo-api-sdk/models/base_event_create_query_resource_object_attributes.rb @@ -0,0 +1,283 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 BaseEventCreateQueryResourceObjectAttributes + # Properties of this event. Any top level property (that are not objects) can be used to create segments. The $extra property is a special property. This records any non-segmentable values that can be referenced later. For example, HTML templates are useful on a segment but are not used to create a segment. There are limits placed onto the size of the data present. This must not exceed 5 MB. This must not exceed 300 event properties. A single string cannot be larger than 100 KB. Each array must not exceed 4000 elements. The properties cannot contain more than 10 nested levels. + attr_accessor :properties + + # When this event occurred. By default, the time the request was received will be used. The time is truncated to the second. The time must be after the year 2000 and can only be up to 1 year in the future. + attr_accessor :time + + # A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase. + attr_accessor :value + + # The ISO 4217 currency code of the value associated with the event. + attr_accessor :value_currency + + # A unique identifier for an event. If the unique_id is repeated for the same profile and metric, only the first processed event will be recorded. If this is not present, this will use the time to the second. Using the default, this limits only one event per profile per second. + attr_accessor :unique_id + + attr_accessor :metric + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'properties' => :'properties', + :'time' => :'time', + :'value' => :'value', + :'value_currency' => :'value_currency', + :'unique_id' => :'unique_id', + :'metric' => :'metric' + } + 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 + { + :'properties' => :'Object', + :'time' => :'Time', + :'value' => :'Float', + :'value_currency' => :'String', + :'unique_id' => :'String', + :'metric' => :'EventCreateQueryV2ResourceObjectAttributesMetric' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'time', + :'value', + :'value_currency', + :'unique_id', + ]) + 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::BaseEventCreateQueryResourceObjectAttributes` 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::BaseEventCreateQueryResourceObjectAttributes`. 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?(:'properties') + self.properties = attributes[:'properties'] + end + + if attributes.key?(:'time') + self.time = attributes[:'time'] + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + end + + if attributes.key?(:'value_currency') + self.value_currency = attributes[:'value_currency'] + end + + if attributes.key?(:'unique_id') + self.unique_id = attributes[:'unique_id'] + end + + if attributes.key?(:'metric') + self.metric = attributes[:'metric'] + 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 @properties.nil? + invalid_properties.push('invalid value for "properties", properties cannot be nil.') + end + + if @metric.nil? + invalid_properties.push('invalid value for "metric", metric 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 @properties.nil? + return false if @metric.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 && + properties == o.properties && + time == o.time && + value == o.value && + value_currency == o.value_currency && + unique_id == o.unique_id && + metric == o.metric + 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 + [properties, time, value, value_currency, unique_id, metric].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/campaign_clone_query.rb b/lib/klaviyo-api-sdk/models/campaign_clone_query.rb index d491d8d..df3ae65 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9ea5b25..65c0388 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8200738..208330d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'new_name' ]) end diff --git a/lib/klaviyo-api-sdk/models/campaign_create_query.rb b/lib/klaviyo-api-sdk/models/campaign_create_query.rb index ee6250a..4e09cf5 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 fdd55b7..1473024 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ce9b3b2..84b6e42 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -60,6 +60,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'send_options', + :'tracking_options', ]) end 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 b03cf79..9880068 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 4ec1993..fc7b24b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 f6d2436..06d505c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 de21614..80ed06e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 350d101..c564455 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 dfd8764..24bcc2d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -91,10 +91,6 @@ 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 @@ -103,7 +99,6 @@ 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 ce85a6b..b857098 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ 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 c3196c3..9a2a6de 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 331ca83..fd168ac 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ea2c3d9..6d1f9ea 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 50ff9f0..c4f90b4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -53,6 +53,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'label', + :'content', ]) end 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 943e50b..b70bdea 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ddd558a..6406b84 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 44b53e2..1c98ebf 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d2991d4..d23d422 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 25e1ef1..e4a0af9 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -48,6 +48,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'label', + :'content', ]) end 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 d2b4753..efebdab 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 6ccfae5..fb4d9a6 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 0ab0920..27dd7f5 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -56,6 +56,9 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'name', + :'send_options', + :'tracking_options', ]) end 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 0b3aa5e..69eae89 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 40bca2a..87c739e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 211d4d0..090be90 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 4a55c1b..763bedb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 0ab85a4..35f8a40 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3ea57a5..ddacfe4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 149577c..86e2af3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d2ac290..7d11587 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 b005aef..c7c2bf5 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_report_enum.rb b/lib/klaviyo-api-sdk/models/campaign_values_report_enum.rb index 05c32dc..a0ecd18 100644 --- a/lib/klaviyo-api-sdk/models/campaign_values_report_enum.rb +++ b/lib/klaviyo-api-sdk/models/campaign_values_report_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_request_dto.rb b/lib/klaviyo-api-sdk/models/campaign_values_request_dto.rb index 3e1aedc..3351c06 100644 --- a/lib/klaviyo-api-sdk/models/campaign_values_request_dto.rb +++ b/lib/klaviyo-api-sdk/models/campaign_values_request_dto.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_request_dto_resource_object.rb b/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object.rb index 3a4e833..cd1608b 100644 --- a/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/campaign_values_request_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_request_dto_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object_attributes.rb index 7d41d6d..311f69b 100644 --- a/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/campaign_values_request_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -23,7 +23,7 @@ class CampaignValuesRequestDTOResourceObjectAttributes # ID of the metric to be used for conversion statistics attr_accessor :conversion_metric_id - # API filter string used to filter the query. Allowed filters are send_channel, campaign_id. Allowed operators are equals, contains-any. Only one filter can be used per attribute, only AND can be used as a combination operator. Max of 100 messages per ANY filter. + # API filter string used to filter the query. Allowed filters are send_channel, campaign_id. Allowed operators are equals, contains-any. Only one filter can be used per attribute, only AND can be used as a combination operator. Max of 100 messages per ANY filter. When filtering on send_channel, allowed values are email, push-notification, sms. attr_accessor :filter class EnumAttributeValidator @@ -76,6 +76,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'filter' ]) end diff --git a/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object_attributes_timeframe.rb b/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object_attributes_timeframe.rb index 445bf1a..aed07c2 100644 --- a/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object_attributes_timeframe.rb +++ b/lib/klaviyo-api-sdk/models/campaign_values_request_dto_resource_object_attributes_timeframe.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 48fb237..65dfccd 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 66d232e..a97fabd 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 01399a9..a358c8e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 178c508..97490c5 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 f61828b..8fa5f5f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9afa5f5..62d62af 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 2bdd3ef..f3d9742 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 a1b5ad3..baa22a8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 955475e..74e3489 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 32a2952..dc01e2c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -77,6 +77,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'integration_type', + :'catalog_type' ]) end 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 c09e95e..b61c25b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 b0671bd..4bbfcfc 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -68,17 +68,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 7134b8c..0bc0226 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 e5878a3..549a581 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ee32281..29a5c57 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3df2733..2d5a522 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7333cb8..60975cb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 bc8f1d5..8f2bbb8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 5d55874..7c5b424 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d4595ee..27628aa 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c6650c5..75acf9d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 504a4ae..6ae2868 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 371d283..6ea8d78 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8f60391..abe8366 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 998eeae..03240e9 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 0d56a72..a97ae5e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 80def19..b39e2da 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'name' ]) end 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 59ba1ab..72d1422 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 a977514..85d929f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8916c2f..a36ec6a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 2b3ef43..3ab6e09 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 1ef3936..49043d7 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 58392c0..e3c3e02 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3d25fd9..783141d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 36c55b5..35ce334 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 24829bb..fc7f201 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 23145b4..15aa9df 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 e24e2ce..55f25c0 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -117,6 +117,14 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'integration_type', + :'price', + :'catalog_type', + :'image_full_url', + :'image_thumbnail_url', + :'images', + :'custom_metadata', + :'published' ]) end 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 f9416dd..8668a9a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8524781..b15bf1a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -68,17 +68,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 bd9493b..a77de59 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 1eb8b59..497d6f3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 294c283..4d846d4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9df4f89..611ed7d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7ea2d11..2db8abb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8f62990..3d5538d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 968247f..7680af2 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7b95a5f..61e1bd9 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 49654fa..5aee97b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 23582b7..5bd7169 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 741dcc4..ff20430 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 0d46797..81a8d2c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 a63d66b..6d758e5 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 10ad56e..e70d30a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -80,6 +80,15 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'title', + :'price', + :'description', + :'url', + :'image_full_url', + :'image_thumbnail_url', + :'images', + :'custom_metadata', + :'published' ]) end 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 865ae92..66af510 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 eaa4ae3..151f31f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 549e7bc..69d9755 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3de9582..3fac8e1 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 b9a20fd..4740c4d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 839d0d9..1b0d1af 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d9150a1..aad022c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 a65edcb..b7907ca 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d43a1b6..1125dd0 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,10 +90,6 @@ 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 @@ -102,7 +98,6 @@ 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 b7108e5..efee3d7 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -132,6 +132,14 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'catalog_type', + :'integration_type', + :'inventory_policy', + :'image_full_url', + :'image_thumbnail_url', + :'images', + :'custom_metadata', + :'published' ]) end 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 9a668fe..1237d46 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ 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 63af418..97a22ee 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 5e331e2..1f3c6eb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 5be3cb6..200126f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9928886..309e0c5 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 753a1d7..23b8314 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7c3f290..dcb094a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 33d5793..8bd6928 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 fca1e22..897ca64 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 e5f53ef..9767936 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 e5aa1a4..1e40323 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 25f5a0c..47869d3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 726467d..9171aed 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c94b1a3..5e1f28c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 514cb1b..fa41da6 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 09b61ca..73985b3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -117,6 +117,18 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'title', + :'description', + :'sku', + :'inventory_policy', + :'inventory_quantity', + :'price', + :'url', + :'image_full_url', + :'image_thumbnail_url', + :'images', + :'custom_metadata', + :'published' ]) end 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 1666fdd..d6308f6 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 21afbf5..12c5f8a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 13ed5c5..443427a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d57d8b8..7eff0bd 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 44c3aae..658eb88 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 94ea974..0036464 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 b18a7b9..8b4635c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,10 +90,6 @@ 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 @@ -102,7 +98,6 @@ 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 8ce4e4b..20e545f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'expires_at' ]) end 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 cd15a4a..074d550 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ 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 28794fb..dfde737 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 f755da4..037e67c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ab2f1d7..70ee7dd 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 5d76466..de6d038 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 39c0d35..16e4683 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 f8454cd..0313cfb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -67,6 +67,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'status', + :'expires_at' ]) end diff --git a/lib/klaviyo-api-sdk/models/coupon_create_query.rb b/lib/klaviyo-api-sdk/models/coupon_create_query.rb index a2ecabf..ce104aa 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 948ab80..0aad740 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 92ee987..30cd2ce 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'description' ]) end diff --git a/lib/klaviyo-api-sdk/models/coupon_enum.rb b/lib/klaviyo-api-sdk/models/coupon_enum.rb index 485f5c1..8af5b03 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3ea585c..a577977 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9481777..32dd94e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 5958f9e..8b0e638 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'description' ]) end diff --git a/lib/klaviyo-api-sdk/models/custom_timeframe.rb b/lib/klaviyo-api-sdk/models/custom_timeframe.rb index ce8dac9..f900cdd 100644 --- a/lib/klaviyo-api-sdk/models/custom_timeframe.rb +++ b/lib/klaviyo-api-sdk/models/custom_timeframe.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 84f2339..2205db1 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 422107d..077b27b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 dfdaea3..a41897a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 4f68682..788b6d8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 2f95475..be707aa 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7be3c36..9e804b8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -48,6 +48,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'id', ]) end 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 1339b2b..e7bccee 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number' ]) end diff --git a/lib/klaviyo-api-sdk/models/device_metadata.rb b/lib/klaviyo-api-sdk/models/device_metadata.rb index 3cccf7c..d44358f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -117,6 +117,18 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'device_id', + :'klaviyo_sdk', + :'sdk_version', + :'device_model', + :'os_name', + :'os_version', + :'manufacturer', + :'app_name', + :'app_version', + :'app_build', + :'app_id', + :'environment' ]) end 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 b0d30a8..c3bd740 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -70,6 +70,13 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'subject', + :'preview_text', + :'from_email', + :'from_label', + :'reply_to_email', + :'cc_email', + :'bcc_email' ]) end 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 5e36fee..d12b970 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'use_smart_sending' ]) end diff --git a/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb b/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb index 1dcc749..113385c 100644 --- a/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb +++ b/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_tracking_options_sub_object.rb b/lib/klaviyo-api-sdk/models/email_tracking_options_sub_object.rb index 4f22347..bd88a57 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -55,6 +55,10 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'is_add_utm', + :'utm_params', + :'is_tracking_clicks', + :'is_tracking_opens' ]) end diff --git a/lib/klaviyo-api-sdk/models/event_bulk_create_enum.rb b/lib/klaviyo-api-sdk/models/event_bulk_create_enum.rb new file mode 100644 index 0000000..2aadabb --- /dev/null +++ b/lib/klaviyo-api-sdk/models/event_bulk_create_enum.rb @@ -0,0 +1,36 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventBulkCreateEnum + EVENT_BULK_CREATE = "event-bulk-create".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + constantValues = EventBulkCreateEnum.constants.select { |c| EventBulkCreateEnum::const_get(c) == value } + raise "Invalid ENUM value #{value} for class #EventBulkCreateEnum" if constantValues.empty? + value + end + end +end diff --git a/lib/klaviyo-api-sdk/models/event_bulk_create_job_enum.rb b/lib/klaviyo-api-sdk/models/event_bulk_create_job_enum.rb new file mode 100644 index 0000000..b6978ef --- /dev/null +++ b/lib/klaviyo-api-sdk/models/event_bulk_create_job_enum.rb @@ -0,0 +1,36 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventBulkCreateJobEnum + EVENT_BULK_CREATE_JOB = "event-bulk-create-job".freeze + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + constantValues = EventBulkCreateJobEnum.constants.select { |c| EventBulkCreateJobEnum::const_get(c) == value } + raise "Invalid ENUM value #{value} for class #EventBulkCreateJobEnum" if constantValues.empty? + value + end + end +end 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 195f0d9..a9044df 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c3acd63..4f2d85f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8b45529..be86b8b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -21,9 +21,12 @@ class EventCreateQueryV2ResourceObjectAttributes # When this event occurred. By default, the time the request was received will be used. The time is truncated to the second. The time must be after the year 2000 and can only be up to 1 year in the future. attr_accessor :time - # A numeric value to associate with this event. For example, the dollar amount of a purchase. + # A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase. attr_accessor :value + # The ISO 4217 currency code of the value associated with the event. + attr_accessor :value_currency + # A unique identifier for an event. If the unique_id is repeated for the same profile and metric, only the first processed event will be recorded. If this is not present, this will use the time to the second. Using the default, this limits only one event per profile per second. attr_accessor :unique_id @@ -37,6 +40,7 @@ def self.attribute_map :'properties' => :'properties', :'time' => :'time', :'value' => :'value', + :'value_currency' => :'value_currency', :'unique_id' => :'unique_id', :'metric' => :'metric', :'profile' => :'profile' @@ -54,6 +58,7 @@ def self.openapi_types :'properties' => :'Object', :'time' => :'Time', :'value' => :'Float', + :'value_currency' => :'String', :'unique_id' => :'String', :'metric' => :'EventCreateQueryV2ResourceObjectAttributesMetric', :'profile' => :'EventCreateQueryV2ResourceObjectAttributesProfile' @@ -63,6 +68,10 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'time', + :'value', + :'value_currency', + :'unique_id', ]) end @@ -93,6 +102,10 @@ def initialize(attributes = {}) self.value = attributes[:'value'] end + if attributes.key?(:'value_currency') + self.value_currency = attributes[:'value_currency'] + end + if attributes.key?(:'unique_id') self.unique_id = attributes[:'unique_id'] end @@ -142,6 +155,7 @@ def ==(o) properties == o.properties && time == o.time && value == o.value && + value_currency == o.value_currency && unique_id == o.unique_id && metric == o.metric && profile == o.profile @@ -156,7 +170,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [properties, time, value, unique_id, metric, profile].hash + [properties, time, value, value_currency, unique_id, metric, profile].hash end # Builds the object from hash 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 16ecb9f..cb6eac1 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 42aae42..c2c98c9 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -32,7 +32,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'data' => :'OnsiteProfileCreateQueryResourceObject' + :'data' => :'EventProfileCreateQueryResourceObject' } end diff --git a/lib/klaviyo-api-sdk/models/event_enum.rb b/lib/klaviyo-api-sdk/models/event_enum.rb index dc05c54..567d1e2 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_profile_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/event_profile_create_query_resource_object.rb new file mode 100644 index 0000000..06c36ab --- /dev/null +++ b/lib/klaviyo-api-sdk/models/event_profile_create_query_resource_object.rb @@ -0,0 +1,249 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventProfileCreateQueryResourceObject + attr_accessor :type + + # Primary key that uniquely identifies this profile. Generated by Klaviyo. + attr_accessor :id + + attr_accessor :attributes + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'id' => :'id', + :'attributes' => :'attributes' + } + 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 + { + :'type' => :'ProfileEnum', + :'id' => :'String', + :'attributes' => :'EventProfileCreateQueryResourceObjectAttributes' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'id', + ]) + 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::EventProfileCreateQueryResourceObject` 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::EventProfileCreateQueryResourceObject`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @attributes.nil? + invalid_properties.push('invalid value for "attributes", attributes 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 @type.nil? + return false if @attributes.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 && + type == o.type && + id == o.id && + attributes == o.attributes + 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 + [type, id, attributes].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/event_profile_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/event_profile_create_query_resource_object_attributes.rb new file mode 100644 index 0000000..3e64107 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/event_profile_create_query_resource_object_attributes.rb @@ -0,0 +1,348 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventProfileCreateQueryResourceObjectAttributes + # Individual's phone number in E.164 format + attr_accessor :phone_number + + # A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system. + attr_accessor :external_id + + 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 + + # Individual's last name + attr_accessor :last_name + + # Name of the company or organization within the company for whom the individual works + attr_accessor :organization + + # Individual's job title + attr_accessor :title + + # URL pointing to the location of a profile image + attr_accessor :image + + attr_accessor :location + + # An object containing key/value pairs for any custom properties assigned to this profile + attr_accessor :properties + + attr_accessor :meta + + # Individual's email address + attr_accessor :email + + # Attribute mapping from ruby-style variable name to JSON key. + 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', + :'title' => :'title', + :'image' => :'image', + :'location' => :'location', + :'properties' => :'properties', + :'meta' => :'meta', + :'email' => :'email' + } + 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 + { + :'phone_number' => :'String', + :'external_id' => :'String', + :'anonymous_id' => :'String', + :'_kx' => :'String', + :'first_name' => :'String', + :'last_name' => :'String', + :'organization' => :'String', + :'title' => :'String', + :'image' => :'String', + :'location' => :'ProfileLocation', + :'properties' => :'Object', + :'meta' => :'OnsiteProfileMeta', + :'email' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'phone_number', + :'external_id', + :'anonymous_id', + :'_kx', + :'first_name', + :'last_name', + :'organization', + :'title', + :'image', + :'properties', + :'email' + ]) + 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::EventProfileCreateQueryResourceObjectAttributes` 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::EventProfileCreateQueryResourceObjectAttributes`. 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?(:'phone_number') + self.phone_number = attributes[:'phone_number'] + end + + if attributes.key?(:'external_id') + self.external_id = attributes[:'external_id'] + end + + if attributes.key?(:'anonymous_id') + 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 + + if attributes.key?(:'last_name') + self.last_name = attributes[:'last_name'] + end + + if attributes.key?(:'organization') + self.organization = attributes[:'organization'] + end + + if attributes.key?(:'title') + self.title = attributes[:'title'] + end + + if attributes.key?(:'image') + self.image = attributes[:'image'] + end + + if attributes.key?(:'location') + self.location = attributes[:'location'] + end + + if attributes.key?(:'properties') + self.properties = attributes[:'properties'] + end + + if attributes.key?(:'meta') + self.meta = attributes[:'meta'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + 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 + 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? + 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 && + 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 && + title == o.title && + image == o.image && + location == o.location && + properties == o.properties && + meta == o.meta && + email == o.email + 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 + [phone_number, external_id, anonymous_id, _kx, first_name, last_name, organization, title, image, location, properties, meta, email].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/events_bulk_create_job.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_job.rb new file mode 100644 index 0000000..7a27d47 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_job.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: 2024-05-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 EventsBulkCreateJob + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'EventsBulkCreateJobResourceObject' + } + 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::EventsBulkCreateJob` 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::EventsBulkCreateJob`. 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?(:'data') + self.data = attributes[:'data'] + 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 @data.nil? + invalid_properties.push('invalid value for "data", data 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 @data.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 && + data == o.data + 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 + [data].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/events_bulk_create_job_resource_object.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_job_resource_object.rb new file mode 100644 index 0000000..9751639 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_job_resource_object.rb @@ -0,0 +1,238 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventsBulkCreateJobResourceObject + attr_accessor :type + + attr_accessor :attributes + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'attributes' => :'attributes' + } + 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 + { + :'type' => :'EventBulkCreateJobEnum', + :'attributes' => :'EventsBulkCreateJobResourceObjectAttributes' + } + 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::EventsBulkCreateJobResourceObject` 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::EventsBulkCreateJobResourceObject`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @attributes.nil? + invalid_properties.push('invalid value for "attributes", attributes 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 @type.nil? + return false if @attributes.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 && + type == o.type && + attributes == o.attributes + 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 + [type, attributes].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/events_bulk_create_job_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_job_resource_object_attributes.rb new file mode 100644 index 0000000..7097a16 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_job_resource_object_attributes.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: 2024-05-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 EventsBulkCreateJobResourceObjectAttributes + attr_accessor :events_bulk_create + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'events_bulk_create' => :'events-bulk-create' + } + 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 + { + :'events_bulk_create' => :'EventsBulkCreateJobResourceObjectAttributesEventsBulkCreate' + } + 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::EventsBulkCreateJobResourceObjectAttributes` 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::EventsBulkCreateJobResourceObjectAttributes`. 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?(:'events_bulk_create') + self.events_bulk_create = attributes[:'events_bulk_create'] + 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 @events_bulk_create.nil? + invalid_properties.push('invalid value for "events_bulk_create", events_bulk_create 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 @events_bulk_create.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 && + events_bulk_create == o.events_bulk_create + 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 + [events_bulk_create].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/events_bulk_create_job_resource_object_attributes_events_bulk_create.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_job_resource_object_attributes_events_bulk_create.rb new file mode 100644 index 0000000..5a17390 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_job_resource_object_attributes_events_bulk_create.rb @@ -0,0 +1,226 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventsBulkCreateJobResourceObjectAttributesEventsBulkCreate + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'Array' + } + 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::EventsBulkCreateJobResourceObjectAttributesEventsBulkCreate` 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::EventsBulkCreateJobResourceObjectAttributesEventsBulkCreate`. 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?(:'data') + if (value = attributes[:'data']).is_a?(Array) + self.data = value + end + 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 @data.nil? + invalid_properties.push('invalid value for "data", data 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 @data.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 && + data == o.data + 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 + [data].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/events_bulk_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object.rb new file mode 100644 index 0000000..a335169 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object.rb @@ -0,0 +1,238 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventsBulkCreateQueryResourceObject + attr_accessor :type + + attr_accessor :attributes + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'attributes' => :'attributes' + } + 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 + { + :'type' => :'EventBulkCreateEnum', + :'attributes' => :'EventsBulkCreateQueryResourceObjectAttributes' + } + 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::EventsBulkCreateQueryResourceObject` 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::EventsBulkCreateQueryResourceObject`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @attributes.nil? + invalid_properties.push('invalid value for "attributes", attributes 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 @type.nil? + return false if @attributes.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 && + type == o.type && + attributes == o.attributes + 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 + [type, attributes].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/events_bulk_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes.rb new file mode 100644 index 0000000..0cd1228 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes.rb @@ -0,0 +1,238 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventsBulkCreateQueryResourceObjectAttributes + attr_accessor :profile + + attr_accessor :events + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'profile' => :'profile', + :'events' => :'events' + } + 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 + { + :'profile' => :'EventsBulkCreateQueryResourceObjectAttributesProfile', + :'events' => :'EventsBulkCreateQueryResourceObjectAttributesEvents' + } + 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::EventsBulkCreateQueryResourceObjectAttributes` 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::EventsBulkCreateQueryResourceObjectAttributes`. 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?(:'profile') + self.profile = attributes[:'profile'] + end + + if attributes.key?(:'events') + self.events = attributes[:'events'] + 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 @profile.nil? + invalid_properties.push('invalid value for "profile", profile cannot be nil.') + end + + if @events.nil? + invalid_properties.push('invalid value for "events", events 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 @profile.nil? + return false if @events.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 && + profile == o.profile && + events == o.events + 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 + [profile, events].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/events_bulk_create_query_resource_object_attributes_events.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes_events.rb new file mode 100644 index 0000000..c825eb8 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes_events.rb @@ -0,0 +1,226 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 EventsBulkCreateQueryResourceObjectAttributesEvents + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'Array' + } + 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::EventsBulkCreateQueryResourceObjectAttributesEvents` 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::EventsBulkCreateQueryResourceObjectAttributesEvents`. 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?(:'data') + if (value = attributes[:'data']).is_a?(Array) + self.data = value + end + 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 @data.nil? + invalid_properties.push('invalid value for "data", data 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 @data.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 && + data == o.data + 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 + [data].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/events_bulk_create_query_resource_object_attributes_profile.rb b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes_profile.rb new file mode 100644 index 0000000..688312b --- /dev/null +++ b/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes_profile.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: 2024-05-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 EventsBulkCreateQueryResourceObjectAttributesProfile + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'OnsiteProfileCreateQueryResourceObject' + } + 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::EventsBulkCreateQueryResourceObjectAttributesProfile` 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::EventsBulkCreateQueryResourceObjectAttributesProfile`. 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?(:'data') + self.data = attributes[:'data'] + 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 @data.nil? + invalid_properties.push('invalid value for "data", data 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 @data.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 && + data == o.data + 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 + [data].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/flow_enum.rb b/lib/klaviyo-api-sdk/models/flow_enum.rb index d28f88a..1745a76 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_series_report_enum.rb b/lib/klaviyo-api-sdk/models/flow_series_report_enum.rb index 755f922..a2f3685 100644 --- a/lib/klaviyo-api-sdk/models/flow_series_report_enum.rb +++ b/lib/klaviyo-api-sdk/models/flow_series_report_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_series_request_dto.rb b/lib/klaviyo-api-sdk/models/flow_series_request_dto.rb index 950719e..d94471e 100644 --- a/lib/klaviyo-api-sdk/models/flow_series_request_dto.rb +++ b/lib/klaviyo-api-sdk/models/flow_series_request_dto.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_series_request_dto_resource_object.rb b/lib/klaviyo-api-sdk/models/flow_series_request_dto_resource_object.rb index 0c03646..ba463e9 100644 --- a/lib/klaviyo-api-sdk/models/flow_series_request_dto_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/flow_series_request_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_series_request_dto_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/flow_series_request_dto_resource_object_attributes.rb index 70a7357..9e23e30 100644 --- a/lib/klaviyo-api-sdk/models/flow_series_request_dto_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/flow_series_request_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -26,7 +26,7 @@ class FlowSeriesRequestDTOResourceObjectAttributes # ID of the metric to be used for conversion statistics attr_accessor :conversion_metric_id - # API filter string used to filter the query. Allowed filters are flow_id, send_channel, flow_message_id. Allowed operators are equals, contains-any. Only one filter can be used per attribute, only AND can be used as a combination operator. Max of 100 messages per ANY filter. + # API filter string used to filter the query. Allowed filters are flow_id, send_channel, flow_message_id. Allowed operators are equals, contains-any. Only one filter can be used per attribute, only AND can be used as a combination operator. Max of 100 messages per ANY filter. When filtering on send_channel, allowed values are email, push-notification, sms. attr_accessor :filter class EnumAttributeValidator @@ -81,6 +81,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'filter' ]) end diff --git a/lib/klaviyo-api-sdk/models/flow_update_query.rb b/lib/klaviyo-api-sdk/models/flow_update_query.rb index 74f98d1..a0d9838 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 2f8c9c4..5b13534 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 94ef201..c015f6d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_report_enum.rb b/lib/klaviyo-api-sdk/models/flow_values_report_enum.rb index c72e17d..e812f53 100644 --- a/lib/klaviyo-api-sdk/models/flow_values_report_enum.rb +++ b/lib/klaviyo-api-sdk/models/flow_values_report_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_request_dto.rb b/lib/klaviyo-api-sdk/models/flow_values_request_dto.rb index 15dab5c..17375a3 100644 --- a/lib/klaviyo-api-sdk/models/flow_values_request_dto.rb +++ b/lib/klaviyo-api-sdk/models/flow_values_request_dto.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_request_dto_resource_object.rb b/lib/klaviyo-api-sdk/models/flow_values_request_dto_resource_object.rb index 2fe5da3..bd3898e 100644 --- a/lib/klaviyo-api-sdk/models/flow_values_request_dto_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/flow_values_request_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_values_request_dto_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/flow_values_request_dto_resource_object_attributes.rb index ac4440c..05201ba 100644 --- a/lib/klaviyo-api-sdk/models/flow_values_request_dto_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/flow_values_request_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -23,7 +23,7 @@ class FlowValuesRequestDTOResourceObjectAttributes # ID of the metric to be used for conversion statistics attr_accessor :conversion_metric_id - # API filter string used to filter the query. Allowed filters are flow_id, send_channel, flow_message_id. Allowed operators are equals, contains-any. Only one filter can be used per attribute, only AND can be used as a combination operator. Max of 100 messages per ANY filter. + # API filter string used to filter the query. Allowed filters are flow_id, send_channel, flow_message_id. Allowed operators are equals, contains-any. Only one filter can be used per attribute, only AND can be used as a combination operator. Max of 100 messages per ANY filter. When filtering on send_channel, allowed values are email, push-notification, sms. attr_accessor :filter class EnumAttributeValidator @@ -76,6 +76,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'filter' ]) end 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 32b55ef..be44952 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 285c07e..99c99ff 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 6f5a8cf..a420178 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ba1a197..0e9ce5b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8f82ac9..5dfbf93 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 5f69cf9..dcdcf63 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -50,6 +50,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'name', + :'hidden' ]) end diff --git a/lib/klaviyo-api-sdk/models/image_enum.rb b/lib/klaviyo-api-sdk/models/image_enum.rb index 54c2006..422918a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 43246fe..220b8c6 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 20cd5a1..1fe04e3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 e7a7e0e..34c55fd 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'name', + :'hidden' ]) end diff --git a/lib/klaviyo-api-sdk/models/list_create_query.rb b/lib/klaviyo-api-sdk/models/list_create_query.rb index 9daa3d5..66acf02 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 dd51752..b2ed8c4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 2f64aab..f28b46f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 23ddf9b..014f034 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 11e47e0..424ed5d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 989a193..bb477bb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 0b3defc..5354f19 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3e52f6c..a293f12 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 913628f..5ed2e30 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 index da3920f..9d0f4aa 100644 --- a/lib/klaviyo-api-sdk/models/marketing_subscription_parameters.rb +++ b/lib/klaviyo-api-sdk/models/marketing_subscription_parameters.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -18,7 +18,7 @@ class MarketingSubscriptionParameters # The Consent status to subscribe to for the \"Marketing\" type. Currently supports \"SUBSCRIBED\". attr_accessor :consent - # The timestamp of when the profile's consent was gathered + # The timestamp of when the profile's consent was gathered. This should only be used when syncing over historical consent info to Klaviyo; if not included, the current time will be used. This field is only supported for single opt-in and will be ignored for double opt-in. attr_accessor :consented_at class EnumAttributeValidator @@ -67,6 +67,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'consented_at' ]) end diff --git a/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb b/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb index 05652c3..7fa4ec7 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 33129f5..f045755 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 44f7f08..90b35c4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 b19e3f8..f79c281 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -107,6 +107,11 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'interval', + :'page_size', + :'by', + :'return_fields', + :'timezone', ]) end 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 3c65626..6267348 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9028765..2106473 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'service' ]) end diff --git a/lib/klaviyo-api-sdk/models/metric_enum.rb b/lib/klaviyo-api-sdk/models/metric_enum.rb index bfd3c2b..57c48e8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 92b3af3..ddb2f79 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -52,6 +52,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'id', ]) end 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 92790f5..d2a5cb2 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -93,6 +93,17 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number', + :'external_id', + :'anonymous_id', + :'_kx', + :'first_name', + :'last_name', + :'organization', + :'title', + :'image', + :'properties' ]) end diff --git a/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb b/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb index 4a01e4d..0bedd6e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_bulk_import_job_enum.rb b/lib/klaviyo-api-sdk/models/profile_bulk_import_job_enum.rb index c965c40..1e8607c 100644 --- a/lib/klaviyo-api-sdk/models/profile_bulk_import_job_enum.rb +++ b/lib/klaviyo-api-sdk/models/profile_bulk_import_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 1f7d925..5a3d45f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 38aeff5..4f33533 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 a36e4bb..c6dc2bf 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -84,6 +84,15 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number', + :'external_id', + :'first_name', + :'last_name', + :'organization', + :'title', + :'image', + :'properties' ]) end diff --git a/lib/klaviyo-api-sdk/models/profile_enum.rb b/lib/klaviyo-api-sdk/models/profile_enum.rb index 8509cfb..3e6078f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 2d6396b..35f4c8d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -48,6 +48,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'id', ]) end 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 18d534f..676b989 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -54,6 +54,10 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number', + :'external_id', + :'anonymous_id' ]) end diff --git a/lib/klaviyo-api-sdk/models/profile_import_job_create_query.rb b/lib/klaviyo-api-sdk/models/profile_import_job_create_query.rb index e52b61e..33ab510 100644 --- a/lib/klaviyo-api-sdk/models/profile_import_job_create_query.rb +++ b/lib/klaviyo-api-sdk/models/profile_import_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_import_job_create_query_resource_object.rb b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object.rb index e90b1e5..b750bf9 100644 --- a/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object.rb +++ b/lib/klaviyo-api-sdk/models/profile_import_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_import_job_create_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_attributes.rb index 71f837c..630ecf3 100644 --- a/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_attributes.rb +++ b/lib/klaviyo-api-sdk/models/profile_import_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_import_job_create_query_resource_object_attributes_profiles.rb b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_attributes_profiles.rb index 8af10c4..9b39e45 100644 --- a/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_attributes_profiles.rb +++ b/lib/klaviyo-api-sdk/models/profile_import_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_import_job_create_query_resource_object_relationships.rb b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships.rb index 9743e05..6f77d4c 100644 --- a/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships.rb +++ b/lib/klaviyo-api-sdk/models/profile_import_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_import_job_create_query_resource_object_relationships_lists.rb b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships_lists.rb index 90a9060..6dff00c 100644 --- a/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships_lists.rb +++ b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships_lists.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -68,17 +68,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end diff --git a/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships_lists_data_inner.rb b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships_lists_data_inner.rb index 8a19ead..2ed0810 100644 --- a/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships_lists_data_inner.rb +++ b/lib/klaviyo-api-sdk/models/profile_import_job_create_query_resource_object_relationships_lists_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 b81dd63..41ac31f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -83,6 +83,16 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'address1', + :'address2', + :'city', + :'country', + :'latitude', + :'longitude', + :'region', + :'zip', + :'timezone', + :'ip' ]) end diff --git a/lib/klaviyo-api-sdk/models/profile_location_latitude.rb b/lib/klaviyo-api-sdk/models/profile_location_latitude.rb index 2bdae4e..f4e3413 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 401e39a..991879f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 864c3d1..d3e02c6 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 41ddaa7..3e3b02d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 44ddfa3..eba525c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -91,10 +91,6 @@ 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 @@ -103,7 +99,6 @@ 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 60453d9..238d181 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ 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 d8f98f9..bf5fee3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -68,17 +68,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 8639f2d..a97a936 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 1564948..e1af033 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 edef2a4..e9f796a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -49,6 +49,9 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'append', + :'unappend', + :'unset' ]) end 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 3395e9d..c25cd52 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3893cc5..e10e0f2 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 929289b..422f247 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7298f1a..fa7029a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -88,6 +88,16 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number', + :'external_id', + :'anonymous_id', + :'first_name', + :'last_name', + :'organization', + :'title', + :'image', + :'properties' ]) end 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 c8c1690..5f78fcf 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 23af78f..61f5625 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d67f4a2..e1930c3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -48,6 +48,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'id', ]) end 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 7068489..bd4618c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -23,12 +23,16 @@ class ProfileSubscriptionCreateQueryResourceObjectAttributes attr_accessor :subscriptions + # The profile's date of birth. This field is required to update SMS consent for accounts using age-gating: https://help.klaviyo.com/hc/en-us/articles/17252552814875 + attr_accessor :age_gated_date_of_birth + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'email' => :'email', :'phone_number' => :'phone_number', - :'subscriptions' => :'subscriptions' + :'subscriptions' => :'subscriptions', + :'age_gated_date_of_birth' => :'age_gated_date_of_birth' } end @@ -42,13 +46,17 @@ def self.openapi_types { :'email' => :'String', :'phone_number' => :'String', - :'subscriptions' => :'SubscriptionChannels' + :'subscriptions' => :'SubscriptionChannels', + :'age_gated_date_of_birth' => :'Date' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number', + :'age_gated_date_of_birth' ]) end @@ -78,6 +86,10 @@ def initialize(attributes = {}) if attributes.key?(:'subscriptions') self.subscriptions = attributes[:'subscriptions'] end + + if attributes.key?(:'age_gated_date_of_birth') + self.age_gated_date_of_birth = attributes[:'age_gated_date_of_birth'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -100,7 +112,8 @@ def ==(o) self.class == o.class && email == o.email && phone_number == o.phone_number && - subscriptions == o.subscriptions + subscriptions == o.subscriptions && + age_gated_date_of_birth == o.age_gated_date_of_birth end # @see the `==` method @@ -112,7 +125,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [email, phone_number, subscriptions].hash + [email, phone_number, subscriptions, age_gated_date_of_birth].hash end # Builds the object from hash 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 4fae7fd..424ab49 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d771280..eb6b696 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number' ]) end 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 14a0a17..f74bb2c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 cdf19e1..6002b86 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 599f3f3..21714a2 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3255806..a602a7a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -67,12 +67,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @email.nil? + invalid_properties.push('invalid value for "email", email 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 @email.nil? true end 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 4986bab..54706b0 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 07250da..e8df5f4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -67,12 +67,17 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @email.nil? + invalid_properties.push('invalid value for "email", email 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 @email.nil? true end diff --git a/lib/klaviyo-api-sdk/models/profile_upsert_query.rb b/lib/klaviyo-api-sdk/models/profile_upsert_query.rb index 2ee2ac9..d903659 100644 --- a/lib/klaviyo-api-sdk/models/profile_upsert_query.rb +++ b/lib/klaviyo-api-sdk/models/profile_upsert_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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9c748c4..6ea679f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -52,6 +52,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'id', ]) end 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 8fed1bc..6f702a8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -94,6 +94,17 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'email', + :'phone_number', + :'external_id', + :'anonymous_id', + :'_kx', + :'first_name', + :'last_name', + :'organization', + :'title', + :'image', + :'properties' ]) end diff --git a/lib/klaviyo-api-sdk/models/push_profile_upsert_query_resource_object.rb b/lib/klaviyo-api-sdk/models/push_profile_upsert_query_resource_object.rb new file mode 100644 index 0000000..3f1d0b1 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/push_profile_upsert_query_resource_object.rb @@ -0,0 +1,249 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 PushProfileUpsertQueryResourceObject + attr_accessor :type + + # Primary key that uniquely identifies this profile. Generated by Klaviyo. + attr_accessor :id + + attr_accessor :attributes + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'id' => :'id', + :'attributes' => :'attributes' + } + 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 + { + :'type' => :'ProfileEnum', + :'id' => :'String', + :'attributes' => :'PushProfileUpsertQueryResourceObjectAttributes' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'id', + ]) + 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::PushProfileUpsertQueryResourceObject` 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::PushProfileUpsertQueryResourceObject`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @attributes.nil? + invalid_properties.push('invalid value for "attributes", attributes 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 @type.nil? + return false if @attributes.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 && + type == o.type && + id == o.id && + attributes == o.attributes + 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 + [type, id, attributes].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/push_profile_upsert_query_resource_object_attributes.rb b/lib/klaviyo-api-sdk/models/push_profile_upsert_query_resource_object_attributes.rb new file mode 100644 index 0000000..35d18a8 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/push_profile_upsert_query_resource_object_attributes.rb @@ -0,0 +1,349 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 PushProfileUpsertQueryResourceObjectAttributes + # Individual's phone number in E.164 format + attr_accessor :phone_number + + # A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system. + attr_accessor :external_id + + # 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 + + # Individual's last name + attr_accessor :last_name + + # Name of the company or organization within the company for whom the individual works + attr_accessor :organization + + # Individual's job title + attr_accessor :title + + # URL pointing to the location of a profile image + attr_accessor :image + + attr_accessor :location + + # An object containing key/value pairs for any custom properties assigned to this profile + attr_accessor :properties + + attr_accessor :meta + + # Individual's email address + attr_accessor :email + + # Attribute mapping from ruby-style variable name to JSON key. + 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', + :'title' => :'title', + :'image' => :'image', + :'location' => :'location', + :'properties' => :'properties', + :'meta' => :'meta', + :'email' => :'email' + } + 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 + { + :'phone_number' => :'String', + :'external_id' => :'String', + :'anonymous_id' => :'String', + :'_kx' => :'String', + :'first_name' => :'String', + :'last_name' => :'String', + :'organization' => :'String', + :'title' => :'String', + :'image' => :'String', + :'location' => :'ProfileLocation', + :'properties' => :'Object', + :'meta' => :'ProfileMeta', + :'email' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'phone_number', + :'external_id', + :'anonymous_id', + :'_kx', + :'first_name', + :'last_name', + :'organization', + :'title', + :'image', + :'properties', + :'email' + ]) + 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::PushProfileUpsertQueryResourceObjectAttributes` 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::PushProfileUpsertQueryResourceObjectAttributes`. 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?(:'phone_number') + self.phone_number = attributes[:'phone_number'] + end + + if attributes.key?(:'external_id') + self.external_id = attributes[:'external_id'] + end + + if attributes.key?(:'anonymous_id') + 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 + + if attributes.key?(:'last_name') + self.last_name = attributes[:'last_name'] + end + + if attributes.key?(:'organization') + self.organization = attributes[:'organization'] + end + + if attributes.key?(:'title') + self.title = attributes[:'title'] + end + + if attributes.key?(:'image') + self.image = attributes[:'image'] + end + + if attributes.key?(:'location') + self.location = attributes[:'location'] + end + + if attributes.key?(:'properties') + self.properties = attributes[:'properties'] + end + + if attributes.key?(:'meta') + self.meta = attributes[:'meta'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + 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 + 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? + 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 && + 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 && + title == o.title && + image == o.image && + location == o.location && + properties == o.properties && + meta == o.meta && + email == o.email + 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 + [phone_number, external_id, anonymous_id, _kx, first_name, last_name, organization, title, image, location, properties, meta, email].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/push_token_create_query.rb b/lib/klaviyo-api-sdk/models/push_token_create_query.rb index 7907ff0..9bb6fab 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7ba549a..930b19e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 30c62d5..2133288 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,6 +90,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'enablement_status', + :'background', ]) end 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 d23929b..1a25d8d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -33,7 +33,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'data' => :'ProfileUpsertQueryResourceObject' + :'data' => :'PushProfileUpsertQueryResourceObject' } end diff --git a/lib/klaviyo-api-sdk/models/push_token_enum.rb b/lib/klaviyo-api-sdk/models/push_token_enum.rb index 70d0ae8..1fd56c2 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 96af98a..b51b189 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -51,6 +51,10 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'shorten_links', + :'add_org_prefix', + :'add_info_link', + :'add_opt_out_language' ]) end diff --git a/lib/klaviyo-api-sdk/models/segment_enum.rb b/lib/klaviyo-api-sdk/models/segment_enum.rb index 46db129..b6e6aaf 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8c02f25..f977553 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 fc4b72e..06c710b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d17910a..8438b11 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -17,10 +17,13 @@ module KlaviyoAPI class SegmentPartialUpdateQueryResourceObjectAttributes attr_accessor :name + attr_accessor :is_starred + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'name' => :'name' + :'name' => :'name', + :'is_starred' => :'is_starred' } end @@ -32,13 +35,16 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'name' => :'String' + :'name' => :'String', + :'is_starred' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'name', + :'is_starred' ]) end @@ -60,6 +66,10 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] end + + if attributes.key?(:'is_starred') + self.is_starred = attributes[:'is_starred'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -80,7 +90,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - name == o.name + name == o.name && + is_starred == o.is_starred end # @see the `==` method @@ -92,7 +103,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name].hash + [name, is_starred].hash end # Builds the object from hash 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 758c83f..889a7a3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 07d8a6d..94d8bb6 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 820bcae..8fd2644 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -90,10 +90,6 @@ 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 @@ -102,7 +98,6 @@ 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 85475c8..622adac 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,6 +66,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'profile' ]) end 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 2ec1879..6de96c7 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 a3f3b07..5272f3a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ 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 7e9d2c5..f8911ed 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 4d5db01..e1205d9 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c778f78..43b009a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'body' ]) end 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 334397a..637201d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'use_smart_sending' ]) end diff --git a/lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb b/lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb index 91dea9c..9e1ddaf 100644 --- a/lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb +++ b/lib/klaviyo-api-sdk/models/sms_subscription_parameters.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_tracking_options_sub_object.rb b/lib/klaviyo-api-sdk/models/sms_tracking_options_sub_object.rb index 712e1ef..dd57d75 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -45,6 +45,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'is_add_utm', + :'utm_params' ]) end diff --git a/lib/klaviyo-api-sdk/models/static_schedule_options.rb b/lib/klaviyo-api-sdk/models/static_schedule_options.rb index 6ca09b9..396d408 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -50,6 +50,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'is_local', + :'send_past_recipients_immediately' ]) end diff --git a/lib/klaviyo-api-sdk/models/sto_schedule_options.rb b/lib/klaviyo-api-sdk/models/sto_schedule_options.rb index 93d5228..ae629b4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7dea737..2a030cf 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb index 50ac7b5..29a7d91 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ccf8bbf..7eb5d94 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb index 30e213a..dfd3e0d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -44,6 +44,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'custom_source', ]) end 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 e2f3b33..f9a052a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 51ca1b3..aa7902b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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.rb b/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list.rb index 305e12b..83ed442 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 3c17a76..d5d27ed 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 9073ad5..ace4d65 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d5490b6..86cb7cc 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 fef301f..9d24d2d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 23663b1..973ba65 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 741d8ef..dc74b80 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d951c9f..8dce6b4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 b616ee2..6e8c76f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 26f95a4..445d4bb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c088490..fd09ab3 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -19,11 +19,14 @@ class SuppressionCreateJobCreateQueryResourceObject attr_accessor :attributes + attr_accessor :relationships + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'attributes' => :'attributes' + :'attributes' => :'attributes', + :'relationships' => :'relationships' } end @@ -36,7 +39,8 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'ProfileSuppressionBulkCreateJobEnum', - :'attributes' => :'SuppressionCreateJobCreateQueryResourceObjectAttributes' + :'attributes' => :'SuppressionCreateJobCreateQueryResourceObjectAttributes', + :'relationships' => :'SuppressionCreateJobCreateQueryResourceObjectRelationships' } end @@ -68,6 +72,10 @@ def initialize(attributes = {}) if attributes.key?(:'attributes') self.attributes = attributes[:'attributes'] end + + if attributes.key?(:'relationships') + self.relationships = attributes[:'relationships'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -99,7 +107,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - attributes == o.attributes + attributes == o.attributes && + relationships == o.relationships end # @see the `==` method @@ -111,7 +120,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, attributes].hash + [type, attributes, relationships].hash end # Builds the object from hash 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 76c9296..20bf047 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -39,6 +39,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'profiles' ]) end @@ -66,17 +67,12 @@ 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/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 ea6e354..3f7cacf 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_relationships.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships.rb new file mode 100644 index 0000000..9ab65ca --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships.rb @@ -0,0 +1,228 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionCreateJobCreateQueryResourceObjectRelationships + attr_accessor :list + + attr_accessor :segment + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'list' => :'list', + :'segment' => :'segment' + } + 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 + { + :'list' => :'SuppressionCreateJobCreateQueryResourceObjectRelationshipsList', + :'segment' => :'SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegment' + } + 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::SuppressionCreateJobCreateQueryResourceObjectRelationships` 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::SuppressionCreateJobCreateQueryResourceObjectRelationships`. 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?(:'list') + self.list = attributes[:'list'] + end + + if attributes.key?(:'segment') + self.segment = attributes[:'segment'] + 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 + 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? + 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 && + list == o.list && + segment == o.segment + 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 + [list, segment].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/suppression_create_job_create_query_resource_object_relationships_list.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_list.rb new file mode 100644 index 0000000..50b6b0a --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_list.rb @@ -0,0 +1,219 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionCreateJobCreateQueryResourceObjectRelationshipsList + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'SuppressionCreateJobCreateQueryResourceObjectRelationshipsListData' + } + 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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsList` 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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsList`. 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?(:'data') + self.data = attributes[:'data'] + 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 + 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? + 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 && + data == o.data + 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 + [data].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/suppression_create_job_create_query_resource_object_relationships_list_data.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_list_data.rb new file mode 100644 index 0000000..af144a4 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_list_data.rb @@ -0,0 +1,239 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionCreateJobCreateQueryResourceObjectRelationshipsListData + attr_accessor :type + + # Suppress all profiles in this list + attr_accessor :id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'id' => :'id' + } + 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 + { + :'type' => :'ListEnum', + :'id' => :'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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsListData` 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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsListData`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @id.nil? + invalid_properties.push('invalid value for "id", id 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 @type.nil? + return false if @id.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 && + type == o.type && + id == o.id + 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 + [type, id].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/suppression_create_job_create_query_resource_object_relationships_segment.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_segment.rb new file mode 100644 index 0000000..00958b2 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_segment.rb @@ -0,0 +1,219 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegment + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegmentData' + } + 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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegment` 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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegment`. 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?(:'data') + self.data = attributes[:'data'] + 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 + 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? + 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 && + data == o.data + 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 + [data].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/suppression_create_job_create_query_resource_object_relationships_segment_data.rb b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_segment_data.rb new file mode 100644 index 0000000..c2c8821 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_relationships_segment_data.rb @@ -0,0 +1,239 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegmentData + attr_accessor :type + + # Suppress all profiles in this segment + attr_accessor :id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'id' => :'id' + } + 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 + { + :'type' => :'SegmentEnum', + :'id' => :'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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegmentData` 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::SuppressionCreateJobCreateQueryResourceObjectRelationshipsSegmentData`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @id.nil? + invalid_properties.push('invalid value for "id", id 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 @type.nil? + return false if @id.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 && + type == o.type && + id == o.id + 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 + [type, id].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/suppression_delete_job_create_query.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query.rb index 0fe7499..6d50cea 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ecb8349..3272482 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -19,11 +19,14 @@ class SuppressionDeleteJobCreateQueryResourceObject attr_accessor :attributes + attr_accessor :relationships + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'attributes' => :'attributes' + :'attributes' => :'attributes', + :'relationships' => :'relationships' } end @@ -36,7 +39,8 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'ProfileSuppressionBulkDeleteJobEnum', - :'attributes' => :'SuppressionDeleteJobCreateQueryResourceObjectAttributes' + :'attributes' => :'SuppressionDeleteJobCreateQueryResourceObjectAttributes', + :'relationships' => :'SuppressionDeleteJobCreateQueryResourceObjectRelationships' } end @@ -68,6 +72,10 @@ def initialize(attributes = {}) if attributes.key?(:'attributes') self.attributes = attributes[:'attributes'] end + + if attributes.key?(:'relationships') + self.relationships = attributes[:'relationships'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -99,7 +107,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - attributes == o.attributes + attributes == o.attributes && + relationships == o.relationships end # @see the `==` method @@ -111,7 +120,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, attributes].hash + [type, attributes, relationships].hash end # Builds the object from hash 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 7a8f5d4..b3c8ea4 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -39,6 +39,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'profiles' ]) end @@ -66,17 +67,12 @@ 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/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 3aa20c3..5bb85cb 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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_relationships.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships.rb new file mode 100644 index 0000000..733c1b7 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships.rb @@ -0,0 +1,228 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionDeleteJobCreateQueryResourceObjectRelationships + attr_accessor :list + + attr_accessor :segment + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'list' => :'list', + :'segment' => :'segment' + } + 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 + { + :'list' => :'SuppressionDeleteJobCreateQueryResourceObjectRelationshipsList', + :'segment' => :'SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegment' + } + 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::SuppressionDeleteJobCreateQueryResourceObjectRelationships` 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::SuppressionDeleteJobCreateQueryResourceObjectRelationships`. 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?(:'list') + self.list = attributes[:'list'] + end + + if attributes.key?(:'segment') + self.segment = attributes[:'segment'] + 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 + 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? + 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 && + list == o.list && + segment == o.segment + 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 + [list, segment].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/suppression_delete_job_create_query_resource_object_relationships_list.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_list.rb new file mode 100644 index 0000000..4ddca3e --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_list.rb @@ -0,0 +1,219 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionDeleteJobCreateQueryResourceObjectRelationshipsList + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'SuppressionDeleteJobCreateQueryResourceObjectRelationshipsListData' + } + 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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsList` 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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsList`. 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?(:'data') + self.data = attributes[:'data'] + 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 + 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? + 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 && + data == o.data + 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 + [data].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/suppression_delete_job_create_query_resource_object_relationships_list_data.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_list_data.rb new file mode 100644 index 0000000..e76b887 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_list_data.rb @@ -0,0 +1,239 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionDeleteJobCreateQueryResourceObjectRelationshipsListData + attr_accessor :type + + # The list to pull the profiles to remove suppressions from + attr_accessor :id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'id' => :'id' + } + 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 + { + :'type' => :'ListEnum', + :'id' => :'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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsListData` 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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsListData`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @id.nil? + invalid_properties.push('invalid value for "id", id 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 @type.nil? + return false if @id.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 && + type == o.type && + id == o.id + 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 + [type, id].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/suppression_delete_job_create_query_resource_object_relationships_segment.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_segment.rb new file mode 100644 index 0000000..d8c5ae0 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_segment.rb @@ -0,0 +1,219 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegment + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + 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 + { + :'data' => :'SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegmentData' + } + 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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegment` 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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegment`. 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?(:'data') + self.data = attributes[:'data'] + 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 + 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? + 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 && + data == o.data + 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 + [data].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/suppression_delete_job_create_query_resource_object_relationships_segment_data.rb b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_segment_data.rb new file mode 100644 index 0000000..bdebcc1 --- /dev/null +++ b/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_relationships_segment_data.rb @@ -0,0 +1,239 @@ +=begin +#Klaviyo API + +#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. + +The version of the OpenAPI document: 2024-05-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 SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegmentData + attr_accessor :type + + # The segment to pull the profiles to remove suppressions from + attr_accessor :id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'type' => :'type', + :'id' => :'id' + } + 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 + { + :'type' => :'SegmentEnum', + :'id' => :'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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegmentData` 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::SuppressionDeleteJobCreateQueryResourceObjectRelationshipsSegmentData`. 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?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + 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 @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @id.nil? + invalid_properties.push('invalid value for "id", id 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 @type.nil? + return false if @id.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 && + type == o.type && + id == o.id + 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 + [type, id].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/tag_campaign_op.rb b/lib/klaviyo-api-sdk/models/tag_campaign_op.rb index fbfca8c..5e384ba 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 1e83914..dfa8e72 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 5f1e971..9a389c6 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 4a6a74e..9600068 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c543c9a..f6c869d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c6c10cf..4143eb8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 44724e5..4e2dfbe 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -66,17 +66,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @data.nil? - invalid_properties.push('invalid value for "data", data 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 @data.nil? true end 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 48db66b..24c3273 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 2ae45f2..f36895f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 7b71f41..8014089 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8034670..bb3095c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 031508a..50ed655 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 28a644b..1acd978 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3a8b93a..5b1fc35 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -44,6 +44,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'exclusive' ]) end diff --git a/lib/klaviyo-api-sdk/models/tag_group_enum.rb b/lib/klaviyo-api-sdk/models/tag_group_enum.rb index 3dbf4dc..f82d0ad 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 fce6b3a..c82ee3f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 a2c151c..ac12eb1 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 92b3f6c..4c8debc 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -44,6 +44,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'return_fields' ]) end diff --git a/lib/klaviyo-api-sdk/models/tag_list_op.rb b/lib/klaviyo-api-sdk/models/tag_list_op.rb index b5d5309..7f0717b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3187c29..cf235b8 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 4f17193..d403950 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 bad35f5..c0ec716 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 8a35cff..be9c3bc 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d1bb10a..5826732 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 62b1c40..265c950 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 3fb9193..bb2e685 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 32ed805..e270580 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -40,6 +40,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'name' ]) end diff --git a/lib/klaviyo-api-sdk/models/template_create_query.rb b/lib/klaviyo-api-sdk/models/template_create_query.rb index abcf2fe..a54425c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 ab11000..65d954c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 b89d56a..45b0c6e 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -55,6 +55,8 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'html', + :'text' ]) end diff --git a/lib/klaviyo-api-sdk/models/template_enum.rb b/lib/klaviyo-api-sdk/models/template_enum.rb index 89a1f60..e76db79 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 d77d906..619752f 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 023f427..13c4298 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 eae4d38..dd5600c 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 46047a9..11e35b9 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 c65823f..844644d 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 eb0390c..04a041b 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 @@ -50,6 +50,9 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'name', + :'html', + :'text' ]) end diff --git a/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb b/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb index b4b2c54..f8a539a 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1 diff --git a/lib/klaviyo-api-sdk/models/timeframe.rb b/lib/klaviyo-api-sdk/models/timeframe.rb index 17425c8..4ebd85b 100644 --- a/lib/klaviyo-api-sdk/models/timeframe.rb +++ b/lib/klaviyo-api-sdk/models/timeframe.rb @@ -3,7 +3,7 @@ #The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. -The version of the OpenAPI document: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 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 6ae6de6..2f617d0 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-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 71a6683..0bb3458 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: 2024-02-15 +The version of the OpenAPI document: 2024-05-15 Contact: developers@klaviyo.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.2.1