CallbackPayload class

Callback payload from Lipila webhooks

Constructors

CallbackPayload({required String referenceId, required String currency, required double amount, required String accountNumber, required String status, required String paymentType, required String type, required String ipAddress, required String identifier, required String message, String? externalId})
Creates a new callback payload
const
CallbackPayload.fromJson(Map<String, dynamic> json)
Create from JSON webhook payload
factory

Properties

accountNumber String
Account number
final
amount double
Transaction amount
final
currency String
Currency code
final
externalId String?
External ID (if any)
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
Transaction identifier
final
ipAddress String
IP address
final
isCollection bool
Check if this is a collection callback
no setter
isDisbursement bool
Check if this is a disbursement callback
no setter
isFailed bool
Check if transaction failed
no setter
isPending bool
Check if transaction is pending
no setter
isSuccessful bool
Check if transaction was successful
no setter
message String
Status message
final
paymentType String
Payment type
final
referenceId String
Reference ID
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
Transaction status
final
type String
Transaction type (collection/disbursement)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON
toString() String
A string representation of this object.
override

Operators

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