Revenue class

The class contains information about income from in-app purchases. You can set:

  • price - cost. It can be negative, for example, for a refund;
  • currency - the currency code of the purchase according to the standard ISO 4217;
  • quantity — number of purchases (purchased goods).;
  • productID - purchase ID. It can contain up to 200 characters;
  • payload - additional information about the purchase. The string must contain valid JSON. The maximum size of the value is 30 KB;
  • receipt — in-app purchase information from Google Play/App Store;
  • transactionID - ID of the purchase transaction in the App Store. This parameter is relevant only for iOS.

Constructors

Revenue(Decimal price, String currency, {int? quantity, String? productId, String? payload, Receipt? receipt, String? transactionId})
Creates an object with information about income from in-app purchases. The parameters price, currency are required.

Properties

currency String
final
hashCode int
The hash code for this object.
no setterinherited
payload String?
final
price → Decimal
final
productId String?
final
quantity int?
final
receipt Receipt?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionId String?
final

Methods

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

Operators

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