Class InstallCreateParams.Builder

java.lang.Object
com.stripe.param.apps.InstallCreateParams.Builder
Enclosing class:
InstallCreateParams

public static class InstallCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public InstallCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setApp

      public InstallCreateParams.Builder setApp(String app)
      Required. The ID of the app to install.
    • setChannel

      The distribution channel to install from. Defaults to public. A private app must be installed on private_test or private_live, matching the mode of the API key.
    • setCodeChallenge

      public InstallCreateParams.Builder setCodeChallenge(String codeChallenge)
      For OAuth apps, the PKCE code challenge used to issue the auth_code returned on the install. Must be 43 to 128 characters and contain only letters, numbers, -, ., _, and ~. Only applies to installs made by the app developer or an embedding platform; ignored when an account installs its own private app.
    • setCodeChallengeMethod

      public InstallCreateParams.Builder setCodeChallengeMethod(String codeChallengeMethod)
      The method used to derive code_challenge. Required when code_challenge is provided, and must be S256.
    • addExpand

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

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

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

      public InstallCreateParams.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 InstallCreateParams.extraParams for the field documentation.