ButtonProductCompatible

@objc
public protocol ButtonProductCompatible

A protocol that defines the product properties that may be provided when reporting user activity.

  • id

    The product identifier.

    Declaration

    Swift

    var id: String? { get }
  • upc

    The UPC (Universal Product Code) of the product.

    Declaration

    Swift

    var upc: String? { get }
  • A flat array of the names of the categories to which the product belongs.

    Declaration

    Swift

    var categories: [String]? { get }
  • The name of the product.

    Declaration

    Swift

    var name: String? { get }
  • The ISO-4217 currency code in which the product’s value is reported.

    Declaration

    Swift

    var currency: String? { get }
  • The value of the order. Includes any discounts, if applicable. Example: 1234 for $12.34.

    Declaration

    Swift

    var value: Int { get }
  • The quantity of the product.

    Declaration

    Swift

    var quantity: Int { get }
  • url

    The URL of the product.

    Declaration

    Swift

    var url: String? { get }
  • Any additional attributes to be included with the product.

    Declaration

    Swift

    var attributes: [String : String]? { get }