Package com.stripe.model
Class Product.MarketingFeature
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Product.MarketingFeature
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Product
For more details about MarketingFeature, 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 booleanbooleanOptional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow.getName()The marketing feature name.inthashCode()voidsetLossMessage(String lossMessage) Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow.voidThe marketing feature name.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
MarketingFeature
public MarketingFeature()
-
-
Method Details
-
getLossMessage
Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you updatemarketing_features, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it. -
getName
The marketing feature name. Up to 80 characters long. -
setLossMessage
Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you updatemarketing_features, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it. -
setName
The marketing feature name. Up to 80 characters long. -
equals
-
canEqual
-
hashCode
public int hashCode()
-