GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
pdistd::MNPCommerce Class Reference

NP Commerce Interface. More...

Inheritance diagram for pdistd::MNPCommerce:
System::Object

Public Member Functions

 MNPCommerce ()
 constructor taking no param More...
 
Bool initialize ()
 sceNpCommerce2Init + sceNpCommerce2CreateCtx - Initialize the NP IN-GAME commerce 2 utility More...
 
Bool finalize ()
 sceNpCommerce2Term - Terminate the NP IN-GAME commerce 2 utility More...
 
Bool startCreateSession ()
 sceNpCommerce2CreateSessionStart - Start creating a commerce 2 session More...
 
Map getSessionInfo ()
 Returns session info. More...
 
Bool startCheckout (Array< String > sku_ids)
 sceNpCommerce2DoCheckoutStartAsync - Start checkout More...
 
void endCheckout ()
 Ends checkout. More...
 
Bool beginGetCategoryInfo (String categoryId, Int startPosition=0, Int maxCountOfResults=0)
 sceNpCommerce2GetCategoryContentsStart - Start obtaining category content data More...
 
void endGetCategoryInfo ()
 sceNpCommerce2DestroyGetCategoryContentsResult - Destroy category content data More...
 
Map getCategoryInfo ()
 sceNpCommerce2GetCategoryInfo - Take out category information More...
 
Bool beginGetProductInfo (String categoryId, String productId)
 sceNpCommerce2GetProductInfoStart - Start obtaining product data More...
 
void endGetProductInfo ()
 sceNpCommerce2DestroyGetProductInfoResult - Destroy product information More...
 
Map getProductInfo ()
 sceNpCommerce2GetGameProductInfo - Take out game product information More...
 
String getPrice (Int price)
 sceNpCommerce2GetPrice - Obtain the price (string) More...
 
Bool openProductCodeInputDialog ()
 sceNpCommerce2DoProductCodeStartAsync - Start promotion code input processing More...
 
Bool finalizeProductCodeInputDialogRequest ()
 sceNpCommerce2DoProductCodeFinishAsync - End promotion code input processing More...
 
void finalizeProductCodeInputDialog ()
 
Int getRootErrorCode ()
 
Int getLastErrorCode ()
 
Int getLastResultCode ()
 
- Public Member Functions inherited from System::Object
 Object ()
 constructor taking no param More...
 
Bool isInstanceOf (Class classType)
 Returns whether an object is of a specific class/type. More...
 
Object getDeepCopy ()
 Gets a deep copy of this object. More...
 
void setDeepCopy (Object obj)
 Unk. More...
 
String dump ()
 Dumps all info about an object. More...
 
Object getObjectAttribute (string path)
 
void setObjectAttribute (string path, Object value)
 
Bool hasPrimitiveInterface ()
 Returns whether this object has a primitive interface. More...
 
Bool toBool ()
 Casts this object to Bool. More...
 
Byte toByte ()
 Casts this object to Byte. More...
 
Short toShort ()
 Casts this object to Short. More...
 
Int toInt ()
 Casts this object to Int. More...
 
Long toLong ()
 Casts this object to Long. More...
 
UByte toUByte ()
 Casts this object to UByte. More...
 
UShort toUShort ()
 Casts this object to UShort. More...
 
UInt toUInt ()
 Casts this object to UInt. More...
 
ULong toULong ()
 Casts this object to ULong. More...
 
Float toFloat ()
 Casts this object to Float. More...
 
Double toDouble ()
 Casts this object to Double. More...
 
String toString ()
 Casts this object to String. More...
 
Symbol toSymbol ()
 Casts this object to Symbol. More...
 
Bool hasArrayInterface ()
 Returns whether this object has an Array interface. More...
 
Int getArrayCount ()
 Gets the Array item count for this object. More...
 
void setArrayCount ()
 Sets the Array item count for this object. More...
 
Object getArrayElement (Object arg0)
 Gets an Array item for this object. More...
 
void setArrayElement (Object arg0, Object arg1)
 Sets the Array item for this object. More...
 
Bool hasMapInterface ()
 Returns whether this object has a Map interface. More...
 
int getMapCount ()
 Returns the count of items in the map. More...
 
void setMapElement (Object arg0, Object arg1)
 Returns whether the Map has a specific object key. Bool hasMapElement(Object arg0);. More...
 
