PCFPersonalizationOption
public struct PCFPersonalizationOption: PersonalizationOption, Decodable
PCFPersonalizationOption model
-
Identifier of product.
Declaration
Swift
public let resourceId: String
-
The type of the personalization field.
Declaration
Swift
public let label: String
-
The type of the personalization field.
Declaration
Swift
public let type: String
-
Array containing the possible values for this field. Only set when
type
== ‘options’.Declaration
Swift
public let options: [String]?
-
Link to an image for instructions, not all fields have this.
Declaration
Swift
public let instructionsURL: String?
-
Value that has been selected for that field. Will always be null in the product object, and not null in the cart.
Declaration
Swift
public let selectedValue: String?
-
Value that has been selected for that field. Will always be null in the product object, and not null in the cart.
Declaration
Swift
public init?(json: JSON)
Parameters
json
JSON representation of object.
Return Value
New instance when JSON parsing successful, false otherwise.