Package com.stripe.param
Class ProductUpdateParams.MarketingFeature.Builder
java.lang.Object
com.stripe.param.ProductUpdateParams.MarketingFeature.Builder
- Enclosing class:
- ProductUpdateParams.MarketingFeature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setLossMessage(EmptyParam lossMessage) Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow.setLossMessage(String lossMessage) Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow.setName(EmptyParam name) Required. The marketing feature name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
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. SeeProductUpdateParams.MarketingFeature.extraParamsfor 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. SeeProductUpdateParams.MarketingFeature.extraParamsfor the field documentation. -
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. -
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
Required. The marketing feature name. Up to 80 characters long. -
setName
-