enum ProductIdentifierTypeEnum
The type of identifier used to describe the product.
-
Uses a 12-digit Universal Product Code.
Declaration
Swift
case upc
-
Uses a 8-digit Global Trade Item Number.
Declaration
Swift
case gtin8
-
Uses a 13-digit European Article Number.
Declaration
Swift
case ean
-
Uses a 14-digit Global Trade Item Number.
Declaration
Swift
case gtin14
-
Uses a Original Equipment Manufacturer part number.
Declaration
Swift
case oem
-
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil
. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional("PaperSize.Legal")" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"
Declaration
Swift
init?(rawValue: UInt64)
Parameters
rawValue
The raw value to use for the new instance.