Object getMapElement (Object arg0)
 Gets a Map element by key. More...
 
void hasGeneratorInterface ()
 Returns whether this object has a generator interface. More...
 
Iterator generator ()
 Returns generator (?) More...
 
void hasIteratorInterface ()
 Returns whether this object has an iterator. More...
 
Iterator iterator ()
 Gets the iterator for this object. More...
 
void hasVariableInterface ()
 Returns whether this object is a variable. More...
 
void hasFunctionInterface ()
 Returns whether this object has a function interface. More...
 
Object call ()
 Calls this object as a function. More...
 
Bool hasByteDataInterface ()
 Returns whether this object has a byte data interface. More...
 
Int getByteDataCount ()
 Returns the ByteData size for this object. More...
 
void setByteDataCount (Int count)
 Sets the ByteData size for this object. More...
 
Int getByteDataCapacity ()
 Returns the ByteData capacity for this object. More...
 
void setByteDataCapacity (Int capacity)
 Sets the ByteData capacity for this object. More...
 
ByteData getByteData ()
 Gets the underlaying ByteData. More...
 
void setByteData (ByteData bytedata)
 Sets the underlaying ByteData. More...
 
void hasObjectSelectorInterface ()
 Returns whether this object has an object selector interface. More...
 
void self ()
 Gets the get for this object if it has a get interface. More...
 
void getArchiveTree ()
 
void setArchiveTree ()
 
ByteData serialize ()
 Serializes this object. More...
 
void deserialize (ByteData serializedData)
 Deserializes this object. More...
 
void defined (Object obj)
 Returns whether a certain object is defined within this object. More...
 
Array find_all (FunctionObject func)
 Finds all the elements in this object that matches the predicates. More...
 
void each_all (FunctionObject func)
 Applies callback to all elements in this object. More...
 
Array map_all (FunctionObject< Object > func)
 Maps all the elements in this object. More...
 
Bool operator!= ()
 Returns whether this object is not equal to another. More...
 
Bool operator== ()
 Returns whether this object is equal to another. More...
 

Static Public Member Functions

static void updateCommerce ()
 

Additional Inherited Members

- Public Attributes inherited from System::Object
Int rc_size
 Getter-only. Reference counter size of this object. More...
 
Object rc_class
 Getter-only. Type name of the object. More...
 
Int rc_count
 Getter-only. Reference count of this object. More...
 
Int weak_count
 Getter-only. Weak reference count of this object. More...
 
Class class_id
 Class (type) object for this object. More...
 

Detailed Description

NP Commerce Interface.

Definition at line 6 of file MNPCommerce.cpp.

Constructor & Destructor Documentation

◆ MNPCommerce()

pdistd::MNPCommerce::MNPCommerce ( )
inline

constructor taking no param

Definition at line 10 of file MNPCommerce.cpp.

Member Function Documentation

◆ beginGetCategoryInfo()

Bool pdistd::MNPCommerce::beginGetCategoryInfo ( String  categoryId,
Int  startPosition = 0,
Int  maxCountOfResults = 0 
)

sceNpCommerce2GetCategoryContentsStart - Start obtaining category content data

Parameters
categoryIdCategory id
startPositionStart Position
maxCountOfResultsIf set to 0, SCE_NP_COMMERCE2_GETCAT_MAX_COUNT (60) will be fetched

◆ beginGetProductInfo()

Bool pdistd::MNPCommerce::beginGetProductInfo ( String  categoryId,
String  productId 
)

sceNpCommerce2GetProductInfoStart - Start obtaining product data

◆ endCheckout()

void pdistd::MNPCommerce::endCheckout ( )

Ends checkout.

◆ endGetCategoryInfo()

void pdistd::MNPCommerce::endGetCategoryInfo ( )

sceNpCommerce2DestroyGetCategoryContentsResult - Destroy category content data

◆ endGetProductInfo()

void pdistd::MNPCommerce::endGetProductInfo ( )

sceNpCommerce2DestroyGetProductInfoResult - Destroy product information

◆ finalize()

Bool pdistd::MNPCommerce::finalize ( )

sceNpCommerce2Term - Terminate the NP IN-GAME commerce 2 utility

sceNpCommerce2DestroyCtx + sceNpCommerce2Term + cellSysmoduleUnloadModule (CELL_SYSMODULE_SYSUTIL_NP_COMMERCE2)

◆ finalizeProductCodeInputDialog()

