public static class SubscriptionScheduleUpdateParams.Phase.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionScheduleUpdateParams.Phase.Builder |
addAllPlan(java.util.List<SubscriptionScheduleUpdateParams.Phase.Plan> elements)
Add all elements to `plans` 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 |
setCoupon(java.lang.String coupon)
The identifier of the coupon to apply to this phase of the subscription schedule.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setDefaultTaxRates(EmptyParam defaultTaxRates)
The tax rates that will apply to any phase that does not have `tax_rates` set.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
The tax rates that will apply to any phase that does not have `tax_rates` set.
|
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 |
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.
|
SubscriptionScheduleUpdateParams.Phase.Builder |
setStartDate(SubscriptionScheduleUpdateParams.Phase.StartDate startDate)
The date at which this phase of the subscription schedule starts.
|
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 setCoupon(java.lang.String coupon)
public SubscriptionScheduleUpdateParams.Phase.Builder setDefaultTaxRates(EmptyParam defaultTaxRates)
public SubscriptionScheduleUpdateParams.Phase.Builder setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
public SubscriptionScheduleUpdateParams.Phase.Builder setEndDate(SubscriptionScheduleUpdateParams.Phase.EndDate endDate)
public SubscriptionScheduleUpdateParams.Phase.Builder setEndDate(java.lang.Long 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 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(SubscriptionScheduleUpdateParams.Phase.StartDate startDate)
public SubscriptionScheduleUpdateParams.Phase.Builder setStartDate(java.lang.Long startDate)
public SubscriptionScheduleUpdateParams.Phase.Builder setTaxPercent(java.math.BigDecimal taxPercent)
public SubscriptionScheduleUpdateParams.Phase.Builder setTrial(java.lang.Boolean trial)
public SubscriptionScheduleUpdateParams.Phase.Builder setTrialEnd(SubscriptionScheduleUpdateParams.Phase.TrialEnd trialEnd)
public SubscriptionScheduleUpdateParams.Phase.Builder setTrialEnd(java.lang.Long trialEnd)