Class CalculationLineItem

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

public class CalculationLineItem extends StripeObject implements HasId
  • Constructor Details

    • CalculationLineItem

      public CalculationLineItem()
  • 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.
    • getObject

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

      Equal to tax.calculation_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.
    • getTaxBehavior

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

      One of exclusive, or inclusive.

    • getTaxBreakdown

      public List<CalculationLineItem.TaxBreakdown> getTaxBreakdown()
      Detailed account of taxes relevant to this line item.
    • getTaxCode

      public String getTaxCode()
      The tax code ID used for this resource.
    • 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.
    • setObject

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

      Equal to tax.calculation_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.
    • 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.

    • setTaxBreakdown

      public void setTaxBreakdown(List<CalculationLineItem.TaxBreakdown> taxBreakdown)
      Detailed account of taxes relevant to this line item.
    • setTaxCode

      public void setTaxCode(String taxCode)
      The tax code ID used for this resource.
    • 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