Skip to main content
Go to Latest
class Item
implements IItem
extends HitAbstract
import { Item } from "https://deno.land/x/flagship_io_js_sdk@3.0.11/index.ts";

Constructors

new
Item(item: Omit<IItem, "type">)

Item constructor.

Properties

private
_itemCategory: string
private
_itemPrice: number
private
_itemQuantity: number
private
_productName: string
private
_productSku: string
private
_transactionId: string
itemCategory: string

Specify the category that the item belongs to

itemPrice: number

Specify the price for a single item

itemQuantity: number

Specify the number of items purchased.

productName: string

Specify name of the item product.

productSku: string

Specify the SKU or item code.

transactionId: string

Specify transaction unique identifier.

Methods

getErrorMessage(): string
isReady(checkParent?): boolean
toApiKeys(): Record<string, unknown>
toObject(): Record<string, unknown>