public static class SubscriptionScheduleUpdateParams.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionScheduleUpdateParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
SubscriptionScheduleUpdateParams.Builder |
addAllPhase(java.util.List<SubscriptionScheduleUpdateParams.Phase> elements)
Add all elements to `phases` list.
|
SubscriptionScheduleUpdateParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
SubscriptionScheduleUpdateParams.Builder |
addPhase(SubscriptionScheduleUpdateParams.Phase element)
Add an element to `phases` list.
|
SubscriptionScheduleUpdateParams |
build()
Finalize and obtain parameter instance from this builder.
|
SubscriptionScheduleUpdateParams.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SubscriptionScheduleUpdateParams.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
SubscriptionScheduleUpdateParams.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SubscriptionScheduleUpdateParams.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
SubscriptionScheduleUpdateParams.Builder |
setBilling(SubscriptionScheduleUpdateParams.Billing billing)
Either `charge_automatically`, or `send_invoice`.
|
SubscriptionScheduleUpdateParams.Builder |
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleUpdateParams.Builder |
setBillingThresholds(SubscriptionScheduleUpdateParams.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleUpdateParams.Builder |
setInvoiceSettings(SubscriptionScheduleUpdateParams.InvoiceSettings invoiceSettings)
All invoices will be billed using the specified settings.
|
SubscriptionScheduleUpdateParams.Builder |
setProrate(java.lang.Boolean prorate)
If the update changes the current phase, indicates if the changes should be prorated.
|
SubscriptionScheduleUpdateParams.Builder |
setRenewalBehavior(SubscriptionScheduleUpdateParams.RenewalBehavior renewalBehavior)
Configures how the subscription schedule behaves when it ends.
|
SubscriptionScheduleUpdateParams.Builder |
setRenewalInterval(SubscriptionScheduleUpdateParams.RenewalInterval renewalInterval)
Configuration for renewing the subscription schedule when it ends.
|
public SubscriptionScheduleUpdateParams build()
public SubscriptionScheduleUpdateParams.Builder setBilling(SubscriptionScheduleUpdateParams.Billing billing)
public SubscriptionScheduleUpdateParams.Builder setBillingThresholds(SubscriptionScheduleUpdateParams.BillingThresholds billingThresholds)
public SubscriptionScheduleUpdateParams.Builder setBillingThresholds(EmptyParam billingThresholds)
public SubscriptionScheduleUpdateParams.Builder addExpand(java.lang.String element)
SubscriptionScheduleUpdateParams.expand
for the field documentation.public SubscriptionScheduleUpdateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
SubscriptionScheduleUpdateParams.expand
for the field documentation.public SubscriptionScheduleUpdateParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SubscriptionScheduleUpdateParams.extraParams
for the field documentation.public SubscriptionScheduleUpdateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SubscriptionScheduleUpdateParams.extraParams
for the field documentation.public SubscriptionScheduleUpdateParams.Builder setInvoiceSettings(SubscriptionScheduleUpdateParams.InvoiceSettings invoiceSettings)
public SubscriptionScheduleUpdateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
SubscriptionScheduleUpdateParams.metadata
for the field documentation.public SubscriptionScheduleUpdateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
SubscriptionScheduleUpdateParams.metadata
for the field documentation.public SubscriptionScheduleUpdateParams.Builder addPhase(SubscriptionScheduleUpdateParams.Phase element)
SubscriptionScheduleUpdateParams.phases
for the field documentation.public SubscriptionScheduleUpdateParams.Builder addAllPhase(java.util.List<SubscriptionScheduleUpdateParams.Phase> elements)
SubscriptionScheduleUpdateParams.phases
for the field documentation.public SubscriptionScheduleUpdateParams.Builder setProrate(java.lang.Boolean prorate)
public SubscriptionScheduleUpdateParams.Builder setRenewalBehavior(SubscriptionScheduleUpdateParams.RenewalBehavior renewalBehavior)
public SubscriptionScheduleUpdateParams.Builder setRenewalInterval(SubscriptionScheduleUpdateParams.RenewalInterval renewalInterval)