StripePurchaseModel constructor
const
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.
All payments to the operation, payments between users, and subscriptions are stored in this database.
Stripe購入情報を保管するためのデータモデル。
運営への支払い、ユーザー間の支払い、サブスクリプションすべてこのデータベースに保存されます。
Implementation
const factory 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,
}) = _StripePurchaseModel;