> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/classes/productdetail.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
