public static class SubscriptionScheduleUpdateParams.Phase
extends java.lang.Object
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.
|
SubscriptionScheduleUpdateParams.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.
|
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.util.List<SubscriptionScheduleUpdateParams.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.
|
SubscriptionScheduleUpdateParams.Phase.ProrationBehavior |
getProrationBehavior()
If 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 . |
SubscriptionScheduleUpdateParams.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.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 SubscriptionScheduleUpdateParams.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 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.util.List<SubscriptionScheduleUpdateParams.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 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 SubscriptionScheduleUpdateParams.Phase.TransferData getTransferData()
public java.lang.Boolean getTrial()
public java.lang.Object getTrialEnd()
trial