# PurchasableItem

open class PurchasableItem : ValueObject

The information of the item that can buy. The function purchase must use 'gamebaseProductId' value in this class.

#### Since

2016-12-07

Updated in 2020-06-23 Change main key to 'gamebaseProductId' from 'itemSeq'.

#### See also

GamebaseToastPurchasable

## Constructors

PurchasableItem
Link copied to clipboard
constructor()

## Properties

currency
Link copied to clipboard
@Nullable
open var currency: String
gamebaseProductId
Link copied to clipboard
@Nullable
open var gamebaseProductId: String
isActive
Link copied to clipboard
open var isActive: Boolean
itemName
Link copied to clipboard
@Nullable
open var itemName: String
itemSeq
Link copied to clipboard
open var itemSeq: Long
localizedDescription
Link copied to clipboard
@Nullable
open var localizedDescription: String
localizedPrice
Link copied to clipboard
@Nullable
open var localizedPrice: String
localizedTitle
Link copied to clipboard
@Nullable
open var localizedTitle: String
marketItemId
Link copied to clipboard
@NonNull
open var marketItemId: String
price
Link copied to clipboard
open var price: Float
productType
Link copied to clipboard
@NonNull
open var productType: String

## Functions

from
Link copied to clipboard
open fun from(@Nullable jsonString: String): PurchasableItem
Factory method to create VO instance.
fromJson
Link copied to clipboard
open fun <T> fromJson(@NonNull json: String, classOfT: Class<T>): T
open fun <T> fromJson(@NonNull json: String, type: Type): T
open fun <T> fromJson(@NonNull jsonObject: JSONObject, classOfT: Class<T>): T
toJsonString
Link copied to clipboard
open fun toJsonString(): String
toPrettyJsonString
Link copied to clipboard
open fun toPrettyJsonString(): String
toString
Link copied to clipboard
open fun toString(): String