| Modifier and Type | Method and Description |
|---|---|
Revenue |
build()
Creates the
Revenue instance. |
Revenue.Builder |
withPayload(java.lang.String payload)
Sets additional information about the purchase.
|
Revenue.Builder |
withProductID(java.lang.String productID)
Sets the custom ID of the product purchased.
|
Revenue.Builder |
withQuantity(java.lang.Integer quantity)
Sets the quantity of products purchased.
|
Revenue.Builder |
withReceipt(Revenue.Receipt receipt)
Sets the receipt information about the purchase.
|
@NonNull public Revenue.Builder withQuantity(@Nullable java.lang.Integer quantity)
It is an optional value.
quantity - Quantity of products purchasedRevenue.Builder objectRevenue.quantity@NonNull public Revenue.Builder withProductID(@Nullable java.lang.String productID)
It is an optional value.
productID - ID of the productRevenue.Builder objectRevenue.productID@NonNull public Revenue.Builder withPayload(@Nullable java.lang.String payload)
payload - Additional info to be passed about the purchase. It should contain the valid JSON stringRevenue.Builder objectRevenue.payload@NonNull public Revenue.Builder withReceipt(@Nullable Revenue.Receipt receipt)
Used only for in-app purchases.
receipt - Purchase receipt dataRevenue.Builder objectRevenue.receipt,
Revenue.Receipt