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