Package com.stripe.model
Class QuotePreviewSubscriptionSchedule
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.QuotePreviewSubscriptionSchedule
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
Get expandeddestination
.static class
A phase describes the plans, coupon, and trialing status of a subscription for a predefined time period.static class
Prebilling stores the time period and invoice for a Subscription billed in advance.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Get ID of expandableapplication
object.Get expandedapplication
.Configures when the subscription schedule generates prorations for phase transitions.Time at which the subscription schedule was canceled.Time at which the subscription schedule was completed.Time at which the object was created.Object representing the start and end dates for the current phase of the subscription schedule, if it isactive
.Get ID of expandablecustomer
object.Get expandedcustomer
.Behavior of the subscription schedule and underlying subscription when it ends.getId()
Unique identifier for the object.Details of the most recent price migration that failed for the subscription schedule.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.Configuration for the subscription schedule's phases.Time period and invoice for a Subscription billed in advance.Time at which the subscription schedule was released.ID of the subscription once managed by the subscription schedule (if it is released).The present status of the subscription schedule.Get ID of expandablesubscription
object.Get expandedsubscription
.Get ID of expandabletestClock
object.Get expandedtestClock
.int
hashCode()
list
(String quote, QuotePreviewSubscriptionScheduleListParams params) Preview the schedules that would be generated by accepting the quote.list
(String quote, QuotePreviewSubscriptionScheduleListParams params, RequestOptions options) Preview the schedules that would be generated by accepting the quote.Preview the schedules that would be generated by accepting the quote.Preview the schedules that would be generated by accepting the quote.void
setApplication
(String id) void
setApplicationObject
(Application expandableObject) void
void
setBillingBehavior
(String billingBehavior) Configures when the subscription schedule generates prorations for phase transitions.void
setCanceledAt
(Long canceledAt) Time at which the subscription schedule was canceled.void
setCompletedAt
(Long completedAt) Time at which the subscription schedule was completed.void
setCreated
(Long created) Time at which the object was created.void
setCurrentPhase
(QuotePreviewSubscriptionSchedule.CurrentPhase currentPhase) Object representing the start and end dates for the current phase of the subscription schedule, if it isactive
.void
setCustomer
(String id) void
setCustomerObject
(Customer expandableObject) void
setDefaultSettings
(QuotePreviewSubscriptionSchedule.DefaultSettings defaultSettings) void
setEndBehavior
(String endBehavior) Behavior of the subscription schedule and underlying subscription when it ends.void
Unique identifier for the object.void
setLastPriceMigrationError
(QuotePreviewSubscriptionSchedule.LastPriceMigrationError lastPriceMigrationError) Details of the most recent price migration that failed for the subscription schedule.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
Configuration for the subscription schedule's phases.void
Time period and invoice for a Subscription billed in advance.void
setReleasedAt
(Long releasedAt) Time at which the subscription schedule was released.void
setReleasedSubscription
(String releasedSubscription) ID of the subscription once managed by the subscription schedule (if it is released).void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
The present status of the subscription schedule.void
void
setSubscriptionObject
(Subscription expandableObject) void
setTestClock
(String id) void
setTestClockObject
(TestClock expandableObject) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
QuotePreviewSubscriptionSchedule
public QuotePreviewSubscriptionSchedule()
-
-
Method Details
-
getApplication
Get ID of expandableapplication
object. -
setApplication
-
getApplicationObject
Get expandedapplication
. -
setApplicationObject
-
getCustomer
Get ID of expandablecustomer
object. -
setCustomer
-
getCustomerObject
Get expandedcustomer
. -
setCustomerObject
-
getSubscription
Get ID of expandablesubscription
object. -
setSubscription
-
getSubscriptionObject
Get expandedsubscription
. -
setSubscriptionObject
-
getTestClock
Get ID of expandabletestClock
object. -
setTestClock
-
getTestClockObject
Get expandedtestClock
. -
setTestClockObject
-
list
public static QuotePreviewSubscriptionScheduleCollection list(String quote, Map<String, Object> params) throws StripeExceptionPreview the schedules that would be generated by accepting the quote.- Throws:
StripeException
-
list
public static QuotePreviewSubscriptionScheduleCollection list(String quote, Map<String, Object> params, RequestOptions options) throws StripeExceptionPreview the schedules that would be generated by accepting the quote.- Throws:
StripeException
-
list
public static QuotePreviewSubscriptionScheduleCollection list(String quote, QuotePreviewSubscriptionScheduleListParams params) throws StripeException Preview the schedules that would be generated by accepting the quote.- Throws:
StripeException
-
list
public static QuotePreviewSubscriptionScheduleCollection list(String quote, QuotePreviewSubscriptionScheduleListParams params, RequestOptions options) throws StripeException Preview the schedules that would be generated by accepting the quote.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAppliesTo
-
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
. -
getCanceledAt
Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch. -
getCompletedAt
Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrentPhase
Object representing the start and end dates for the current phase of the subscription schedule, if it isactive
. -
getDefaultSettings
-
getEndBehavior
Behavior of the subscription schedule and underlying subscription when it ends. Possible values arerelease
orcancel
with the default beingrelease
.release
will end the subscription schedule and keep the underlying subscription running.cancel
will end the subscription schedule and cancel the underlying subscription.One of
cancel
,none
,release
, orrenew
. -
getLastPriceMigrationError
Details of the most recent price migration that failed for the subscription schedule. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
quote_preview_subscription_schedule
. -
getPhases
Configuration for the subscription schedule's phases. -
getPrebilling
Time period and invoice for a Subscription billed in advance. -
getReleasedAt
Time at which the subscription schedule was released. Measured in seconds since the Unix epoch. -
getReleasedSubscription
ID of the subscription once managed by the subscription schedule (if it is released). -
getStatus
The present status of the subscription schedule. Possible values arenot_started
,active
,completed
,released
, andcanceled
. You can read more about the different states in our behavior guide.One of
active
,canceled
,completed
,not_started
, orreleased
. -
setAppliesTo
-
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
. -
setCanceledAt
Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch. -
setCompletedAt
Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrentPhase
Object representing the start and end dates for the current phase of the subscription schedule, if it isactive
. -
setDefaultSettings
-
setEndBehavior
Behavior of the subscription schedule and underlying subscription when it ends. Possible values arerelease
orcancel
with the default beingrelease
.release
will end the subscription schedule and keep the underlying subscription running.cancel
will end the subscription schedule and cancel the underlying subscription.One of
cancel
,none
,release
, orrenew
. -
setId
Unique identifier for the object. -
setLastPriceMigrationError
public void setLastPriceMigrationError(QuotePreviewSubscriptionSchedule.LastPriceMigrationError lastPriceMigrationError) Details of the most recent price migration that failed for the subscription schedule. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
quote_preview_subscription_schedule
. -
setPhases
Configuration for the subscription schedule's phases. -
setPrebilling
Time period and invoice for a Subscription billed in advance. -
setReleasedAt
Time at which the subscription schedule was released. Measured in seconds since the Unix epoch. -
setReleasedSubscription
ID of the subscription once managed by the subscription schedule (if it is released). -
setStatus
The present status of the subscription schedule. Possible values arenot_started
,active
,completed
,released
, andcanceled
. You can read more about the different states in our behavior guide.One of
active
,canceled
,completed
,not_started
, orreleased
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-