void pdistd::MNPCommerce::finalizeProductCodeInputDialog ( )

◆ finalizeProductCodeInputDialogRequest()

Bool pdistd::MNPCommerce::finalizeProductCodeInputDialogRequest ( )

sceNpCommerce2DoProductCodeFinishAsync - End promotion code input processing

◆ getCategoryInfo()

Map pdistd::MNPCommerce::getCategoryInfo ( )

sceNpCommerce2GetCategoryInfo - Take out category information

Returns
Map with result
  • categoryId - (String)
  • releaseDate - (MTime)
  • categoryName - (String)
  • categoryDescription - (String)
  • imageUrl - (String)
  • spName - (String)
  • contents - (Array<Map>)
    • contentType - (String)
    • productId - (String) - if sceNpCommerce2GetGameProductInfoFromContentInfo
    • countOfSku - (Int)
    • productName - (String)
    • spName - (String)
    • sku - (Map) - if sceNpCommerce2GetGameSkuInfoFromGameProductInfo
      • skuId - (String)
      • countUntilExpiration (Long)
      • timeUntilExpiration (Long)
      • purchasabilityFlag (Long)
      • annotation (Long)
      • downloadable (Bool)
      • price (Long)
      • skuName (String)
      • productId (String)
      • contentLinkUrl (String)
  • rating - (Map) - if sceNpCommerce2GetContentRatingInfoFromCategoryInfo
    • ratingSystemId - (String)
    • imageUrl - (String)
    • descriptors - (Map) - sceNpCommerce2GetContentRatingDescriptor
      • type - (Int)
      • imageUrl - (String)
      • contentRatingDescription (String)

◆ getLastErrorCode()

Int pdistd::MNPCommerce::getLastErrorCode ( )

◆ getLastResultCode()

Int pdistd::MNPCommerce::getLastResultCode ( )

◆ getPrice()

String pdistd::MNPCommerce::getPrice ( Int  price)

sceNpCommerce2GetPrice - Obtain the price (string)

Parameters
pricePrice from sku structure

◆ getProductInfo()

Map pdistd::MNPCommerce::getProductInfo ( )

sceNpCommerce2GetGameProductInfo - Take out game product information

Returns
Map with product
  • "productId" - (String)
  • "productName" - (String)
  • "productShortDescription" - (String)
  • "imageUrl" - (String)
  • "spName" - (String)
  • "productLongDescription" - (String)
  • skus - (Map)
    • skuId - (String)
    • countUntilExpiration (Long)
    • timeUntilExpiration (Long)
    • purchasabilityFlag (Long)
    • annotation (Long)
    • downloadable (Bool)
    • price (Long)
    • skuName (String)
    • productId (String)
    • contentLinkUrl (String)
  • rating - (Map) - if sceNpCommerce2GetContentRatingInfoFromCategoryInfo
    • ratingSystemId - (String)
    • imageUrl - (String)
    • descriptors - (Map) - sceNpCommerce2GetContentRatingDescriptor
      • type - (Int)
      • imageUrl - (String)
      • contentRatingDescription (String)

◆ getRootErrorCode()

Int pdistd::MNPCommerce::getRootErrorCode ( )

◆ getSessionInfo()

Map pdistd::MNPCommerce::getSessionInfo ( )

Returns session info.

Returns
Map with result
  • "currencyCode" : (String)
  • "decimals" : (Int)
  • "currencySymbol" : (String)

◆ initialize()

Bool pdistd::MNPCommerce::initialize ( )

sceNpCommerce2Init + sceNpCommerce2CreateCtx - Initialize the NP IN-GAME commerce 2 utility

◆ openProductCodeInputDialog()

Bool pdistd::MNPCommerce::openProductCodeInputDialog ( )

sceNpCommerce2DoProductCodeStartAsync - Start promotion code input processing

◆ startCheckout()

Bool pdistd::MNPCommerce::startCheckout ( Array< String sku_ids)

sceNpCommerce2DoCheckoutStartAsync - Start checkout

Parameters
sku_idsList of skus to purchase

◆ startCreateSession()

Bool pdistd::MNPCommerce::startCreateSession ( )

sceNpCommerce2CreateSessionStart - Start creating a commerce 2 session

◆ updateCommerce()

static void pdistd::MNPCommerce::updateCommerce ( )
static

The documentation for this class was generated from the following file: