InappifyPurchaseRequest class
Purchase input shared by Dart, JavaScript, and native SDK backends.
idempotencyKey identifies this logical attempt. Implementations must keep it unchanged when retrying the same platform request and must not log store purchase tokens returned by a billing provider.
- Annotations
Constructors
- InappifyPurchaseRequest({required String productIdentifier, required String offeringIdentifier, required String idempotencyKey, String? packageIdentifier, String? discountCode, String? country, String? appVersion, String? apiKey, int discount = 0, bool isCrypto = false, Market market = Market.none, String? marketKey, bool isLostPurchase = false, String? lostPurchaseToken, int? lostPurchaseTime, InappifyProductType? productType, PackageModel? packageToPurchase, String? dynamicPriceToken, int? paywallId, int? paywallRevision, InappifyRequestCancellation? cancellation})
-
const
Properties
- apiKey → String?
-
final
- appVersion → String?
-
final
- cancellation → InappifyRequestCancellation?
-
Cooperative browser request cancellation; never serialized to a channel.
final
- country → String?
-
final
- discount → int
-
final
- discountCode → String?
-
final
- dynamicPriceToken → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idempotencyKey → String
-
final
- isCrypto → bool
-
final
- isLostPurchase → bool
-
final
- lostPurchaseTime → int?
-
final
- lostPurchaseToken → String?
-
final
- market → Market
-
final
- marketKey → String?
-
final
- offeringIdentifier → String
-
final
- packageIdentifier → String?
-
final
- packageToPurchase → PackageModel?
-
final
- paywallId → int?
-
final
- paywallRevision → int?
-
final
- productIdentifier → String
-
final
- productType → InappifyProductType?
-
Omit for the native SDK's unknown in-app product classification when omitted.
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
-
toMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited