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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetBillingCycleAnchor()If the update is applied, determines the date of the first full invoice, and, for plans withmonthoryearintervals, the day of the month for subsequent invoices.java.lang.LonggetExpiresAt()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.LonggetTrialEnd()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.BooleangetTrialFromPlan()Indicates if a plan'strial_period_daysshould be applied to the subscription.inthashCode()voidsetBillingCycleAnchor(java.lang.Long billingCycleAnchor)If the update is applied, determines the date of the first full invoice, and, for plans withmonthoryearintervals, the day of the month for subsequent invoices.voidsetExpiresAt(java.lang.Long expiresAt)The point after which the changes reflected by this update will be discarded and no longer applied.voidsetSubscriptionItems(java.util.List<SubscriptionItem> subscriptionItems)List of subscription items, each with an attached plan, that will be set if the update is applied.voidsetTrialEnd(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.voidsetTrialFromPlan(java.lang.Boolean trialFromPlan)Indicates if a plan'strial_period_daysshould 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 withmonthoryearintervals, 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_daysshould be applied to the subscription. Settingtrial_endper subscription is preferred, and this defaults tofalse. Setting this flag totruetogether withtrial_endis 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 withmonthoryearintervals, 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_daysshould be applied to the subscription. Settingtrial_endper subscription is preferred, and this defaults tofalse. Setting this flag totruetogether withtrial_endis not allowed.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-