lb_wallet

Last updated:

0 purchases

lb_wallet Image
lb_wallet Images
Add to Cart

Description:

lb wallet

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:
copied to clipboard
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();
}
}
copied to clipboard
Tests #
To run all tests:
flutter test
copied to clipboard
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 [email protected]

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.