Package com.stripe.model
Class SubscriptionSchedule.Phase
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.SubscriptionSchedule.Phase
-
- Enclosing class:
- SubscriptionSchedule
public static class SubscriptionSchedule.Phase extends ApiResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod, ApiResource.RequestType
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Phase()
-
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.math.BigDecimal
getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places.java.lang.String
getCoupon()
Get id of expandable `coupon` object.Coupon
getCouponObject()
Get expanded `coupon`.java.lang.Long
getEndDate()
The end of this phase of the subscription schedule.java.util.List<SubscriptionSchedule.PhaseItem>
getPlans()
Plans to subscribe during this phase of the subscription schedule.java.lang.Long
getStartDate()
The start of this phase of the subscription schedule.java.math.BigDecimal
getTaxPercent()
If provided, each invoice created during this phase of the subscription schedule will apply the tax rate, increasing the amount billed to the customer.java.lang.Long
getTrialEnd()
When the trial ends within the phase.int
hashCode()
void
setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places.void
setCoupon(java.lang.String id)
void
setCouponObject(Coupon expandableObject)
void
setEndDate(java.lang.Long endDate)
The end of this phase of the subscription schedule.void
setPlans(java.util.List<SubscriptionSchedule.PhaseItem> plans)
Plans to subscribe during this phase of the subscription schedule.void
setStartDate(java.lang.Long startDate)
The start of this phase of the subscription schedule.void
setTaxPercent(java.math.BigDecimal taxPercent)
If provided, each invoice created during this phase of the subscription schedule will apply the tax rate, increasing the amount billed to the customer.void
setTrialEnd(java.lang.Long trialEnd)
When the trial ends within the phase.-
Methods inherited from class com.stripe.net.ApiResource
classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getCoupon
public java.lang.String getCoupon()
Get id of expandable `coupon` object.
-
setCoupon
public void setCoupon(java.lang.String id)
-
getCouponObject
public Coupon getCouponObject()
Get expanded `coupon`.
-
setCouponObject
public void setCouponObject(Coupon expandableObject)
-
getApplicationFeePercent
public java.math.BigDecimal getApplicationFeePercent()
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
-
getEndDate
public java.lang.Long getEndDate()
The end of this phase of the subscription schedule.
-
getPlans
public java.util.List<SubscriptionSchedule.PhaseItem> getPlans()
Plans to subscribe during this phase of the subscription schedule.
-
getStartDate
public java.lang.Long getStartDate()
The start of this phase of the subscription schedule.
-
getTaxPercent
public java.math.BigDecimal getTaxPercent()
If provided, each invoice created during this phase of the subscription schedule will apply the tax rate, increasing the amount billed to the customer.
-
getTrialEnd
public java.lang.Long getTrialEnd()
When the trial ends within the phase.
-
setApplicationFeePercent
public void setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
-
setEndDate
public void setEndDate(java.lang.Long endDate)
The end of this phase of the subscription schedule.
-
setPlans
public void setPlans(java.util.List<SubscriptionSchedule.PhaseItem> plans)
Plans to subscribe during this phase of the subscription schedule.
-
setStartDate
public void setStartDate(java.lang.Long startDate)
The start of this phase of the subscription schedule.
-
setTaxPercent
public void setTaxPercent(java.math.BigDecimal taxPercent)
If provided, each invoice created during this phase of the subscription schedule will apply the tax rate, increasing the amount billed to the customer.
-
setTrialEnd
public void setTrialEnd(java.lang.Long trialEnd)
When the trial ends within the phase.
-
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
-
-