# ProductDetails.SubscriptionOfferDetails


```
public final class ProductDetails.SubscriptionOfferDetails
```

<br />

*** ** * ** ***

Represents the available purchase plans to buy a subscription product.

## Summary

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.SubscriptionOfferDetails#getBasePlanId()()` Returns the base plan id associated with the subscription product. |
| `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.InstallmentPlanDetails` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.SubscriptionOfferDetails#getInstallmentPlanDetails()()` Returns the additional details of an installment plan. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.SubscriptionOfferDetails#getOfferId()()` Returns the offer id associated with the subscription product. |
| `https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.SubscriptionOfferDetails#getOfferTags()()` Returns the offer tags associated with this Subscription Offer. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.SubscriptionOfferDetails#getOfferToken()()` Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases. |
| `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.PricingPhases` | `https://developer.android.com/reference/com/android/billingclient/api/ProductDetails.SubscriptionOfferDetails#getPricingPhases()()` Returns the pricing phases for the subscription product. |

## Public methods

### getBasePlanId

```
public String getBasePlanId()
```

Returns the base plan id associated with the subscription product.

### getInstallmentPlanDetails

```
public ProductDetails.InstallmentPlanDetails getInstallmentPlanDetails()
```

Returns the additional details of an installment plan.

**Note:** This field is only set for an installment subscription plan. Returns `
null` for other non-installment subscription plans.

### getOfferId

```
public String getOfferId()
```

Returns the offer id associated with the subscription product.

**Note:** This field is only set for a discounted offer. Returns `null` for a regular base plan.

### getOfferTags

```
public List<String> getOfferTags()
```

Returns the offer tags associated with this Subscription Offer.

### getOfferToken

```
public String getOfferToken()
```

Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases.

### getPricingPhases

```
public ProductDetails.PricingPhases getPricingPhases()
```

Returns the pricing phases for the subscription product.