Class TransactionLineItem

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.tax.TransactionLineItem
All Implemented Interfaces:
HasId, StripeObjectInterface

public class TransactionLineItem extends StripeObject implements HasId
  • Constructor Details

    • TransactionLineItem

      public TransactionLineItem()
  • Method Details

    • getAmount

      public Long getAmount()
      The line item amount in the smallest currency unit. If tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
    • getAmountTax

      public Long getAmountTax()
      The amount of tax calculated for this line item, in the smallest currency unit.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getMetadata

      public Map<String,String> getMetadata()
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • getObject

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

      Equal to tax.transaction_line_item.

    • getProduct

      public String getProduct()
      The ID of an existing Product.
    • getQuantity

      public Long getQuantity()
      The number of units of the item being purchased. For reversals, this is the quantity reversed.
    • getReference

      public String getReference()
      A custom identifier for this line item in the transaction.
    • getReversal

      public TransactionLineItem.Reversal getReversal()
      If type=reversal, contains information about what was reversed.
    • getTaxBehavior

      public String getTaxBehavior()
      Specifies whether the amount includes taxes. If tax_behavior=inclusive, then the amount includes taxes.

      One of exclusive, or inclusive.

    • getTaxCode

      public String getTaxCode()
      The tax code ID used for this resource.
    • getType

      public String getType()
      If reversal, this line item reverses an earlier transaction.

      One of reversal, or transaction.

    • setAmount

      public void setAmount(Long amount)
      The line item amount in the smallest currency unit. If tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
    • setAmountTax

      public void setAmountTax(Long amountTax)
      The amount of tax calculated for this line item, in the smallest currency unit.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • setObject

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

      Equal to tax.transaction_line_item.

    • setProduct

      public void setProduct(String product)
      The ID of an existing Product.
    • setQuantity

      public void setQuantity(Long quantity)
      The number of units of the item being purchased. For reversals, this is the quantity reversed.
    • setReference

      public void setReference(String reference)
      A custom identifier for this line item in the transaction.
    • setReversal

      public void setReversal(TransactionLineItem.Reversal reversal)
      If type=reversal, contains information about what was reversed.
    • setTaxBehavior

      public void setTaxBehavior(String taxBehavior)
      Specifies whether the amount includes taxes. If tax_behavior=inclusive, then the amount includes taxes.

      One of exclusive, or inclusive.

    • setTaxCode

      public void setTaxCode(String taxCode)
      The tax code ID used for this resource.
    • setType

      public void setType(String type)
      If reversal, this line item reverses an earlier transaction.

      One of reversal, or transaction.

    • 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
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId