Skip to main content
Skip to main content

ProductCollection

A Product Collection allows grouping together products for promotional purposes. For example, an admin can create a Summer collection, add products to it, and showcase it on the storefront.

Constructors

constructor

**new ProductCollection**()

A Product Collection allows grouping together products for promotional purposes. For example, an admin can create a Summer collection, add products to it, and showcase it on the storefront.

Properties

created_atDateRequired
The date with timezone at which the resource was created.
deleted_atnull | DateRequired
The date with timezone at which the resource was deleted.
handlestringRequired
A unique string that identifies the Product Collection - can for example be used in slug structures.
idstringRequired
The product collection's ID
metadataRecord<string, unknown>Required
An optional key-value map with additional details
productsProduct[]Required
The details of the products that belong to this product collection.
titlestringRequired
The title that the Product Collection is identified by.
updated_atDateRequired
The date with timezone at which the resource was updated.

Methods

createHandleIfNotProvided

Private **createHandleIfNotProvided**(): void

Returns

void

voidvoid
Was this section helpful?