public static class SubscriptionScheduleCreateParams.DefaultSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionScheduleCreateParams.DefaultSettings.BillingCycleAnchor
Add all map key/value pairs to `extraParams` map.
|
static class |
SubscriptionScheduleCreateParams.DefaultSettings.BillingThresholds |
static class |
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
static class |
SubscriptionScheduleCreateParams.DefaultSettings.CollectionMethod |
static class |
SubscriptionScheduleCreateParams.DefaultSettings.InvoiceSettings
Indicates if the
billing_cycle_anchor should be reset when a threshold is
reached. |
static class |
SubscriptionScheduleCreateParams.DefaultSettings.TransferData
Add all map key/value pairs to `extraParams` map.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionScheduleCreateParams.DefaultSettings.Builder |
builder() |
SubscriptionScheduleCreateParams.DefaultSettings.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.DefaultSettings.CollectionMethod |
getCollectionMethod()
Either
charge_automatically , or send_invoice . |
java.lang.String |
getDefaultPaymentMethod()
ID of the default payment method for the subscription schedule.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
SubscriptionScheduleCreateParams.DefaultSettings.InvoiceSettings |
getInvoiceSettings()
All invoices will be billed using the specified settings.
|
java.lang.Object |
getTransferData()
The data with which to automatically create a Transfer for each of the subscription's
invoices.
|
public static SubscriptionScheduleCreateParams.DefaultSettings.Builder builder()
public SubscriptionScheduleCreateParams.DefaultSettings.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.DefaultSettings.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 getDefaultPaymentMethod()
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.DefaultSettings.InvoiceSettings getInvoiceSettings()
public java.lang.Object getTransferData()