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
For more details about SubscriptionData, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe billing mode of the quote. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe billing mode of 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.Set of key-value pairs that will set metadata on the subscription or subscription schedule when the quote is accepted.Integer representing the number of trial period days before the customer is charged for the first time.inthashCode()voidsetBillingMode(Quote.SubscriptionData.BillingMode billingMode) The billing mode of the quote.voidsetDescription(String description) The subscription's description, meant to be displayable to the customer.voidsetEffectiveDate(Long effectiveDate) When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that will set metadata on the subscription or subscription schedule when the quote is accepted.voidsetTrialPeriodDays(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
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SubscriptionData
public SubscriptionData()
-
-
Method Details
-
getBillingMode
The billing mode of the quote. -
getDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
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. -
getMetadata
Set of key-value pairs that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included inline_items, this field will be passed to the resulting subscription'smetadatafield. Ifsubscription_data.effective_dateis used, this field will be passed to the resulting subscription schedule'sphases.metadatafield. Unlike object-level metadata, this field is declarative. Updates will clear prior values. -
getTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. -
setBillingMode
The billing mode of the quote. -
setDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
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. -
setMetadata
Set of key-value pairs that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included inline_items, this field will be passed to the resulting subscription'smetadatafield. Ifsubscription_data.effective_dateis used, this field will be passed to the resulting subscription schedule'sphases.metadatafield. Unlike object-level metadata, this field is declarative. Updates will clear prior values. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. -
equals
-
canEqual
-
hashCode
public int hashCode()
-