PurchaseItem
public struct PurchaseItem : Codable, JSONEncodable, Hashable
Undocumented
-
The marketplace ID of the product being purchased.
Declaration
Swift
public var productId: String
-
If known, the product’s auction ID if the consumer clicked on a promoted link before purchasing.
Declaration
Swift
public var auctionId: String?
-
Count of product purchased.
Declaration
Swift
public var quantity: Int?
-
The price of a single item in minor currency units. For example, in the US (currency code \“USD\”) the unit price is specified in cents.
Declaration
Swift
public var unitPrice: Int
-
Undocumented
Declaration
Swift
public var resolvedBidId: String?
-
Undocumented
Declaration
Swift
public init(productId: String, auctionId: String? = nil, quantity: Int? = 1, unitPrice: Int, resolvedBidId: String? = nil)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws