PurchaseEvent

public struct PurchaseEvent : Encodable, JSONEncodable, Hashable

The consumer has purchased some products.

  • id

    The marketplace assigned ID for the order.

    Declaration

    Swift

    public var id: String
  • Timestamp from when was the purchase completed

    Declaration

    Swift

    public var purchasedAt: Date
  • Items purchased.

    Declaration

    Swift

    public var items: [PurchaseItem]
  • Undocumented

    Declaration

    Swift

    public init(id: String, purchasedAt: Date = Date(), items: [PurchaseItem])
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws