Package com.stripe.model
Class QuotePhase
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.QuotePhase
- All Implemented Interfaces:
HasId
,StripeObjectInterface
A quote phase describes the line items, coupons, and trialing status of a subscription for a
predefined time period.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Total before any discounts or taxes are applied.Total after discounts and taxes are applied.If set toreset
, the billing_cycle_anchor of the subscription is set to the start of the phase when entering the phase.Eithercharge_automatically
, orsend_invoice
.Get expandeddefaultTaxRates
.Get IDs of expandabledefaultTaxRates
object list.Get expandeddiscounts
.Get IDs of expandablediscounts
object list.The end of this phase of the quote.getId()
Unique identifier for the object.The invoice settings applicable during this phase.Integer representing the multiplier applied to the price interval.A list of items the customer is being quoted for.String representing the object's type.If the quote will prorate when transitioning to this phase.getTrial()
If set to true the entire phase is counted as a trial and the customer will not be charged for any recurring fees.When the trial ends within the phase.int
hashCode()
When retrieving a quote phase, there is an includable line_items property containing the first handful of those items.When retrieving a quote phase, there is an includable line_items property containing the first handful of those items.listLineItems
(QuotePhaseListLineItemsParams params, RequestOptions options) When retrieving a quote phase, there is an includable line_items property containing the first handful of those items.listLineItems
(Map<String, Object> params) When retrieving a quote phase, there is an includable line_items property containing the first handful of those items.listLineItems
(Map<String, Object> params, RequestOptions options) When retrieving a quote phase, there is an includable line_items property containing the first handful of those items.static QuotePhase
Retrieves the quote phase with the given ID.static QuotePhase
retrieve
(String quotePhase, RequestOptions options) Retrieves the quote phase with the given ID.static QuotePhase
retrieve
(String quotePhase, QuotePhaseRetrieveParams params, RequestOptions options) Retrieves the quote phase with the given ID.static QuotePhase
Retrieves the quote phase with the given ID.void
setAmountSubtotal
(Long amountSubtotal) Total before any discounts or taxes are applied.void
setAmountTotal
(Long amountTotal) Total after discounts and taxes are applied.void
setBillingCycleAnchor
(String billingCycleAnchor) If set toreset
, the billing_cycle_anchor of the subscription is set to the start of the phase when entering the phase.void
setCollectionMethod
(String collectionMethod) Eithercharge_automatically
, orsend_invoice
.void
setDefaultTaxRateObjects
(List<TaxRate> objs) void
setDefaultTaxRates
(List<String> ids) void
setDiscountObjects
(List<Discount> objs) void
setDiscounts
(List<String> ids) void
setEndDate
(Long endDate) The end of this phase of the quote.void
Unique identifier for the object.void
setInvoiceSettings
(QuotePhase.InvoiceSettings invoiceSettings) The invoice settings applicable during this phase.void
setIterations
(Long iterations) Integer representing the multiplier applied to the price interval.void
setLineItems
(LineItemCollection lineItems) A list of items the customer is being quoted for.void
String representing the object's type.void
setProrationBehavior
(String prorationBehavior) If the quote will prorate when transitioning to this phase.void
setTotalDetails
(QuotePhase.TotalDetails totalDetails) void
If set to true the entire phase is counted as a trial and the customer will not be charged for any recurring fees.void
setTrialEnd
(Long trialEnd) When the trial ends within the phase.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, fullUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
QuotePhase
public QuotePhase()
-
-
Method Details
-
getDefaultTaxRates
Get IDs of expandabledefaultTaxRates
object list. -
setDefaultTaxRates
-
getDefaultTaxRateObjects
Get expandeddefaultTaxRates
. -
setDefaultTaxRateObjects
-
getDiscounts
Get IDs of expandablediscounts
object list. -
setDiscounts
-
getDiscountObjects
Get expandeddiscounts
. -
setDiscountObjects
-
listLineItems
When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
public LineItemCollection listLineItems(Map<String, Object> params, RequestOptions options) throws StripeExceptionWhen retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
public LineItemCollection listLineItems(QuotePhaseListLineItemsParams params) throws StripeException When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
public LineItemCollection listLineItems(QuotePhaseListLineItemsParams params, RequestOptions options) throws StripeException When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
retrieve
Retrieves the quote phase with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the quote phase with the given ID.- Throws:
StripeException
-
retrieve
public static QuotePhase retrieve(String quotePhase, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the quote phase with the given ID.- Throws:
StripeException
-
retrieve
public static QuotePhase retrieve(String quotePhase, QuotePhaseRetrieveParams params, RequestOptions options) throws StripeException Retrieves the quote phase with the given ID.- Throws:
StripeException
-
getAmountSubtotal
Total before any discounts or taxes are applied. -
getAmountTotal
Total after discounts and taxes are applied. -
getBillingCycleAnchor
If set toreset
, the billing_cycle_anchor of the subscription is set to the start of the phase when entering the phase. If unset, then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.Equal to
reset
. -
getCollectionMethod
Eithercharge_automatically
, orsend_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 and mark the subscription asactive
.One of
charge_automatically
, orsend_invoice
. -
getEndDate
The end of this phase of the quote. -
getInvoiceSettings
The invoice settings applicable during this phase. -
getIterations
Integer representing the multiplier applied to the price interval. For example,iterations=2
applied to a price withinterval=month
andinterval_count=3
results in a phase of duration2 * 3 months = 6 months
. -
getLineItems
A list of items the customer is being quoted for. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
quote_phase
. -
getProrationBehavior
If the quote will prorate when transitioning to this phase. Possible values arecreate_prorations
andnone
.One of
always_invoice
,create_prorations
, ornone
. -
getTotalDetails
-
getTrial
If set to true the entire phase is counted as a trial and the customer will not be charged for any recurring fees. -
getTrialEnd
When the trial ends within the phase. -
setAmountSubtotal
Total before any discounts or taxes are applied. -
setAmountTotal
Total after discounts and taxes are applied. -
setBillingCycleAnchor
If set toreset
, the billing_cycle_anchor of the subscription is set to the start of the phase when entering the phase. If unset, then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.Equal to
reset
. -
setCollectionMethod
Eithercharge_automatically
, orsend_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 and mark the subscription asactive
.One of
charge_automatically
, orsend_invoice
. -
setEndDate
The end of this phase of the quote. -
setId
Unique identifier for the object. -
setInvoiceSettings
The invoice settings applicable during this phase. -
setIterations
Integer representing the multiplier applied to the price interval. For example,iterations=2
applied to a price withinterval=month
andinterval_count=3
results in a phase of duration2 * 3 months = 6 months
. -
setLineItems
A list of items the customer is being quoted for. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
quote_phase
. -
setProrationBehavior
If the quote will prorate when transitioning to this phase. Possible values arecreate_prorations
andnone
.One of
always_invoice
,create_prorations
, ornone
. -
setTotalDetails
-
setTrial
If set to true the entire phase is counted as a trial and the customer will not be charged for any recurring fees. -
setTrialEnd
When the trial ends within the phase. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-