Class SubscriptionItemCreateParams.Trial.Builder

java.lang.Object
com.stripe.param.SubscriptionItemCreateParams.Trial.Builder
Enclosing class:
SubscriptionItemCreateParams.Trial

public static class SubscriptionItemCreateParams.Trial.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • addConvertsTo

      public SubscriptionItemCreateParams.Trial.Builder addConvertsTo(String element)
      Add an element to `convertsTo` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See SubscriptionItemCreateParams.Trial.convertsTo for the field documentation.
    • addAllConvertsTo

      public SubscriptionItemCreateParams.Trial.Builder addAllConvertsTo(List<String> elements)
      Add all elements to `convertsTo` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See SubscriptionItemCreateParams.Trial.convertsTo for the field documentation.
    • putExtraParam

      public SubscriptionItemCreateParams.Trial.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 SubscriptionItemCreateParams.Trial.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 SubscriptionItemCreateParams.Trial.extraParams for the field documentation.
    • setType

      Determines the type of trial for this item.