Revenue

open class Revenue

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun isValid(): Boolean

Verifies that revenue object is valid and contains the required fields

Link copied to clipboard
fun setReceipt(receipt: String, receiptSignature: String): Revenue

Set the receipt and receipt signature. Both fields are required to verify the revenue event.

Link copied to clipboard
fun toRevenueEvent(): RevenueEvent

Properties

Link copied to clipboard
var price: Double? = null

The Price field (required).

Link copied to clipboard
var productId: String? = null

The Product ID field.

Link copied to clipboard
var properties: MutableMap<String, Any?>? = null

The Revenue Event Properties field with (optional).

Link copied to clipboard
var quantity: Int = 1

The Quantity field (defaults to 1).

Link copied to clipboard
var receipt: String? = null

The Receipt field (required if you want to verify the revenue event).

Link copied to clipboard
var receiptSig: String? = null

The Receipt Signature field (required if you want to verify the revenue event).

Link copied to clipboard
var revenue: Double? = null

The revenue amount

Link copied to clipboard
var revenueType: String? = null

The Revenue Type field (optional).