Class ConsumerInfo
java.lang.Object
com.thalesgroup.gemalto.d1.clicktopay.ConsumerInfo
Information about the consumer.
- Since:
- 4.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()The consumer’s email address in RFC 5322 format.Provides the consumer's first name.The preferred language to be used by the consumer.Provides the consumer's last name.The phone number which is without a country code.The country code of the phone number according to international calling code format UIT-T E.164.
-
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-USphoneNumberCountryCode- The international country code of the end user's phoneNumber, starting with the '+' sign. For example: +65email- 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
-
getFirstName
Provides the consumer's first name. -
getLastName
Provides the consumer's last name. -
getLanguage
The preferred language to be used by the consumer. -
getPhoneNumberCountryCode
The country code of the phone number according to international calling code format UIT-T E.164. -
getPhoneNumber
The phone number which is without a country code. -
getEmail
The consumer’s email address in RFC 5322 format. For example: myemail@mail.com.
-