Class ProductCreateParams.MarketingFeature.Builder

java.lang.Object
com.stripe.param.ProductCreateParams.MarketingFeature.Builder
Enclosing class:
ProductCreateParams.MarketingFeature

public static class ProductCreateParams.MarketingFeature.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • putExtraParam

      public ProductCreateParams.MarketingFeature.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See ProductCreateParams.MarketingFeature.extraParams for the field documentation.
    • putAllExtraParam

      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See ProductCreateParams.MarketingFeature.extraParams for the field documentation.
    • setLossMessage

      public ProductCreateParams.MarketingFeature.Builder 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.
    • setLossMessage

      public ProductCreateParams.MarketingFeature.Builder setLossMessage(EmptyParam 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