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
Modifier and TypeClassDescriptionstatic class
static class
static class
The discount end type. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Define 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 expandableplan
object.Get expandedplan
.getPrice()
Get ID of expandableprice
object.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.int
hashCode()
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.void
setDiscounts
(List<SubscriptionSchedule.Phase.Item.Discount> discounts) The discounts applied to the subscription item.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an item.void
void
setPlanObject
(Plan expandableObject) void
void
setPriceObject
(Price expandableObject) void
setQuantity
(Long quantity) Quantity of the plan to which the customer should be subscribed.void
setTaxRates
(List<TaxRate> taxRates) The tax rates which apply to thisphase_item
.void
Options that configure the trial on the subscription item.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
getPlan
Get ID of expandableplan
object. -
setPlan
-
getPlanObject
Get expandedplan
. -
setPlanObject
-
getPrice
Get ID of expandableprice
object. -
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[]=discounts
to 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'smetadata
when 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_rates
on the phase do not apply to thisphase_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
The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Useexpand[]=discounts
to 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'smetadata
when 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_rates
on the phase do not apply to thisphase_item
. -
setTrial
Options that configure the trial on the subscription item. -
equals
-
canEqual
-
hashCode
public int hashCode()
-