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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanIf the update is applied, determines the date of the first full invoice, and, for plans withmonthoryearintervals, the day of the month for subsequent invoices.The pending subscription-level discount that will be applied when the pending update is applied.Get expandeddiscounts.Get IDs of expandablediscountsobject list.The point after which the changes reflected by this update will be discarded and no longer applied.Set of key-value pairs that you can attach to an object.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_daysshould be applied to the subscription.inthashCode()voidsetBillingCycleAnchor(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.voidsetDiscount(Discount discount) The pending subscription-level discount that will be applied when the pending update is applied.voidsetDiscountObjects(List<Discount> objs) voidsetDiscounts(List<String> ids) voidsetExpiresAt(Long expiresAt) The point after which the changes reflected by this update will be discarded and no longer applied.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidsetSubscriptionItems(List<SubscriptionItem> subscriptionItems) List of subscription items, each with an attached plan, that will be set if the update is applied.voidsetTrialEnd(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(Boolean trialFromPlan) Indicates if a plan'strial_period_daysshould be applied to the subscription.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
PendingUpdate
public PendingUpdate()
-
-
Method Details
-
getDiscounts
Get IDs of expandablediscountsobject list. -
setDiscounts
-
getDiscountObjects
Get expandeddiscounts. -
setDiscountObjects
-
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. The timestamp is in UTC format. -
getDiscount
The pending subscription-level discount that will be applied when the pending update is applied. -
getExpiresAt
The point after which the changes reflected by this update will be discarded and no longer applied. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
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_daysshould be applied to the subscription. Settingtrial_endper subscription is preferred, and this defaults tofalse. Setting this flag totruetogether withtrial_endis 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 withmonthoryearintervals, the day of the month for subsequent invoices. The timestamp is in UTC format. -
setDiscount
The pending subscription-level discount that will be applied when the pending update is applied. -
setExpiresAt
The point after which the changes reflected by this update will be discarded and no longer applied. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
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_daysshould be applied to the subscription. Settingtrial_endper subscription is preferred, and this defaults tofalse. Setting this flag totruetogether withtrial_endis not allowed. See Using trial periods on subscriptions to learn more. -
equals
-
canEqual
-
hashCode
public int hashCode()
-