Class AccountHolder
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.common.source.paymentgetresponseklarnasourcesource.accountholder.AccountHolder
-
public final class AccountHolder extends java.lang.Objectaccount_holder object describes payee details
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountHolder.AccountHolderBuilder
-
Constructor Summary
Constructors Constructor Description AccountHolder()AccountHolder(java.lang.String firstName, java.lang.String lastName, BillingAddress billingAddress, java.lang.String email, java.lang.String dateOfBirth, java.lang.String gender, Phone phone)Creates a newAccountHolderinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountHolder.AccountHolderBuilderbuilder()booleanequals(java.lang.Object o)BillingAddressgetBillingAddress()Address of the account holder.java.lang.StringgetDateOfBirth()Date of birth of the account holder.java.lang.StringgetEmail()Email address of the account holder.java.lang.StringgetFirstName()First name of the account holder.java.lang.StringgetGender()Gender of the account holder.java.lang.StringgetLastName()Last name of the account holder.PhonegetPhone()Phone number of the account holder.inthashCode()voidsetBillingAddress(BillingAddress billingAddress)Address of the account holder.voidsetDateOfBirth(java.lang.String dateOfBirth)Date of birth of the account holder.voidsetEmail(java.lang.String email)Email address of the account holder.voidsetFirstName(java.lang.String firstName)First name of the account holder.voidsetGender(java.lang.String gender)Gender of the account holder.voidsetLastName(java.lang.String lastName)Last name of the account holder.voidsetPhone(Phone phone)Phone number of the account holder.java.lang.StringtoString()
-
-
-
Constructor Detail
-
AccountHolder
public AccountHolder()
-
AccountHolder
public AccountHolder(java.lang.String firstName, java.lang.String lastName, BillingAddress billingAddress, java.lang.String email, java.lang.String dateOfBirth, java.lang.String gender, Phone phone)Creates a newAccountHolderinstance.- Parameters:
firstName- First name of the account holder. [Optional]lastName- Last name of the account holder. [Optional]billingAddress- Address of the account holder. [Optional]email- Email address of the account holder. [Optional]dateOfBirth- Date of birth of the account holder. [Optional]gender- Gender of the account holder. [Optional]phone- Phone number of the account holder. [Optional]
-
-
Method Detail
-
builder
public static AccountHolder.AccountHolderBuilder builder()
-
getFirstName
public java.lang.String getFirstName()
First name of the account holder. [Optional]
-
getLastName
public java.lang.String getLastName()
Last name of the account holder. [Optional]
-
getBillingAddress
public BillingAddress getBillingAddress()
Address of the account holder. [Optional]
-
getEmail
public java.lang.String getEmail()
Email address of the account holder. [Optional]
-
getDateOfBirth
public java.lang.String getDateOfBirth()
Date of birth of the account holder. [Optional]
-
getGender
public java.lang.String getGender()
Gender of the account holder. [Optional]
-
getPhone
public Phone getPhone()
Phone number of the account holder. [Optional]
-
setFirstName
public void setFirstName(java.lang.String firstName)
First name of the account holder. [Optional]
-
setLastName
public void setLastName(java.lang.String lastName)
Last name of the account holder. [Optional]
-
setBillingAddress
public void setBillingAddress(BillingAddress billingAddress)
Address of the account holder. [Optional]
-
setEmail
public void setEmail(java.lang.String email)
Email address of the account holder. [Optional]
-
setDateOfBirth
public void setDateOfBirth(java.lang.String dateOfBirth)
Date of birth of the account holder. [Optional]
-
setGender
public void setGender(java.lang.String gender)
Gender of the account holder. [Optional]
-
setPhone
public void setPhone(Phone phone)
Phone number of the account holder. [Optional]
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-