PlanClient class
It provides methods that mirror endpoints provided by Paystack's Plans API which allows you create and manage installment payment options on your integration.
- Inheritance
-
- Object
- BaseClient
- PlanClient
Constructors
- PlanClient.new({String? secretKey})
- Create an instance of PlanClient.
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(
{int perPage = 50, int page = 1, String? status, Interval? interval, int? amount}) → Future< Response> - Retrieve a list of plans available on your integration
-
call(
Uri url, HttpMethod method, {NativeJsonData? data, bool dataAsList = false}) → Future< Response> -
inherited
-
create(
String name, int amount, Interval interval, {String? description, bool? sendInvoices, bool? sendSms, Currency? currency, int? invoiceLimit}) → Future< Response> - Create a plan on your integration
-
fetchOne(
String idOrCode) → Future< Response> - Retrieve a plan on your integration by it's id or code
-
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
-
update(
String idOrCode, String name, int amount, Interval interval, String? description, bool? sendInvoices, bool? sendSms, Currency? currency, int? invoiceLimit) → Future< Response> - Update a plan on your integration
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited