Class QuoteLine.Action.AddItem

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuoteLine.Action.AddItem
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
QuoteLine.Action

public static class QuoteLine.Action.AddItem extends StripeObject
The discount end type.

Equal to line_ends_at.

  • Constructor Details

    • AddItem

      public AddItem()
  • Method Details

    • getPrice

      public String getPrice()
      Get ID of expandable price object.
    • setPrice

      public void setPrice(String id)
    • getPriceObject

      public Price getPriceObject()
      Get expanded price.
    • setPriceObject

      public void setPriceObject(Price expandableObject)
    • getDiscounts

      public List<QuoteLine.Action.AddItem.Discount> getDiscounts()
      The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use expand[]=discounts to expand each discount.
    • getMetadata

      public Map<String,String> getMetadata()
      Set of key-value pairs that you can attach to an item. Metadata on this item will update the underlying subscription item's metadata when the phase is entered.
    • getQuantity

      public Long getQuantity()
      Quantity of the plan to which the customer should be subscribed.
    • getTaxRates

      public List<TaxRate> getTaxRates()
      The tax rates which apply to this phase_item. When set, the default_tax_rates on the phase do not apply to this phase_item.
    • getTrial

      public QuoteLine.Action.AddItem.Trial getTrial()
      Options that configure the trial on the subscription item.
    • setDiscounts

      public void setDiscounts(List<QuoteLine.Action.AddItem.Discount> discounts)
      The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use expand[]=discounts to expand each discount.
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an item. Metadata on this item will update the underlying subscription item's metadata when the phase is entered.
    • setQuantity

      public void setQuantity(Long quantity)
      Quantity of the plan to which the customer should be subscribed.
    • setTaxRates

      public void setTaxRates(List<TaxRate> taxRates)
      The tax rates which apply to this phase_item. When set, the default_tax_rates on the phase do not apply to this phase_item.
    • setTrial

      public void setTrial(QuoteLine.Action.AddItem.Trial trial)
      Options that configure the trial on the subscription item.
    • 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