Class TrialOfferCreateParams.Builder

java.lang.Object
com.stripe.param.productcatalog.TrialOfferCreateParams.Builder
Enclosing class:
TrialOfferCreateParams

public static class TrialOfferCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public TrialOfferCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setDuration

      Required. Duration of one service period of the trial.
    • setEndBehavior

      Required. Define behavior that occurs at the end of the trial.
    • addExpand

      public TrialOfferCreateParams.Builder addExpand(String element)
      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. See TrialOfferCreateParams.expand for the field documentation.
    • addAllExpand

      public TrialOfferCreateParams.Builder addAllExpand(List<String> elements)
      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. See TrialOfferCreateParams.expand for the field documentation.
    • putExtraParam

      public TrialOfferCreateParams.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 TrialOfferCreateParams.extraParams for the field documentation.
    • putAllExtraParam

      public TrialOfferCreateParams.Builder putAllExtraParam(Map<String,Object> map)
      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 TrialOfferCreateParams.extraParams for the field documentation.
    • setPrice

      public TrialOfferCreateParams.Builder setPrice(String price)
      Required. Price configuration during the trial period (amount, billing scheme, etc).