Struct stripe::generated::connect::account_link::CreateAccountLink
source · pub struct CreateAccountLink<'a> {
pub account: AccountId,
pub collect: Option<AccountLinkCollect>,
pub collection_options: Option<CreateAccountLinkCollectionOptions>,
pub expand: &'a [&'a str],
pub refresh_url: Option<&'a str>,
pub return_url: Option<&'a str>,
pub type_: AccountLinkType,
}
Expand description
The parameters for AccountLink::create
.
Fields§
§account: AccountId
The identifier of the account to create an account link for.
collect: Option<AccountLinkCollect>
The collect parameter is deprecated.
Use collection_options
instead.
collection_options: Option<CreateAccountLinkCollectionOptions>
Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
refresh_url: Option<&'a str>
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.
return_url: Option<&'a str>
The URL that the user will be redirected to upon leaving or completing the linked flow.
type_: AccountLinkType
The type of account link the user is requesting.
Possible values are account_onboarding
or account_update
.
Implementations§
source§impl<'a> CreateAccountLink<'a>
impl<'a> CreateAccountLink<'a>
pub fn new(account: AccountId, type_: AccountLinkType) -> Self
Trait Implementations§
source§impl<'a> Clone for CreateAccountLink<'a>
impl<'a> Clone for CreateAccountLink<'a>
source§fn clone(&self) -> CreateAccountLink<'a>
fn clone(&self) -> CreateAccountLink<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more