> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStorePrice

> XStorePrice

# XStorePrice

ストア価格情報。

## Syntax

```cpp theme={null}
typedef struct XStorePrice {  
    float basePrice;  
    float price;  
    float recurrencePrice;  
    const char* currencyCode;  
    char formattedBasePrice[PRICE_MAX_SIZE];  
    char formattedPrice[PRICE_MAX_SIZE];  
    char formattedRecurrencePrice[PRICE_MAX_SIZE];  
    bool isOnSale;  
    time_t saleEndDate;  
} XStorePrice  
```

### Members

*basePrice*\
型: float

製品の通常の (プロモーションなしの) 価格または希望小売価格。

*price*\
型: float

ユーザーがアイテムを購入した場合に実際に支払う価格。

*recurrencePrice*\
型: float

定期支払いの価格。

*currencyCode*\
型: const char\*

価格の通貨コード。

*formattedBasePrice*\
型: char\[PRICE\_MAX\_SIZE]

ゲームの UI に表示できる、書式設定された basePrice。

*formattedPrice*\
型: char\[PRICE\_MAX\_SIZE]

UI で製品を宣伝する際に使用する、書式設定された価格。

*formattedRecurrencePrice*\
型: char\[PRICE\_MAX\_SIZE]

書式設定された定期支払い価格。

*isOnSale*\
型: bool

製品がセール中かどうかを示します。

*saleEndDate*\
型: time\_t

セールの終了日。

## Remarks

*basePrice* は必ずしも宣伝すべき価格ではありません。UI では常に basePrice 変数ではなく price 変数の値を表示する必要があります。basePrice 変数を使用して、セール中にどれくらいの割引が提供されているかを判断できます。UI では、price 変数の隣に取り消し線付きで basePrice を表示することで、ユーザーが価格の価値と節約額を把握しやすくなります。

**XStorePrice** は [XStoreAvailability](/reference/system/xstore/structs/xstoreavailability) 構造体のメンバーです。**XStorePrice** は [XStoreProduct](/reference/system/xstore/structs/xstoreproduct) 構造体のメンバーです。**XStorePrice** は [XStoreSku](/reference/system/xstore/structs/xstoresku) 構造体のメンバーです。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

[XStore](/reference/system/xstore/xstore_members)\
[XStoreAvailability](/reference/system/xstore/structs/xstoreavailability)\
[XStoreProduct](/reference/system/xstore/structs/xstoreproduct)\
[XStoreSku](/reference/system/xstore/structs/xstoresku)


## Related topics

- [XStoreAvailability](/ja-jp/reference/system/xstore/structs/xstoreavailability.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [XStoreSku](/ja-jp/reference/system/xstore/structs/xstoresku.md)
- [XStoreProduct](/ja-jp/reference/system/xstore/structs/xstoreproduct.md)
- [Economy v2 の実際の通貨価格](/ja-jp/services/playfab/economy-monetization/economy-v2/catalog/real-money-prices.md)
