Class Customer
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessionscomplete.requests.Customer
-
public final class Customer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomer.CustomerBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Customer.CustomerBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetEmail()The customer's email address.java.lang.StringgetId()The unique identifier for an existing customer.java.lang.StringgetName()The customer's name.PhonegetPhone()The customer's phone number.java.lang.StringgetTaxNumber()The customer’s value-added tax (VAT) registration number.inthashCode()voidsetEmail(java.lang.String email)The customer's email address.voidsetId(java.lang.String id)The unique identifier for an existing customer.voidsetName(java.lang.String name)The customer's name.voidsetPhone(Phone phone)The customer's phone number.voidsetTaxNumber(java.lang.String taxNumber)The customer’s value-added tax (VAT) registration number.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Customer
public Customer()
-
Customer
public Customer(java.lang.String email, java.lang.String name, java.lang.String id, Phone phone, java.lang.String taxNumber)Creates a newCustomerinstance.- Parameters:
email- The customer's email address. Required if source.type is tamara.name- The customer's name. Required if source.type is tamara.id- The unique identifier for an existing customer.phone- The customer's phone number. Required if source.type is tamara.taxNumber- The customer’s value-added tax (VAT) registration number.
-
-
Method Detail
-
builder
public static Customer.CustomerBuilder builder()
-
getEmail
public java.lang.String getEmail()
The customer's email address. Required if source.type is tamara.
-
getName
public java.lang.String getName()
The customer's name. Required if source.type is tamara.
-
getId
public java.lang.String getId()
The unique identifier for an existing customer.
-
getPhone
public Phone getPhone()
The customer's phone number. Required if source.type is tamara.
-
getTaxNumber
public java.lang.String getTaxNumber()
The customer’s value-added tax (VAT) registration number.
-
setEmail
public void setEmail(java.lang.String email)
The customer's email address. Required if source.type is tamara.
-
setName
public void setName(java.lang.String name)
The customer's name. Required if source.type is tamara.
-
setId
public void setId(java.lang.String id)
The unique identifier for an existing customer.
-
setPhone
public void setPhone(Phone phone)
The customer's phone number. Required if source.type is tamara.
-
setTaxNumber
public void setTaxNumber(java.lang.String taxNumber)
The customer’s value-added tax (VAT) registration number.
-
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
-
-