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
  • Field Summary

    Fields inherited from class com.stripe.model.StripeObject

    PRETTY_PRINT_GSON
  • Constructor Summary

    Constructors 
    Constructor Description
    OrderItem()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.Long getAmount()
    The amount (price) for this order item.
    java.lang.String getCurrency()
    This currency of this order item.
    java.lang.String getDescription()
    Human-readable description for this order item.
    java.lang.Long getQuantity()
    The quantity of this order item.
    java.lang.String getType()
    The type of this order item.
    int hashCode()  
    void setAmount​(java.lang.Long amount)
    The amount (price) for this order item.
    void setCurrency​(java.lang.String currency)
    This currency of this order item.
    void setDescription​(java.lang.String description)
    Human-readable description for this order item.
    void setQuantity​(java.lang.Long quantity)
    The quantity of this order item.
    void setType​(java.lang.String type)
    The type of this order item.

    Methods inherited from class com.stripe.model.StripeObject

    equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getAmount

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

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

      public java.lang.String getDescription()
      Human-readable description for this order item.
    • getQuantity

      public java.lang.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 java.lang.String getType()
      The type of this order item. Must be `sku`, `tax`, or `shipping`.
    • setAmount

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

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

      public void setDescription​(java.lang.String description)
      Human-readable description for this order item.
    • setQuantity

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

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object