ConsumerInfo

public struct ConsumerInfo

Information about the consumer.

Since

3.3.0
  • Provides the consumer’s first name. The maximum length of the first name allowed is 30 characters.

    Declaration

    Swift

    public let firstName: String
  • Consumer-provided last name. The maximum length of the last name allowed is 30 characters.

    Declaration

    Swift

    public let lastName: String
  • The preferred language to be used by the consumer. Format: A 2-letter language code (ISO 639-1) in lowercase with an underscore (”_”), followed by a 2-letter (ISO 3166-1) country code in uppercase. For example: en_US

    Declaration

    Swift

    public let language: String
  • The country code of the phone number according to International calling code format UIT-T E.164. It contains only numbers, without the plus sign (+). For example: 65

    Declaration

    Swift

    public let phoneNumberCountryCode: String
  • The phone number which is without a country code. It contains the national destination code or number planning area + subscriber number. For example: 99998888

    Declaration

    Swift

    public let phoneNumber: String
  • The consumer’s email address in RFC 5322 format. For example: myemail@mail.com.

    Declaration

    Swift

    public let email: String
  • Initializer for ConsumerInfo

    Declaration

    Swift

    public init(firstName: String,
                lastName: String,
                language: String,
                phoneNumberCountryCode: String,
                phoneNumber: String,
                email: String)