public static class SubscriptionSchedule.Phase extends StripeObject
PRETTY_PRINT_GSON
Constructor and Description |
---|
Phase() |
Modifier and Type | Method and 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.
|
Subscription.BillingThresholds |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
java.lang.String |
getCollectionMethod()
Either
charge_automatically , or send_invoice . |
java.lang.String |
getCoupon()
Get ID of expandable
coupon object. |
Coupon |
getCouponObject()
Get expanded
coupon . |
java.lang.String |
getDefaultPaymentMethod()
Get ID of expandable
defaultPaymentMethod object. |
PaymentMethod |
getDefaultPaymentMethodObject()
Get expanded
defaultPaymentMethod . |
java.util.List<TaxRate> |
getDefaultTaxRates()
The default tax rates to apply to the subscription during this phase of the subscription
schedule.
|
java.lang.Long |
getEndDate()
The end of this phase of the subscription schedule.
|
SubscriptionSchedule.InvoiceSettings |
getInvoiceSettings()
The subscription schedule's default invoice settings.
|
java.util.List<SubscriptionSchedule.PhaseItem> |
getPlans()
Plans to subscribe during this phase of the subscription schedule.
|
java.lang.String |
getProrationBehavior()
Controls whether or not the subscription schedule will prorate when transitioning to this
phase.
|
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 |
setBillingThresholds(Subscription.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
void |
setCollectionMethod(java.lang.String collectionMethod)
Either
charge_automatically , or send_invoice . |
void |
setCoupon(java.lang.String id) |
void |
setCouponObject(Coupon expandableObject) |
void |
setDefaultPaymentMethod(java.lang.String id) |
void |
setDefaultPaymentMethodObject(PaymentMethod expandableObject) |
void |
setDefaultTaxRates(java.util.List<TaxRate> defaultTaxRates)
The default tax rates to apply to the subscription during this phase of the subscription
schedule.
|
void |
setEndDate(java.lang.Long endDate)
The end of this phase of the subscription schedule.
|
void |
setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
The subscription schedule's default invoice settings.
|
void |
setPlans(java.util.List<SubscriptionSchedule.PhaseItem> plans)
Plans to subscribe during this phase of the subscription schedule.
|
void |
setProrationBehavior(java.lang.String prorationBehavior)
Controls whether or not the subscription schedule will prorate when transitioning to this
phase.
|
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.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCoupon()
coupon
object.public void setCoupon(java.lang.String id)
public Coupon getCouponObject()
coupon
.public void setCouponObject(Coupon expandableObject)
public java.lang.String getDefaultPaymentMethod()
defaultPaymentMethod
object.public void setDefaultPaymentMethod(java.lang.String id)
public PaymentMethod getDefaultPaymentMethodObject()
defaultPaymentMethod
.public void setDefaultPaymentMethodObject(PaymentMethod expandableObject)
public java.math.BigDecimal getApplicationFeePercent()
public Subscription.BillingThresholds getBillingThresholds()
public java.lang.String getCollectionMethod()
charge_automatically
, or send_invoice
. When charging automatically,
Stripe will attempt to pay the underlying subscription at the end of each billing cycle using
the default source attached to the customer. When sending an invoice, Stripe will email your
customer an invoice with payment instructions.
One of charge_automatically
, or send_invoice
.
public java.util.List<TaxRate> getDefaultTaxRates()
public java.lang.Long getEndDate()
public SubscriptionSchedule.InvoiceSettings getInvoiceSettings()
public java.util.List<SubscriptionSchedule.PhaseItem> getPlans()
public java.lang.String getProrationBehavior()
create_prorations
and none
.
One of always_invoice
, create_prorations
, or none
.
public java.lang.Long getStartDate()
public java.math.BigDecimal getTaxPercent()
public java.lang.Long getTrialEnd()
public void setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
public void setBillingThresholds(Subscription.BillingThresholds billingThresholds)
public void setCollectionMethod(java.lang.String collectionMethod)
charge_automatically
, or send_invoice
. When charging automatically,
Stripe will attempt to pay the underlying subscription at the end of each billing cycle using
the default source attached to the customer. When sending an invoice, Stripe will email your
customer an invoice with payment instructions.
One of charge_automatically
, or send_invoice
.
public void setDefaultTaxRates(java.util.List<TaxRate> defaultTaxRates)
public void setEndDate(java.lang.Long endDate)
public void setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
public void setPlans(java.util.List<SubscriptionSchedule.PhaseItem> plans)
public void setProrationBehavior(java.lang.String prorationBehavior)
create_prorations
and none
.
One of always_invoice
, create_prorations
, or none
.
public void setStartDate(java.lang.Long startDate)
public void setTaxPercent(java.math.BigDecimal taxPercent)
public void setTrialEnd(java.lang.Long trialEnd)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object