Class OrderItem

All Implemented Interfaces:
StripeObjectInterface

public class OrderItem extends StripeObject
  • Constructor Details

    • OrderItem

      public OrderItem()
  • Method Details

    • getParent

      public String getParent()
      Get ID of expandable parent object.
    • setParent

      public void setParent(String id)
    • getParentObject

      public Sku getParentObject()
      Get expanded parent.
    • setParentObject

      public void setParentObject(Sku expandableObject)
    • getAmount

      public Long getAmount()
      A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • getDescription

      public String getDescription()
      Description of the line item, meant to be displayable to the user (e.g., "Express shipping").
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to order_item.

    • getQuantity

      public Long getQuantity()
      A positive integer representing the number of instances of parent that are included in this order item. Applicable/present only if type is sku.
    • getType

      public String getType()
      The type of line item. One of sku, tax, shipping, or discount.
    • setAmount

      public void setAmount(Long amount)
      A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setDescription

      public void setDescription(String description)
      Description of the line item, meant to be displayable to the user (e.g., "Express shipping").
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to order_item.

    • setQuantity

      public void setQuantity(Long quantity)
      A positive integer representing the number of instances of parent that are included in this order item. Applicable/present only if type is sku.
    • setType

      public void setType(String type)
      The type of line item. One of sku, tax, shipping, or discount.
    • 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