ProductDetails.OneTimePurchaseOfferDetails.DiscountDisplayInfo.DiscountAmount

public final class ProductDetails.OneTimePurchaseOfferDetails.DiscountDisplayInfo.DiscountAmount


Represents a discount amount.

Summary

Public methods

String

Returns ISO 4217 currency code for the discount amount.

long

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

String

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