java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.domain.TransactionLineItem
All Implemented Interfaces:
Serializable

public class TransactionLineItem extends Object implements Serializable
The payload used to describe a line item related to a given TransactionExecutionRequest
Author:
Chris Kittrell (ckittrell)
See Also:
  • Constructor Details

    • TransactionLineItem

      public TransactionLineItem()
  • Method Details

    • getCurrency

      @Nullable public javax.money.CurrencyUnit getCurrency()
      The currency gathered from the getItemTotal()
      Returns:
      The currency gathered from the item total
    • getId

      public String getId()
      The id of the line item, typically the cart item id.
      Returns:
      The id of the line item, typically the cart item id.
    • getName

      public String getName()
      The name of the line item, typically the cart item name.
      Returns:
      The name of the line item, typically the cart item name.
    • getDescription

      public String getDescription()
      The description of the line item.
      Returns:
      The description of the line item.
    • getSku

      public String getSku()
      The sku of the line item.
      Returns:
      The sku of the line item.
    • getItemTotal

      public javax.money.MonetaryAmount getItemTotal()
      The line item total cost, including merchandise cost, fulfillment cost, & tax assigned to the item.
      Returns:
      The line item total cost, including merchandise cost, fulfillment cost, & tax assigned to the item.
    • getQuantity

      public int getQuantity()
      The quantity of the line item.
      Returns:
      The quantity of the line item.
    • getImageUrl

      public String getImageUrl()
      The url of the line item's image.
      Returns:
      The url of the line item's image.
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Miscellaneous attributes that can be added to this payload in order to provide more information. Note, it is recommended to not add any sensitive information in these attributes.
      Returns:
      Miscellaneous attributes that can be added to this payload.
    • setId

      public void setId(String id)
      The id of the line item, typically the cart item id.
      Parameters:
      id - The id of the line item, typically the cart item id.
    • setName

      public void setName(String name)
      The name of the line item, typically the cart item name.
      Parameters:
      name - The name of the line item, typically the cart item name.
    • setDescription

      public void setDescription(String description)
      The description of the line item.
      Parameters:
      description - The description of the line item.
    • setSku

      public void setSku(String sku)
      The sku of the line item.
      Parameters:
      sku - The sku of the line item.
    • setItemTotal

      public void setItemTotal(javax.money.MonetaryAmount itemTotal)
      The line item total cost, including merchandise cost, fulfillment cost, & tax assigned to the item.
      Parameters:
      itemTotal - The line item total cost, including merchandise cost, fulfillment cost, & tax assigned to the item.
    • setQuantity

      public void setQuantity(int quantity)
      The quantity of the line item.
      Parameters:
      quantity - The quantity of the line item.
    • setImageUrl

      public void setImageUrl(String imageUrl)
      The url of the line item's image.
      Parameters:
      imageUrl - The url of the line item's image.
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Miscellaneous attributes that can be added to this payload in order to provide more information. Note, it is recommended to not add any sensitive information in these attributes.
      Parameters:
      additionalAttributes - Miscellaneous attributes that can be added to this payload.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object