RefundClient class
It provides methods that mirror endpoints provided by Paystack's Refunds API which allows you create and manage transaction refunds.
- Inheritance
-
- Object
- BaseClient
- RefundClient
Constructors
- RefundClient.new({String? secretKey})
- Create an instance of RefundClient.
Properties
- baseUrl → String
-
no setterinherited
- client ↔ Client
-
getter/setter pairinherited
- dataAsListKey → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
all(
String reference, Currency currency, {String? from, String? to, int perPage = 50, int page = 1}) → Future< Response> - Retrieve a list of refunds on your integration
-
call(
Uri url, HttpMethod method, {NativeJsonData? data, bool dataAsList = false}) → Future< Response> -
inherited
-
create(
String transaction, {int? amount, Currency? currency, String? customerNote, String? merchantNote}) → Future< Response> - Initiate a refund on your integration
-
fetchOne(
String reference) → Future< Response> - Retrieve a refund by it's id in your integration
-
normalizeQueryParameters(
Map< String, dynamic> queryParameters) → Map<String, dynamic> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited