public static class SubscriptionScheduleCreateParams.Phase
extends java.lang.Object
SubscriptionScheduleCreateParams.InvoiceSettings.extraParams
for the field
documentation.Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionScheduleCreateParams.Phase.BillingThresholds |
static class |
SubscriptionScheduleCreateParams.Phase.Builder |
static class |
SubscriptionScheduleCreateParams.Phase.CollectionMethod
Usage threshold that triggers the subscription to advance to a new billing period.
|
static class |
SubscriptionScheduleCreateParams.Phase.InvoiceSettings
Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached.
|
static class |
SubscriptionScheduleCreateParams.Phase.Plan
Add all map key/value pairs to `extraParams` map.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionScheduleCreateParams.Phase.Builder |
builder() |
java.math.BigDecimal |
getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places.
|
java.lang.Object |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
SubscriptionScheduleCreateParams.Phase.CollectionMethod |
getCollectionMethod()
Either `charge_automatically`, or `send_invoice`.
|
java.lang.String |
getCoupon()
The identifier of the coupon to apply to this phase of the subscription schedule.
|
java.lang.String |
getDefaultPaymentMethod()
ID of the default payment method for the subscription schedule.
|
java.lang.Object |
getDefaultTaxRates()
The tax rates that will apply to any phase that does not have `tax_rates` set.
|
java.lang.Long |
getEndDate()
The date at which this phase of the subscription schedule ends.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
SubscriptionScheduleCreateParams.Phase.InvoiceSettings |
getInvoiceSettings()
All invoices will be billed using the specified settings.
|
java.lang.Long |
getIterations()
Integer representing the multiplier applied to the plan interval.
|
java.util.List<SubscriptionScheduleCreateParams.Phase.Plan> |
getPlans()
List of configuration items, each with an attached plan, to apply during this phase of the
subscription schedule.
|
java.math.BigDecimal |
getTaxPercent()
A non-negative decimal (with at most four decimal places) between 0 and 100.
|
java.lang.Boolean |
getTrial()
If set to true the entire phase is counted as a trial and the customer will not be charged
for any fees.
|
java.lang.Long |
getTrialEnd()
Sets the phase to trialing from the start date to this date.
|
public static SubscriptionScheduleCreateParams.Phase.Builder builder()
public java.math.BigDecimal getApplicationFeePercent()
public java.lang.Object getBillingThresholds()
public SubscriptionScheduleCreateParams.Phase.CollectionMethod getCollectionMethod()
public java.lang.String getCoupon()
public java.lang.String getDefaultPaymentMethod()
public java.lang.Object getDefaultTaxRates()
public java.lang.Long getEndDate()
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 SubscriptionScheduleCreateParams.Phase.InvoiceSettings getInvoiceSettings()
public java.lang.Long getIterations()
public java.util.List<SubscriptionScheduleCreateParams.Phase.Plan> getPlans()
public java.math.BigDecimal getTaxPercent()
public java.lang.Boolean getTrial()
public java.lang.Long getTrialEnd()