PaymentLink class

This class is used to represent an action to be taken over a Payment "rel": "confirm", "method": "REDIRECT" ===> The link should be used to confirm a payment by redirecting the client to the href link which is a link to the Enzona platform. "rel": "complete", "method": "POST" ===> The link should be used to complete a payment, instead of using the link on href, a proper POST request should be generated with proper authentication "rel": "cancel", "method": "POST" ===> The link should be used to cancel a payment, instead of using the link on href, a proper POST request should be generated with proper authentication "rel": "refund", "method": "POST" ===> The link should be used to refund a payment, instead of using the link on href, a proper POST request should be generated with proper authentication "rel": "self", "method": "GET" ===> The link should be used to get a payment data, instead of using the link on href, a proper GET request should be generated with proper authentication

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

PaymentLink.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isCancel bool
no setter
isComplete bool
no setter
isConfirm bool
no setter
isRefund bool
no setter
isSelf bool
no setter
method String?
Possible values: "REDIRECT": Indicates the link should be used to redirect the client "POST": Indicates the link should be used to make a POST request "GET": Indicates the link should be used to make a GET request
getter/setter pair
rel String?
Possible values: "confirm": Indicates the link should be used to confirm the payment "complete": Indicates the link should be used to complete the payment "cancel": Indicates the link should be used to cancel the payment "refund": Indicates the link should be used to refund the payment
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
getter/setter pair

Methods

fromJsonList(List? jsonList) List<PaymentLink>?
inherited
fromJsonMap(Map<String, dynamic>? json) PaymentLink?
fromJsonString(String? json) PaymentLink?
inherited
fromJsonStringList(String? jsonStringList) List<PaymentLink>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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