M4eWalletService class
Exposes SDK Wallet Api methods
Accessing the instantiated m4eWallet
methods
is done by:
Instantiating as a regular object
final _m4eWallet = M4eWallet();
await _m4eWallet.getUserWallets();
Constructors
- M4eWalletService({UserApi userApi, WalletApi walletApi, PermissionApi permissionApi, DataConnectionChecker connectionChecker })
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
createWallet(
M4eUniqueId userId, M4eWalletForm m4eWalletForm) → Future< M4eUniqueId> - Creates an m4e user-wallet and returns created wallet M4eUniqueId [...]
-
getWalletBalance(
M4eUniqueId walletId) → Future< M4eBalance> - Returns wallet balance for specified wallet-id [...]
-
getWalletsByPhoneNumber(
{M4eUniqueId currentUserId, M4ePhoneNumber otherUserPhoneNumber }) → Future< M4eWalletList> -
Returns current authenticated m4e user
Wallets
from m4e when nootherUserId
is provided [...] -
getWalletsByUserId(
{M4eUniqueId currentUserId M4eUniqueId otherUserId }) → Future< M4eWalletList> -
Returns other m4e user
Wallets
which the current authenticated user hasSEE, PAY
permissions on from m4e [...] -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited