Package com.stripe.param
Class AccountLinkCreateParams.Builder
java.lang.Object
com.stripe.param.AccountLinkCreateParams.Builder
- Enclosing class:
- AccountLinkCreateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setAccount
(String account) Required. The identifier of the account to create an account link for.The collect parameter is deprecated.setCollectionOptions
(AccountLinkCreateParams.CollectionOptions collectionOptions) Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.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.setReturnUrl
(String returnUrl) The URL that the user will be redirected to upon leaving or completing the linked flow.Required. The type of account link the user is requesting.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAccount
Required. The identifier of the account to create an account link for. -
setCollect
The collect parameter is deprecated. Usecollection_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
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. SeeAccountLinkCreateParams.expand
for the field documentation. -
addAllExpand
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. SeeAccountLinkCreateParams.expand
for the field documentation. -
putExtraParam
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. SeeAccountLinkCreateParams.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. SeeAccountLinkCreateParams.extraParams
for the field documentation. -
setRefreshUrl
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
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 areaccount_onboarding
oraccount_update
.
-