public class ProductDetails
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProductDetails.OneTimePurchaseOfferDetails
Represents the offer details to buy a purchase product.
|
static class |
ProductDetails.PricingPhase
Denotes a single pricing phase which denotes how a user
pays at a given point of time.
|
static class |
ProductDetails.PricingPhases
Class contains pricing phases that allow purchasing an item
through an offer.
|
static interface |
ProductDetails.RecurrenceMode
Represents the recurrence modes of the pricing phase.
|
static class |
ProductDetails.SubscriptionOfferDetails
Represents the offer details to buy a subscriptions product.
|
Constructor and Description |
---|
ProductDetails(java.lang.String productDetailsJsonString) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getDescription()
Returns the description of the product.
|
java.lang.String |
getName()
Returns the name of the product being sold.
|
ProductDetails.OneTimePurchaseOfferDetails |
getOneTimePurchaseOfferDetails()
Returns the onetime offer details of a purchase product.
|
java.lang.String |
getProductId()
Returns the product's Id.
|
java.lang.String |
getProductType()
Returns the
BillingClient.ProductType of the product. |
java.util.List<ProductDetails.SubscriptionOfferDetails> |
getSubscriptionOfferDetails()
Returns the subscription offer details of a purchase product.
|
java.lang.String |
getTitle()
Returns the title of the product being sold.
|
int |
hashCode() |
java.lang.String |
toString() |
public ProductDetails(java.lang.String productDetailsJsonString) throws org.json.JSONException
org.json.JSONException
public java.lang.String getProductId()
public java.lang.String getProductType()
BillingClient.ProductType
of the product.public java.lang.String getTitle()
public java.lang.String getName()
public java.lang.String getDescription()
public ProductDetails.OneTimePurchaseOfferDetails getOneTimePurchaseOfferDetails()
public java.util.List<ProductDetails.SubscriptionOfferDetails> getSubscriptionOfferDetails()
public final boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object