public static class SubscriptionScheduleCreateParams.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionScheduleCreateParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
SubscriptionScheduleCreateParams.Builder |
addAllPhase(java.util.List<SubscriptionScheduleCreateParams.Phase> elements)
Add all elements to `phases` list.
|
SubscriptionScheduleCreateParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
SubscriptionScheduleCreateParams.Builder |
addPhase(SubscriptionScheduleCreateParams.Phase element)
Add an element to `phases` list.
|
SubscriptionScheduleCreateParams |
build()
Finalize and obtain parameter instance from this builder.
|
SubscriptionScheduleCreateParams.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
SubscriptionScheduleCreateParams.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
SubscriptionScheduleCreateParams.Builder |
setBilling(SubscriptionScheduleCreateParams.Billing billing)
Either `charge_automatically`, or `send_invoice`.
|
SubscriptionScheduleCreateParams.Builder |
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleCreateParams.Builder |
setBillingThresholds(SubscriptionScheduleCreateParams.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleCreateParams.Builder |
setCustomer(java.lang.String customer)
The identifier of the customer to create the subscription schedule for.
|
SubscriptionScheduleCreateParams.Builder |
setFromSubscription(java.lang.String fromSubscription)
Migrate an existing subscription to be managed by a subscription schedule.
|
SubscriptionScheduleCreateParams.Builder |
setInvoiceSettings(SubscriptionScheduleCreateParams.InvoiceSettings invoiceSettings)
All invoices will be billed using the specified settings.
|
SubscriptionScheduleCreateParams.Builder |
setRenewalBehavior(SubscriptionScheduleCreateParams.RenewalBehavior renewalBehavior)
Configures how the subscription schedule behaves when it ends.
|
SubscriptionScheduleCreateParams.Builder |
setRenewalInterval(SubscriptionScheduleCreateParams.RenewalInterval renewalInterval)
Configuration for renewing the subscription schedule when it ends.
|
SubscriptionScheduleCreateParams.Builder |
setStartDate(java.lang.Long startDate)
The date at which the subscription schedule starts.
|
SubscriptionScheduleCreateParams.Builder |
setStartDate(SubscriptionScheduleCreateParams.StartDate startDate)
The date at which the subscription schedule starts.
|
public SubscriptionScheduleCreateParams build()
public SubscriptionScheduleCreateParams.Builder setBilling(SubscriptionScheduleCreateParams.Billing billing)
public SubscriptionScheduleCreateParams.Builder setBillingThresholds(SubscriptionScheduleCreateParams.BillingThresholds billingThresholds)
public SubscriptionScheduleCreateParams.Builder setBillingThresholds(EmptyParam billingThresholds)
public SubscriptionScheduleCreateParams.Builder setCustomer(java.lang.String customer)
public SubscriptionScheduleCreateParams.Builder addExpand(java.lang.String element)
SubscriptionScheduleCreateParams.expand
for the field documentation.public SubscriptionScheduleCreateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
SubscriptionScheduleCreateParams.expand
for the field documentation.public SubscriptionScheduleCreateParams.Builder setFromSubscription(java.lang.String fromSubscription)
public SubscriptionScheduleCreateParams.Builder setInvoiceSettings(SubscriptionScheduleCreateParams.InvoiceSettings invoiceSettings)
public SubscriptionScheduleCreateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
SubscriptionScheduleCreateParams.metadata
for the field documentation.public SubscriptionScheduleCreateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
SubscriptionScheduleCreateParams.metadata
for the field documentation.public SubscriptionScheduleCreateParams.Builder addPhase(SubscriptionScheduleCreateParams.Phase element)
SubscriptionScheduleCreateParams.phases
for the field documentation.public SubscriptionScheduleCreateParams.Builder addAllPhase(java.util.List<SubscriptionScheduleCreateParams.Phase> elements)
SubscriptionScheduleCreateParams.phases
for the field documentation.public SubscriptionScheduleCreateParams.Builder setRenewalBehavior(SubscriptionScheduleCreateParams.RenewalBehavior renewalBehavior)
public SubscriptionScheduleCreateParams.Builder setRenewalInterval(SubscriptionScheduleCreateParams.RenewalInterval renewalInterval)
public SubscriptionScheduleCreateParams.Builder setStartDate(SubscriptionScheduleCreateParams.StartDate startDate)
public SubscriptionScheduleCreateParams.Builder setStartDate(java.lang.Long startDate)