Package com.stripe.model
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
A phase item describes the price and quantity of a phase.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about BillingThresholds, please refer to the API Reference.static classFor more details about Discount, please refer to the API Reference.static classFor more details about Trial, please refer to the API Reference.
- 
Field SummaryFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanDefine thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.The discounts applied to the subscription item.Set of key-value pairs that you can attach to an item.getPlan()Get ID of expandableplanobject.Get expandedplan.getPrice()Get ID of expandablepriceobject.Get expandedprice.Quantity of the plan to which the customer should be subscribed.The tax rates which apply to thisphase_item.getTrial()Options that configure the trial on the subscription item.inthashCode()voidsetBillingThresholds(SubscriptionSchedule.Phase.Item.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.voidsetDiscounts(List<SubscriptionSchedule.Phase.Item.Discount> discounts) The discounts applied to the subscription item.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an item.voidvoidsetPlanObject(Plan expandableObject) voidvoidsetPriceObject(Price expandableObject) voidsetQuantity(Long quantity) Quantity of the plan to which the customer should be subscribed.voidsetTaxRates(List<TaxRate> taxRates) The tax rates which apply to thisphase_item.voidOptions that configure the trial on the subscription item.Methods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
- 
Constructor Details- 
Itempublic Item()
 
- 
- 
Method Details- 
getPlanGet ID of expandableplanobject.
- 
setPlan
- 
getPlanObjectGet expandedplan.
- 
setPlanObject
- 
getPriceGet ID of expandablepriceobject.
- 
setPrice
- 
getPriceObjectGet expandedprice.
- 
setPriceObject
- 
getBillingThresholdsDefine thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.
- 
getDiscountsThe discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Useexpand[]=discountsto expand each discount.
- 
getMetadataSet of key-value pairs that you can attach to an item. Metadata on this item will update the underlying subscription item'smetadatawhen the phase is entered.
- 
getQuantityQuantity of the plan to which the customer should be subscribed.
- 
getTaxRatesThe tax rates which apply to thisphase_item. When set, thedefault_tax_rateson the phase do not apply to thisphase_item.
- 
getTrialOptions that configure the trial on the subscription item.
- 
setBillingThresholdspublic 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.
- 
setDiscountsThe discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Useexpand[]=discountsto expand each discount.
- 
setMetadataSet of key-value pairs that you can attach to an item. Metadata on this item will update the underlying subscription item'smetadatawhen the phase is entered.
- 
setQuantityQuantity of the plan to which the customer should be subscribed.
- 
setTaxRatesThe tax rates which apply to thisphase_item. When set, thedefault_tax_rateson the phase do not apply to thisphase_item.
- 
setTrialOptions that configure the trial on the subscription item.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-