public class SubscriptionScheduleUpdateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionScheduleUpdateParams.BillingThresholds |
static class |
SubscriptionScheduleUpdateParams.Builder |
static class |
SubscriptionScheduleUpdateParams.CollectionMethod |
static class |
SubscriptionScheduleUpdateParams.EndBehavior |
static class |
SubscriptionScheduleUpdateParams.InvoiceSettings
Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached.
|
static class |
SubscriptionScheduleUpdateParams.Phase
Add all map key/value pairs to `extraParams` map.
|
static class |
SubscriptionScheduleUpdateParams.RenewalInterval |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SubscriptionScheduleUpdateParams.Builder |
builder() |
java.lang.Object |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleUpdateParams.CollectionMethod |
getCollectionMethod()
Either `charge_automatically`, or `send_invoice`.
|
java.lang.Object |
getDefaultPaymentMethod()
ID of the default payment method for the subscription schedule.
|
java.lang.Object |
getDefaultSource()
ID of the default payment source for the subscription schedule.
|
SubscriptionScheduleUpdateParams.EndBehavior |
getEndBehavior()
Configures how the subscription schedule behaves when it ends.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
SubscriptionScheduleUpdateParams.InvoiceSettings |
getInvoiceSettings()
All invoices will be billed using the specified settings.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.util.List<SubscriptionScheduleUpdateParams.Phase> |
getPhases()
List representing phases of the subscription schedule.
|
java.lang.Boolean |
getProrate()
If the update changes the current phase, indicates if the changes should be prorated.
|
SubscriptionScheduleUpdateParams.RenewalInterval |
getRenewalInterval()
This parameter has been deprecated and will be removed in future API versions.
|
toMap
public static SubscriptionScheduleUpdateParams.Builder builder()
public java.lang.Object getBillingThresholds()
public SubscriptionScheduleUpdateParams.CollectionMethod getCollectionMethod()
public java.lang.Object getDefaultPaymentMethod()
public java.lang.Object getDefaultSource()
public SubscriptionScheduleUpdateParams.EndBehavior getEndBehavior()
public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public SubscriptionScheduleUpdateParams.InvoiceSettings getInvoiceSettings()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public java.util.List<SubscriptionScheduleUpdateParams.Phase> getPhases()
public java.lang.Boolean getProrate()
public SubscriptionScheduleUpdateParams.RenewalInterval getRenewalInterval()