/** * Klaviyo API * The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. * * Contact: developers@klaviyo.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { RequestFile } from './models'; export class CatalogVariantCreateQueryResourceObjectAttributes { /** * The ID of the catalog item variant in an external system. */ 'externalId': string; /** * The type of catalog. Currently only \"$default\" is supported. */ 'catalogType'?: string | null = '$default'; /** * The integration type. Currently only \"$custom\" is supported. */ 'integrationType'?: CatalogVariantCreateQueryResourceObjectAttributes.IntegrationTypeEnum | '$custom' | null = CatalogVariantCreateQueryResourceObjectAttributes.IntegrationTypeEnum.Custom; /** * The title of the catalog item variant. */ 'title': string; /** * A description of the catalog item variant. */ 'description': string; /** * The SKU of the catalog item variant. */ 'sku': string; /** * This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values: `1`: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock. `0` or `2`: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity. */ 'inventoryPolicy'?: CatalogVariantCreateQueryResourceObjectAttributes.InventoryPolicyEnum | 0 | 1 | 2 | null = CatalogVariantCreateQueryResourceObjectAttributes.InventoryPolicyEnum.NUMBER_0; /** * The quantity of the catalog item variant currently in stock. */ 'inventoryQuantity': number; /** * This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the `price` on any parent items using the [Update Catalog Item Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_item). */ 'price': number; /** * URL pointing to the location of the catalog item variant on your website. */ 'url': string; /** * URL pointing to the location of a full image of the catalog item variant. */ 'imageFullUrl'?: string | null; /** * URL pointing to the location of an image thumbnail of the catalog item variant. */ 'imageThumbnailUrl'?: string | null; /** * List of URLs pointing to the locations of images of the catalog item variant. */ 'images'?: Array | null; /** * Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb. */ 'customMetadata'?: object | null; /** * Boolean value indicating whether the catalog item variant is published. */ 'published'?: boolean | null = true; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "externalId", "baseName": "external_id", "type": "string" }, { "name": "catalogType", "baseName": "catalog_type", "type": "string" }, { "name": "integrationType", "baseName": "integration_type", "type": "CatalogVariantCreateQueryResourceObjectAttributes.IntegrationTypeEnum" }, { "name": "title", "baseName": "title", "type": "string" }, { "name": "description", "baseName": "description", "type": "string" }, { "name": "sku", "baseName": "sku", "type": "string" }, { "name": "inventoryPolicy", "baseName": "inventory_policy", "type": "CatalogVariantCreateQueryResourceObjectAttributes.InventoryPolicyEnum" }, { "name": "inventoryQuantity", "baseName": "inventory_quantity", "type": "number" }, { "name": "price", "baseName": "price", "type": "number" }, { "name": "url", "baseName": "url", "type": "string" }, { "name": "imageFullUrl", "baseName": "image_full_url", "type": "string" }, { "name": "imageThumbnailUrl", "baseName": "image_thumbnail_url", "type": "string" }, { "name": "images", "baseName": "images", "type": "Array" }, { "name": "customMetadata", "baseName": "custom_metadata", "type": "object" }, { "name": "published", "baseName": "published", "type": "boolean" } ]; static getAttributeTypeMap() { return CatalogVariantCreateQueryResourceObjectAttributes.attributeTypeMap; } } export namespace CatalogVariantCreateQueryResourceObjectAttributes { export enum IntegrationTypeEnum { Custom = '$custom' } export enum InventoryPolicyEnum { NUMBER_0 = 0, NUMBER_1 = 1, NUMBER_2 = 2 } }