ProductDetails

public final class ProductDetails


Represents the details of a one time or subscription product.

Summary

Nested types

Represents additional details of an installment subscription plan.

Represents the offer details to buy an one-time purchase product.

public final class ProductDetails.PricingPhase

Represents a pricing phase, describing how a user pays at a point in time.

Pricing phases for purchasing an item through a offer.

@Retention(value = java.lang.annotation.RetentionPolicy.SOURCE)
public annotation ProductDetails.RecurrenceMode

Recurrence mode of the pricing phase.

Represents the available purchase plans to buy a subscription product.

Public methods

boolean
String

Returns the description of the product.

String

Returns the name of the product being sold.

ProductDetails.OneTimePurchaseOfferDetails

Returns the offer details of an one-time purchase product.

String

Returns the product's Id.

String

Returns the ProductType of the product.

List<ProductDetails.SubscriptionOfferDetails>

Returns a list containing all available offers to purchase a subscription product.

String

Returns the title of the product being sold.

int
String

Public methods

equals

public boolean equals(Object o)

getDescription

public String getDescription()

Returns the description of the product.

getName

public String getName()

Returns the name of the product being sold.

This method is similar to getTitle but does not include the name of the app which owns the product. Example: 100 Gold Coins

getOneTimePurchaseOfferDetails

public ProductDetails.OneTimePurchaseOfferDetails getOneTimePurchaseOfferDetails()

Returns the offer details of an one-time purchase product.

getProductId

public String getProductId()

Returns the product's Id.

getProductType

public String getProductType()

Returns the ProductType of the product.

getSubscriptionOfferDetails

public List<ProductDetails.SubscriptionOfferDetailsgetSubscriptionOfferDetails()

Returns a list containing all available offers to purchase a subscription product.

Note: OfferDetails is only set for SUBS product type. Returns null for INAPP product type.

getTitle

public String getTitle()

Returns the title of the product being sold.

The title includes the name of the app which owns the product. Example: 100 Gold Coins (Coin selling app).

hashCode

public int hashCode()

toString

public String toString()