Skip to main content
Samsung Developer Program

SkuDetails

OpenIAB functions that specify details about your in-apps that are registered with specific app stores

public class SkuDetails

This class represents the details about commercial in-app items that are offered by your app and are registered with a specified app store. Each in-app item is identified by its SKU or item ID. All items have item IDs, which can be used to map into an OpenIAB SKU.

SkuDetails Fields

Modifier and Type

Field and Description

public string

ItemType

Item type of the SKU items sold by service apps available in the specified apps store for each item

Item types for items sold by service apps available in the Samsung Galaxy Apps Store:

00      Consumable

01      Non-consumable

02      Non-recurring subscription

03      Auto-recurring subscription

public string

Sku

SKU identifier of the item for OpenIAB

public string

Type

Grouping(s) of app store SKU item types into OpenIAB-specified groups (either "inapp" or "subs")

Groupings of item types for items sold by service apps available in the Samsung Galaxy Apps Store:

inapp       Consumable, non-consumable

subs         non-recurring subscription, auto-recurring subscription

public string

Price

SKU item price

public string

Title

SKU item title displayable in the app store

public string

 

Description

SKU item description displayable in the app store

public string

Json

SKU details JSON object in string form

public string

CurrencyCode

SKU item currency code

public string

PriceValue

SKU item price value

Price is the listed price; price value is the converted price.
For example, if the price is 1 USD (46 PHP), but you want to set it to 60 PHP in the Philippines, regardless of the conversion. In this case, the price is 1 USD and the price value is 60 PHP.

SkuDetails Constructor Summary

Modifier

Constructor

public

SkuDetails(string jsonString)

public

SkuDetails(JSON json)

public

SkuDetails(OnePF.WP8.ProductListing listing)

SkuDetails Constructor Details

SkuDetails (string) 

public SkuDetails(string jsonString)

Sets the SKU details of the item specified by ToString() from a string when creating an SKU detail object instance.

Parameters:

jsonString

String in JSON format
SkuDetails (JSON object instance) 

public SkuDetails(JSONjson)

Sets the SKU details of the item specified by ToString() from a JSON object instance when creating an SKU detail object instance.

Parameters:

json

 JSON object instance
SkuDetails (WP8 object instance) 

public SkuDetails(OnePF.WP8.ProductListing listing)

Sets the SKU details of the item specified by ToString() from a Windows Phone® 8 ProductListing object instance when creating an SKU detail object instance.

Parameters:

listing

ProductListing object instance

SkuDetails Method Summary

Modifier and Type

Method

private void

ParseFromJson()

public override string

ToString()

SkuDetails Method Details

ParseFromJson 

private void ParseFromJson()

Checks the PriceValue and CurrencyCode of an item using the other keys (typically price_amount_micros and price_currency_code).

It checks if the price value and currency are empty. For the price value,  price_amount_micros is used, then val = val /= 1000000. For the currency, it uses price_currency_code to get and assign values.

ToString 

public override string ToString()

Converts the SKU details into a string that includes ItemType, Sku, Title, Price, Description, PriceValue, and CurrencyCode field values of the item specified by ToString().

Used when assigning values as a string (as in SKUDetails).

Returns:

Returns a string form of the SKU details.

 

  • Was this article helpful?