RevenueWithdrawalState.succeeded constructor
- @Assert.new('type == RevenueWithdrawalStateType.succeeded', 'type must be RevenueWithdrawalStateType.succeeded')
- @JsonKey.new(name: 'type') @Default.new(RevenueWithdrawalStateType.succeeded) RevenueWithdrawalStateType type,
- @JsonKey.new(name: 'date') required int date,
- @JsonKey.new(name: 'url') required String url,
The withdrawal succeeded
Implementation
@Assert(
'type == RevenueWithdrawalStateType.succeeded',
'type must be RevenueWithdrawalStateType.succeeded',
)
const factory RevenueWithdrawalState.succeeded({
/// Type of the revenue withdrawal state, must be "succeeded"
@JsonKey(name: 'type')
@Default(RevenueWithdrawalStateType.succeeded)
RevenueWithdrawalStateType type,
/// Date the withdrawal was completed in Unix time.
@JsonKey(name: 'date') required final int date,
/// An HTTPS URL that can be used to see transaction details.
@JsonKey(name: 'url') required final String url,
}) = RevenueWithdrawalStateSucceeded;