PaymentLinkRequest class
Request model for generating a payment link
Constructors
- PaymentLinkRequest({required String email, required String phoneNumber, required String merchantReference, required String amount, required String currency, required String redirectUrl, String? narration, String? linkName})
-
Creates a new PaymentLinkRequest
const
Properties
- amount → String
-
Amount in minor units (e.g., 6000 = ₦60.00 for NGN)
final
- currency → String
-
Currency code (e.g., NGN, USD)
final
- email → String
-
Customer email address
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- linkName → String?
-
Friendly label for internal tracking
final
- merchantReference → String
-
Your unique reference for this payment
final
- narration → String?
-
Payment description shown to customer
final
- phoneNumber → String
-
Customer phone number
final
- redirectUrl → String
-
URL to redirect after payment completion
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? email, String? phoneNumber, String? merchantReference, String? amount, String? currency, String? narration, String? linkName, String? redirectUrl}) → PaymentLinkRequest - Create a copy with modified values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert to JSON for API request
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited