Class MerchantAccount


  • public class MerchantAccount
    extends java.lang.Object
    Merchant account information
    • 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 new MerchantAccount instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static MerchantAccount.MerchantAccountBuilder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.time.Instant getFirstTransactionDate()
      The date of the customer's first transaction with the merchant
      java.lang.String getId()
      The unique identifier of the merchant account
      java.time.Instant getLastModified()
      The date when the customer's account was last modified
      java.lang.Long getLastPaymentAmount()
      The amount of the customer's last payment with the merchant
      java.time.Instant getLastTransactionDate()
      The date of the customer's most recent transaction with the merchant
      java.time.Instant getRegistrationDate()
      The date when the customer's account was first registered with the merchant
      java.lang.Boolean getReturningCustomer()
      Indicates whether this is a returning customer
      java.lang.Integer getTotalOrderCount()
      The total number of orders the customer has placed with the merchant
      int hashCode()  
      void setFirstTransactionDate​(java.time.Instant firstTransactionDate)
      The date of the customer's first transaction with the merchant
      void setId​(java.lang.String id)
      The unique identifier of the merchant account
      void setLastModified​(java.time.Instant lastModified)
      The date when the customer's account was last modified
      void setLastPaymentAmount​(java.lang.Long lastPaymentAmount)
      The amount of the customer's last payment with the merchant
      void setLastTransactionDate​(java.time.Instant lastTransactionDate)
      The date of the customer's most recent transaction with the merchant
      void setRegistrationDate​(java.time.Instant registrationDate)
      The date when the customer's account was first registered with the merchant
      void setReturningCustomer​(java.lang.Boolean returningCustomer)
      Indicates whether this is a returning customer
      void setTotalOrderCount​(java.lang.Integer totalOrderCount)
      The total number of orders the customer has placed with the merchant
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 new MerchantAccount instance.
        Parameters:
        id - The unique identifier of the merchant account
        registrationDate - The date when the customer's account was first registered with the merchant
        lastModified - The date when the customer's account was last modified
        returningCustomer - Indicates whether this is a returning customer
        firstTransactionDate - The date of the customer's first transaction with the merchant
        lastTransactionDate - The date of the customer's most recent transaction with the merchant
        totalOrderCount - The total number of orders the customer has placed with the merchant
        lastPaymentAmount - The amount of the customer's last payment with the merchant
    • Method Detail

      • 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:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

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