# ConsumeParams

### ConsumeParams <a href="#id-cn-consumeparams-consumeparams" id="id-cn-consumeparams-consumeparams"></a>

`public class ConsumeParams extends Object java.lang.Object ↳ com.gaa.sdk.iap.ConsumeParams` 用於使用已購買的In-App商品的參數。 **See Also:** PurchaseClient.consumeAsync(ConsumeParams, ConsumeListener)

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

***

| **Nested classes** |                                                               |
| ------------------ | ------------------------------------------------------------- |
| class              | ConsumeParams.Builder 是易於創建ConsumeParams實例（instance）的builder。 |

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

***

#### getPurchaseData <a href="#id-cn-consumeparams-getpurchasedata" id="id-cn-consumeparams-getpurchasedata"></a>

`PurchaseData getPurchaseData()`返回In-App商品的購買數據。

| **Returns:** |   |
| ------------ | - |
| PurchaseData |   |

#### getDeveloperPayload <a href="#id-cn-consumeparams-getdeveloperpayload" id="id-cn-consumeparams-getdeveloperpayload"></a>

`String getDeveloperPayload()`返回開發公司指定的payload。

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

#### newBuilder <a href="#id-cn-consumeparams-newbuilder" id="id-cn-consumeparams-newbuilder"></a>

`ConsumeParams.Builder newBuilder()`生成用於創建ConsumeParams實例（instance）的builder。

| **Returns:**          |   |
| --------------------- | - |
| ConsumeParams.Builder |   |

\
