StripeUserModel class

Data model for storing stripe user data.

Both the payer (customer) and the revenue receiver (account) are stored in this data.

ストライプのユーザーデータを保管するためのデータモデル。

支払う側(カスタマー)や収益を受け取る側(アカウント)両方がこのデータに保存されます。

Annotations
  • @freezed
  • @immutable
  • @CollectionModelPath(StripeUserModel.path)

Constructors

StripeUserModel({@JsonKey(name: "user") required String userId, @JsonKey(name: "account") String? accountId, @JsonKey(name: "customer") String? customerId, @JsonKey(name: "defaultPayment") String? defaultPayment, @JsonKey(name: "capability") @Default({}) DynamicMap capablity})
Data model for storing stripe user data.
const
factory
StripeUserModel.fromJson(Map<String, Object?> json)
factory

Properties

accountId String?
no setterinherited
capablity Map<String, dynamic>
no setterinherited
copyWith → $StripeUserModelCopyWith<StripeUserModel>
no setterinherited
customerId String?
no setterinherited
defaultPayment String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
registered bool
Returns true if the account is already registered.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
no setterinherited

Methods

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

Operators

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

Constants

collection → const _$$_StripeUserModelCollectionQuery
Query for collection.
document → const _$$_StripeUserModelDocumentQuery
Query for document.
path → const String
Model path.