com.ibm.commerce.marketing.promotion.dependency

Interface Customer

  • All Superinterfaces:
    ExternalEntity, com.ibm.commerce.marketing.promotion.dynattr.SupportDynamicAttribute


    public interface Customer
    extends ExternalEntity
    Customer is the interface which represents Customer external entity. The interface extends ExternalEntity interface. All the implementations for Customer dependency should implement this interface.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • CUSTOMER_TYPE_REGISTERED

        static final int CUSTOMER_TYPE_REGISTERED
        Indicates Registered customer.
        See Also:
        Constant Field Values
      • CUSTOMER_TYPE_GUEST

        static final int CUSTOMER_TYPE_GUEST
        Indicates Guest customer
        See Also:
        Constant Field Values
    • Method Detail

      • getKey

        CustomerKey getKey()
        This method returns the CustomerKey of the Customer.
        Returns:
        CustomerKey of the Customer.
      • getCustomerType

        int getCustomerType()
        This method returns the type of the customer. If customer is registered 0 is returned else if customer is a guest 1 is returned.
        Returns:
        0 for registered customer; 1 for guest customer.
      • getLastOrderDate

        java.util.Date getLastOrderDate()
        This method returns the date of the last order placed by the customer.
        Returns:
        Date the date of the last order placed by the customer.
      • getLastVisitDate

        java.util.Date getLastVisitDate()
        This method returns the date, when the customer last visited the site.
        Returns:
        The date the customer last visited.
      • getRegistrationDate

        java.util.Date getRegistrationDate()
        This method returns the date when the customer registered.
        Returns:
        The registration date of the customer.
      • getPreferredCurrency

        java.lang.String getPreferredCurrency()
        This method returns the preferred currency of the customer.
        Returns:
        String customer's preferred currency.
      • getPreferredLanguage

        java.lang.String getPreferredLanguage()
        This method returns the preferred language of the customer.
        Returns:
        String customer's preferred language.
      • getLifeTimeTotal

        java.math.BigDecimal getLifeTimeTotal()
        This method returns the total price of all the orders placed by the customer in his life time.
        Returns:
        BigDecimal customer's life time purchase amount in total.
      • getPurchaseHistory

        OrderKey[] getPurchaseHistory()
        This method gets the purchase history of the customer. It returns the list of order keys corresponding to all the orders placed by the customer.
        Returns:
        list of OrderKey corresponding to all the orders placed by the customer.
      • getCustomerProfilesBelongsTo

        CustomerProfileKey[] getCustomerProfilesBelongsTo()
        This method returns the list of keys corresponding to all the customer profile to which the customer belongs to.
        Returns:
        list of CustomerProfileKey corresponding to all the customer profile to which the customer belongs to.
      • getPossessedCoupons

        com.ibm.commerce.marketing.promotion.coupon.Coupon[] getPossessedCoupons()
        This method returns the coupons possessed by the customer.
        Returns:
        list of Coupon possessed by the customer.