Class ConsumerInfo

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

public final class ConsumerInfo extends Object
Deprecated.
Please use ConsumerInfo.
Information about the consumer.
Since:
3.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)
      Deprecated.
      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 - International country code of the end user's phoneNumber. Shall start with the '+' sign. For example: +65
      email - The consumer’s email address in RFC 5322 format. For example: myemail@mail.com.
      phoneNumber - National phoneNumber of the end user. Shall not contain the first '0' of the national phoneNumber.
    • ConsumerInfo

      public ConsumerInfo(@NonNull String firstName, @NonNull String lastName, @NonNull String language, @NonNull String phoneNumberCountryCode, @NonNull String phoneNumber, @NonNull String email)
      Parameters:
      firstName - Provides the consumer's first name. The maximum length of the first name allowed is 30 characters.
      lastName - Provides the consumer's last name. The maximum length of the last name allowed is 30 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) country code in uppercase. For example: en_US
      phoneNumberCountryCode - 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
      email - The consumer’s email address in RFC 5322 format. For example: myemail@mail.com.
      phoneNumber - The phone number which is without a country code. It contains the national destination code or number planning area + subscriber number. For example: 99998888
  • Method Details

    • getMiddleName

      @Nullable public String getMiddleName()
      Deprecated.
    • getFirstName

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

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

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

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

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

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