# QueryPurchasesParams.Builder


```
public class QueryPurchasesParams.Builder
```

<br />

*** ** * ** ***

Helps construct `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams` required to query purchases.

## Summary

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams` | `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams.Builder#build()()` Returns an instance of `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams`. |
| `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams.Builder#includeSuspendedSubscriptions(boolean)(boolean includeSuspendedSubscriptions)` Set whether to include suspended subscription purchases. |
| `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams.Builder#setProductType(java.lang.String)(https://developer.android.com/reference/java/lang/String.html productType)` Set the `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ProductType` to query purchases. |

## Public methods

### build

```
public QueryPurchasesParams build()
```

Returns an instance of `https://developer.android.com/reference/com/android/billingclient/api/QueryPurchasesParams`.

### includeSuspendedSubscriptions

```
public QueryPurchasesParams.Builder includeSuspendedSubscriptions(boolean includeSuspendedSubscriptions)
```

Set whether to include suspended subscription purchases.

### setProductType

```
public QueryPurchasesParams.Builder setProductType(String productType)
```

Set the `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ProductType` to query purchases.