Package com.stripe.param.productcatalog
Class TrialOfferCreateParams.Builder
java.lang.Object
com.stripe.param.productcatalog.TrialOfferCreateParams.Builder
- Enclosing class:
- TrialOfferCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()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.setDuration(TrialOfferCreateParams.Duration duration) Required. Duration of one service period of the trial.setEndBehavior(TrialOfferCreateParams.EndBehavior endBehavior) Required. Define behavior that occurs at the end of the trial.Required. Price configuration during the trial period (amount, billing scheme, etc).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDuration
Required. Duration of one service period of the trial. -
setEndBehavior
public TrialOfferCreateParams.Builder setEndBehavior(TrialOfferCreateParams.EndBehavior endBehavior) Required. Define behavior that occurs at the end of the trial. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTrialOfferCreateParams.expandfor the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTrialOfferCreateParams.expandfor the field documentation. -
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. SeeTrialOfferCreateParams.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. SeeTrialOfferCreateParams.extraParamsfor the field documentation. -
setPrice
Required. Price configuration during the trial period (amount, billing scheme, etc).
-