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.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
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
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, 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. -
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. -
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()
-