lb_wallet 1.0.2 lb_wallet: ^1.0.2 copied to clipboard
Logbot wallet API package to manage wallet, products and services in your Logbot account
Logbot Wallet SDK for Flutter #
This is a microservice to manage services, products and wallets in your Logbot account
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Build package: org.openapitools.codegen.languages.DartClientCodegen
Requirements #
Dart 2.17 or later
Installation & Usage #
Add the dependencies from pub.dev:
dependencies:
lb_auth:
lb_wallet:
lb_auth
is always required to make authorized calls to the APIs.
To use the SDK on you application see the example below:
import 'package:lb_auth/lb_auth.dart';
import 'package:lb_wallet/lb_wallet.dart';
class Example {
Future<void> run() async {
/// Initialize Logbot SDK by logging in with Logbot Credentials
await LogbotAuth.init(LogbotCredentials(
username: username,
password: password,
clientId: clientId,
clientSecret: clientSecret,
));
/// Now you can use every API included on the SDK
/// for example:
List<String>? response = await LogbotWallet.wallet.getWallet();
}
}
Tests #
To run all tests:
flutter test
Documentation for API Endpoints #
All URIs are relative to https://platform.dev1.logbotiot.cloud/lbwalletapi/v1
Class | Method | HTTP request | Description |
---|---|---|---|
CouponApi | consumeCoupon | POST /coupon/{code}/use | Uses a coupons |
ProductApi | buyProduct | POST /product/{id}/buy | Buys a product |
ProductApi | listProducts | GET /product | Get all products |
WalletApi | getBalance | GET /wallet/balance | Get balance of wallet |
WalletApi | getWallet | GET /wallet | Returns a wallet |
WalletApi | listTransactions | GET /wallet/transactions | Get all transactions of a wallet |
Documentation For Models #
- AttachServiceRequestBody
- Balance
- SuccessResponse
- BuyProductRequestBody
- ConsumeCouponRequestBody
- Coupon
- CouponRequestBody
- Credit
- Debit
- DebitDetails
- DetachServiceRequestBody
- LogbotError
- Product
- ProductRequestBody
- Service
- ServiceList
- ServiceListRequestBody
- ServiceListService
- ServiceListServices
- ServiceRequestBody
- Transaction
- TransactionAttachFileRequestBody
- TransactionRtr
- TransactionRtrCouponConsumption
- Wallet
- WalletRequestBody
Author #
Logbot SRL info@logbot.cloud