Class Source.OrderItem

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Source.OrderItem
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Source

public static class Source.OrderItem extends StripeObject
  • Constructor Details

    • OrderItem

      public OrderItem()
  • Method Details

    • getAmount

      public Long getAmount()
      The amount (price) for this order item.
    • getCurrency

      public String getCurrency()
      This currency of this order item. Required when amount is present.
    • getDescription

      public String getDescription()
      Human-readable description for this order item.
    • getParent

      public String getParent()
      The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).
    • getQuantity

      public Long getQuantity()
      The quantity of this order item. When type is sku, this is the number of instances of the SKU to be ordered.
    • getType

      public String getType()
      The type of this order item. Must be sku, tax, or shipping.
    • setAmount

      public void setAmount(Long amount)
      The amount (price) for this order item.
    • setCurrency

      public void setCurrency(String currency)
      This currency of this order item. Required when amount is present.
    • setDescription

      public void setDescription(String description)
      Human-readable description for this order item.
    • setParent

      public void setParent(String parent)
      The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).
    • setQuantity

      public void setQuantity(Long quantity)
      The quantity of this order item. When type is sku, this is the number of instances of the SKU to be ordered.
    • setType

      public void setType(String type)
      The type of this order item. Must be sku, tax, or shipping.
    • 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