AWProduct class

用来存放商品信息的,里面的字段既有iOS专用的也有安卓专用的

Constructors

AWProduct()

Properties

description String?
商品的描述
getter/setter pair
discounts List<ProductDiscount>?
普通优惠,安卓的免费也放到这里了
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
introductDiscount ProductDiscount?
推介促销优惠
getter/setter pair
isFamilyShareable bool
是否支持家庭共享,iOS用
getter/setter pair
originalPrice String?
商品的格式化原价格,包括货币符号。此价格不含税。
getter/setter pair
originalPriceAmount int?
商品原始价格 Android:1000000 个微单位等于 1 单位的货币
getter/setter pair
price String
商品类型,ios使用的: 0:消耗型商品 1:非消耗型商品 2:续期订阅 3:非续期订阅 商品的格式化价格,包括货币符号。此价格不含税。
latefinal
priceAmount int?
商品价格 Android:1000000 个微单位等于 1 单位的货币
getter/setter pair
priceCurrency String?
货币代码
getter/setter pair
productId String
商品ID
latefinal
productType String?
商品类型,安卓使用的:inapp、subs 商品类型,ios使用的: 0:消耗型商品 1:非消耗型商品 2:续期订阅 3:非续期订阅
getter/setter pair
quantity String?
商品的购买数量,iOS用
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionGroupId String?
ios用 订阅群组,ios 用
getter/setter pair
subscriptionPeriod String?
///订阅专用的 订阅周期:采用 ISO 8601 格式指定。例如,P7D 相当于七天
getter/setter pair
title String?
商品的标题
getter/setter pair

Methods

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

Operators

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

Static Properties

PRODUCT_TYPE_INAPP String
final
PRODUCT_TYPE_SUBS String
final

Static Methods

fromAndroidJson(Map<String, dynamic> json) AWProduct
android用
fromIosJson(Map<String, dynamic> json) AWProduct
ios用