Consumer

public struct Consumer

Consumer

Consumer stores information about a reference and a consumer token to be used in any kind of token transaction.

  • Our unique reference for this Consumer. Used in conjunction with the card token in repeat transactions.

    Declaration

    Swift

    public let consumerToken: String
  • Your reference for this Consumer as you sent in your request.

    Declaration

    Swift

    public let yourConsumerReference: String
  • Designated initializer

    Declaration

    Swift

    public init(_ dict: JSONDictionary)

    Parameters

    dict

    the consumer dictionary which was return from the judo REST API

    Return Value

    a Consumer object

  • Designated initializer

    Declaration

    Swift

    public init(consumerToken: String, consumerReference: String)

    Parameters

    consumerToken

    A consumer token string

    consumerReference

    A consumer reference string

    Return Value

    a consumer object