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.
◆ 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
-
| walletId | Unique ID of the wallet to credit the given amount of the given currency to |
| currencyId | Unique ID of the currency to credit |
| amount | The amount of the given currency to credit to the given wallet |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : 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
-
| walletId | Unique ID of the wallet to debit the given amount of the given currency from |
| currencyId | Unique ID of the currency to debit |
| amount | The amount of the given currency to debit from the given wallet |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
◆ GetWalletByHolderId()
Get information about a wallet for a specified holder.
- Parameters
-
| holderUlid | ULID of the holder of the wallet you want to get information for |
| holderType | The type of the holder to get the wallet for |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : 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
-
| walletId | Unique ID of the wallet to get information for |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
◆ ListBalancesInWallet()
Get a list of balances in a specified wallet.
- Parameters
-
| walletId | Unique ID of the wallet to get balances for |
| onComplete | onComplete Action for handling the response |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
| 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.
|
| |