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
public static class Subscription.PendingUpdate extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description PendingUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 withmonth
oryear
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'strial_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 withmonth
oryear
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'strial_period_days
should be applied to the subscription.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getBillingCycleAnchor
public java.lang.Long 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.
-
getExpiresAt
public java.lang.Long getExpiresAt()
The point after which the changes reflected by this update will be discarded and no longer applied.
-
getSubscriptionItems
public java.util.List<SubscriptionItem> getSubscriptionItems()
List of subscription items, each with an attached plan, that will be set if the update is applied.
-
getTrialEnd
public 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.
-
getTrialFromPlan
public java.lang.Boolean 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.
-
setBillingCycleAnchor
public void setBillingCycleAnchor(java.lang.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.
-
setExpiresAt
public void setExpiresAt(java.lang.Long expiresAt)
The point after which the changes reflected by this update will be discarded and no longer applied.
-
setSubscriptionItems
public 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.
-
setTrialEnd
public 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.
-
setTrialFromPlan
public void setTrialFromPlan(java.lang.Boolean trialFromPlan)
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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-