public class SubscriptionUpdateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionUpdateParams.BillingCycleAnchor
Add all map key/value pairs to `extraParams` map.
|
static class |
SubscriptionUpdateParams.BillingThresholds |
static class |
SubscriptionUpdateParams.Builder |
static class |
SubscriptionUpdateParams.CollectionMethod |
static class |
SubscriptionUpdateParams.Item
Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached.
|
static class |
SubscriptionUpdateParams.PaymentBehavior |
static class |
SubscriptionUpdateParams.PendingInvoiceItemInterval
Usage threshold that triggers the subscription to advance to a new billing period.
|
static class |
SubscriptionUpdateParams.TransferData |
static class |
SubscriptionUpdateParams.TrialEnd |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SubscriptionUpdateParams.Builder |
builder() |
java.math.BigDecimal |
getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places.
|
SubscriptionUpdateParams.BillingCycleAnchor |
getBillingCycleAnchor()
Either `now` or `unchanged`.
|
java.lang.Object |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
java.lang.Object |
getCancelAt()
A timestamp at which the subscription should cancel.
|
java.lang.Boolean |
getCancelAtPeriodEnd()
Boolean indicating whether this subscription should cancel at the end of the current period.
|
SubscriptionUpdateParams.CollectionMethod |
getCollectionMethod()
Either `charge_automatically`, or `send_invoice`.
|
java.lang.Object |
getCoupon()
The code of the coupon to apply to this subscription.
|
java.lang.Long |
getDaysUntilDue()
Number of days a customer has to pay invoices generated by this subscription.
|
java.lang.Object |
getDefaultPaymentMethod()
ID of the default payment method for the subscription.
|
java.lang.Object |
getDefaultSource()
ID of the default payment source for the subscription.
|
java.lang.Object |
getDefaultTaxRates()
The tax rates that will apply to any subscription item that does not have `tax_rates` set.
|
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.
|
java.util.List<SubscriptionUpdateParams.Item> |
getItems()
List of subscription items, each with an attached plan.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
A set of key-value pairs that you can attach to a subscription object.
|
java.lang.Boolean |
getOffSession()
Indicates if a customer is on or off-session while an invoice payment is attempted.
|
SubscriptionUpdateParams.PaymentBehavior |
getPaymentBehavior()
Use `allow_incomplete` to create subscriptions with `status=incomplete` if the first invoice
cannot be paid.
|
java.lang.Object |
getPendingInvoiceItemInterval()
Specifies an interval for how often to bill for any pending invoice items.
|
java.lang.Boolean |
getProrate()
Boolean (defaults to `true`) telling us whether to [credit for unused
time](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle
changes (e.g.
|
java.lang.Long |
getProrationDate()
If set, the proration will be calculated as though the subscription was updated at the given
time.
|
java.lang.Object |
getTaxPercent()
A non-negative decimal (with at most four decimal places) between 0 and 100.
|
java.lang.Object |
getTransferData()
If specified, the funds from the subscription's invoices will be transferred to the destination
and the ID of the resulting transfers will be found on the resulting charges.
|
java.lang.Object |
getTrialEnd()
Unix timestamp representing the end of the trial period the customer will get before being
charged for the first time.
|
java.lang.Boolean |
getTrialFromPlan()
Indicates if a plan's `trial_period_days` should be applied to the subscription.
|
toMap
public static SubscriptionUpdateParams.Builder builder()
public java.math.BigDecimal getApplicationFeePercent()
public SubscriptionUpdateParams.BillingCycleAnchor getBillingCycleAnchor()
public java.lang.Object getBillingThresholds()
public java.lang.Object getCancelAt()
public java.lang.Boolean getCancelAtPeriodEnd()
public SubscriptionUpdateParams.CollectionMethod getCollectionMethod()
public java.lang.Object getCoupon()
public java.lang.Long getDaysUntilDue()
public java.lang.Object getDefaultPaymentMethod()
public java.lang.Object getDefaultSource()
public java.lang.Object getDefaultTaxRates()
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 java.util.List<SubscriptionUpdateParams.Item> getItems()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public java.lang.Boolean getOffSession()
public SubscriptionUpdateParams.PaymentBehavior getPaymentBehavior()
Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
public java.lang.Object getPendingInvoiceItemInterval()
public java.lang.Boolean getProrate()
public java.lang.Long getProrationDate()
public java.lang.Object getTaxPercent()
public java.lang.Object getTransferData()
public java.lang.Object getTrialEnd()
public java.lang.Boolean getTrialFromPlan()