public static class SubscriptionScheduleUpdateParams.Phase.Plan.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionScheduleUpdateParams.Phase.Plan |
build()
Finalize and obtain parameter instance from this builder.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a
new billing period.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
setBillingThresholds(SubscriptionScheduleUpdateParams.Phase.Plan.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a
new billing period.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
setPlan(java.lang.String plan)
The plan ID to subscribe to.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
setQuantity(java.lang.Long quantity)
Quantity for the given plan.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
setTaxRates(EmptyParam taxRates)
The tax rates which apply to this `subscription_item`.
|
SubscriptionScheduleUpdateParams.Phase.Plan.Builder |
setTaxRates(java.util.List<java.lang.String> taxRates)
The tax rates which apply to this `subscription_item`.
|
public SubscriptionScheduleUpdateParams.Phase.Plan build()
public SubscriptionScheduleUpdateParams.Phase.Plan.Builder setBillingThresholds(SubscriptionScheduleUpdateParams.Phase.Plan.BillingThresholds billingThresholds)
public SubscriptionScheduleUpdateParams.Phase.Plan.Builder setBillingThresholds(EmptyParam billingThresholds)
public SubscriptionScheduleUpdateParams.Phase.Plan.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SubscriptionScheduleUpdateParams.Phase.Plan.extraParams
for the field
documentation.public SubscriptionScheduleUpdateParams.Phase.Plan.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SubscriptionScheduleUpdateParams.Phase.Plan.extraParams
for the field
documentation.public SubscriptionScheduleUpdateParams.Phase.Plan.Builder setPlan(java.lang.String plan)
public SubscriptionScheduleUpdateParams.Phase.Plan.Builder setQuantity(java.lang.Long quantity)
public SubscriptionScheduleUpdateParams.Phase.Plan.Builder setTaxRates(EmptyParam taxRates)
public SubscriptionScheduleUpdateParams.Phase.Plan.Builder setTaxRates(java.util.List<java.lang.String> taxRates)