PaymayaAmount class
A Payment set to be calculated but not including PaymayaDetails.
The PaymayaDetails is optional from the API docs. But is relevant if you want to invoice these transactions when you request to PayMaya.
Constructors
- PaymayaAmount({String? currency = 'PHP', required num value, PaymayaDetails? details})
-
A Payment set to be calculated but not including PaymayaDetails.
const
- PaymayaAmount.fromJson(String source)
-
Converts
source
to PaymayaAmount's Instancefactory -
PaymayaAmount.fromMap(Map<
String, dynamic> map) -
Converts
map
to PaymayaAmount's Instancefactory
Properties
- currency → String?
-
The currency was planned to be an enum. but PayMaya only supports
PHP as their standard.
final
- details → PaymayaDetails?
-
The details are optional, but when it is instantiated,
the properties will be required but can be set their values to 0.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → num
-
The value is set to num so that either int or double will be included
since it will be parsed as json objects.
final
Methods
-
copyWith(
{String? currency, num? value, PaymayaDetails? details}) → PaymayaAmount - Replaces the current instance to a new instance with the same properties
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Converts json of Amount to PaymayaAmount.
-
toMap(
) → Map< String, dynamic> - Converts PaymayaAmount to map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override