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.
    • 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.calculation_line_item.

    • getPerformanceLocation

      public String getPerformanceLocation()
      A tax location for a line item that acts as a performance location. This indicates that the line item might be taxed at the place where it is being performed at. This is helpful for events or other services being performed at non-customer addresses like venues or offices. This can be left empty for tax codes that do not require a tax location. For tax codes where the location requirement is "optional", this would override the customer address in most use cases.
    • 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.
    • 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.calculation_line_item.

    • setPerformanceLocation

      public void setPerformanceLocation(String performanceLocation)
      A tax location for a line item that acts as a performance location. This indicates that the line item might be taxed at the place where it is being performed at. This is helpful for events or other services being performed at non-customer addresses like venues or offices. This can be left empty for tax codes that do not require a tax location. For tax codes where the location requirement is "optional", this would override the customer address in most use cases.
    • 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