# ConsumeParams

```
public class ConsumeParams extends Object
```

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

<br>

It is a parameter for consuming purchased in-app products.

**See Also:**

[PurchaseClient.consumeAsync](https://dev.onestore.co.kr/wiki/en/doc/purchaseclient-5833436.html)(ConsumeParams, [ConsumeListener](https://dev.onestore.co.kr/wiki/en/doc/consumelistener-5833433.html))<br>

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

***

| Nested classes |                                                                                                                                                                                              |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| class          | <p><a href="https://dev.onestore.co.kr/wiki/en/doc/consumeparams-builder-5833450.html">ConsumeParams.Builder</a></p><p>It is a builder for easy creation of the ConsumeParams instances.</p> |

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

***

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

```
 getPurchaseData()
```

It returns the purchase data of in-app products.

| **Returns:**                                                                     |             |
| -------------------------------------------------------------------------------- | ----------- |
| [PurchaseData](https://dev.onestore.co.kr/wiki/en/doc/purchasedata-5833442.html) | <p><br></p> |

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

```
String getDeveloperPayload()
```

It returns the payload specified by developers.

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

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

```
 newBuilder()
```

It generates a builder for creating the ConsumeParams instances.

| **Returns:**                                                                                       |             |
| -------------------------------------------------------------------------------------------------- | ----------- |
| [ConsumeParams.Builder](https://dev.onestore.co.kr/wiki/en/doc/consumeparams-builder-5833450.html) | <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/consumeparams.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.
