Class TransactionDisplayItem

java.lang.Object
com.blockchyp.client.dto.TransactionDisplayItem

public class TransactionDisplayItem extends Object
An item category in a transaction display. Groups combine if their descriptions match. Calculated subtotal amounts are rounded to two decimal places of precision. Quantity is a floating point number that is not rounded at all.
  • Constructor Details

    • TransactionDisplayItem

      public TransactionDisplayItem()
  • Method Details

    • setId

      public void setId(String value)
      Sets a unique value identifying the item.
      Parameters:
      value - a unique value identifying the item. This is not required, but recommended since it is required to update or delete line items.
    • getId

      public String getId()
      Gets a unique value identifying the item.
      Returns:
      a unique value identifying the item. This is not required, but recommended since it is required to update or delete line items.
    • setDescription

      public void setDescription(String value)
      Sets a description of the line item.
      Parameters:
      value - a description of the line item.
    • getDescription

      public String getDescription()
      Gets a description of the line item.
      Returns:
      a description of the line item.
    • setPrice

      public void setPrice(String value)
      Sets the price of the line item.
      Parameters:
      value - the price of the line item.
    • getPrice

      public String getPrice()
      Gets the price of the line item.
      Returns:
      the price of the line item.
    • setQuantity

      public void setQuantity(float value)
      Sets the quantity of the line item.
      Parameters:
      value - the quantity of the line item.
    • getQuantity

      public float getQuantity()
      Gets the quantity of the line item.
      Returns:
      the quantity of the line item.
    • setExtended

      public void setExtended(String value)
      Sets an item category in a transaction display.
      Parameters:
      value - an item category in a transaction display. Groups combine if their descriptions match. Calculated subtotal amounts are rounded to two decimal places of precision. Quantity is a floating point number that is not rounded at all.
    • getExtended

      public String getExtended()
      Gets an item category in a transaction display.
      Returns:
      an item category in a transaction display. Groups combine if their descriptions match. Calculated subtotal amounts are rounded to two decimal places of precision. Quantity is a floating point number that is not rounded at all.
    • setUnitCode

      public void setUnitCode(String value)
      Sets an alphanumeric code for units of measurement as used in international trade.
      Parameters:
      value - an alphanumeric code for units of measurement as used in international trade.
    • getUnitCode

      public String getUnitCode()
      Gets an alphanumeric code for units of measurement as used in international trade.
      Returns:
      an alphanumeric code for units of measurement as used in international trade.
    • setCommodityCode

      public void setCommodityCode(String value)
      Sets an international description code of the item.
      Parameters:
      value - an international description code of the item.
    • getCommodityCode

      public String getCommodityCode()
      Gets an international description code of the item.
      Returns:
      an international description code of the item.
    • setProductCode

      public void setProductCode(String value)
      Sets a merchant-defined description code of the item.
      Parameters:
      value - a merchant-defined description code of the item.
    • getProductCode

      public String getProductCode()
      Gets a merchant-defined description code of the item.
      Returns:
      a merchant-defined description code of the item.
    • setDiscounts

      public void setDiscounts(Collection<TransactionDisplayDiscount> value)
      Sets are displayed under their corresponding item.
      Parameters:
      value - are displayed under their corresponding item.
    • getDiscounts

      public Collection<TransactionDisplayDiscount> getDiscounts()
      Gets are displayed under their corresponding item.
      Returns:
      are displayed under their corresponding item.
    • addDiscount

      public void addDiscount(TransactionDisplayDiscount value)
      Adds a are displayed under their corresponding item.
      Parameters:
      value - are displayed under their corresponding item.