# AlternativeChoiceDetails.Product

# AlternativeChoiceDetails.Product

<br />

```
public class AlternativeChoiceDetails.Product
```

<br />

*** ** * ** ***

Details about a product being purchased.

## Summary

|                           ### Public methods                            |
|-------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean`                                                               | ~~[equals](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#equals(java.lang.Object))~~`(`[Object](https://developer.android.com/reference/java/lang/Object.html)` o)`                                                                 |
| [String](https://developer.android.com/reference/java/lang/String.html) | ~~[getId](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#getId())~~`()` Returns the id of the product being purchased.                                                                                                               |
| [String](https://developer.android.com/reference/java/lang/String.html) | ~~[getOfferToken](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#getOfferToken())~~`()` Returns the offer token that was passed in launchBillingFlow to purchase the product.                                                        |
| [String](https://developer.android.com/reference/java/lang/String.html) | ~~[getType](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#getType())~~`()` Returns the[ProductType](https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ProductType)of the product being purchased. |
| `int`                                                                   | ~~[hashCode](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#hashCode())~~`()`                                                                                                                                                        |
| [String](https://developer.android.com/reference/java/lang/String.html) | ~~[toString](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#toString())~~`()`                                                                                                                                                        |

## Public methods

### equals

```
public boolean [equals](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#equals(java.lang.Object))(Object o)
```  

### getId

```
public String [getId](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#getId())()
```

Returns the id of the product being purchased.  

### getOfferToken

```
public String [getOfferToken](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#getOfferToken())()
```

Returns the offer token that was passed in launchBillingFlow to purchase the product.  

### getType

```
public String [getType](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#getType())()
```

Returns the[ProductType](https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ProductType)of the product being purchased.  

### hashCode

```
public int [hashCode](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#hashCode())()
```  

### toString

```
public String [toString](https://developer.android.com/reference/com/android/billingclient/api/AlternativeChoiceDetails.Product#toString())()
```