public static class SubscriptionScheduleCreateParams.Phase
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionScheduleCreateParams.Phase.AddInvoiceItem |
static class |
SubscriptionScheduleCreateParams.Phase.BillingCycleAnchor
Add all map key/value pairs to `extraParams` map.
|
static class |
SubscriptionScheduleCreateParams.Phase.BillingThresholds
Same as
unit_amount , but accepts a decimal value in %s with at most 12 decimal
places. |
static class |
SubscriptionScheduleCreateParams.Phase.Builder |
static class |
SubscriptionScheduleCreateParams.Phase.CollectionMethod |
static class |
SubscriptionScheduleCreateParams.Phase.InvoiceSettings
Indicates if the
billing_cycle_anchor should be reset when a threshold is
reached. |
static class |
SubscriptionScheduleCreateParams.Phase.Item
Add all map key/value pairs to `extraParams` map.
|
static class |
SubscriptionScheduleCreateParams.Phase.ProrationBehavior |
static class |
SubscriptionScheduleCreateParams.Phase.TransferData
The number of intervals between subscription billings.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionScheduleCreateParams.Phase.Builder |
builder() |
java.util.List<SubscriptionScheduleCreateParams.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.
|
SubscriptionScheduleCreateParams.Phase.BillingCycleAnchor |
getBillingCycleAnchor()
Can be set to
phase_start to set the anchor to the start of the phase or automatic to automatically change it if needed. |
java.lang.Object |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleCreateParams.Phase.CollectionMethod |
getCollectionMethod()
Either
charge_automatically , or send_invoice . |
java.lang.String |
getCoupon()
The identifier of the coupon to apply to this phase of the subscription schedule.
|
java.lang.String |
getDefaultPaymentMethod()
ID of the default payment method for the subscription schedule.
|
java.lang.Object |
getDefaultTaxRates()
A list of Tax Rate ids.
|
java.lang.Long |
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.
|
SubscriptionScheduleCreateParams.Phase.InvoiceSettings |
getInvoiceSettings()
All invoices will be billed using the specified settings.
|
java.util.List<SubscriptionScheduleCreateParams.Phase.Item> |
getItems()
List of configuration items, each with an attached price, to apply during this phase of the
subscription schedule.
|
java.lang.Long |
getIterations()
Integer representing the multiplier applied to the price interval.
|
SubscriptionScheduleCreateParams.Phase.ProrationBehavior |
getProrationBehavior()
If a subscription schedule will create prorations when transitioning to this phase.
|
SubscriptionScheduleCreateParams.Phase.TransferData |
getTransferData()
The data with which to automatically create a Transfer for each of the associated
subscription's invoices.
|
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.Long |
getTrialEnd()
Sets the phase to trialing from the start date to this date.
|
public static SubscriptionScheduleCreateParams.Phase.Builder builder()
public java.util.List<SubscriptionScheduleCreateParams.Phase.AddInvoiceItem> getAddInvoiceItems()
public java.math.BigDecimal getApplicationFeePercent()
public SubscriptionScheduleCreateParams.Phase.BillingCycleAnchor getBillingCycleAnchor()
phase_start
to set the anchor to the start of the phase or automatic
to automatically change it if needed. Cannot be set to phase_start
if this
phase specifies a trial. For more information, see the billing cycle documentation.public java.lang.Object getBillingThresholds()
public SubscriptionScheduleCreateParams.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.String getCoupon()
public java.lang.String 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.Long 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 SubscriptionScheduleCreateParams.Phase.InvoiceSettings getInvoiceSettings()
public java.util.List<SubscriptionScheduleCreateParams.Phase.Item> getItems()
public java.lang.Long getIterations()
iterations=2
applied to a price 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 SubscriptionScheduleCreateParams.Phase.ProrationBehavior getProrationBehavior()
create_prorations
or none
, and the default value is create_prorations
. See Prorations.public SubscriptionScheduleCreateParams.Phase.TransferData getTransferData()
public java.lang.Boolean getTrial()
public java.lang.Long getTrialEnd()
trial