RevenueWithdrawalState class sealed
This object describes the state of a revenue withdrawal operation. It can be one of:
RevenueWithdrawalStatePending
RevenueWithdrawalStateSucceeded
RevenueWithdrawalStateFailed
- Annotations
-
- @Freezed(unionKey: 'type', unionValueCase: FreezedUnionCase.snake)
Constructors
- RevenueWithdrawalState.failed({@JsonKey(name: 'type') @Default(RevenueWithdrawalStateType.failed) RevenueWithdrawalStateType type})
-
The withdrawal failed and the transaction was refunded
constfactory
-
RevenueWithdrawalState.fromJson(Map<
String, Object?> json) -
Creates the RevenueWithdrawalState instance from JSON
factory
- RevenueWithdrawalState.pending({@JsonKey(name: 'type') @Default(RevenueWithdrawalStateType.pending) RevenueWithdrawalStateType type})
-
The withdrawal is in progress
constfactory
- RevenueWithdrawalState.succeeded({@JsonKey(name: 'type') @Default(RevenueWithdrawalStateType.succeeded) RevenueWithdrawalStateType type, @JsonKey(name: 'date') required int date, @JsonKey(name: 'url') required String url})
-
The withdrawal succeeded
constfactory
Properties
-
copyWith
→ $RevenueWithdrawalStateCopyWith<
RevenueWithdrawalState> -
Create a copy of RevenueWithdrawalState
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → RevenueWithdrawalStateType
-
Type of the revenue withdrawal state, must be "pending"
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this RevenueWithdrawalState to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited