Namespace Unity.Services.Economy
Classes
Configuration
This class allows you to retrieve items from the global economy configuration as it is set up in the Unity Dashboard.
Economy
EconomyAppleAppStorePurchaseFailedException
An exception that is thrown when a request to redeem an Apple App Store purchase fails in one of the following ways: invalid receipt, purchase already redeemed, product ID mismatch, product ID not defined, currency max would be exceeded.
EconomyException
An exception specific to the Economy service.
EconomyGooglePlayStorePurchaseFailedException
An exception that is thrown when a request to redeem an Google Play Store purchase fails in one of the following ways: invalid purchase data, invalid purchase data signature, purchase already redeemed, product ID mismatch, product ID not defined, currency max would be exceeded.
EconomyValidationErrorDetail
EconomyValidationException
Represents a validation error from the Economy service.
PlayerBalances
The PlayerBalances methods provide access to the current player's balances, and allow you to update them.
PlayerBalances.DecrementBalanceOptions
Options for a DecrementBalanceAsync call.
PlayerBalances.GetBalancesOptions
Options for a GetBalancesAsync call.
PlayerBalances.IncrementBalanceOptions
Options for a IncrementBalanceAsync call.
PlayerBalances.SetBalanceOptions
Options for a SetBalancesAsync call.
PlayerInventory
The PlayerInventory methods provide access to the current player's inventory items, and allow you to update them.
PlayerInventory.AddInventoryItemOptions
Options for a AddInventoryItemAsync call.
PlayerInventory.DeletePlayersInventoryItemOptions
Options for a DeletePlayersInventoryItemAsync call.
PlayerInventory.GetInventoryOptions
Options for a GetInventoryAsync call.
PlayerInventory.UpdatePlayersInventoryItemOptions
Options for a UpdatePlayersInventoryItemAsync call.
Purchases
The Purchases methods allow you to make virtual and real world purchases.
Purchases.MakeVirtualPurchaseOptions
Options for a MakeVirtualPurchaseAsync call.
Purchases.RedeemAppleAppStorePurchaseArgs
Arguments for a RedeemAppleAppStorePurchaseAsync call.
Purchases.RedeemGooglePlayStorePurchaseArgs
Arguments for a RedeemGooglePlayStorePurchaseAsync call.
Enums
EconomyExceptionReason
An enum of possible reasons that Economy would throw an exception. These are mapped to particular HTTP status codes.