Package com.stripe.model
Class Subscription.PendingUpdate
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Subscription.PendingUpdate
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Subscription
Pending Updates store the changes pending from a previous update that will be applied to the
Subscription upon successful payment.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If the update is applied, determines the date of the first full invoice, and, for plans withmonth
oryear
intervals, the day of the month for subsequent invoices.The point after which the changes reflected by this update will be discarded and no longer applied.The number of iterations of prebilling to apply.List of subscription items, each with an attached plan, that will be set if the update is applied.Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.Indicates if a plan'strial_period_days
should be applied to the subscription.int
hashCode()
void
setBillingCycleAnchor
(Long billingCycleAnchor) If the update is applied, determines the date of the first full invoice, and, for plans withmonth
oryear
intervals, the day of the month for subsequent invoices.void
setExpiresAt
(Long expiresAt) The point after which the changes reflected by this update will be discarded and no longer applied.void
setPrebillingIterations
(Long prebillingIterations) The number of iterations of prebilling to apply.void
setSubscriptionItems
(List<SubscriptionItem> subscriptionItems) List of subscription items, each with an attached plan, that will be set if the update is applied.void
setTrialEnd
(Long trialEnd) Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.void
setTrialFromPlan
(Boolean trialFromPlan) Indicates if a plan'strial_period_days
should be applied to the subscription.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
PendingUpdate
public PendingUpdate()
-
-
Method Details
-
getBillingCycleAnchor
If the update is applied, determines the date of the first full invoice, and, for plans withmonth
oryear
intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. -
getExpiresAt
The point after which the changes reflected by this update will be discarded and no longer applied. -
getPrebillingIterations
The number of iterations of prebilling to apply. -
getSubscriptionItems
List of subscription items, each with an attached plan, that will be set if the update is applied. -
getTrialEnd
Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied. -
getTrialFromPlan
Indicates if a plan'strial_period_days
should be applied to the subscription. Settingtrial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withtrial_end
is not allowed. See Using trial periods on subscriptions to learn more. -
setBillingCycleAnchor
If the update is applied, determines the date of the first full invoice, and, for plans withmonth
oryear
intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. -
setExpiresAt
The point after which the changes reflected by this update will be discarded and no longer applied. -
setPrebillingIterations
The number of iterations of prebilling to apply. -
setSubscriptionItems
List of subscription items, each with an attached plan, that will be set if the update is applied. -
setTrialEnd
Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied. -
setTrialFromPlan
Indicates if a plan'strial_period_days
should be applied to the subscription. Settingtrial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withtrial_end
is not allowed. See Using trial periods on subscriptions to learn more. -
equals
-
canEqual
-
hashCode
public int hashCode()
-