Class Summary.SummaryBuilder

  • Enclosing class:
    Summary

    public static class Summary.SummaryBuilder
    extends java.lang.Object
    • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object