Product

public struct Product : Codable, Equatable

Struct representing Product related values.

  • id

    Value representing the entity id.

    Declaration

    Swift

    public var id: Int
  • sku

    Unique SKU of product.

    Declaration

    Swift

    public var sku: String
  • Amount in metrics (currency) of product.

    Declaration

    Swift

    public var metricAmount: String
  • Metric name (currency type) of product.

    Declaration

    Swift

    public var metricName: String
  • Displayable string of metric of product.

    Declaration

    Swift

    public var metricDisplayName: String
  • Start date of product.

    Declaration

    Swift

    public var startDate: String
  • End date of product.

    Declaration

    Swift

    public var endDate: String
  • Heading of product.

    Declaration

    Swift

    public var heading: String
  • Subheading of product.

    Declaration

    Swift

    public var subheading: String
  • Body of product.

    Declaration

    Swift

    public var body: String
  • Details of product.

    Declaration

    Swift

    public var details: String
  • The main image url for the product.

    Declaration

    Swift

    public var imageUrl: String
  • The main image’s thumbnail for the product.

    Declaration

    Swift

    public var thumbImageUrl: String
  • An array of the product’s components for customising the product during an order.

    Declaration

    Swift

    public var productComponents: [Product.Component]
  • An array of the product’s set attributes to be customized during an order.

    Declaration

    Swift

    public var productAttributes: [Product.Attribute]
  • An array of product configurations for attributes to determine price / cost.

    Declaration

    Swift

    public var productConfiguration: [Product.Configuration]
  • Setting this will save the quantity amount on the cart.

    Declaration

    Swift

    public var orderQuantity: Int
  • Specialized text to be sent later for special instructions on product delivery.

    Declaration

    Swift

    public var specialInstructions: String
  • Undocumented

    Declaration

    Swift

    public init(id: Int, sku: String, metricAmount: String, metricName: String,
                metricDisplayName: String, startDate: String, endDate: String, heading: String,
                subheading: String, body: String, details: String, imageUrl: String,
                thumbImageUrl: String, productComponents: [Product.Component], productAttributes: [Product.Attribute],
                productConfiguration: [Product.Configuration], orderQuantity: Int, specialInstructions: String)
  • Struct representing Product Attribute related values.

    See more

    Declaration

    Swift

    public struct Attribute : Codable, Equatable
  • Struct representing Product Attribute Option related values.

    See more

    Declaration

    Swift

    public struct AttributeOption : Codable, Equatable
  • Struct representing Product Configuration related values.

    See more

    Declaration

    Swift

    public struct Configuration : Codable, Equatable
  • Struct representing Product Component related values.

    See more

    Declaration

    Swift

    public struct Component : Codable, Equatable
  • Struct representing Product Category related values.

    See more

    Declaration

    Swift

    public struct Category : Codable, Equatable
  • Declaration

    Swift

    public init(from decoder: Decoder) throws