Class RequestCreateParams.Builder

java.lang.Object
com.stripe.param.forwarding.RequestCreateParams.Builder
Enclosing class:
RequestCreateParams

public static class RequestCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public RequestCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • addExpand

      public RequestCreateParams.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 RequestCreateParams.expand for the field documentation.
    • addAllExpand

      public RequestCreateParams.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 RequestCreateParams.expand for the field documentation.
    • putExtraParam

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

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

      public RequestCreateParams.Builder setPaymentMethod(String paymentMethod)
      Required. The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
    • addReplacement

      Add an element to `replacements` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See RequestCreateParams.replacements for the field documentation.
    • addAllReplacement

      Add all elements to `replacements` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See RequestCreateParams.replacements for the field documentation.
    • setRequest

      Required. The request body and headers to be sent to the destination endpoint.
    • setUrl

      public RequestCreateParams.Builder setUrl(String url)
      Required. The destination URL for the forwarded request. Must be supported by the config.