Class: module:models/CustomerProductListItemPurchase

module:models/CustomerProductListItemPurchase()

new module:models/CustomerProductListItemPurchase()

Constructs a new CustomerProductListItemPurchase. Document representing a customer product list item purchase.

Source:

Members

(inner) id :String

The id of this purchase.

Type:
  • String
Source:

(inner) order_no :String

The order number of this purchase.

Type:
  • String
Source:

(inner) product_list_item_id :String

The id of the product list item this purchase relates to.

Type:
  • String
Source:

(inner) purchaser_name :String

The name of the purchaser.

Type:
  • String
Source:

(inner) quantity :Number

The quantity of this product list item purchased.

Type:
  • Number
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/CustomerProductListItemPurchase}

Constructs a CustomerProductListItemPurchase from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/CustomerProductListItemPurchase

Optional instance to populate.

Source:
Returns:

The populated CustomerProductListItemPurchase instance.

Type
module:models/CustomerProductListItemPurchase