public static class SubscriptionScheduleCancelParams.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SubscriptionScheduleCancelParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
SubscriptionScheduleCancelParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
SubscriptionScheduleCancelParams |
build()
Finalize and obtain parameter instance from this builder.
|
SubscriptionScheduleCancelParams.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SubscriptionScheduleCancelParams.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SubscriptionScheduleCancelParams.Builder |
setInvoiceNow(java.lang.Boolean invoiceNow)
If the subscription schedule is
active, indicates if a final invoice will be
generated that contains any un-invoiced metered usage and new/pending proration invoice
items. |
SubscriptionScheduleCancelParams.Builder |
setProrate(java.lang.Boolean prorate)
If the subscription schedule is
active, indicates if the cancellation should be
prorated. |
public SubscriptionScheduleCancelParams build()
public SubscriptionScheduleCancelParams.Builder addExpand(java.lang.String element)
SubscriptionScheduleCancelParams.expand for the field documentation.public SubscriptionScheduleCancelParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
SubscriptionScheduleCancelParams.expand for the field documentation.public SubscriptionScheduleCancelParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SubscriptionScheduleCancelParams.extraParams for the field documentation.public SubscriptionScheduleCancelParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SubscriptionScheduleCancelParams.extraParams for the field documentation.public SubscriptionScheduleCancelParams.Builder setInvoiceNow(java.lang.Boolean invoiceNow)
active, indicates if a final invoice will be
generated that contains any un-invoiced metered usage and new/pending proration invoice
items. Defaults to true.public SubscriptionScheduleCancelParams.Builder setProrate(java.lang.Boolean prorate)
active, indicates if the cancellation should be
prorated. Defaults to true.