ConsumePurchaseData class
Store user's purchase information about consumables, non-consumables, and subscriptions.
Constructors
- ConsumePurchaseData.new({bool? autoRenewing, String? orderId, String? packageName, int? applicationId, String? productId, int? purchaseTime, int? purchaseState, String? developerPayload, String? purchaseToken, int? consumptionState, String? currency, int? price, String? country, String? developerChallenge, int? acknowledged, String? responseCode, String? responseMessage, int? kind, String? productName, int? purchaseTimeMillis, int? confirmed, int? purchaseType, String? payOrderId, String? payType})
- Creates a ConsumePurchaseData object.
- ConsumePurchaseData.fromJson(String str)
-
Creates a ConsumePurchaseData object from a JSON string.
factory
- ConsumePurchaseData.fromMap(Map json)
-
factory
Properties
- acknowledged ↔ int?
-
Receiving status.
getter/setter pair
- applicationId ↔ int?
-
ID of an app that initiates a purchase.
getter/setter pair
- autoRenewing ↔ bool?
-
Indicates whether the subscription is automatically renewed.
getter/setter pair
- confirmed ↔ int?
-
Confirmation.
getter/setter pair
- consumptionState ↔ int?
-
Consumption status.
getter/setter pair
- country ↔ String?
-
Country or region code of a user service area.
getter/setter pair
- currency ↔ String?
-
Currency.
getter/setter pair
- developerChallenge ↔ String?
-
Challenge defined when an app initiates a consumption request, which uniquely identifies the consumption request.
getter/setter pair
- developerPayload ↔ String?
-
Reserved information on the merchant side, which is passed by the app during payment.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind ↔ int?
-
Product type.
getter/setter pair
- orderId ↔ String?
-
Order ID on the Huawei IAP server, which uniquely identifies a transaction and is generated by the Huawei IAP server during payment.
getter/setter pair
- packageName ↔ String?
-
Software package name of the app that initiates a purchase.
getter/setter pair
- payOrderId ↔ String?
-
Merchant ID, which uniquely identifies a transaction and is generated by the Huawei IAP server during payment.
getter/setter pair
- payType ↔ String?
-
Payment method.
getter/setter pair
- price ↔ int?
-
Value after the actual price of a product is multiplied by 100.
getter/setter pair
- productId ↔ String?
-
Product ID.
getter/setter pair
- productName ↔ String?
-
Product name.
getter/setter pair
- purchaseState ↔ int?
-
Order status.
getter/setter pair
- purchaseTime ↔ int?
-
Purchase time.
getter/setter pair
- purchaseTimeMillis ↔ int?
-
Purchase timestamp from 00:00:00 on January 1, 1970 to the purchase time, in millionseconds.
getter/setter pair
- purchaseToken ↔ String?
-
Purchase token, which uniquely identifies the mapping between a product and a user.
getter/setter pair
- purchaseType ↔ int?
-
Purchase type.
getter/setter pair
- responseCode ↔ String?
-
Response code.
getter/setter pair
- responseMessage ↔ String?
-
Response information.
getter/setter pair
- 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
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override