isValidLogPurchaseInput

fun isValidLogPurchaseInput(productId: String?, currencyCode: String?, price: BigDecimal?, quantity: Int, serverConfigStorageProvider: ServerConfigStorageProvider): Boolean

Validates the log purchase event parameters.

Return

true if all log purchase event parameters are valid.

Parameters

productId

The product Id. Must be non-empty and not in the blocklist.

currencyCode

The currency code. Must be non-empty and in the list of VALID_CURRENCY_CODES.

price

The price. Must not be null.

quantity

The quantity of purchases. Must be 1 or greater.

serverConfigStorageProvider

The server configuration. Used to check against blocklisted purchases.