# Button Merchant Library

Version: 1.6.1

### androidJvm

## Overview
The Button Merchant library provides a set of classes and interfaces that facilitate integration with the Button Merchant platform.

### Key Classes
- **[ButtonMerchantLibrary](https://building.usebutton.com/button-merchant-android/latest/index.html)**
- **[com.usebutton.merchant](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/index.html)**
- **[ActivityReportingTask](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-activity-reporting-task/index.html)**
- **[ButtonMerchant](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-merchant/index.html)**
- **[AttributionTokenListener](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-merchant/-attribution-token-listener/index.html)**
- **[ButtonProduct](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-product/index.html)**
- **[ButtonProductCompatible](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-product-compatible/index.html)**
- **[Order](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order/index.html)**
- **[Builder](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order/-builder/index.html)**
- **[Customer](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order/-customer/index.html)**
- **[LineItem](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order/-line-item/index.html)**
- **[OrderListener](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order-listener/index.html)**
- **[PostInstallIntentListener](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-post-install-intent-listener/index.html)**
- **[UserActivityListener](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-user-activity-listener/index.html)**

### Exception Classes
- **[com.usebutton.merchant.exception](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/index.html)**
    - **[ApplicationIdNotFoundException](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/-application-id-not-found-exception/index.html)**
    - **[ButtonNetworkException](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/-button-network-exception/index.html)**
    - **[HttpStatusException](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/-http-status-exception/index.html)**
    - **[NetworkNotFoundException](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/-network-not-found-exception/index.html)**

### Module Classes
- **[com.usebutton.merchant.module](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/index.html)**
    - **[ButtonUserActivity](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/index.html)**
    - **[Features](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-features/index.html)**

## Methods
### setQuantity
```kotlin
open fun [setQuantity](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order/-line-item/-builder/set-quantity.html)(quantity: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Order.LineItem.Builder](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order/-line-item/-builder/index.html)
```
The number of unique units represented by this line item (default is 1).
