pub struct CreateFinancialConnectionsSession { /* private fields */ }Expand description
To launch the Financial Connections authorization flow, create a Session.
The session’s client_secret can be used to launch the flow using Stripe.js.
Implementations§
Source§impl CreateFinancialConnectionsSession
impl CreateFinancialConnectionsSession
Sourcepub fn new(
account_holder: impl Into<CreateFinancialConnectionsSessionAccountHolder>,
permissions: impl Into<Vec<FinancialConnectionsSessionPermissions>>,
) -> Self
pub fn new( account_holder: impl Into<CreateFinancialConnectionsSessionAccountHolder>, permissions: impl Into<Vec<FinancialConnectionsSessionPermissions>>, ) -> Self
Construct a new CreateFinancialConnectionsSession.
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 filters(
self,
filters: impl Into<CreateFinancialConnectionsSessionFilters>,
) -> Self
pub fn filters( self, filters: impl Into<CreateFinancialConnectionsSessionFilters>, ) -> Self
Filters to restrict the kinds of accounts to collect.
Sourcepub fn prefetch(
self,
prefetch: impl Into<Vec<FinancialConnectionsSessionPrefetch>>,
) -> Self
pub fn prefetch( self, prefetch: impl Into<Vec<FinancialConnectionsSessionPrefetch>>, ) -> Self
List of data features that you would like to retrieve upon account creation.
Sourcepub fn return_url(self, return_url: impl Into<String>) -> Self
pub fn return_url(self, return_url: impl Into<String>) -> Self
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
Source§impl CreateFinancialConnectionsSession
impl CreateFinancialConnectionsSession
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 CreateFinancialConnectionsSession
impl Clone for CreateFinancialConnectionsSession
Source§fn clone(&self) -> CreateFinancialConnectionsSession
fn clone(&self) -> CreateFinancialConnectionsSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl StripeRequest for CreateFinancialConnectionsSession
impl StripeRequest for CreateFinancialConnectionsSession
Source§type Output = FinancialConnectionsSession
type Output = FinancialConnectionsSession
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateFinancialConnectionsSession
impl RefUnwindSafe for CreateFinancialConnectionsSession
impl Send for CreateFinancialConnectionsSession
impl Sync for CreateFinancialConnectionsSession
impl Unpin for CreateFinancialConnectionsSession
impl UnwindSafe for CreateFinancialConnectionsSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more