Package com.stripe.model
Class QuoteLine.Action.AddItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.QuoteLine.Action.AddItem
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- QuoteLine.Action
The discount end type.
Equal to line_ends_at
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
The discounts applied to the subscription item.Set of key-value pairs that you can attach to an item.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
setDiscounts
(List<QuoteLine.Action.AddItem.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
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
-
AddItem
public AddItem()
-
-
Method Details
-
getPrice
Get ID of expandableprice
object. -
setPrice
-
getPriceObject
Get expandedprice
. -
setPriceObject
-
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. -
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()
-