Class AccountLinkCreateParams.Builder

java.lang.Object
com.stripe.param.AccountLinkCreateParams.Builder
Enclosing class:
AccountLinkCreateParams

public static class AccountLinkCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public AccountLinkCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setAccount

      public AccountLinkCreateParams.Builder setAccount(String account)
      Required. The identifier of the account to create an account link for.
    • setCollect

      The collect parameter is deprecated. Use collection_options instead.
    • setCollectionOptions

      public AccountLinkCreateParams.Builder setCollectionOptions(AccountLinkCreateParams.CollectionOptions collectionOptions)
      Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
    • addExpand

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

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

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

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

      public AccountLinkCreateParams.Builder setRefreshUrl(String refreshUrl)
      The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
    • setReturnUrl

      public AccountLinkCreateParams.Builder setReturnUrl(String returnUrl)
      The URL that the user will be redirected to upon leaving or completing the linked flow.
    • setType

      Required. The type of account link the user is requesting. Possible values are account_onboarding or account_update.