# クイックリファレンス

> View a quick reference guide for all available Economy SDK methods.

以下に、SDK で提供されるメソッドのクイックリファレンスを示します。詳細については、個々の名前空間のドキュメントを参照してください。

## 設定##configuration

`Configuration` 名前空間のメソッドを使用すると、グローバル Economy 設定からアイテムを取得できます。

これらのメソッドの詳細については、[SDK の設定](./configuration.md) を参照してください。

使用可能なメソッドは以下のとおりです。

```cs title="C#"
public async Task<List<ConfigurationItemDefinition>> SyncConfigurationAsync();
public List<CurrencyDefinition> GetCurrencies()
public CurrencyDefinition GetCurrency(string id)
public List<InventoryItemDefinition> GetInventoryItems()
public InventoryItemDefinition GetInventoryItem(string id)
public List<VirtualPurchaseDefinition> GetVirtualPurchases()
public VirtualPurchaseDefinition GetVirtualPurchase(string id)
public List<RealMoneyPurchaseDefinition> GetRealMoneyPurchases()
public RealMoneyPurchaseDefinition GetRealMoneyPurchase(string id)
```

## プレイヤーの残高##player-balances

`PlayerBalances` 名前空間のメソッドを使用して、ユーザーの通貨残高の取得と更新を行うことができます。これらのメソッドは、[Authentication](../implementation#authentication) SDK から、現在サインインしているプレイヤーの残高を返します。

これらのメソッドの詳細については、[プレイヤーの残高](./player-balances.md) を参照してください。

使用可能なメソッドは以下のとおりです。

```cs title="C#"
public async Task<GetBalanceResponse> GetBalancesAsync(GetBalancesOptions options = null)
public async Task<PlayerBalanceDefinition> SetBalanceAsync(string currencyId, int balance, SetBalanceOptions options = null)
public async Task<PlayerBalanceDefinition> IncrementBalanceAsync(string currencyId, int amount, IncrementBalanceOptions options = null)
public async Task<PlayerBalanceDefinition> DecrementBalanceAsync(string currencyId, int amount, DecrementBalanceOptions options = null)
```

## プレイヤーのインベントリ##player-inventory

`PlayerInventory` 名前空間のメソッドを使用して、プレイヤーのインベントリインスタンスの取得と更新を行うことができます。これらのメソッドは、[Authentication](../implementation#authentication) SDK から、現在サインインしているプレイヤーのインベントリデータを返します。

これらのメソッドの詳細については、[プレイヤーのインベントリ](./player-inventory.md) を参照してください。

使用可能なメソッドは以下のとおりです。

```cs title="C#"
public async Task<GetInventoryResult> GetInventoryAsync(GetInventoryOptions options = null)
public async Task<PlayerInventoryInstance> AddInventoryItemAsync(string inventoryItemId, AddInventoryItemOptions options = null)
public async Task<PlayerInventoryInstance> UpdateInventoryInstanceAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, UpdatePlayersInventoryItemOptions options = null)
public async Task DeleteInventoryInstanceAsync(string playersInventoryItemId, DeletePlayersInventoryItemOptions options = null)
```

## 購入##purchases

`Purchases` 名前空間のメソッドを使用すると、プレイヤーのために仮想購入を行ったり、リアルマネーでの購入に対してアイテム授受を行ったりすることができます。これらのメソッドは、[Authentication](../implementation#authentication) SDK を使用して現在サインインしているプレイヤーのために購入を行います。

これらのメソッドの詳細については、[購入](./purchases.md) を参照してください。

使用可能なメソッドは以下のとおりです。

```cs title="C#"
public async Task<MakeVirtualPurchaseResult> MakeVirtualPurchaseAsync(string virtualPurchaseId, MakeVirtualPurchaseOptions options = null)
public async Task<RedeemAppleAppStorePurchaseResult> RedeemAppleAppStorePurchaseAsync(RedeemAppleAppStorePurchaseArgs args)
public async Task<RedeemGooglePlayPurchaseResult> RedeemGooglePlayPurchaseAsync(RedeemGooglePlayStorePurchaseArgs args)
```
