AppsSecret class final

SecretServiceResourceSecret

Secret Store is an API that allows Stripe Apps developers to securely persist secrets for use by UI Extensions and app backends. The primary resource in Secret Store is a `secret`. Other apps can't view secrets created by an app. Additionally, secrets are scoped to provide further permission control. All Dashboard users and the app backend share `account` scoped secrets. Use the `account` scope for secrets that don't change per-user, like a third-party API key. A `user` scoped secret is accessible by the app backend and one specific Dashboard user. Use the `user` scope for per-user secrets like per-user OAuth tokens, where different users might have different permissions. Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects)

Implemented types

Constructors

AppsSecret({required DateTime created, bool? deleted, DateTime? expiresAt, required String id, required bool livemode, required String name, String? payload, required SecretServiceResourceScope scope})
SecretServiceResourceSecret
const
AppsSecret.fromJson(Object? json)
factory

Properties

created DateTime
final
deleted bool?
final
expiresAt DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
livemode bool
final
name String
final
object String
The resource's type.
final
payload String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope SecretServiceResourceScope
final

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>(AppsSecret instance, Encoder<V> encoder) → V