Skip to main content

ProductRecord

ZEPETO.Product.ProductRecord

Product information.

Hierarchy

Constructors

constructor

new ProductRecord()

Inherited from

System.Object.constructor

Properties

currencyPackageUnits

currencyPackageUnits: CurrencyPackageUnitRecord[]

Currencies included in the product if ProductType is CurrencyPackage.


isPurchased

isPurchased: boolean

Indicates whether the user has purchased the product, applicable only for non-consumable products.


itemPackageUnits

itemPackageUnits: ItemPackageUnitRecord[]

Items included in the product if ProductType is ItemPackage.


name

name: string

Product name.


price

price: number

Product price.


productId

productId: string

Product ID.

Accessors

CurrencyType

get CurrencyType(): CurrencyType

Returns the type of currency used for purchasing the product.

Returns

CurrencyType


ProductStatus

get ProductStatus(): ProductStatus

Returns the ProductStatus of the product.

Returns

ProductStatus


ProductType

get ProductType(): ProductType

Returns the ProductType of the product.

Returns

ProductType


PurchaseType

get PurchaseType(): PurchaseType

Returns the PurchaseType of the product.

Returns

PurchaseType


currencyId

get currencyId(): string

Returns the ID of the currency used for purchasing the product.

Returns

string


currencyName

get currencyName(): string

Returns the name of the currency used for purchasing the product.

Returns

string

Methods

GetCurrencySprite

GetCurrencySprite(): Sprite

Returns the image of the currency used for purchasing the product.

Returns

Sprite