QPurchaseModel class

Used to provide all the necessary purchase data to the Qonversion.purchase method. Can be created manually or using the QProduct.toPurchaseModel method.

If offerId is not specified for Android, then the default offer will be applied. To know how we choose the default offer, see QProductStoreDetails.defaultSubscriptionOfferDetails.

If you want to remove any intro/trial offer from the purchase on Android (use only a bare base plan), call the removeOffer method.

Constructors

QPurchaseModel(String productId, {String? offerId})

Properties

applyOffer bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
offerId String?
getter/setter pair
productId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeOffer() QPurchaseModel
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited