# ProductDetail

```
public class ProductDetail extends Object
```

```
java.lang.Object
    ↳ com.gaa.sdk.iap.ProductDetail
```

<br>

It shows the purchase data of in-app purchases (IAP).

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

***

<table><thead><tr><th>Public constructors</th></tr></thead><tbody><tr><td><pre><code>ProductDetail(String jsonProductDetail)
</code></pre></td></tr></tbody></table>

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

***

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

```
String getOriginalJson()
```

It returns a string in json format with in-app product details included.

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

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

```
String getProductId()
```

It returns the ID of purchased in-app product.

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

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

```
String getType()
```

It returns the type of in-app product.<br>

| **Returns:** |                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------ |
| String       | [PurchaseClient.ProductType](https://dev.onestore.co.kr/wiki/en/doc/purchaseclient-producttype-5833452.html) |

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

```
String getPrice()
```

It returns the price of in-app product.<br>

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

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

```
String getPriceCurrencyCode()
```

It returns the ISO 4217 currency code for price.<br>

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

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

```
String getPriceAmountMicros()
```

It returns the price in micro units. 1,000,000 micro-units equal one unit of the currency.<br>

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

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

```
String getTitle()
```

It returns the name of in-app product.<br>

| **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/old-version/v19/one-store-iap-reference/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.
