Class SubscriptionSchedule.Phase.Item

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.SubscriptionSchedule.Phase.Item
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
SubscriptionSchedule.Phase

public static class SubscriptionSchedule.Phase.Item extends StripeObject
A phase item describes the price and quantity of a phase.
  • Constructor Details

    • Item

      public Item()
  • Method Details

    • getPlan

      public String getPlan()
      Get ID of expandable plan object.
    • setPlan

      public void setPlan(String id)
    • getPlanObject

      public Plan getPlanObject()
      Get expanded plan.
    • setPlanObject

      public void setPlanObject(Plan expandableObject)
    • 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)
    • getBillingThresholds

      Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.
    • 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

      Options that configure the trial on the subscription item.
    • setBillingThresholds

      public void setBillingThresholds(SubscriptionSchedule.Phase.Item.BillingThresholds billingThresholds)
      Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.
    • setDiscounts

      public void setDiscounts(List<SubscriptionSchedule.Phase.Item.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(SubscriptionSchedule.Phase.Item.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