# PurchasableReceipt

open class PurchasableReceipt : ValueObject, PurchasableReceiptBase

The information of the item that is paid. This information are used just for the confirmation of the function.

#### Since

2016-12-07

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

#### See also

GamebasePurchasable

## Constructors

PurchasableReceipt
Link copied to clipboard
constructor()

## Properties

currency
Link copied to clipboard
@NonNull
open var currency: String
expiryTime
Link copied to clipboard
open var expiryTime: Long
gamebaseProductId
Link copied to clipboard
@Nullable
open var gamebaseProductId: String
itemSeq
Link copied to clipboard
open var itemSeq: Long
marketItemId
Link copied to clipboard
@NonNull
open var marketItemId: String
originalPaymentId
Link copied to clipboard
@Nullable
open var originalPaymentId: String
payload
Link copied to clipboard
@Nullable
open var payload: String
paymentId
Link copied to clipboard
@Nullable
open var paymentId: String
paymentSeq
Link copied to clipboard
@NonNull
open var paymentSeq: String
price
Link copied to clipboard
open var price: Float
productType
Link copied to clipboard
@NonNull
open var productType: String
purchaseTime
Link copied to clipboard
open var purchaseTime: Long
purchaseToken
Link copied to clipboard
@Nullable
open var purchaseToken: String
purchaseType
Link copied to clipboard
@Nullable
open var purchaseType: String
storeCode
Link copied to clipboard
@NonNull
open var storeCode: String
userId
Link copied to clipboard
@NonNull
open var userId: String

## Functions

from
Link copied to clipboard
open fun from(@Nullable jsonString: String): PurchasableReceipt
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
getGamebaseProductId
Link copied to clipboard
@Nullable
open fun getGamebaseProductId(): String
getMarketItemId
Link copied to clipboard
@NonNull
open fun getMarketItemId(): String
getUserId
Link copied to clipboard
@NonNull
open fun getUserId(): String
setGamebaseProductId
Link copied to clipboard
open fun setGamebaseProductId(@Nullable gamebaseProductId: String)
setUserId
Link copied to clipboard
open fun setUserId(@NonNull userId: String)
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