CustomerSession class final
CustomerSessionResourceCustomerSession
A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs) control over a customer.
- Implemented types
Constructors
- CustomerSession({required String clientSecret, CustomerSessionResourceComponents? components, required DateTime created, required CustomerOrId customer, required DateTime expiresAt, required bool livemode})
-
CustomerSessionResourceCustomerSession
const
- CustomerSession.fromJson(Object? json)
-
factory
Properties
- clientSecret → String
-
final
- components → CustomerSessionResourceComponents?
-
final
- created → DateTime
-
final
- customer → CustomerOrId
-
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> (CustomerSession instance, Encoder< V> encoder) → V