# ProductDetail

`public class ProductDetail extends Object`\
`java.lang.Object`     \
&#x20;    `↳ com.gaa.sdk.iap.ProductDetail`\
&#x20;\
显示In-App支付的购买数据。

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

***

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

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

***

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

`String getOriginalJson()`

返回包含In- App商品详细信息的JSON格式字符串。

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

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

`String getProductId()`

返回已购买的In-App商品ID。

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

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

`String getType()`

返回In-App商品类型。

| **Returns:** | <p><br></p>                                                                                                   |
| ------------ | ------------------------------------------------------------------------------------------------------------- |
| String       | [PurchaseClient.ProductType](/dev/chi/tools/billing/v21/references/annotations/purchaseclient.producttype.md) |

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

`String getPrice()`

返回In-App商品价格。

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

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

`String getPriceCurrencyCode()`

返回价格的ISO 4217货币代码。

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

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

`String getPriceAmountMicros()`

价格以微单位返回。1,000,000微单位等于货币的一个单位。

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

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

`String getTitle()`

返回In-App商品的名称。

| **Returns:** | <p><br></p> |
| ------------ | ----------- |
| 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/chi/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.
