# ProductDetail

public class ProductDetail extends Object\
java.lang.Object    ↳ com.gaa.sdk.iap.ProductDetail

\
Indicates the purchase data of in-app purchases.

\
Summary <a href="#id-en-productdetail-summary" id="id-en-productdetail-summary"></a>
------------------------------------------------------------------------------------

***

| **Public constructors**                 |
| --------------------------------------- |
| ProductDetail(String jsonProductDetail) |

## Public methods <a href="#id-en-productdetail-publicmethods" id="id-en-productdetail-publicmethods"></a>

***

### getOriginalJson <a href="#id-en-productdetail-getoriginaljson" id="id-en-productdetail-getoriginaljson"></a>

String getOriginalJson()\
Restores JSON formatted string which includes product details of in-app products.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### getProductId <a href="#id-en-productdetail-getproductid" id="id-en-productdetail-getproductid"></a>

String getProductId()\
Restores the ID of purchased in-app products.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### getType <a href="#id-en-productdetail-gettype" id="id-en-productdetail-gettype"></a>

String getType()\
Restores the type of in-app products.

| **Returns:** |                                                                                               |
| ------------ | --------------------------------------------------------------------------------------------- |
| String       | [PurchaseClient.ProductType](/dev/eng/tools/billing/v21/references/classes/purchaseclient.md) |

### getPrice <a href="#id-en-productdetail-getprice" id="id-en-productdetail-getprice"></a>

String getPrice()\
Restores the price of in-app products.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### getPriceCurrencyCode <a href="#id-en-productdetail-getpricecurrencycode" id="id-en-productdetail-getpricecurrencycode"></a>

String getPriceCurrencyCode()\
Restores ISO 4217 CurrencyCode of the Price.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### getPriceAmountMicros <a href="#id-en-productdetail-getpriceamountmicros" id="id-en-productdetail-getpriceamountmicros"></a>

String getPriceAmountMicros()\
Restores the price to the unit in Micros. 1,000,000 Micros units are equal to one unit of currency.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### getTitle <a href="#id-en-productdetail-gettitle" id="id-en-productdetail-gettitle"></a>

String getTitle()\
Restores the name of in-app products.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/classes/productdetail.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
