public static class SubscriptionScheduleCreateParams.DefaultSettings.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionScheduleCreateParams.DefaultSettings |
build()
Finalize and obtain parameter instance from this builder.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setBillingCycleAnchor(SubscriptionScheduleCreateParams.DefaultSettings.BillingCycleAnchor billingCycleAnchor)
Can be set to
phase_start to set the anchor to the start of the phase or automatic to automatically change it if needed. |
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setBillingThresholds(SubscriptionScheduleCreateParams.DefaultSettings.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setCollectionMethod(SubscriptionScheduleCreateParams.DefaultSettings.CollectionMethod collectionMethod)
Either
charge_automatically , or send_invoice . |
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
ID of the default payment method for the subscription schedule.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setInvoiceSettings(SubscriptionScheduleCreateParams.DefaultSettings.InvoiceSettings invoiceSettings)
All invoices will be billed using the specified settings.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setTransferData(EmptyParam transferData)
The data with which to automatically create a Transfer for each of the associated
subscription's invoices.
|
SubscriptionScheduleCreateParams.DefaultSettings.Builder |
setTransferData(SubscriptionScheduleCreateParams.DefaultSettings.TransferData transferData)
The data with which to automatically create a Transfer for each of the associated
subscription's invoices.
|
public SubscriptionScheduleCreateParams.DefaultSettings build()
public SubscriptionScheduleCreateParams.DefaultSettings.Builder setBillingCycleAnchor(SubscriptionScheduleCreateParams.DefaultSettings.BillingCycleAnchor billingCycleAnchor)
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 SubscriptionScheduleCreateParams.DefaultSettings.Builder setBillingThresholds(SubscriptionScheduleCreateParams.DefaultSettings.BillingThresholds billingThresholds)
public SubscriptionScheduleCreateParams.DefaultSettings.Builder setBillingThresholds(EmptyParam billingThresholds)
public SubscriptionScheduleCreateParams.DefaultSettings.Builder setCollectionMethod(SubscriptionScheduleCreateParams.DefaultSettings.CollectionMethod collectionMethod)
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 SubscriptionScheduleCreateParams.DefaultSettings.Builder setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
public SubscriptionScheduleCreateParams.DefaultSettings.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SubscriptionScheduleCreateParams.DefaultSettings.extraParams
for the field documentation.public SubscriptionScheduleCreateParams.DefaultSettings.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SubscriptionScheduleCreateParams.DefaultSettings.extraParams
for the field
documentation.public SubscriptionScheduleCreateParams.DefaultSettings.Builder setInvoiceSettings(SubscriptionScheduleCreateParams.DefaultSettings.InvoiceSettings invoiceSettings)
public SubscriptionScheduleCreateParams.DefaultSettings.Builder setTransferData(SubscriptionScheduleCreateParams.DefaultSettings.TransferData transferData)
public SubscriptionScheduleCreateParams.DefaultSettings.Builder setTransferData(EmptyParam transferData)