# BundledSubscription

# BundledSubscription

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/common/datamodel/BundledSubscription "View this page in Java")  

<br />

```
class BundledSubscription
```

<br />

*** ** * ** ***

An object representing a bundled subscription.

## Summary

|                                                                                                                                                  ### Nested types                                                                                                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[BundledSubscription.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BundledSubscription.Builder) Builder class for[BundledSubscription](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BundledSubscription). |

|                            ### Public functions                             |
|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)`!` | [toBundle](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BundledSubscription#toBundle())`()` |

|                                                                                                                   ### Public properties                                                                                                                    |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                                                                                        | [bundledSubscriptionProviderPackageName](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BundledSubscription#bundledSubscriptionProviderPackageName()) |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[SubscriptionEntitlement](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/SubscriptionEntitlement)`!>!` | [entitlements](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BundledSubscription#entitlements())                                                     |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!`                                                                                                                                                                            | [expirationTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BundledSubscription#expirationTimeMillis())                                     |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                                 | [subscriptionType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/BundledSubscription#subscriptionType())                                             |

## Public functions

### toBundle

```
fun toBundle(): Bundle!
```  

## Public properties

### bundledSubscriptionProviderPackageName

```
val bundledSubscriptionProviderPackageName: String!
```  

### entitlements

```
val entitlements: ImmutableList<SubscriptionEntitlement!>!
```  

### expirationTimeMillis

```
val expirationTimeMillis: Long!
```  

### subscriptionType

```
val subscriptionType: Int
```