TransactionPartner.fragment constructor

  1. @Assert('type == TransactionPartnerType.fragment', 'type must be TransactionPartnerType.fragment')
const TransactionPartner.fragment({
  1. @JsonKey(name: 'type') @Default(TransactionPartnerType.fragment) TransactionPartnerType type,
  2. @JsonKey(name: 'withdrawal_state') RevenueWithdrawalState? withdrawalState,
})

Represents a withdrawal transaction with Fragment

Implementation

@Assert(
  'type == TransactionPartnerType.fragment',
  'type must be TransactionPartnerType.fragment',
)
const factory TransactionPartner.fragment({
  /// Type of the transaction partner, must be "fragment"
  @JsonKey(name: 'type')
  @Default(TransactionPartnerType.fragment)
  TransactionPartnerType type,

  /// State of the transaction if the transaction is outgoing.
  @JsonKey(name: 'withdrawal_state')
  final RevenueWithdrawalState? withdrawalState,
}) = TransactionPartnerFragment;