Class ConsumerInfo


  • public final class ConsumerInfo
    extends Object
    Information about the consumer.
    Since:
    3.3.0
    • Method Detail

      • getFirstName

        @NonNull
        public String getFirstName()
        Provides the consumer's first name. The maximum length of the first name allowed is 30 characters.
      • getLastName

        @NonNull
        public String getLastName()
        Provides the consumer's last name. The maximum length of the last name allowed is 30 characters.
      • getLanguage

        @NonNull
        public String getLanguage()
        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
      • getPhoneNumberCountryCode

        @NonNull
        public String getPhoneNumberCountryCode()
        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
      • getPhoneNumber

        @NonNull
        public String getPhoneNumber()
        The phone number which is without a country code. It contains the national destination code or number planning area + subscriber number. For example: 99998888
      • getEmail

        @NonNull
        public String getEmail()
        The consumer’s email address in RFC 5322 format. For example: myemail@mail.com.