All Superinterfaces:
ListItem<ProductItem>

public interface ProductItem extends ListItem<ProductItem>
A message component for interactive messages, containing a product.
  • Method Details

    • getId

      String getId()
      Required parameter. The ID for the product.
      Returns:
      id
    • getMarketplace

      String getMarketplace()
      Required parameter. The marketplace to which the product belongs.
      Returns:
      marketplace
    • getQuantity

      Integer getQuantity()
      Output only. The quantity of the chosen product.
      Returns:
      quantity
    • getItemPrice

      Float getItemPrice()
      Output only. The price for one unit of the chosen product.
      Returns:
      itemPrice
    • getCurrency

      String getCurrency()
      Output only. The currency of the item_price.
      Returns:
      currency
    • builder

      static ProductItem.Builder builder()
      Getting builder
      Returns:
      New Builder instance