StripePurchaseModel class
Data model for storing Stripe purchase information.
All payments to the operation, payments between users, and subscriptions are stored in this database.
Stripe購入情報を保管するためのデータモデル。
運営への支払い、ユーザー間の支払い、サブスクリプションすべてこのデータベースに保存されます。
- Annotations
-
- @freezed
- @immutable
- @CollectionModelPath(StripePurchaseModel.path)
Constructors
- StripePurchaseModel({@JsonKey(name: "user") required String userId, @JsonKey(name: "confirm") @Default(false) bool confirm, @JsonKey(name: "verify") @Default(false) bool verified, @JsonKey(name: "capture") @Default(false) bool captured, @JsonKey(name: "success") @Default(false) bool success, @JsonKey(name: "cancel") @Default(false) bool canceled, @JsonKey(name: "error") @Default(false) bool error, @JsonKey(name: "refund") @Default(false) bool refund, @JsonKey(name: "orderId") required String orderId, @JsonKey(name: "purchaseId") required String purchaseId, @JsonKey(name: "paymentMethodId") required String paymentMethodId, @JsonKey(name: "customer") required String customerId, @JsonKey(name: "amount") @Default(0.0) double amount, @JsonKey(name: "application") String? application, @JsonKey(name: "applicationFeeAmount") @Default(0.0) double applicationFeeAmount, @JsonKey(name: "transferAmount") @Default(0.0) double transferAmount, @JsonKey(name: "transferDistination") @Default("") String transferDistination, @JsonKey(name: "currency") @Default("jpy") String currency, @JsonKey(name: "clientSecret") required String clientSecret, @JsonKey(name: "createdTime") required ModelTimestamp createdTime, @JsonKey(name: "updatedTime") required ModelTimestamp updatedTime, @JsonKey(name: "emailFrom") String? emailFrom, @JsonKey(name: "emailTo") String? emailTo, @JsonKey(name: "emailTitle") String? emailTitle, @JsonKey(name: "emailContent") String? emailContent, @JsonKey(name: "locale") String? locale, @JsonKey(name: "cancel_at_period_end") @Default(false) bool cancelAtPeriodEnd})
-
Data model for storing Stripe purchase information.
constfactory
-
StripePurchaseModel.fromJson(Map<
String, Object?> json) -
factory
Properties
- amount → double
-
no setterinherited
- application → String?
-
no setterinherited
- applicationFeeAmount → double
-
no setterinherited
- cancelAtPeriodEnd → bool
-
no setterinherited
- canceled → bool
-
no setterinherited
- captured → bool
-
no setterinherited
- clientSecret → String
-
no setterinherited
- confirm → bool
-
no setterinherited
-
copyWith
→ $StripePurchaseModelCopyWith<
StripePurchaseModel> -
no setterinherited
- createdTime → ModelTimestamp
-
no setterinherited
- currency → String
-
no setterinherited
- customerId → String
-
no setterinherited
- emailContent → String?
-
no setterinherited
- emailFrom → String?
-
no setterinherited
- emailTitle → String?
-
no setterinherited
- emailTo → String?
-
no setterinherited
- error → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → String?
-
no setterinherited
- orderId → String
-
no setterinherited
- paymentMethodId → String
-
no setterinherited
- purchaseId → String
-
no setterinherited
- refund → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
no setterinherited
- transferAmount → double
-
no setterinherited
- transferDistination → String
-
no setterinherited
- updatedTime → ModelTimestamp
-
no setterinherited
- userId → String
-
no setterinherited
- verified → bool
-
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 _$$_StripePurchaseModelCollectionQuery
- Query for collection.
- document → const _$$_StripePurchaseModelDocumentQuery
- Query for document.
- path → const String
- Model path.