SparkVirtualGood

Contains configuration information for the virtual good

The methods in this class respect the segments of the current player when being executed

getName

signature getName()

returns string

validity All Scripts

Returns the name of the virtual good

getDescription

signature getDescription()

returns string

validity All Scripts

Returns the description of the virtual good

getCurrency1Cost

signature getCurrency1Cost()

returns number

validity All Scripts

Returns the currency1Cost of the virtual good

getCurrency2Cost

signature getCurrency2Cost()

returns number

validity All Scripts

Returns the currency1Cost of the virtual good

getCurrency3Cost

signature getCurrency3Cost()

returns number

validity All Scripts

Returns the currency3Cost of the virtual good

getCurrency4Cost

signature getCurrency4Cost()

returns number

validity All Scripts

Returns the currency4Cost of the virtual good

getCurrency5Cost

signature getCurrency5Cost()

returns number

validity All Scripts

Returns the currency5Cost of the virtual good

getCurrency6Cost

signature getCurrency6Cost()

returns number

validity All Scripts

Returns the currency6Cost of the virtual good

getShortCode

signature getShortCode()

returns string

validity All Scripts

Returns the short code of the virtual good

getGooglePlayProductId

signature getGooglePlayProductId()

returns string

validity All Scripts

Returns the Google Play ProductId of the virtual good

getIosAppStoreProductId

signature getIosAppStoreProductId()

returns string

validity All Scripts

Returns the iOS ProductId of the virtual good

getWP8StoreProductId

signature getWP8StoreProductId()

returns string

validity All Scripts

Returns the WP8 ProductId of the virtual good

getW8StoreProductId

signature getW8StoreProductId()

returns string

validity All Scripts

Returns the W8 ProductId of the virtual good

getAmazonStoreProductId

signature getAmazonStoreProductId()

returns string

validity All Scripts

Returns the Amazon Product Id of the virtual good

getSteamStoreProductId

signature getSteamStoreProductId()

returns string

validity All Scripts

Returns the Steam Product Id of the virtual good

getPsnStoreProductId

signature getPsnStoreProductId()

returns string

validity All Scripts

Returns the PSN Product Id of the virtual good

getType

signature getType()

returns string

validity All Scripts

Returns the type of the virtual good

getTags

signature getTags()

returns string[]

validity All Scripts

Returns the tags of the virtual good

getMaxQuantity

signature getMaxQuantity()

returns number

validity All Scripts

Returns the max quantity of the virtual good

getBundledGoods

signature getBundledGoods()

returns JSON

validity All Scripts

Returns the bundled goods of the virtual good

isDisabled

signature isDisabled()

returns boolean

validity All Scripts

Returns whether this VirtualGood is hidden

getPropertySet

signature getPropertySet()

returns JSON

validity All Scripts

Returns the property set associated with this virtual good

getCurrencyCosts

signature getCurrencyCosts()

returns JSON

validity All Scripts

Returns the currency cost map associated with this virtual good

Did this page help you? Please enter your feedback below. For questions about using this part of the platform, please contact support here