public static class SessionCreateParams.SubscriptionData
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SessionCreateParams.SubscriptionData.Builder |
static class |
SessionCreateParams.SubscriptionData.Item |
Modifier and Type | Method and Description |
---|---|
static SessionCreateParams.SubscriptionData.Builder |
builder() |
java.math.BigDecimal |
getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places.
|
java.util.List<java.lang.String> |
getDefaultTaxRates()
The tax rates that will apply to any subscription item that does not have
tax_rates
set. |
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.util.List<SessionCreateParams.SubscriptionData.Item> |
getItems()
A list of items, each with an attached plan, that the customer is subscribing to.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.Long |
getTrialEnd()
Unix timestamp representing the end of the trial period the customer will get before being
charged for the first time.
|
java.lang.Boolean |
getTrialFromPlan()
Indicates if a plan’s
trial_period_days should be applied to the subscription. |
java.lang.Long |
getTrialPeriodDays()
Integer representing the number of trial period days before the customer is charged for the
first time.
|
public static SessionCreateParams.SubscriptionData.Builder builder()
public java.math.BigDecimal getApplicationFeePercent()
Stripe-Account
header or an OAuth key.
For more information, see the application fees documentation.public java.util.List<java.lang.String> getDefaultTaxRates()
tax_rates
set. Invoices created will have their default_tax_rates
populated from the
subscription.public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@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.public java.util.List<SessionCreateParams.SubscriptionData.Item> getItems()
line_items
.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.lang.Long getTrialEnd()
public java.lang.Boolean getTrialFromPlan()
trial_period_days
should be applied to the subscription.
Setting trial_end
on subscription_data
is preferred. Defaults to false
.public java.lang.Long getTrialPeriodDays()