# Price

# Price

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price "View this page in Kotlin")\|Java  

<br />

```
public final class Price
```

<br />

*** ** * ** ***

An object representing a price.

## Summary

|                                                                                                                      ### Nested types                                                                                                                      |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[Price.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price.Builder) Builder class for[Price](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price). |

|                                ### Public fields                                |
|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|
| `final `[String](https://developer.android.com/reference/java/lang/String.html) | [currentPrice](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price#currentPrice()) |

|                                                                           ### Public methods                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                | [getCurrentPrice](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price#getCurrentPrice())`()` Returns the current price.                                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | [getStrikethroughPrice](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Price#getStrikethroughPrice())`()` Returns the price that should be strikethrough on UI. |

## Public fields

### currentPrice

```
public final String currentPrice
```  

## Public methods

### getCurrentPrice

```
public String getCurrentPrice()
```

Returns the current price.  

### getStrikethroughPrice

```
public Optional<String> getStrikethroughPrice()
```

Returns the price that should be strikethrough on UI.