DirectChargeRequest class
A model class representing the details of a direct charge request.
This is used to structure the data required for initiating a direct charge transaction via the payment gateway.
Constructors
- DirectChargeRequest({required String mobile, required String firstName, required String lastName, required String amount, required String currency, required String email, required String txRef, required String paymentMethod})
- Constructor for the DirectChargeRequest class.
Properties
- amount → String
-
The amount to be charged.
final
- currency → String
-
The currency of the payment (defaults to "ETB" if not "ETB").
final
- email → String
-
The email address of the customer.
final
- firstName → String
-
The first name of the customer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastName → String
-
The last name of the customer.
final
- mobile → String
-
The mobile phone number of the customer.
final
- paymentMethod → String
-
The payment method to be used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- txRef → String
-
The transaction reference ID.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the DirectChargeRequest instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited