Package com.stripe.model
Class QuotePreviewSubscriptionSchedule.Phase.Item
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuotePreviewSubscriptionSchedule.Phase.Item
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- QuotePreviewSubscriptionSchedule.Phase
A phase item describes the price and quantity of a phase.
-
Nested Class Summary
Nested 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 Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier 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(QuotePreviewSubscriptionSchedule.Phase.Item.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.voidThe 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.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
getPlan
Get ID of expandableplanobject. -
setPlan
-
getPlanObject
Get expandedplan. -
setPlanObject
-
getPrice
Get ID of expandablepriceobject. -
setPrice
-
getPriceObject
Get expandedprice. -
setPriceObject
-
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. Useexpand[]=discountsto expand each discount. -
getMetadata
Set 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. -
getQuantity
Quantity of the plan to which the customer should be subscribed. -
getTaxRates
The tax rates which apply to thisphase_item. When set, thedefault_tax_rateson the phase do not apply to thisphase_item. -
getTrial
Options that configure the trial on the subscription item. -
setBillingThresholds
public void setBillingThresholds(QuotePreviewSubscriptionSchedule.Phase.Item.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period. -
setDiscounts
The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Useexpand[]=discountsto expand each discount. -
setMetadata
Set 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. -
setQuantity
Quantity of the plan to which the customer should be subscribed. -
setTaxRates
The tax rates which apply to thisphase_item. When set, thedefault_tax_rateson the phase do not apply to thisphase_item. -
setTrial
Options that configure the trial on the subscription item. -
equals
-
canEqual
-
hashCode
public int hashCode()
-