> ## 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.

# PFValueToDateModel

> PFValueToDateModel 数据模型。

PFValueToDateModel 数据模型。

## 语法

```cpp theme={null}
typedef struct PFValueToDateModel {  
    const char* currency;  
    uint32_t totalValue;  
    const char* totalValueAsDecimal;  
} PFValueToDateModel;  
```

### 成员

**`currency`**   const char\*\
*is null-terminated*

（可选）购买中使用的货币的 ISO 4217 代码。

**`totalValue`**   uint32\_t

以 1/100 货币单位的整数形式表示的购买总价值。例如，当 Currency 为“USD”时，999 表示九美元九十九美分。

**`totalValueAsDecimal`**   const char\*\
*is null-terminated*

（可选）以十进制货币单位的字符串表示形式呈现的购买总价值。例如，当 Currency 为“USD”时，“9.99”表示九美元九十九美分。

## 要求

**头文件：** PFTypes.h

## 另请参阅

[PFTypes 成员](/services/playfab/api-references/c/pftypes/pftypes_members)


## Related topics

- [PFPlayerProfileModel](/zh-CN/services/playfab/api-references/c/pftypes/structs/pfplayerprofilemodel.md)
- [服务 C API 概览 - PFTypes.h](/zh-CN/services/playfab/api-references/c/pftypes/pftypes_members.md)
- [在 Economy（旧版）中获取玩家的至今累计价值 (VTD)](/zh-CN/services/playfab/economy-monetization/economy/tutorials/getting-a-players-vtd.md)
- [PFTagModel](/zh-CN/services/playfab/api-references/c/pftypes/structs/pftagmodel.md)
- [PFDateTimeDictionaryEntry](/zh-CN/services/playfab/api-references/c/pftypes/structs/pfdatetimedictionaryentry.md)
