TransactionPartner.fragment constructor
- @Assert('type == TransactionPartnerType.fragment', 'type must be TransactionPartnerType.fragment')
- @JsonKey(name: 'type') @Default(TransactionPartnerType.fragment) TransactionPartnerType type,
- @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;