Customer

@objcMembers
@objc(Customer)
final public class Customer : NSObject, Codable

Represents a customer in the order.

  • The SHA-256 hash of the transacting customer’s lowercase email, as a 64-character hex string.

    Note: The value of the e-mail address must be converted to lowercase before computing the hash. The hash itself may use uppercase or lowercase hex characters.

    Declaration

    Swift

    public var email: String? { get set }
  • Initializes a customer object with the passed parameters.

    • id: The id for your customer (required).

    Declaration

    Swift

    @objc
    public init(id: String)