Package com.stripe.model.v2.billing
Class PricingPlanSubscription
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.PricingPlanSubscription
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about CollectionStatusTransitions, please refer to the API Reference.static class
For more details about ServicingStatusTransitions, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The ID of the Billing Cadence this subscription is billed on.Current collection status of this subscription.Timestamps for collection status transitions.Time at which the object was created.getId()
Unique identifier for the object.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.The ID of the Pricing Plan for this subscription.The ID of the Pricing Plan Version for this subscription.Current servicing status of this subscription.Timestamps for servicing status transitions.The ID of the Test Clock of the associated Billing Cadence, if any.int
hashCode()
void
setBillingCadence
(String billingCadence) The ID of the Billing Cadence this subscription is billed on.void
setCollectionStatus
(String collectionStatus) Current collection status of this subscription.void
setCollectionStatusTransitions
(PricingPlanSubscription.CollectionStatusTransitions collectionStatusTransitions) Timestamps for collection status transitions.void
setCreated
(Instant created) Time at which the object was created.void
Unique identifier for the object.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
setPricingPlan
(String pricingPlan) The ID of the Pricing Plan for this subscription.void
setPricingPlanVersion
(String pricingPlanVersion) The ID of the Pricing Plan Version for this subscription.void
setServicingStatus
(String servicingStatus) Current servicing status of this subscription.void
setServicingStatusTransitions
(PricingPlanSubscription.ServicingStatusTransitions servicingStatusTransitions) Timestamps for servicing status transitions.void
setTestClock
(String testClock) The ID of the Test Clock of the associated Billing Cadence, if any.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
PricingPlanSubscription
public PricingPlanSubscription()
-
-
Method Details
-
getBillingCadence
The ID of the Billing Cadence this subscription is billed on. -
getCollectionStatus
Current collection status of this subscription.One of
awaiting_customer_action
,current
,past_due
,paused
, orunpaid
. -
getCollectionStatusTransitions
Timestamps for collection status transitions. -
getCreated
Time at which the object was created. -
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 of the object field.Equal to
v2.billing.pricing_plan_subscription
. -
getPricingPlan
The ID of the Pricing Plan for this subscription. -
getPricingPlanVersion
The ID of the Pricing Plan Version for this subscription. -
getServicingStatus
Current servicing status of this subscription.One of
active
,canceled
,paused
, orpending
. -
getServicingStatusTransitions
Timestamps for servicing status transitions. -
getTestClock
The ID of the Test Clock of the associated Billing Cadence, if any. -
setBillingCadence
The ID of the Billing Cadence this subscription is billed on. -
setCollectionStatus
Current collection status of this subscription.One of
awaiting_customer_action
,current
,past_due
,paused
, orunpaid
. -
setCollectionStatusTransitions
public void setCollectionStatusTransitions(PricingPlanSubscription.CollectionStatusTransitions collectionStatusTransitions) Timestamps for collection status transitions. -
setCreated
Time at which the object was created. -
setId
Unique identifier for the object. -
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 of the object field.Equal to
v2.billing.pricing_plan_subscription
. -
setPricingPlan
The ID of the Pricing Plan for this subscription. -
setPricingPlanVersion
The ID of the Pricing Plan Version for this subscription. -
setServicingStatus
Current servicing status of this subscription.One of
active
,canceled
,paused
, orpending
. -
setServicingStatusTransitions
public void setServicingStatusTransitions(PricingPlanSubscription.ServicingStatusTransitions servicingStatusTransitions) Timestamps for servicing status transitions. -
setTestClock
The ID of the Test Clock of the associated Billing Cadence, if any. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-