Package com.stripe.model
Class Quote.SubscriptionData
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Quote.SubscriptionData
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Quote
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Unique identifier for the object. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Configures when the subscription schedule generates prorations for phase transitions.Whether the subscription will always start a new billing period when the quote is accepted.Describes the period to bill for upon accepting the quote.The subscription's description, meant to be displayable to the customer.When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.Behavior of the subscription schedule and underlying subscription when it ends.Get ID of expandablefromSchedule
object.Get expandedfromSchedule
.Get ID of expandablefromSubscription
object.Get expandedfromSubscription
.If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted.Determines how to handle prorations when the quote is accepted.Integer representing the number of trial period days before the customer is charged for the first time.int
hashCode()
void
setBillingBehavior
(String billingBehavior) Configures when the subscription schedule generates prorations for phase transitions.void
setBillingCycleAnchor
(String billingCycleAnchor) Whether the subscription will always start a new billing period when the quote is accepted.void
setBillOnAcceptance
(Quote.SubscriptionData.BillOnAcceptance billOnAcceptance) Describes the period to bill for upon accepting the quote.void
setDescription
(String description) The subscription's description, meant to be displayable to the customer.void
setEffectiveDate
(Long effectiveDate) When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.void
setEndBehavior
(String endBehavior) Behavior of the subscription schedule and underlying subscription when it ends.void
void
setFromScheduleObject
(SubscriptionSchedule expandableObject) void
void
setFromSubscriptionObject
(Subscription expandableObject) void
setPrebilling
(Quote.SubscriptionData.Prebilling prebilling) If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted.void
setProrationBehavior
(String prorationBehavior) Determines how to handle prorations when the quote is accepted.void
setTrialPeriodDays
(Long trialPeriodDays) Integer representing the number of trial period days before the customer is charged for the first time.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SubscriptionData
public SubscriptionData()
-
-
Method Details
-
getFromSchedule
Get ID of expandablefromSchedule
object. -
setFromSchedule
-
getFromScheduleObject
Get expandedfromSchedule
. -
setFromScheduleObject
-
getFromSubscription
Get ID of expandablefromSubscription
object. -
setFromSubscription
-
getFromSubscriptionObject
Get expandedfromSubscription
. -
setFromSubscriptionObject
-
getBillOnAcceptance
Describes the period to bill for upon accepting the quote. -
getBillingBehavior
Configures when the subscription schedule generates prorations for phase transitions. Possible values areprorate_on_next_phase
orprorate_up_front
with the default beingprorate_on_next_phase
.prorate_on_next_phase
will apply phase changes and generate prorations at transition time.prorate_up_front
will bill for all phases within the current billing cycle up front.One of
prorate_on_next_phase
, orprorate_up_front
. -
getBillingCycleAnchor
Whether the subscription will always start a new billing period when the quote is accepted.Equal to
reset
. -
getDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. -
getEffectiveDate
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch. -
getEndBehavior
Behavior of the subscription schedule and underlying subscription when it ends.One of
cancel
, orrelease
. -
getPrebilling
If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used witheffective_date
. -
getProrationBehavior
Determines how to handle prorations when the quote is accepted.One of
always_invoice
,create_prorations
, ornone
. -
getTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. -
setBillOnAcceptance
Describes the period to bill for upon accepting the quote. -
setBillingBehavior
Configures when the subscription schedule generates prorations for phase transitions. Possible values areprorate_on_next_phase
orprorate_up_front
with the default beingprorate_on_next_phase
.prorate_on_next_phase
will apply phase changes and generate prorations at transition time.prorate_up_front
will bill for all phases within the current billing cycle up front.One of
prorate_on_next_phase
, orprorate_up_front
. -
setBillingCycleAnchor
Whether the subscription will always start a new billing period when the quote is accepted.Equal to
reset
. -
setDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. -
setEffectiveDate
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch. -
setEndBehavior
Behavior of the subscription schedule and underlying subscription when it ends.One of
cancel
, orrelease
. -
setPrebilling
If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used witheffective_date
. -
setProrationBehavior
Determines how to handle prorations when the quote is accepted.One of
always_invoice
,create_prorations
, ornone
. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. -
equals
-
canEqual
-
hashCode
public int hashCode()
-