Class ConsumerInfo

java.lang.Object
com.thalesgroup.gemalto.d1.clicktopay.ConsumerInfo

public final class ConsumerInfo extends Object
Information about the consumer.
Since:
4.3.0
  • Constructor Details

    • ConsumerInfo

      public ConsumerInfo(@NonNull String firstName, @Nullable String middleName, @NonNull String lastName, @NonNull String language, @NonNull String phoneNumberCountryCode, @NonNull String phoneNumber, @Nullable String email)
      Parameters:
      firstName - Provides the consumer's first name. The maximum length of the first name allowed is 35 characters.
      middleName - Provides the consumer's middle name. The maximum length of the middle name allowed is 35 characters. This parameter is not applicable to Mastercard.
      lastName - Provides the consumer's last name. The maximum length of the last name allowed is 35 characters.
      language - 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 alpha-2) country code in uppercase. For example: en-US
      phoneNumberCountryCode - The international country code of the end user's phoneNumber, starting with the '+' sign. For example: +65
      email - The consumer’s email address in RFC 5322 format. For example: myemail@mail.com.
      phoneNumber - The national phoneNumber of the end user without the initial '0'.
  • Method Details

    • getMiddleName

      @Nullable public String getMiddleName()
    • getFirstName

      @NonNull public String getFirstName()
      Provides the consumer's first name.
    • getLastName

      @NonNull public String getLastName()
      Provides the consumer's last name.
    • getLanguage

      @NonNull public String getLanguage()
      The preferred language to be used by the consumer.
    • getPhoneNumberCountryCode

      @NonNull public String getPhoneNumberCountryCode()
      The country code of the phone number according to international calling code format UIT-T E.164.
    • getPhoneNumber

      @NonNull public String getPhoneNumber()
      The phone number which is without a country code.
    • getEmail

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