pub struct CreateAccountLink { /* private fields */ }
Expand description
Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
Implementations§
Source§impl CreateAccountLink
impl CreateAccountLink
Sourcepub fn new(
account: impl Into<String>,
type_: impl Into<CreateAccountLinkType>,
) -> Self
pub fn new( account: impl Into<String>, type_: impl Into<CreateAccountLinkType>, ) -> Self
Construct a new CreateAccountLink
.
Sourcepub fn collect(self, collect: impl Into<CreateAccountLinkCollect>) -> Self
pub fn collect(self, collect: impl Into<CreateAccountLinkCollect>) -> Self
The collect parameter is deprecated. Use collection_options
instead.
Sourcepub fn collection_options(
self,
collection_options: impl Into<CreateAccountLinkCollectionOptions>,
) -> Self
pub fn collection_options( self, collection_options: impl Into<CreateAccountLinkCollectionOptions>, ) -> Self
Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn refresh_url(self, refresh_url: impl Into<String>) -> Self
pub fn refresh_url(self, refresh_url: impl Into<String>) -> Self
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.
Sourcepub fn return_url(self, return_url: impl Into<String>) -> Self
pub fn return_url(self, return_url: impl Into<String>) -> Self
The URL that the user will be redirected to upon leaving or completing the linked flow.
Source§impl CreateAccountLink
impl CreateAccountLink
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateAccountLink
impl Clone for CreateAccountLink
Source§fn clone(&self) -> CreateAccountLink
fn clone(&self) -> CreateAccountLink
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more