LipilaClient class
Main client for Lipila SDK
Example usage:
final client = LipilaClient.sandbox('your-api-key');
// Get balance
final balance = await client.balance.getBalance();
print('Balance: ${balance.availableBalance} ${balance.currency}');
// Create collection
final collection = await client.collections.createCollection(
referenceId: 'ORDER-123',
amount: 100.0,
accountNumber: '260977123456',
currency: 'ZMW',
);
Constructors
- LipilaClient({required LipilaConfig config})
- Creates a new Lipila client with custom configuration
- LipilaClient.production(String apiKey, {Duration timeout = const Duration(seconds: 30), bool enableLogging = false, String? callbackUrl, LogLevel logLevel = LogLevel.error})
-
Creates a new Lipila client for production environment
factory
- LipilaClient.sandbox(String apiKey, {Duration timeout = const Duration(seconds: 30), bool enableLogging = true, String? callbackUrl, LogLevel logLevel = LogLevel.debug})
-
Creates a new Lipila client for sandbox environment
factory
Properties
- balance ↔ BalanceService
-
Balance operations
latefinal
- collections ↔ CollectionService
-
Collection operations
latefinal
- config → LipilaConfig
-
Get the current configuration
no setter
- disbursements ↔ DisbursementService
-
Disbursement operations
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → LipilaLogger
-
Get the logger instance
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ StatusService
-
Transaction status operations
latefinal
Methods
-
close(
) → void - Close the client and release resources
-
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