Class LineItemDTO

    • Constructor Detail

      • LineItemDTO

        public LineItemDTO()
      • LineItemDTO

        public LineItemDTO​(javax.money.MonetaryAmount standardPrice,
                           javax.money.MonetaryAmount salePrice,
                           int quantity,
                           Map<String,​Object> attributes)
    • Method Detail

      • getStandardPrice

        public javax.money.MonetaryAmount getStandardPrice()
        The base price of the line item
        Returns:
        standardPrice the base price of the line item
      • getSalePrice

        public javax.money.MonetaryAmount getSalePrice()
        Any sale price associated with the line item
        Returns:
        the sale price for the item
      • getQuantity

        public int getQuantity()
        The quantity that this line item represents
        Returns:
        the line item's quantity
      • getAttributes

        public Map<String,​Object> getAttributes()
        All additional attributes associated with the line item
        Returns:
        additional attributes associated with the line item
      • setStandardPrice

        public void setStandardPrice​(javax.money.MonetaryAmount standardPrice)
        The base price of the line item
      • setSalePrice

        public void setSalePrice​(javax.money.MonetaryAmount salePrice)
        Any sale price associated with the line item
      • setQuantity

        public void setQuantity​(int quantity)
        The quantity that this line item represents
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
        All additional attributes associated with the line item
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object