Script: Class dw.customer.ProductListItemPurchase

Class ProductListItemPurchase

A record of the purchase of an item contained in a product list.

Properties

item : ProductListItem Read Only

The item that was purchased.

orderNo : String Read Only

The number of the order in which the product list item was purchased.

purchaseDate : Date Read Only

The date on which the product list item was purchased.

purchaserName : String Read Only

The name of the purchaser of the product list item.

quantity : Quantity Read Only

The quantity of the product list item that was purchased.

Constructor Summary

This class does not have a constructor, so you cannot create it directly.

Method Summary

getItem() : ProductListItem

Returns the item that was purchased.

getOrderNo() : String

Returns the number of the order in which the product list item was purchased.

getPurchaseDate() : Date

Returns the date on which the product list item was purchased.

getPurchaserName() : String

Returns the name of the purchaser of the product list item.

getQuantity() : Quantity

Returns the quantity of the product list item that was purchased.

Methods inherited from class ExtensibleObject

describe, getCustom

Methods inherited from class PersistentObject

getCreationDate, getLastModified, getUUID

Methods inherited from class Object

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Method Detail

getItem

getItem() : ProductListItem

Returns the item that was purchased.

Returns:

the item that was purchased.

getOrderNo

getOrderNo() : String

Returns the number of the order in which the product list item was purchased.

Returns:

the number of the order in which the product list item was purchased.


getPurchaseDate

getPurchaseDate() : Date

Returns the date on which the product list item was purchased.

Returns:

the date on which the product list item was purchased.


getPurchaserName

getPurchaserName() : String

Returns the name of the purchaser of the product list item.

Returns:

the name of the purchaser of the product list item.


getQuantity

getQuantity() : Quantity

Returns the quantity of the product list item that was purchased.

Returns:

the quantity of the product list item that was purchased.