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 |
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 |
setCollectionMethod(SubscriptionScheduleUpdateParams.CollectionMethod collectionMethod)
Either `charge_automatically`, or `send_invoice`.
|
SubscriptionScheduleUpdateParams.Builder |
setDefaultPaymentMethod(EmptyParam defaultPaymentMethod)
ID of the default payment method for the subscription schedule.
|
SubscriptionScheduleUpdateParams.Builder |
setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
ID of the default payment method for the subscription schedule.
|
SubscriptionScheduleUpdateParams.Builder |
setDefaultSource(EmptyParam defaultSource)
ID of the default payment source for the subscription schedule.
|
SubscriptionScheduleUpdateParams.Builder |
setDefaultSource(java.lang.String defaultSource)
ID of the default payment source for the subscription schedule.
|
SubscriptionScheduleUpdateParams.Builder |
setEndBehavior(SubscriptionScheduleUpdateParams.EndBehavior endBehavior)
Configures how the subscription schedule behaves when it ends.
|
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 |
setRenewalInterval(SubscriptionScheduleUpdateParams.RenewalInterval renewalInterval)
This parameter has been deprecated and will be removed in future API versions.
|
public SubscriptionScheduleUpdateParams build()
public SubscriptionScheduleUpdateParams.Builder setBillingThresholds(SubscriptionScheduleUpdateParams.BillingThresholds billingThresholds)
public SubscriptionScheduleUpdateParams.Builder setBillingThresholds(EmptyParam billingThresholds)
public SubscriptionScheduleUpdateParams.Builder setCollectionMethod(SubscriptionScheduleUpdateParams.CollectionMethod collectionMethod)
public SubscriptionScheduleUpdateParams.Builder setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
public SubscriptionScheduleUpdateParams.Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod)
public SubscriptionScheduleUpdateParams.Builder setDefaultSource(java.lang.String defaultSource)
public SubscriptionScheduleUpdateParams.Builder setDefaultSource(EmptyParam defaultSource)
public SubscriptionScheduleUpdateParams.Builder setEndBehavior(SubscriptionScheduleUpdateParams.EndBehavior endBehavior)
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 setRenewalInterval(SubscriptionScheduleUpdateParams.RenewalInterval renewalInterval)