-
Identifier of product.
Declaration
Swift
public let resourceId: String
-
Name of product.
Declaration
Swift
public let name: String
-
Full price of the product.
Declaration
Swift
public let price: Float
-
Sale price of the product.
Declaration
Swift
public let discountedPrice: Float?
-
Product’s description. Potentially contains HTML tags.
Declaration
Swift
public let productDescription: String
-
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
public let 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
public let imageIds: [String]
-
Collection of category ids.
Declaration
Swift
public let categoryIds: [String]?
-
Collection of wishlist ids.
Declaration
Swift
public let wishlistIds: [String]?
-
Collection of all available SKUs for this product.
Declaration
Swift
public let skus: [SkuType]?
-
Collection of all available personalization options for this product.
Declaration
Swift
public let personalizationOptions: [PersonalizationOptionType]?
-
Contains summary information of user reviews.
Declaration
Swift
public let userReviews: UserReviewType?
-
Collection of image ids (see imageResources key) to be used for reviews previews.
Declaration
Swift
public let userImageIds: [String]?
-
Collection of tags associated to the product.
Declaration
Swift
public let tags: [String]?
-
Collection of tags associated to the product.
Declaration
Swift
public init?(json: JSON)
Parameters
json
JSON representation of object.
Return Value
New instance when JSON parsing successful, false otherwise.