Class Customer
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.postpayments.responses.requestapaymentorpayoutresponsecreated.customer.Customer
-
public final class Customer extends java.lang.Objectcustomer The customer associated with the payment, if provided in the request
-
-
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 customer's unique identifier.java.lang.StringgetName()The customer's name.PhonegetPhone()The customer's phone number.SummarygetSummary()Summary of the customer's transaction history.inthashCode()voidsetEmail(java.lang.String email)The customer's email address.voidsetId(java.lang.String id)The customer's unique identifier.voidsetName(java.lang.String name)The customer's name.voidsetPhone(Phone phone)The customer's phone number.voidsetSummary(Summary summary)Summary of the customer's transaction history.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Customer
public Customer()
-
Customer
public Customer(java.lang.String id, java.lang.String email, java.lang.String name, Phone phone, Summary summary)Creates a newCustomerinstance.- Parameters:
id- The customer's unique identifier. This can be passed as a source when making a payment. [Required] ^(cus)_(\w{26})$email- The customer's email address. [Optional]name- The customer's name. [Optional]phone- The customer's phone number. [Optional]summary- Summary of the customer's transaction history. Used for risk assessment when source.type is Tamara [Optional]
-
-
Method Detail
-
builder
public static Customer.CustomerBuilder builder()
-
getId
public java.lang.String getId()
The customer's unique identifier. This can be passed as a source when making a payment. [Required] ^(cus)_(\w{26})$
-
getEmail
public java.lang.String getEmail()
The customer's email address. [Optional]
-
getName
public java.lang.String getName()
The customer's name. [Optional]
-
getPhone
public Phone getPhone()
The customer's phone number. [Optional]
-
getSummary
public Summary getSummary()
Summary of the customer's transaction history. Used for risk assessment when source.type is Tamara [Optional]
-
setId
public void setId(java.lang.String id)
The customer's unique identifier. This can be passed as a source when making a payment. [Required] ^(cus)_(\w{26})$
-
setEmail
public void setEmail(java.lang.String email)
The customer's email address. [Optional]
-
setName
public void setName(java.lang.String name)
The customer's name. [Optional]
-
setPhone
public void setPhone(Phone phone)
The customer's phone number. [Optional]
-
setSummary
public void setSummary(Summary summary)
Summary of the customer's transaction history. Used for risk assessment when source.type is Tamara [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
-
-