PurchaseFlowParams.Builder
Last updated
Last updated
public final class PurchaseFlowParams.Builder extends Object
java.lang.Object
↳ com.gaa.sdk.iap.PurchaseFlowParams.Builder
是易于创建PurchaseFlowParams实例(instance)的builder。
PurchaseFlowParams.Builder setProductId(String productId)
PurchaseFlowParams.Builder setProductType(String productType)
PurchaseFlowParams.Builder setProductType(String productName)
PurchaseFlowParams.Builder setDeveloperPayload(String developerPayload)
PurchaseFlowParams.Builder setGameUserId(String gameUserId)
PurchaseFlowParams.Builder setPromotionApplicable(boolean promotion)
PurchaseFlowParams.Builder setQuantity(int quantity)
PurchaseFlowParams.Builder setSubscriptionUpdateParams(SubscriptionUpdateParams params)
PurchaseFlowParams
build()
生成PurchaseFlowParams的实例(instance)。
Parameters:
productId
In-App商品ID
Returns:
PurchaseFlowParams.Builder
Parameters:
productType
In-App商品的商品类型 PurchaseClient.ProductType
Returns:
PurchaseFlowParams.Builder
Parameters:
productName
不是注册的商品名字,而是购买当时显示的商品名字
Returns:
PurchaseFlowParams.Builder
Parameters:
developerPayload
开发公司的payload
Returns:
PurchaseFlowParams.Builder
Parameters:
gameUserId
开发公司可以确认的用户ID
Returns:
PurchaseFlowParams.Builder
Parameters:
promotion
是否可以进行促销
Returns:
PurchaseFlowParams.Builder
Parameters:
quantity
商品数量
Returns:
PurchaseFlowParams.Builder
Parameters:
params
定期支付商品的升级或降级模式 PurchaseFlowParams.SubscriptionUpdateParams
Returns:
PurchaseFlowParams.Builder
Returns: