Package com.stripe.param
Class SubscriptionCreateParams.Item
java.lang.Object
com.stripe.param.SubscriptionCreateParams.Item
- Enclosing class:
- SubscriptionCreateParams
Required. Type of the account referenced in the request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classRequired. Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 monetary threshold)static classRequired. The ID of the trial offer to apply to the subscription item.static classRequired. The number of intervals, as an whole number greater than 0.static class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanDefine thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.The trial offer to apply to this subscription item.The coupons to redeem into discounts for the subscription item.Map of extra parameters for custom features not available in this client library.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.getTrial()Define options to configure the trial on the subscription item.inthashCode()
-
Method Details
-
builder
-
getBillingThresholds
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. -
getCurrentTrial
The trial offer to apply to this subscription 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@SerializedNamevalue. 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. -
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. -
getPriceData
Data used to generate a new Price object inline. -
getQuantity
Quantity for this item. -
getTaxRates
A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rateson the Subscription. When updating, pass an empty string to remove previously-defined tax rates. -
getTrial
Define options to configure the trial on the subscription item. -
equals
-
canEqual
-
hashCode
public int hashCode()
-