Package com.stripe.param.v2.core
Class AccountLinkCreateParams.UseCase.AccountUpdate.Builder
java.lang.Object
com.stripe.param.v2.core.AccountLinkCreateParams.UseCase.AccountUpdate.Builder
- Enclosing class:
- AccountLinkCreateParams.UseCase.AccountUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `configurations` list.Add an element to `configurations` 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.setCollectionOptions(AccountLinkCreateParams.UseCase.AccountUpdate.CollectionOptions collectionOptions) Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.setRefreshUrl(String refreshUrl) Required. The URL the user will be redirected to if the Account Link is expired, has been used, or is otherwise invalid.setReturnUrl(String returnUrl) The URL that the user will be redirected to upon completing the linked flow.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCollectionOptions
public AccountLinkCreateParams.UseCase.AccountUpdate.Builder setCollectionOptions(AccountLinkCreateParams.UseCase.AccountUpdate.CollectionOptions collectionOptions) Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. -
addConfiguration
public AccountLinkCreateParams.UseCase.AccountUpdate.Builder addConfiguration(AccountLinkCreateParams.UseCase.AccountUpdate.Configuration element) Add an element to `configurations` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAccountLinkCreateParams.UseCase.AccountUpdate.configurationsfor the field documentation. -
addAllConfiguration
public AccountLinkCreateParams.UseCase.AccountUpdate.Builder addAllConfiguration(List<AccountLinkCreateParams.UseCase.AccountUpdate.Configuration> elements) Add all elements to `configurations` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAccountLinkCreateParams.UseCase.AccountUpdate.configurationsfor the field documentation. -
putExtraParam
public AccountLinkCreateParams.UseCase.AccountUpdate.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. SeeAccountLinkCreateParams.UseCase.AccountUpdate.extraParamsfor the field documentation. -
putAllExtraParam
public AccountLinkCreateParams.UseCase.AccountUpdate.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. SeeAccountLinkCreateParams.UseCase.AccountUpdate.extraParamsfor the field documentation. -
setRefreshUrl
Required. The URL the user will be redirected to if the Account Link is expired, has been used, 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 URL so they can continue the flow. Make sure to authenticate the user before redirecting to the new Account Link, in case the URL leaks to a third party. If a new Account Link can't be generated, or if the redirect fails, you should display a useful error to the user. -
setReturnUrl
The URL that the user will be redirected to upon completing the linked flow.
-