Product
public protocol Product
Product protocol.
-
Identifier of product.
Declaration
Swift
var resourceId: String
-
Name of product.
Declaration
Swift
var name: String
-
Product’s description. Potentially contains HTML tags.
Declaration
Swift
var productDescription: String
-
Full price of the product.
Declaration
Swift
var price: Float
-
Sale price of the product.
Declaration
Swift
var discountedPrice: Float?
-
Collection of all available SKUs for this product.
Declaration
Swift
var skus: [SkuType]?
-
A dictionary of all available images for that product. Each key represents an ID, and the corresponding value is a collection of
Image
objects.Should contain images to be displayed in the main carousel, product variations images.Declaration
Swift
var imageResources: [String: [ImageResourceType]]
-
Collection of image ids to be displayed in the main carousel. Those IDs should be ordered in the way they are expected to be presented to the user and present in
imageResources
. Typically for a PDP the first image in the array will show up first.Declaration
Swift
var imageIds: [String]
-
Collection of category ids.
Declaration
Swift
var categoryIds: [String]?
-
Collection of wishlist ids.
Declaration
Swift
var wishlistIds: [String]?
-
Collection of all available personalization options for this product.
Declaration
Swift
var personalizationOptions: [PersonalizationOptionType]?
-
Contains summary information of user reviews.
Declaration
Swift
var userReviews: UserReviewType?
-
Collection of image ids (see imageResources key) to be used for reviews previews.
Declaration
Swift
var userImageIds: [String]?
-
Collection of tags associated to the product.
Declaration
Swift
var tags: [String]?