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 |
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.
|
public SubscriptionScheduleCreateParams.DefaultSettings build()
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)