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 Summary
Nested Classes -
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.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.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.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.Methods inherited from class com.stripe.model.StripeObject
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. -
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. -
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. -
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. -
equals
-
canEqual
-
hashCode
public int hashCode()
-