Class CouponCreateParams.AppliesTo.Builder

java.lang.Object
com.stripe.param.CouponCreateParams.AppliesTo.Builder
Enclosing class:
CouponCreateParams.AppliesTo

public static class CouponCreateParams.AppliesTo.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • putExtraParam

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

      public CouponCreateParams.AppliesTo.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 CouponCreateParams.AppliesTo.extraParams for the field documentation.
    • addProduct

      public CouponCreateParams.AppliesTo.Builder addProduct(String element)
      Add an element to `products` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See CouponCreateParams.AppliesTo.products for the field documentation.
    • addAllProduct

      public CouponCreateParams.AppliesTo.Builder addAllProduct(List<String> elements)