Class OffSessionPayment.AmountDetails.LineItem

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.payments.OffSessionPayment.AmountDetails.LineItem
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
OffSessionPayment.AmountDetails

public static class OffSessionPayment.AmountDetails.LineItem extends StripeObject
For more details about LineItem, please refer to the API Reference.
  • Constructor Details

    • LineItem

      public LineItem()
  • Method Details

    • getDiscountAmount

      public Long getDiscountAmount()
      The amount an item was discounted for. Positive integer.
    • getProductCode

      public String getProductCode()
      Unique identifier of the product. At most 12 characters long.
    • getProductName

      public String getProductName()
      Name of the product. At most 100 characters long.
    • getQuantity

      public Long getQuantity()
      Number of items of the product. Positive integer.
    • getTax

      Contains information about the tax on the item.
    • getUnitCost

      public Long getUnitCost()
      Cost of the product. Non-negative integer.
    • setDiscountAmount

      public void setDiscountAmount(Long discountAmount)
      The amount an item was discounted for. Positive integer.
    • setProductCode

      public void setProductCode(String productCode)
      Unique identifier of the product. At most 12 characters long.
    • setProductName

      public void setProductName(String productName)
      Name of the product. At most 100 characters long.
    • setQuantity

      public void setQuantity(Long quantity)
      Number of items of the product. Positive integer.
    • setTax

      Contains information about the tax on the item.
    • setUnitCost

      public void setUnitCost(Long unitCost)
      Cost of the product. Non-negative integer.
    • 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