Class Session
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.financialconnections.Session
- All Implemented Interfaces:
HasId
,StripeObjectInterface
A Financial Connections Session is the secure way to programmatically launch the client-side
Stripe.js modal that lets your users link their accounts.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static Session
create
(SessionCreateParams params) To launch the Financial Connections authorization flow, create aSession
.static Session
create
(SessionCreateParams params, RequestOptions options) To launch the Financial Connections authorization flow, create aSession
.static Session
To launch the Financial Connections authorization flow, create aSession
.static Session
create
(Map<String, Object> params, RequestOptions options) To launch the Financial Connections authorization flow, create aSession
.boolean
The account holder for whom accounts are collected in this session.The accounts that were collected as part of this Session.A value that will be passed to the client to launch the authentication flow.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Permissions requested for accounts collected during this session.For webview integrations only.int
hashCode()
static Session
Retrieves the details of a Financial ConnectionsSession
.static Session
retrieve
(String session, RequestOptions options) Retrieves the details of a Financial ConnectionsSession
.static Session
retrieve
(String session, SessionRetrieveParams params, RequestOptions options) Retrieves the details of a Financial ConnectionsSession
.static Session
Retrieves the details of a Financial ConnectionsSession
.void
setAccountHolder
(Session.AccountHolder accountHolder) The account holder for whom accounts are collected in this session.void
setAccounts
(AccountCollection accounts) The accounts that were collected as part of this Session.void
setClientSecret
(String clientSecret) A value that will be passed to the client to launch the authentication flow.void
setFilters
(Session.Filters filters) void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setPermissions
(List<String> permissions) Permissions requested for accounts collected during this session.void
setReturnUrl
(String returnUrl) For webview integrations only.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
create
To launch the Financial Connections authorization flow, create aSession
. The session’sclient_secret
can be used to launch the flow using Stripe.js.- Throws:
StripeException
-
create
public static Session create(Map<String, Object> params, RequestOptions options) throws StripeExceptionTo launch the Financial Connections authorization flow, create aSession
. The session’sclient_secret
can be used to launch the flow using Stripe.js.- Throws:
StripeException
-
create
To launch the Financial Connections authorization flow, create aSession
. The session’sclient_secret
can be used to launch the flow using Stripe.js.- Throws:
StripeException
-
create
public static Session create(SessionCreateParams params, RequestOptions options) throws StripeException To launch the Financial Connections authorization flow, create aSession
. The session’sclient_secret
can be used to launch the flow using Stripe.js.- Throws:
StripeException
-
retrieve
Retrieves the details of a Financial ConnectionsSession
.- Throws:
StripeException
-
retrieve
Retrieves the details of a Financial ConnectionsSession
.- Throws:
StripeException
-
retrieve
public static Session retrieve(String session, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a Financial ConnectionsSession
.- Throws:
StripeException
-
retrieve
public static Session retrieve(String session, SessionRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a Financial ConnectionsSession
.- Throws:
StripeException
-
getAccountHolder
The account holder for whom accounts are collected in this session. -
getAccounts
The accounts that were collected as part of this Session. -
getClientSecret
A value that will be passed to the client to launch the authentication flow. -
getFilters
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
financial_connections.session
. -
getPermissions
Permissions requested for accounts collected during this session. -
getReturnUrl
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. -
setAccountHolder
The account holder for whom accounts are collected in this session. -
setAccounts
The accounts that were collected as part of this Session. -
setClientSecret
A value that will be passed to the client to launch the authentication flow. -
setFilters
-
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
financial_connections.session
. -
setPermissions
Permissions requested for accounts collected during this session. -
setReturnUrl
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. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-