Class Product.MarketingFeature

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Product.MarketingFeature
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Product

public static class Product.MarketingFeature extends StripeObject
For more details about MarketingFeature, please refer to the API Reference.
  • Constructor Details

    • MarketingFeature

      public MarketingFeature()
  • Method Details

    • getLossMessage

      public String 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 update marketing_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

      public String getName()
      The marketing feature name. Up to 80 characters long.
    • setLossMessage

      public void setLossMessage(String lossMessage)
      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 update marketing_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

      public void setName(String name)
      The marketing feature name. Up to 80 characters long.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object