CancellationTerms class
Constructors
-
CancellationTerms({CancellationTermsTypeEnum? type, DateTime? freeUntil, List<
CancellationStep> schedule = const [], Money? fee}) - Returns a new CancellationTerms instance.
Properties
- fee ↔ Money?
-
OpenRoam's own cancellation fee, already included in every step; null when there is none.
getter/setter pair
- freeUntil ↔ DateTime?
-
Cancel at or before this instant (UTC) for a full refund; null unless the type is
fullyRefundable.getter/setter pair - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schedule
↔ List<
CancellationStep> -
Ordered steps: each is what cancelling from its
fromgives back and keeps. Before the first step, cancelling keeps only Fee (nothing when it is null). Empty for a product that is not refundable.getter/setter pair - type ↔ CancellationTermsTypeEnum?
-
fullyRefundable(a full refund until FreeUntil),partiallyRefundableornonRefundable(nothing comes back).getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → CancellationTerms? -
Returns a new CancellationTerms instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< CancellationTerms> -
mapFromJson(
dynamic json) → Map< String, CancellationTerms> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< CancellationTerms> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.