swervpay_dart library
Dart Client for Swervpay
Classes
- BankModel
- Bank model
- BusinessModel
- Business model
- BusinessResources
- Business resources
- CardModel
- Card model
- CardResources
- Card resources
- CardTransactionModel
- CollectionHistoryModel
- CollectionHistoryModel
- CollectionResources
- Collection resources
- CreateCardDto
- DTO for creating a card
- CreateCardResponse
- CreateCardResponse
- CreatePayoutResponse
- CreatePayoutResponse
- CustomerModel
- Customer model
- CustomerResources
- Customer resources
- ErrorModel
- Error model
- ExchangeRateResponse
- ExchangeRateResponse
- FromOrToResponse
- FromOrToResponse
- FxResources
- Fx resources
- OtherResources
- Other resources
- PayoutResources
- Payout resources
- ResolveAccountNumberModel
- Resolve Account Number Model
- SuccessModel
- Success model
- SwervpayClient
- Dart Client for Swervpay
- SwervpayClientConfig
- Swervpay client configuration
- TransactionModel
- Transaction model
- TransactionResources
- Transaction resources
- WalletModel
- Wallet model
- WalletResources
- Wallet resources
- WebhookResources
- Webhook resources
Enums
- CardIssuer
- Card Issuer
- CardType
- Card Type
- CollectionType
- Collection Type
- Currency
- Currency
Constants
-
acceptHttpStatus
→ const List<
int> - List of accpetable HTTP status codes.
Functions
-
extractErrorMessage(
Map< String, dynamic> data) → String - Extracts the error message from the response data
Typedefs
-
GetCall
= Future<
Response> Function(Uri, {Map<String, String> ? headers}) - Definition of a get call used by this client.
-
PatchCall
= Future<
Response> Function(Uri, {Object? body, Map<String, String> ? headers}) - Definition of a patch call used by this client.
-
PostCall
= Future<
Response> Function(Uri, {Object? body, Map<String, String> ? headers}) - Definition of a post call used by this client.
-
PutCall
= Future<
Response> Function(Uri, {Object? body, Map<String, String> ? headers}) - Definition of a put call used by this client.
- WebSocketFactory = WebSocket Function(Uri uri, {String? binaryType, Duration? timeout})
- A factory to create and connect to a WebSocket instance.
Exceptions / Errors
- SwervpayClientError
- Swervpay client error.