public static class Subscription.PendingUpdate extends StripeObject
PRETTY_PRINT_GSON| Constructor and Description |
|---|
PendingUpdate() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getBillingCycleAnchor()
If the update is applied, determines the date of the first full invoice, and, for plans with
month or year intervals, the day of the month for subsequent invoices. |
java.lang.Long |
getExpiresAt()
The point after which the changes reflected by this update will be discarded and no longer
applied.
|
java.util.List<SubscriptionItem> |
getSubscriptionItems()
List of subscription items, each with an attached plan, that will be set if the update is
applied.
|
java.lang.Long |
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.
|
java.lang.Boolean |
getTrialFromPlan()
Indicates if a plan's
trial_period_days should be applied to the subscription. |
int |
hashCode() |
void |
setBillingCycleAnchor(java.lang.Long billingCycleAnchor)
If the update is applied, determines the date of the first full invoice, and, for plans with
month or year intervals, the day of the month for subsequent invoices. |
void |
setExpiresAt(java.lang.Long expiresAt)
The point after which the changes reflected by this update will be discarded and no longer
applied.
|
void |
setSubscriptionItems(java.util.List<SubscriptionItem> subscriptionItems)
List of subscription items, each with an attached plan, that will be set if the update is
applied.
|
void |
setTrialEnd(java.lang.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(java.lang.Boolean trialFromPlan)
Indicates if a plan's
trial_period_days should be applied to the subscription. |
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringpublic java.lang.Long getBillingCycleAnchor()
month or year intervals, the day of the month for subsequent invoices.public java.lang.Long getExpiresAt()
public java.util.List<SubscriptionItem> getSubscriptionItems()
public java.lang.Long getTrialEnd()
public java.lang.Boolean getTrialFromPlan()
trial_period_days should be applied to the subscription.
Setting trial_end per subscription is preferred, and this defaults to false.
Setting this flag to true together with trial_end is not allowed.public void setBillingCycleAnchor(java.lang.Long billingCycleAnchor)
month or year intervals, the day of the month for subsequent invoices.public void setExpiresAt(java.lang.Long expiresAt)
public void setSubscriptionItems(java.util.List<SubscriptionItem> subscriptionItems)
public void setTrialEnd(java.lang.Long trialEnd)
public void setTrialFromPlan(java.lang.Boolean trialFromPlan)
trial_period_days should be applied to the subscription.
Setting trial_end per subscription is preferred, and this defaults to false.
Setting this flag to true together with trial_end is not allowed.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Object