Gamebase SDK for Android  2.39.0
NHN Cloud Gamebase Platform
PurchasableReceipt Class Reference

The information of the item that is paid. More...

Inheritance diagram for PurchasableReceipt:
Inheritance graph
Collaboration diagram for PurchasableReceipt:
Collaboration graph

Public Member Functions

String toJsonString ()
 
String toPrettyJsonString ()
 
String toString ()
 

Static Public Member Functions

static PurchasableReceipt from (@Nullable String jsonString)
 Factory method to create VO instance. More...
 
static< T > T fromJson (@NonNull String json, Class< T > classOfT)
 
static< T > T fromJson (@NonNull JSONObject jsonObject, Class< T > classOfT)
 
static< T > T fromJson (@NonNull String json, Type type)
 

Public Attributes

long itemSeq
 
float price
 
String currency
 
String paymentSeq
 
String purchaseToken
 
String marketItemId
 
String productType
 
String userId
 
String paymentId
 
String originalPaymentId
 
String payload
 
long purchaseTime
 
long expiryTime
 
String purchaseType
 
String gamebaseProductId
 

Detailed Description

The information of the item that is paid.

This information are used just for the confirmation of the function.

See also
GamebaseToastPurchasable#purchase(Activity, String, String, String, JSONObject, String, Function2)
GamebaseToastPurchasable#requestConsumablePurchases(Activity, String, Function2)
GamebaseToastPurchasable#requestActivatedPurchases(Activity, String, Function2)
Since
2016-12-07 @update 2020-06-23 Change main key to 'gamebaseProductId' from 'itemSeq'.

Member Function Documentation

◆ from()

static PurchasableReceipt from ( @Nullable String  jsonString)
static

Factory method to create VO instance.

Parameters
jsonStringExtracts the VO class instance from this JSON String.
Returns
VO instance
Here is the call graph for this function:

◆ fromJson() [1/3]

static <T> T fromJson ( @NonNull JSONObject  jsonObject,
Class< T >  classOfT 
)
staticinherited
Here is the call graph for this function:

◆ fromJson() [2/3]

static <T> T fromJson ( @NonNull String  json,
Class< T >  classOfT 
)
staticinherited
Here is the caller graph for this function:

◆ fromJson() [3/3]

static <T> T fromJson ( @NonNull String  json,
Type  type 
)
staticinherited

◆ toJsonString()

String toJsonString ( )
inherited
Here is the caller graph for this function:

◆ toPrettyJsonString()

String toPrettyJsonString ( )
inherited

◆ toString()

String toString ( )
inherited

Reimplemented in TransferAccountRenewConfiguration.

Here is the call graph for this function:

Member Data Documentation

◆ currency

String currency

◆ expiryTime

long expiryTime

◆ gamebaseProductId

String gamebaseProductId

◆ itemSeq

long itemSeq

◆ marketItemId

String marketItemId

◆ originalPaymentId

String originalPaymentId

◆ payload

String payload

◆ paymentId

String paymentId

◆ paymentSeq

String paymentSeq

◆ price

float price

◆ productType

String productType

◆ purchaseTime

long purchaseTime

◆ purchaseToken

String purchaseToken

◆ purchaseType

String purchaseType

◆ userId

String userId