Class Summary.SummaryBuilder
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.postpayments.responses.requestapaymentorpayoutresponsecreated.customer.summary.Summary.SummaryBuilder
-
- Enclosing class:
- Summary
public static class Summary.SummaryBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Summarybuild()Summary.SummaryBuilderfirstTransactionDate(java.lang.String firstTransactionDate)The date of the customer's first transaction.Summary.SummaryBuilderisPremiumCustomer(java.lang.Boolean isPremiumCustomer)Specifies whether the customer is a premium customer.Summary.SummaryBuilderisReturningCustomer(java.lang.Boolean isReturningCustomer)Specifies whether the customer is a returning customer.Summary.SummaryBuilderlastPaymentAmount(java.lang.Double lastPaymentAmount)The amount of the customer's last payment.Summary.SummaryBuilderlastPaymentDate(java.lang.String lastPaymentDate)The date of the customer's last payment.Summary.SummaryBuilderlifetimeValue(java.lang.Double lifetimeValue)The customer's lifetime value.Summary.SummaryBuilderregistrationDate(java.lang.String registrationDate)The date the customer registered.java.lang.StringtoString()Summary.SummaryBuildertotalOrderCount(java.lang.Integer totalOrderCount)The total number of orders made by the customer.
-
-
-
Method Detail
-
registrationDate
public Summary.SummaryBuilder registrationDate(java.lang.String registrationDate)
The date the customer registered. [Optional]- Returns:
this.
-
firstTransactionDate
public Summary.SummaryBuilder firstTransactionDate(java.lang.String firstTransactionDate)
The date of the customer's first transaction. [Optional]- Returns:
this.
-
lastPaymentDate
public Summary.SummaryBuilder lastPaymentDate(java.lang.String lastPaymentDate)
The date of the customer's last payment. [Optional]- Returns:
this.
-
totalOrderCount
public Summary.SummaryBuilder totalOrderCount(java.lang.Integer totalOrderCount)
The total number of orders made by the customer. [Optional]- Returns:
this.
-
lastPaymentAmount
public Summary.SummaryBuilder lastPaymentAmount(java.lang.Double lastPaymentAmount)
The amount of the customer's last payment. [Optional]- Returns:
this.
-
isPremiumCustomer
public Summary.SummaryBuilder isPremiumCustomer(java.lang.Boolean isPremiumCustomer)
Specifies whether the customer is a premium customer. [Optional]- Returns:
this.
-
isReturningCustomer
public Summary.SummaryBuilder isReturningCustomer(java.lang.Boolean isReturningCustomer)
Specifies whether the customer is a returning customer. [Optional]- Returns:
this.
-
lifetimeValue
public Summary.SummaryBuilder lifetimeValue(java.lang.Double lifetimeValue)
The customer's lifetime value. This is the total monetary amount that the customer has ordered, in their local currency, excluding the following: canceled orders rejected payments refunded payments Tamara payments The lifetime value is an indicator of how valuable the relationship with the customer is to your company. [Optional]- Returns:
this.
-
build
public Summary build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-