diff --git a/commerce/types.ts b/commerce/types.ts index cd5e8590..c0b0e41f 100644 --- a/commerce/types.ts +++ b/commerce/types.ts @@ -170,6 +170,8 @@ export interface Offer extends Omit { seller?: string; /** The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers. */ sku?: string; + /** Used by some ecommerce providers (e.g: VTEX) to describe special promotions that depend on some conditions */ + teasers?: Array>; } export interface AggregateOffer { diff --git a/packs/vtex/utils/transform.ts b/packs/vtex/utils/transform.ts index 8121daed..810fd881 100644 --- a/packs/vtex/utils/transform.ts +++ b/packs/vtex/utils/transform.ts @@ -404,6 +404,7 @@ const toOffer = ({ seller: sellerId, priceValidUntil: offer.PriceValidUntil, inventoryLevel: { value: offer.AvailableQuantity }, + teasers: offer.teasers, priceSpecification: [ { "@type": "UnitPriceSpecification",