AccountSession class final

ConnectEmbeddedMethodAccountSessionCreateMethodAccountSession

An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components. We recommend that you create an AccountSession each time you need to display an embedded component to your user. Do not save AccountSessions to your database as they expire relatively quickly, and cannot be used more than once. Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)

Implemented types

Constructors

AccountSession({required String account, required String clientSecret, required ConnectEmbeddedAccountSessionCreateComponents components, required DateTime expiresAt, required bool livemode})
ConnectEmbeddedMethodAccountSessionCreateMethodAccountSession
const
AccountSession.fromJson(Object? json)
factory

Properties

account String
final
clientSecret String
final
components ConnectEmbeddedAccountSessionCreateComponents
final
expiresAt DateTime
final
hashCode int
The hash code for this object.
no setterinherited
livemode bool
final
object String
The resource's type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encode<V>(AccountSession instance, Encoder<V> encoder) → V