Package com.stripe.param
Class AccountLinkCreateParams.Builder
- java.lang.Object
-
- com.stripe.param.AccountLinkCreateParams.Builder
-
- Enclosing class:
- AccountLinkCreateParams
public static class AccountLinkCreateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountLinkCreateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.AccountLinkCreateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.AccountLinkCreateParams
build()
Finalize and obtain parameter instance from this builder.AccountLinkCreateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.AccountLinkCreateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.AccountLinkCreateParams.Builder
setAccount(java.lang.String account)
The identifier of the account to create an account link for.AccountLinkCreateParams.Builder
setCollect(AccountLinkCreateParams.Collect collect)
Which information the platform needs to collect from the user.AccountLinkCreateParams.Builder
setRefreshUrl(java.lang.String refreshUrl)
The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid.AccountLinkCreateParams.Builder
setReturnUrl(java.lang.String returnUrl)
The URL that the user will be redirected to upon leaving or completing the linked flow.AccountLinkCreateParams.Builder
setType(AccountLinkCreateParams.Type type)
The type of account link the user is requesting.
-
-
-
Method Detail
-
build
public AccountLinkCreateParams build()
Finalize and obtain parameter instance from this builder.
-
setAccount
public AccountLinkCreateParams.Builder setAccount(java.lang.String account)
The identifier of the account to create an account link for.
-
setCollect
public AccountLinkCreateParams.Builder setCollect(AccountLinkCreateParams.Collect collect)
Which information the platform needs to collect from the user. One ofcurrently_due
oreventually_due
. Default iscurrently_due
.
-
addExpand
public AccountLinkCreateParams.Builder addExpand(java.lang.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. SeeAccountLinkCreateParams.expand
for the field documentation.
-
addAllExpand
public AccountLinkCreateParams.Builder addAllExpand(java.util.List<java.lang.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. SeeAccountLinkCreateParams.expand
for the field documentation.
-
putExtraParam
public AccountLinkCreateParams.Builder putExtraParam(java.lang.String key, java.lang.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.extraParams
for the field documentation.
-
putAllExtraParam
public AccountLinkCreateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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.extraParams
for the field documentation.
-
setRefreshUrl
public AccountLinkCreateParams.Builder setRefreshUrl(java.lang.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(java.lang.String returnUrl)
The URL that the user will be redirected to upon leaving or completing the linked flow.
-
setType
public AccountLinkCreateParams.Builder setType(AccountLinkCreateParams.Type type)
The type of account link the user is requesting. Possible values areaccount_onboarding
oraccount_update
.
-
-