Class MerchantAccount
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.setups.entities.customer.MerchantAccount
-
public class MerchantAccount extends java.lang.ObjectMerchant account information
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantAccount.MerchantAccountBuilder
-
Constructor Summary
Constructors Constructor Description MerchantAccount()MerchantAccount(java.lang.String id, java.time.Instant registrationDate, java.time.Instant lastModified, java.lang.Boolean returningCustomer, java.time.Instant firstTransactionDate, java.time.Instant lastTransactionDate, java.lang.Integer totalOrderCount, java.lang.Long lastPaymentAmount)Creates a newMerchantAccountinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MerchantAccount.MerchantAccountBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.time.InstantgetFirstTransactionDate()The date of the customer's first transaction with the merchantjava.lang.StringgetId()The unique identifier of the merchant accountjava.time.InstantgetLastModified()The date when the customer's account was last modifiedjava.lang.LonggetLastPaymentAmount()The amount of the customer's last payment with the merchantjava.time.InstantgetLastTransactionDate()The date of the customer's most recent transaction with the merchantjava.time.InstantgetRegistrationDate()The date when the customer's account was first registered with the merchantjava.lang.BooleangetReturningCustomer()Indicates whether this is a returning customerjava.lang.IntegergetTotalOrderCount()The total number of orders the customer has placed with the merchantinthashCode()voidsetFirstTransactionDate(java.time.Instant firstTransactionDate)The date of the customer's first transaction with the merchantvoidsetId(java.lang.String id)The unique identifier of the merchant accountvoidsetLastModified(java.time.Instant lastModified)The date when the customer's account was last modifiedvoidsetLastPaymentAmount(java.lang.Long lastPaymentAmount)The amount of the customer's last payment with the merchantvoidsetLastTransactionDate(java.time.Instant lastTransactionDate)The date of the customer's most recent transaction with the merchantvoidsetRegistrationDate(java.time.Instant registrationDate)The date when the customer's account was first registered with the merchantvoidsetReturningCustomer(java.lang.Boolean returningCustomer)Indicates whether this is a returning customervoidsetTotalOrderCount(java.lang.Integer totalOrderCount)The total number of orders the customer has placed with the merchantjava.lang.StringtoString()
-
-
-
Constructor Detail
-
MerchantAccount
public MerchantAccount()
-
MerchantAccount
public MerchantAccount(java.lang.String id, java.time.Instant registrationDate, java.time.Instant lastModified, java.lang.Boolean returningCustomer, java.time.Instant firstTransactionDate, java.time.Instant lastTransactionDate, java.lang.Integer totalOrderCount, java.lang.Long lastPaymentAmount)Creates a newMerchantAccountinstance.- Parameters:
id- The unique identifier of the merchant accountregistrationDate- The date when the customer's account was first registered with the merchantlastModified- The date when the customer's account was last modifiedreturningCustomer- Indicates whether this is a returning customerfirstTransactionDate- The date of the customer's first transaction with the merchantlastTransactionDate- The date of the customer's most recent transaction with the merchanttotalOrderCount- The total number of orders the customer has placed with the merchantlastPaymentAmount- The amount of the customer's last payment with the merchant
-
-
Method Detail
-
builder
public static MerchantAccount.MerchantAccountBuilder builder()
-
getId
public java.lang.String getId()
The unique identifier of the merchant account
-
getRegistrationDate
public java.time.Instant getRegistrationDate()
The date when the customer's account was first registered with the merchant
-
getLastModified
public java.time.Instant getLastModified()
The date when the customer's account was last modified
-
getReturningCustomer
public java.lang.Boolean getReturningCustomer()
Indicates whether this is a returning customer
-
getFirstTransactionDate
public java.time.Instant getFirstTransactionDate()
The date of the customer's first transaction with the merchant
-
getLastTransactionDate
public java.time.Instant getLastTransactionDate()
The date of the customer's most recent transaction with the merchant
-
getTotalOrderCount
public java.lang.Integer getTotalOrderCount()
The total number of orders the customer has placed with the merchant
-
getLastPaymentAmount
public java.lang.Long getLastPaymentAmount()
The amount of the customer's last payment with the merchant
-
setId
public void setId(java.lang.String id)
The unique identifier of the merchant account
-
setRegistrationDate
public void setRegistrationDate(java.time.Instant registrationDate)
The date when the customer's account was first registered with the merchant
-
setLastModified
public void setLastModified(java.time.Instant lastModified)
The date when the customer's account was last modified
-
setReturningCustomer
public void setReturningCustomer(java.lang.Boolean returningCustomer)
Indicates whether this is a returning customer
-
setFirstTransactionDate
public void setFirstTransactionDate(java.time.Instant firstTransactionDate)
The date of the customer's first transaction with the merchant
-
setLastTransactionDate
public void setLastTransactionDate(java.time.Instant lastTransactionDate)
The date of the customer's most recent transaction with the merchant
-
setTotalOrderCount
public void setTotalOrderCount(java.lang.Integer totalOrderCount)
The total number of orders the customer has placed with the merchant
-
setLastPaymentAmount
public void setLastPaymentAmount(java.lang.Long lastPaymentAmount)
The amount of the customer's last payment with the merchant
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-