java.lang.Object
com.broadleafcommerce.paymentgateway.domain.LineItem

public class LineItem extends Object
Author:
Elbert Bautista (elbertbautista) Many Hosted solutions, (e.g. PayPal Express/Sagepay Form) allow you to pass in the contents of your cart to be displayed on their hosted pages. The following DTO represent the usual parameters that you may wish to pass: name: a Name for this Line Item description: a Description for this Line Item category: a Category for this Line Item (PayPal Express uses this to differentiate between Digital vs Physical) quantity: the Quantity for this Line Item amount: the unit cost of the item without tax tax: the tax applied to this unit item itemTotal: the cost of the unit item with tax total: the total cost of this line item (Quanity x Cost Including Tax)
  • Constructor Details

  • Method Details

    • done

      public PaymentRequest done()
    • additionalField

      public LineItem additionalField(String key, Object value)
    • name

      public LineItem name(String name)
    • description

      public LineItem description(String description)
    • shortDescription

      public LineItem shortDescription(String shortDescription)
    • systemId

      public LineItem systemId(String systemId)
    • category

      public LineItem category(String category)
    • quantity

      public LineItem quantity(int quantity)
    • amount

      public LineItem amount(javax.money.MonetaryAmount amount)
    • tax

      public LineItem tax(javax.money.MonetaryAmount tax)
    • itemTotal

      public LineItem itemTotal(javax.money.MonetaryAmount itemTotal)
    • total

      public LineItem total(javax.money.MonetaryAmount total)
    • getParent

      public PaymentRequest getParent()
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getShortDescription

      public String getShortDescription()
    • getSystemId

      public String getSystemId()
    • getCategory

      public String getCategory()
    • getQuantity

      public int getQuantity()
    • getAmount

      public javax.money.MonetaryAmount getAmount()
    • getTax

      public javax.money.MonetaryAmount getTax()
    • getItemTotal

      public javax.money.MonetaryAmount getItemTotal()
    • getTotal

      public javax.money.MonetaryAmount getTotal()
    • getAdditionalFields

      public Map<String,Object> getAdditionalFields()