Package com.stripe.param
Class SubscriptionScheduleUpdateParams.DefaultSettings.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleUpdateParams.DefaultSettings.Builder
- Enclosing class:
- SubscriptionScheduleUpdateParams.DefaultSettings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setApplicationFeePercent
(BigDecimal applicationFeePercent) A non-negative decimal between 0 and 100, with at most two decimal places.Default settings for automatic tax computation.setBillingCycleAnchor
(SubscriptionScheduleUpdateParams.DefaultSettings.BillingCycleAnchor billingCycleAnchor) Can be set tophase_start
to set the anchor to the start of the phase orautomatic
to automatically change it if needed.setBillingThresholds
(EmptyParam billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.setBillingThresholds
(SubscriptionScheduleUpdateParams.DefaultSettings.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.setCollectionMethod
(SubscriptionScheduleUpdateParams.DefaultSettings.CollectionMethod collectionMethod) Eithercharge_automatically
, orsend_invoice
.setDefaultPaymentMethod
(EmptyParam defaultPaymentMethod) ID of the default payment method for the subscription schedule.setDefaultPaymentMethod
(String defaultPaymentMethod) ID of the default payment method for the subscription schedule.setDescription
(EmptyParam description) Subscription description, meant to be displayable to the customer.setDescription
(String description) Subscription description, meant to be displayable to the customer.setInvoiceSettings
(SubscriptionScheduleUpdateParams.DefaultSettings.InvoiceSettings invoiceSettings) All invoices will be billed using the specified settings.setOnBehalfOf
(EmptyParam onBehalfOf) The account on behalf of which to charge, for each of the associated subscription's invoices.setOnBehalfOf
(String onBehalfOf) The account on behalf of which to charge, for each of the associated subscription's invoices.setTransferData
(EmptyParam transferData) The data with which to automatically create a Transfer for each of the associated subscription's invoices.The data with which to automatically create a Transfer for each of the associated subscription's invoices.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setApplicationFeePercent
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setApplicationFeePercent(BigDecimal applicationFeePercent) A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees documentation. -
setAutomaticTax
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setAutomaticTax(SubscriptionScheduleUpdateParams.DefaultSettings.AutomaticTax automaticTax) Default settings for automatic tax computation. -
setBillingCycleAnchor
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setBillingCycleAnchor(SubscriptionScheduleUpdateParams.DefaultSettings.BillingCycleAnchor billingCycleAnchor) Can be set tophase_start
to set the anchor to the start of the phase orautomatic
to automatically change it if needed. Cannot be set tophase_start
if this phase specifies a trial. For more information, see the billing cycle documentation. -
setBillingThresholds
public 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. Pass an empty string to remove previously-defined thresholds. -
setBillingThresholds
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setBillingThresholds(EmptyParam billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds. -
setCollectionMethod
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setCollectionMethod(SubscriptionScheduleUpdateParams.DefaultSettings.CollectionMethod collectionMethod) Eithercharge_automatically
, orsend_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 and mark the subscription asactive
. Defaults tocharge_automatically
on creation. -
setDefaultPaymentMethod
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setDefaultPaymentMethod(String defaultPaymentMethod) ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings. -
setDefaultPaymentMethod
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod) ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings. -
setDescription
Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
setDescription
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setDescription(EmptyParam description) Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
putExtraParam
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionScheduleUpdateParams.DefaultSettings.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionScheduleUpdateParams.DefaultSettings.extraParams
for the field documentation. -
setInvoiceSettings
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setInvoiceSettings(SubscriptionScheduleUpdateParams.DefaultSettings.InvoiceSettings invoiceSettings) All invoices will be billed using the specified settings. -
setOnBehalfOf
The account on behalf of which to charge, for each of the associated subscription's invoices. -
setOnBehalfOf
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setOnBehalfOf(EmptyParam onBehalfOf) The account on behalf of which to charge, for each of the associated subscription's invoices. -
setTransferData
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setTransferData(SubscriptionScheduleUpdateParams.DefaultSettings.TransferData transferData) The data with which to automatically create a Transfer for each of the associated subscription's invoices. -
setTransferData
public SubscriptionScheduleUpdateParams.DefaultSettings.Builder setTransferData(EmptyParam transferData) The data with which to automatically create a Transfer for each of the associated subscription's invoices.
-