Package com.stripe.param
Class SubscriptionUpdateParams.Item
java.lang.Object
com.stripe.param.SubscriptionUpdateParams.Item
- Enclosing class:
- SubscriptionUpdateParams
Required. Type of the account referenced in the request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
ID of the promotion code to create a new discount for. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Delete all usage for a given subscription item.A flag that, if set totrue
, will delete the specified item.The coupons to redeem into discounts for the subscription item.Map of extra parameters for custom features not available in this client library.getId()
Subscription item to update.Set of key-value pairs that you can attach to an object.getPlan()
Plan ID for this item, as a string.getPrice()
The ID of the price object.Data used to generate a new Price object inline.Quantity for this item.A list of Tax Rate ids.int
hashCode()
-
Method Details
-
builder
-
getClearUsage
Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item.clear_usage
has no effect if the plan has a billing meter attached. -
getDeleted
A flag that, if set totrue
, will delete the specified item. -
getDiscounts
The coupons to redeem into discounts for the subscription item. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getId
Subscription item to update. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
getPlan
Plan ID for this item, as a string. -
getPrice
The ID of the price object. One ofprice
orprice_data
is required. When changing a subscription item's price,quantity
is set to 1 unless aquantity
parameter is provided. -
getPriceData
-
getQuantity
Quantity for this item. -
getTaxRates
A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rates
on the Subscription. When updating, pass an empty string to remove previously-defined tax rates. -
equals
-
canEqual
-
hashCode
public int hashCode()
-