Class Recipient
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessions.requests.Recipient
-
public final class Recipient extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecipient.RecipientBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Recipient.RecipientBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetAccountNumber()An identifier related to the primary recipient's account.AddressgetAddress()The recipient's address.java.time.InstantgetDob()The recipient's date of birth, in the format YYYY-MM-DD.java.lang.StringgetFirstName()The recipient's first name.java.lang.StringgetLastName()The recipient's last name.inthashCode()voidsetAccountNumber(java.lang.String accountNumber)An identifier related to the primary recipient's account.voidsetAddress(Address address)The recipient's address.voidsetDob(java.time.Instant dob)The recipient's date of birth, in the format YYYY-MM-DD.voidsetFirstName(java.lang.String firstName)The recipient's first name.voidsetLastName(java.lang.String lastName)The recipient's last name.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Recipient
public Recipient()
-
Recipient
public Recipient(java.time.Instant dob, java.lang.String accountNumber, Address address, java.lang.String firstName, java.lang.String lastName)Creates a newRecipientinstance.- Parameters:
dob- The recipient's date of birth, in the format YYYY-MM-DD.accountNumber- An identifier related to the primary recipient's account. For example, an IBAN, an internal account number, a phone number, or the first six and last four digits of the PAN.address- The recipient's address.firstName- The recipient's first name.lastName- The recipient's last name.
-
-
Method Detail
-
builder
public static Recipient.RecipientBuilder builder()
-
getDob
public java.time.Instant getDob()
The recipient's date of birth, in the format YYYY-MM-DD.
-
getAccountNumber
public java.lang.String getAccountNumber()
An identifier related to the primary recipient's account. For example, an IBAN, an internal account number, a phone number, or the first six and last four digits of the PAN.
-
getAddress
public Address getAddress()
The recipient's address.
-
getFirstName
public java.lang.String getFirstName()
The recipient's first name.
-
getLastName
public java.lang.String getLastName()
The recipient's last name.
-
setDob
public void setDob(java.time.Instant dob)
The recipient's date of birth, in the format YYYY-MM-DD.
-
setAccountNumber
public void setAccountNumber(java.lang.String accountNumber)
An identifier related to the primary recipient's account. For example, an IBAN, an internal account number, a phone number, or the first six and last four digits of the PAN.
-
setAddress
public void setAddress(Address address)
The recipient's address.
-
setFirstName
public void setFirstName(java.lang.String firstName)
The recipient's first name.
-
setLastName
public void setLastName(java.lang.String lastName)
The recipient's last name.
-
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
-
-