PaymayaSinglePayment class

Not identical with PaymayaAmount.

This was intended for SinglePayment method which uses the value as String instead of num

Constructors

PaymayaSinglePayment({required PaymayaRedirectUrls redirectUrl, required SinglePaymentAmount totalAmount, required String requestReferenceNumber, Map<String, dynamic> metadata = const {}})
Not identical with PaymayaAmount.
const
PaymayaSinglePayment.fromJson(String source)
Not identical with PaymayaAmount.
factory
PaymayaSinglePayment.fromMap(Map<String, dynamic> map)
Not identical with PaymayaAmount.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
metadata Map<String, dynamic>
metadata for single payment
final
redirectUrl PaymayaRedirectUrls
your redirect urls
final
requestReferenceNumber String
you request reference number.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalAmount SinglePaymentAmount
total amount including currency and details
final

Methods

copyWith({PaymayaRedirectUrls? redirectUrl, SinglePaymentAmount? totalAmount, String? requestReferenceNumber, Map<String, dynamic>? metadata}) PaymayaSinglePayment
Not identical with PaymayaAmount.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
converts Map to String json
toMap() Map<String, dynamic>
converts to Map
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override