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.
◆ FLootLockerCreateWalletResponseDelegate
C++ response delegate for creating a wallet.
◆ FLootLockerCreditWalletResponseDelegate
C++ response delegate for crediting currency to a wallet.
◆ FLootLockerDebitWalletResponseDelegate
C++ response delegate for debiting currency from a wallet.
◆ FLootLockerGetWalletResponseDelegate
C++ response delegate for getting a wallet.
◆ FLootLockerListBalancesForWalletResponseDelegate
C++ response delegate for listing balances in a wallet.
◆ ELootLockerWalletHolderTypes
Possible wallet holder types.
| Enumerator |
|---|
| character | |
| player | |
◆ CreditBalanceToWallet()
| static FString ULootLockerSDKManager::CreditBalanceToWallet |
( |
const FString & |
WalletID, |
|
|
const FString & |
CurrencyID, |
|
|
const FString & |
Amount, |
|
|
const FLootLockerCreditWalletResponseDelegate & |
OnComplete, |
|
|
const FString & |
ForPlayerWithUlid = "" |
|
) |
| |
|
static |
Credit (increase) a wallet balance.
- Parameters
-
| WalletID | Wallet id |
| CurrencyID | Currency id |
| Amount | Amount to credit |
| OnComplete | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ DebitBalanceToWallet()
| static FString ULootLockerSDKManager::DebitBalanceToWallet |
( |
const FString & |
WalletID, |
|
|
const FString & |
CurrencyID, |
|
|
const FString & |
Amount, |
|
|
const FLootLockerDebitWalletResponseDelegate & |
OnComplete, |
|
|
const FString & |
ForPlayerWithUlid = "" |
|
) |
| |
|
static |
Debit (decrease) a wallet balance.
- Parameters
-
| WalletID | Wallet id |
| CurrencyID | Currency id |
| Amount | Amount to debit |
| OnComplete | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetWalletByHolderID()
Get wallet information by holder ULID and type.
- Parameters
-
| HolderULID | Holder ULID |
| HolderType | Holder type |
| OnComplete | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetWalletByWalletID()
| static FString ULootLockerSDKManager::GetWalletByWalletID |
( |
const FString & |
WalletID, |
|
|
const FLootLockerGetWalletResponseDelegate & |
OnComplete, |
|
|
const FString & |
ForPlayerWithUlid = "" |
|
) |
| |
|
static |
Get wallet information by wallet id.
- Parameters
-
| WalletID | Wallet id |
| OnComplete | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ ListBalancesInWallet()
List balances in a wallet.
- Parameters
-
| WalletID | Wallet id |
| OnComplete | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
|
| static FString | ULootLockerSDKManager::ListBalancesInWallet (const FString &WalletID, const FLootLockerListBalancesForWalletResponseDelegate &OnComplete, const FString &ForPlayerWithUlid="") |
| | List balances in a wallet.
|
| |
| static FString | ULootLockerSDKManager::GetWalletByWalletID (const FString &WalletID, const FLootLockerGetWalletResponseDelegate &OnComplete, const FString &ForPlayerWithUlid="") |
| | Get wallet information by wallet id.
|
| |
| static FString | ULootLockerSDKManager::GetWalletByHolderID (const FString &HolderULID, const ELootLockerWalletHolderTypes &HolderType, const FLootLockerGetWalletResponseDelegate &OnComplete, const FString &ForPlayerWithUlid="") |
| | Get wallet information by holder ULID and type.
|
| |
| static FString | ULootLockerSDKManager::CreditBalanceToWallet (const FString &WalletID, const FString &CurrencyID, const FString &Amount, const FLootLockerCreditWalletResponseDelegate &OnComplete, const FString &ForPlayerWithUlid="") |
| | Credit (increase) a wallet balance.
|
| |
| static FString | ULootLockerSDKManager::DebitBalanceToWallet (const FString &WalletID, const FString &CurrencyID, const FString &Amount, const FLootLockerDebitWalletResponseDelegate &OnComplete, const FString &ForPlayerWithUlid="") |
| | Debit (decrease) a wallet balance.
|
| |