QProductStoreDetails class

This class contains all the information about the concrete Google product, either subscription or in-app. In case of a subscription also determines concrete base plan.

Annotations
  • @JsonSerializable()

Constructors

QProductStoreDetails(String? basePlanId, String productId, String name, String title, String description, List<QProductOfferDetails>? subscriptionOfferDetails, QProductOfferDetails? defaultSubscriptionOfferDetails, QProductOfferDetails? basePlanSubscriptionOfferDetails, QProductInAppDetails? inAppOfferDetails, bool hasTrialOffer, bool hasIntroOffer, bool hasTrialOrIntroOffer, QProductType productType, bool isInApp, bool isSubscription, bool isPrepaid)
const
QProductStoreDetails.fromJson(Map<String, dynamic> json)
factory

Properties

basePlanId String?
Identifier of the base plan to which these details relate. Null for in-app products.
final
basePlanSubscriptionOfferDetails QProductOfferDetails?
Subscription offer details containing only the base plan without any offer.
final
defaultSubscriptionOfferDetails QProductOfferDetails?
The most profitable subscription offer for the client in our opinion from all the available offers. We calculate the cheapest price for the client by comparing all the trial or intro phases and the base plan.
final
description String
Description of the subscription or the in-app product.
final
hashCode int
The hash code for this object.
no setterinherited
hasIntroOffer bool
True, if there is any eligible offer with an intro price for this subscription and base plan combination. False otherwise or for an in-app product.
final
hasTrialOffer bool
True, if there is any eligible offer with a trial for this subscription and base plan combination. False otherwise or for an in-app product.
final
hasTrialOrIntroOffer bool
True, if there is any eligible offer with a trial or an intro price for this subscription and base plan combination. False otherwise or for an in-app product.
final
inAppOfferDetails QProductInAppDetails?
Offer details for the in-app product. Null for subscriptions.
final
isInApp bool
True, if the product type is InApp.
final
isPrepaid bool
True, if the subscription product is prepaid, which means that users pay in advance - they will need to make a new payment to extend their plan.
final
isSubscription bool
True, if the product type is Subscription.
final
name String
Name of the subscription or the in-app product.
final
productId String
Identifier of the subscription or the in-app product.
final
productType QProductType
The calculated type of the current product.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionOfferDetails List<QProductOfferDetails>?
Offer details for the subscription. Offer details contain all the available variations of purchase offers, including both base plan and eligible base plan + offer combinations from Google Play Console for current basePlanId. Null for in-app products.
final
title String
Title of the subscription or the in-app product. The title includes the name of the app.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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