# ProductDetail

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

public class ProductDetail extends Object java.lang.Object ↳ com.gaa.sdk.iap.ProductDetail 顯示In-App支付的購買數據。SummaryPublic constructorsProductDetail(String jsonProductDetail)Public methodsgetOriginalJsonString getOriginalJson()返回包含In- App商品詳細資訊的JSON格式字符串。

| **Returns:** |   |
| ------------ | - |
| String       |   |

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

`String getProductId()`返回已販賣的In-App商品ID。

| **Returns:** |   |
| ------------ | - |
| String       |   |

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

`String getType()`返回In-App商品類型。

| **Returns:** |                            |
| ------------ | -------------------------- |
| String       | PurchaseClient.ProductType |

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

`String getPrice()`返回In-App商品價格。

| **Returns:** |   |
| ------------ | - |
| String       |   |

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

`String getPriceCurrencyCode()`返回價格的ISO 4217貨幣代碼。

| **Returns:** |   |
| ------------ | - |
| String       |   |

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

`String getPriceAmountMicros()`價格以微單位返回。1,000,000微單位等於貨幣的一个個單位。

| **Returns:** |   |
| ------------ | - |
| String       |   |

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

`String getTitle()`返回In-App商品的名稱。

| **Returns:** |   |
| ------------ | - |
| String       |   |

<br>


---

# 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/cht/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.
