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

PFValueToDateModel data model.

## Syntax

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

### Members

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

(Optional) ISO 4217 code of the currency used in the purchases.

**`totalValue`**   uint32\_t

Total value of the purchases in a whole number of 1/100 monetary units. For example, 999 indicates nine dollars and ninety-nine cents when Currency is 'USD').

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

(Optional) Total value of the purchases in a string representation of decimal monetary units. For example, '9.99' indicates nine dollars and ninety-nine cents when Currency is 'USD'.

## Requirements

**Header:** PFTypes.h

## See also

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


## Related topics

- [PFPlayerProfileModel](/services/playfab/api-references/c/pftypes/structs/pfplayerprofilemodel.md)
- [Services C API overview - PFTypes.h](/services/playfab/api-references/c/pftypes/pftypes_members.md)
- [Getting a player's Value-to-Date (VTD) in Economy (Legacy)](/services/playfab/economy-monetization/economy/tutorials/getting-a-players-vtd.md)
- [PFTagModel](/services/playfab/api-references/c/pftypes/structs/pftagmodel.md)
- [PFStatisticModel](/services/playfab/api-references/c/pftypes/structs/pfstatisticmodel.md)
