public static class SubscriptionScheduleUpdateParams.Phase.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionScheduleUpdateParams.Phase.Builder |
addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `defaultTaxRates` list.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
addAllPlan(java.util.List<SubscriptionScheduleUpdateParams.Phase.Plan> elements)
Add all elements to `plans` list.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
addDefaultTaxRate(java.lang.String element)
Add an element to `defaultTaxRates` list.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
addPlan(SubscriptionScheduleUpdateParams.Phase.Plan element)
Add an element to `plans` list.
|
SubscriptionScheduleUpdateParams.Phase |
build()
Finalize and obtain parameter instance from this builder.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setBillingThresholds(SubscriptionScheduleUpdateParams.Phase.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setCollectionMethod(SubscriptionScheduleUpdateParams.Phase.CollectionMethod collectionMethod)
Either `charge_automatically`, or `send_invoice`.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setCoupon(EmptyParam coupon)
The identifier of the coupon to apply to this phase of the subscription schedule.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setCoupon(java.lang.String coupon)
The identifier of the coupon to apply to this phase of the subscription schedule.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setDefaultPaymentMethod(EmptyParam defaultPaymentMethod)
ID of the default payment method for the subscription schedule.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
ID of the default payment method for the subscription schedule.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setDefaultTaxRates(EmptyParam defaultTaxRates)
A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setEndDate(java.lang.Long endDate)
The date at which this phase of the subscription schedule ends.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setEndDate(SubscriptionScheduleUpdateParams.Phase.EndDate endDate)
The date at which this phase of the subscription schedule ends.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setInvoiceSettings(SubscriptionScheduleUpdateParams.Phase.InvoiceSettings invoiceSettings)
All invoices will be billed using the specified settings.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setIterations(java.lang.Long iterations)
Integer representing the multiplier applied to the plan interval.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setStartDate(java.lang.Long startDate)
The date at which this phase of the subscription schedule starts or `now`.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setStartDate(SubscriptionScheduleUpdateParams.Phase.StartDate startDate)
The date at which this phase of the subscription schedule starts or `now`.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setTaxPercent(java.math.BigDecimal taxPercent)
A non-negative decimal (with at most four decimal places) between 0 and 100.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setTrial(java.lang.Boolean trial)
If set to true the entire phase is counted as a trial and the customer will not be charged
for any fees.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setTrialEnd(java.lang.Long trialEnd)
Sets the phase to trialing from the start date to this date.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setTrialEnd(SubscriptionScheduleUpdateParams.Phase.TrialEnd trialEnd)
Sets the phase to trialing from the start date to this date.
|
public SubscriptionScheduleUpdateParams.Phase build()
public SubscriptionScheduleUpdateParams.Phase.Builder setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
public SubscriptionScheduleUpdateParams.Phase.Builder setBillingThresholds(SubscriptionScheduleUpdateParams.Phase.BillingThresholds billingThresholds)
public SubscriptionScheduleUpdateParams.Phase.Builder setBillingThresholds(EmptyParam billingThresholds)
public SubscriptionScheduleUpdateParams.Phase.Builder setCollectionMethod(SubscriptionScheduleUpdateParams.Phase.CollectionMethod collectionMethod)
public SubscriptionScheduleUpdateParams.Phase.Builder setCoupon(java.lang.String coupon)
public SubscriptionScheduleUpdateParams.Phase.Builder setCoupon(EmptyParam coupon)
public SubscriptionScheduleUpdateParams.Phase.Builder setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
public SubscriptionScheduleUpdateParams.Phase.Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod)
public SubscriptionScheduleUpdateParams.Phase.Builder addDefaultTaxRate(java.lang.String element)
SubscriptionScheduleUpdateParams.Phase.defaultTaxRates
for the field documentation.public SubscriptionScheduleUpdateParams.Phase.Builder addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
SubscriptionScheduleUpdateParams.Phase.defaultTaxRates
for the field documentation.public SubscriptionScheduleUpdateParams.Phase.Builder setDefaultTaxRates(EmptyParam defaultTaxRates)
public SubscriptionScheduleUpdateParams.Phase.Builder setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
public SubscriptionScheduleUpdateParams.Phase.Builder setEndDate(java.lang.Long endDate)
public SubscriptionScheduleUpdateParams.Phase.Builder setEndDate(SubscriptionScheduleUpdateParams.Phase.EndDate endDate)
public SubscriptionScheduleUpdateParams.Phase.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SubscriptionScheduleUpdateParams.Phase.extraParams
for the field documentation.public SubscriptionScheduleUpdateParams.Phase.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SubscriptionScheduleUpdateParams.Phase.extraParams
for the field documentation.public SubscriptionScheduleUpdateParams.Phase.Builder setInvoiceSettings(SubscriptionScheduleUpdateParams.Phase.InvoiceSettings invoiceSettings)
public SubscriptionScheduleUpdateParams.Phase.Builder setIterations(java.lang.Long iterations)
public SubscriptionScheduleUpdateParams.Phase.Builder addPlan(SubscriptionScheduleUpdateParams.Phase.Plan element)
SubscriptionScheduleUpdateParams.Phase.plans
for the field documentation.public SubscriptionScheduleUpdateParams.Phase.Builder addAllPlan(java.util.List<SubscriptionScheduleUpdateParams.Phase.Plan> elements)
SubscriptionScheduleUpdateParams.Phase.plans
for the field documentation.public SubscriptionScheduleUpdateParams.Phase.Builder setStartDate(java.lang.Long startDate)
public SubscriptionScheduleUpdateParams.Phase.Builder setStartDate(SubscriptionScheduleUpdateParams.Phase.StartDate startDate)
public SubscriptionScheduleUpdateParams.Phase.Builder setTaxPercent(java.math.BigDecimal taxPercent)
public SubscriptionScheduleUpdateParams.Phase.Builder setTrial(java.lang.Boolean trial)
public SubscriptionScheduleUpdateParams.Phase.Builder setTrialEnd(java.lang.Long trialEnd)
public SubscriptionScheduleUpdateParams.Phase.Builder setTrialEnd(SubscriptionScheduleUpdateParams.Phase.TrialEnd trialEnd)