Package com.stripe.model
Class PaymentLink.SubscriptionData
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentLink.SubscriptionData
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- PaymentLink
For more details about SubscriptionData, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about InvoiceSettings, please refer to the API Reference.static classConfigures how this subscription behaves during the trial period. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe subscription's description, meant to be displayable to the customer.Set of key-value pairs that will set metadata on Subscriptions generated from this payment link.Integer representing the number of trial period days before the customer is charged for the first time.Settings related to subscription trials.inthashCode()voidsetDescription(String description) The subscription's description, meant to be displayable to the customer.voidsetInvoiceSettings(PaymentLink.SubscriptionData.InvoiceSettings invoiceSettings) voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that will set metadata on Subscriptions generated from this payment link.voidsetTrialPeriodDays(Long trialPeriodDays) Integer representing the number of trial period days before the customer is charged for the first time.voidsetTrialSettings(PaymentLink.SubscriptionData.TrialSettings trialSettings) Settings related to subscription trials.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
-
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. -
getInvoiceSettings
-
getMetadata
Set of key-value pairs that will set metadata on Subscriptions generated from this payment link. -
getTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. -
getTrialSettings
Settings related to subscription trials. -
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. -
setInvoiceSettings
-
setMetadata
Set of key-value pairs that will set metadata on Subscriptions generated from this payment link. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. -
setTrialSettings
Settings related to subscription trials. -
equals
-
canEqual
-
hashCode
public int hashCode()
-