LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
Loading...
Searching...
No Matches
Balances

Detailed Description

Read and adjust a player's wallet balances for each currency.

Each player (and optionally each character or hero) holds a Wallet with a unique ID. Balances update automatically when currency is granted via rewards or spent via Catalog purchases, and can also be credited or debited directly through the API or Web Console. See Currency for currency type definitions.

See the LootLocker documentation.

Function Documentation

◆ CreditBalanceToWallet()

static void LootLocker.Requests.LootLockerSDKManager.CreditBalanceToWallet ( string  walletId,
string  currencyId,
string  amount,
Action< LootLockerCreditWalletResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Credit (increase) the specified amount of the provided currency to the provided wallet.

Parameters
walletIdUnique ID of the wallet to credit the given amount of the given currency to
currencyIdUnique ID of the currency to credit
amountThe amount of the given currency to credit to the given wallet
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ DebitBalanceToWallet()

static void LootLocker.Requests.LootLockerSDKManager.DebitBalanceToWallet ( string  walletId,
string  currencyId,
string  amount,
Action< LootLockerDebitWalletResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Debit (decrease) the specified amount of the provided currency to the provided wallet.

Parameters
walletIdUnique ID of the wallet to debit the given amount of the given currency from
currencyIdUnique ID of the currency to debit
amountThe amount of the given currency to debit from the given wallet
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetWalletByHolderId()

static void LootLocker.Requests.LootLockerSDKManager.GetWalletByHolderId ( string  holderUlid,
LootLockerWalletHolderTypes  holderType,
Action< LootLockerGetWalletResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get information about a wallet for a specified holder.

Parameters
holderUlidULID of the holder of the wallet you want to get information for
holderTypeThe type of the holder to get the wallet for
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetWalletByWalletId()

static void LootLocker.Requests.LootLockerSDKManager.GetWalletByWalletId ( string  walletId,
Action< LootLockerGetWalletResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get information about a specified wallet.

Parameters
walletIdUnique ID of the wallet to get information for
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListBalancesInWallet()

static void LootLocker.Requests.LootLockerSDKManager.ListBalancesInWallet ( string  walletId,
Action< LootLockerListBalancesForWalletResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get a list of balances in a specified wallet.

Parameters
walletIdUnique ID of the wallet to get balances for
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

Functions

static void LootLocker.Requests.LootLockerSDKManager.ListBalancesInWallet (string walletId, Action< LootLockerListBalancesForWalletResponse > onComplete, string forPlayerWithUlid=null)
 Get a list of balances in a specified wallet.
 
static void LootLocker.Requests.LootLockerSDKManager.GetWalletByWalletId (string walletId, Action< LootLockerGetWalletResponse > onComplete, string forPlayerWithUlid=null)
 Get information about a specified wallet.
 
static void LootLocker.Requests.LootLockerSDKManager.GetWalletByHolderId (string holderUlid, LootLockerWalletHolderTypes holderType, Action< LootLockerGetWalletResponse > onComplete, string forPlayerWithUlid=null)
 Get information about a wallet for a specified holder.
 
static void LootLocker.Requests.LootLockerSDKManager.CreditBalanceToWallet (string walletId, string currencyId, string amount, Action< LootLockerCreditWalletResponse > onComplete, string forPlayerWithUlid=null)
 Credit (increase) the specified amount of the provided currency to the provided wallet.
 
static void LootLocker.Requests.LootLockerSDKManager.DebitBalanceToWallet (string walletId, string currencyId, string amount, Action< LootLockerDebitWalletResponse > onComplete, string forPlayerWithUlid=null)
 Debit (decrease) the specified amount of the provided currency to the provided wallet.