Class Summary


  • public final class Summary
    extends java.lang.Object
    summary Summary of the customer's transaction history. Used for risk assessment when source.type is Tamara
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Summary.SummaryBuilder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Summary()  
      Summary​(java.lang.String registrationDate, java.lang.String firstTransactionDate, java.lang.String lastPaymentDate, java.lang.Integer totalOrderCount, java.lang.Double lastPaymentAmount, java.lang.Boolean isPremiumCustomer, java.lang.Boolean isReturningCustomer, java.lang.Double lifetimeValue)
      Creates a new Summary instance.
    • Constructor Detail

      • Summary

        public Summary()
      • Summary

        public Summary​(java.lang.String registrationDate,
                       java.lang.String firstTransactionDate,
                       java.lang.String lastPaymentDate,
                       java.lang.Integer totalOrderCount,
                       java.lang.Double lastPaymentAmount,
                       java.lang.Boolean isPremiumCustomer,
                       java.lang.Boolean isReturningCustomer,
                       java.lang.Double lifetimeValue)
        Creates a new Summary instance.
        Parameters:
        registrationDate - The date the customer registered. [Optional]
        firstTransactionDate - The date of the customer's first transaction. [Optional]
        lastPaymentDate - The date of the customer's last payment. [Optional]
        totalOrderCount - The total number of orders made by the customer. [Optional]
        lastPaymentAmount - The amount of the customer's last payment. [Optional]
        isPremiumCustomer - Specifies whether the customer is a premium customer. [Optional]
        isReturningCustomer - Specifies whether the customer is a returning customer. [Optional]
        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]
    • Method Detail

      • getRegistrationDate

        public java.lang.String getRegistrationDate()
        The date the customer registered. [Optional]
      • getFirstTransactionDate

        public java.lang.String getFirstTransactionDate()
        The date of the customer's first transaction. [Optional]
      • getLastPaymentDate

        public java.lang.String getLastPaymentDate()
        The date of the customer's last payment. [Optional]
      • getTotalOrderCount

        public java.lang.Integer getTotalOrderCount()
        The total number of orders made by the customer. [Optional]
      • getLastPaymentAmount

        public java.lang.Double getLastPaymentAmount()
        The amount of the customer's last payment. [Optional]
      • getIsPremiumCustomer

        public java.lang.Boolean getIsPremiumCustomer()
        Specifies whether the customer is a premium customer. [Optional]
      • getIsReturningCustomer

        public java.lang.Boolean getIsReturningCustomer()
        Specifies whether the customer is a returning customer. [Optional]
      • getLifetimeValue

        public java.lang.Double getLifetimeValue()
        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]
      • setRegistrationDate

        public void setRegistrationDate​(java.lang.String registrationDate)
        The date the customer registered. [Optional]
      • setFirstTransactionDate

        public void setFirstTransactionDate​(java.lang.String firstTransactionDate)
        The date of the customer's first transaction. [Optional]
      • setLastPaymentDate

        public void setLastPaymentDate​(java.lang.String lastPaymentDate)
        The date of the customer's last payment. [Optional]
      • setTotalOrderCount

        public void setTotalOrderCount​(java.lang.Integer totalOrderCount)
        The total number of orders made by the customer. [Optional]
      • setLastPaymentAmount

        public void setLastPaymentAmount​(java.lang.Double lastPaymentAmount)
        The amount of the customer's last payment. [Optional]
      • setIsPremiumCustomer

        public void setIsPremiumCustomer​(java.lang.Boolean isPremiumCustomer)
        Specifies whether the customer is a premium customer. [Optional]
      • setIsReturningCustomer

        public void setIsReturningCustomer​(java.lang.Boolean isReturningCustomer)
        Specifies whether the customer is a returning customer. [Optional]
      • setLifetimeValue

        public void setLifetimeValue​(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]
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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