StripeUserModel constructor

const StripeUserModel({
  1. @JsonKey(name: "user") required String userId,
  2. @JsonKey(name: "account") String? accountId,
  3. @JsonKey(name: "customer") String? customerId,
  4. @JsonKey(name: "defaultPayment") String? defaultPayment,
  5. @JsonKey(name: "capability") @Default({}) DynamicMap capablity,
})

Data model for storing stripe user data.

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

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

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

Implementation

const factory 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,
}) = _StripeUserModel;