public static class SubscriptionScheduleUpdateParams.Phase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem |
static class |
SubscriptionScheduleUpdateParams.Phase.BillingThresholds
Same as
unit_amount , but accepts a decimal value with at most 12 decimal
places. |
static class |
SubscriptionScheduleUpdateParams.Phase.Builder |
static class |
SubscriptionScheduleUpdateParams.Phase.CollectionMethod
Configures how the quantity per period should be determined.
|
static class |
SubscriptionScheduleUpdateParams.Phase.EndDate |
static class |
SubscriptionScheduleUpdateParams.Phase.InvoiceSettings
Indicates if the
billing_cycle_anchor should be reset when a threshold is
reached. |
static class |
SubscriptionScheduleUpdateParams.Phase.Plan
Add all map key/value pairs to `extraParams` map.
|
static class |
SubscriptionScheduleUpdateParams.Phase.ProrationBehavior |
static class |
SubscriptionScheduleUpdateParams.Phase.StartDate |
static class |
SubscriptionScheduleUpdateParams.Phase.TrialEnd |
Modifier and Type | Method and Description |
---|---|
static SubscriptionScheduleUpdateParams.Phase.Builder |
builder() |
java.util.List<SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem> |
getAddInvoiceItems()
A list of prices and quantities that will generate invoice items appended to the next
invoice.
|
java.math.BigDecimal |
getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places.
|
java.lang.Object |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleUpdateParams.Phase.CollectionMethod |
getCollectionMethod()
Either
charge_automatically , or send_invoice . |
java.lang.Object |
getCoupon()
The identifier of the coupon to apply to this phase of the subscription schedule.
|
java.lang.Object |
getDefaultPaymentMethod()
ID of the default payment method for the subscription schedule.
|
java.lang.Object |
getDefaultTaxRates()
A list of Tax Rate ids.
|
java.lang.Object |
getEndDate()
The date at which this phase of the subscription schedule ends.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
SubscriptionScheduleUpdateParams.Phase.InvoiceSettings |
getInvoiceSettings()
All invoices will be billed using the specified settings.
|
java.lang.Long |
getIterations()
Integer representing the multiplier applied to the plan interval.
|
java.util.List<SubscriptionScheduleUpdateParams.Phase.Plan> |
getPlans()
List of configuration items, each with an attached plan, to apply during this phase of the
subscription schedule.
|
SubscriptionScheduleUpdateParams.Phase.ProrationBehavior |
getProrationBehavior()
Controls whether or not a subscription schedule will create prorations when transitioning to
this phase.
|
java.lang.Object |
getStartDate()
The date at which this phase of the subscription schedule starts or
now . |
java.math.BigDecimal |
getTaxPercent()
A non-negative decimal (with at most four decimal places) between 0 and 100.
|
java.lang.Boolean |
getTrial()
If set to true the entire phase is counted as a trial and the customer will not be charged
for any fees.
|
java.lang.Object |
getTrialEnd()
Sets the phase to trialing from the start date to this date.
|
public static SubscriptionScheduleUpdateParams.Phase.Builder builder()
public java.util.List<SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem> getAddInvoiceItems()
public java.math.BigDecimal getApplicationFeePercent()
public java.lang.Object getBillingThresholds()
public SubscriptionScheduleUpdateParams.Phase.CollectionMethod getCollectionMethod()
charge_automatically
, or send_invoice
. When charging automatically,
Stripe will attempt to pay the underlying subscription at the end of each billing cycle using
the default source attached to the customer. When sending an invoice, Stripe will email your
customer an invoice with payment instructions. Defaults to charge_automatically
on
creation.public java.lang.Object getCoupon()
public java.lang.Object getDefaultPaymentMethod()
public java.lang.Object getDefaultTaxRates()
default_tax_rates
, which means they will be the Invoice's default_tax_rates
for any Invoices issued by the Subscription during this Phase.public java.lang.Object getEndDate()
iterations
must not be set.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 SubscriptionScheduleUpdateParams.Phase.InvoiceSettings getInvoiceSettings()
public java.lang.Long getIterations()
iterations=2
applied to a plan with interval=month
and interval_count=3
results in a phase of duration 2 * 3 months = 6 months
. If set, end_date
must
not be set.public java.util.List<SubscriptionScheduleUpdateParams.Phase.Plan> getPlans()
public SubscriptionScheduleUpdateParams.Phase.ProrationBehavior getProrationBehavior()
create_prorations
or none
, and the default value
is create_prorations
. See Prorations.public java.lang.Object getStartDate()
now
. Must be set
on the first phase.public java.math.BigDecimal getTaxPercent()
tax_percent
of 20.0
will charge $12 per
invoice. To unset a previously-set value, pass an empty string. This field has been
deprecated and will be removed in a future API version, for further information view the migration docs for tax_rates
.public java.lang.Boolean getTrial()
public java.lang.Object getTrialEnd()
trial