tsoj_flutter_client 0.0.1
tsoj_flutter_client: ^0.0.1 copied to clipboard
A Flutter/Dart client library for TSOJ API. Provides authentication, billing, and other TSOJ services access using Dio with full cookie support.
0.0.1 - 2025-10-12 #
Added #
- Initial release of TSOJ Flutter Client
- Core
ApiClientwith Dio HTTP client - Support for API key and publishable key authentication
- Request interceptors for authentication headers
AuthenticationClientwith authentication methods:signUp()- General sign upsignIn()- General sign inpasswordSignup()- Sign up with passwordpasswordSignin()- Sign in with passwordmagicSignin()- Magic link sign in
TsojClientFactoryfor client-side usage- Billing types and models:
Gatewayenum (WALLET, BANK_TRANSFER, QPAY, EGOLOMT, MONPAY)OrderStatusandInvoiceStatusenums- Order and Invoice models
- Request/response payloads for all billing operations
- Client methods:
getAvailableGateways()- Fetch available payment gatewaysgetBankTransferDetails()- Get bank transfer information
- Factory function
createTsojClient()for easy client creation - Comprehensive type safety with strongly typed models
- Error handling with typed responses
- Full documentation and examples
- README with usage examples
- Example application demonstrating all features
Features #
- ✨ Type-safe API client
- 🔐 Multiple authentication methods
- 💳 Payment gateway integration
- 🛡️ Built-in error handling
- 📝 Comprehensive documentation
- 🎯 Flutter and Dart support