# ProductDetails.OneTimePurchaseOfferDetails.DiscountDisplayInfo.DiscountAmount


```
public final class ProductDetails.OneTimePurchaseOfferDetails.DiscountDisplayInfo.DiscountAmount
```

<br />

*** ** * ** ***

Represents a discount amount.

## Summary

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.OneTimePurchaseOfferDetails.DiscountDisplayInfo.DiscountAmount#getDiscountAmountCurrencyCode()()` Returns ISO 4217 currency code for the discount amount. |
| `long` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.OneTimePurchaseOfferDetails.DiscountDisplayInfo.DiscountAmount#getDiscountAmountMicros()()` Returns the discount amount in micro-units, where 1,000,000 micro-units equal one unit of the currency. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.OneTimePurchaseOfferDetails.DiscountDisplayInfo.DiscountAmount#getFormattedDiscountAmount()()` Returns formatted discount amount, including its currency sign. |

## Public methods

### getDiscountAmountCurrencyCode

```
public String getDiscountAmountCurrencyCode()
```

Returns ISO 4217 currency code for the discount amount.

For example, if price is specified in British pounds sterling, currency code is "GBP".

### getDiscountAmountMicros

```
public long getDiscountAmountMicros()
```

Returns the discount amount in micro-units, where 1,000,000 micro-units equal one unit of the currency.

For example, if discountAmount is "€7.99", discount_amount_micros is "7990000". This value represents the localized, rounded price for a particular currency.

### getFormattedDiscountAmount

```
public String getFormattedDiscountAmount()
```

Returns formatted discount amount, including its currency sign.

For example, if discount is $4.99 off, the formattedDiscountAmount is "$4.99".