new module:models/ProductType()
Constructs a new ProductType
.
Document representing a product type.
- Source:
Members
(inner) bundle :Boolean
A flag indicating whether the product is a bundle.
Type:
- Boolean
- Source:
(inner) item :Boolean
A flag indicating whether the product is a standard item.
Type:
- Boolean
- Source:
(inner) master :Boolean
A flag indicating whether the product is a master.
Type:
- Boolean
- Source:
(inner) option :Boolean
A flag indicating whether the product is an option.
Type:
- Boolean
- Source:
(inner) set :Boolean
A flag indicating whether the product is a set.
Type:
- Boolean
- Source:
(inner) variant :Boolean
A flag indicating whether the product is a variant.
Type:
- Boolean
- Source:
(inner) variation_group :Boolean
A flag indicating whether the product is a variation group.
Type:
- Boolean
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/ProductType}
Constructs a ProductType
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/ProductType | Optional instance to populate. |
- Source:
Returns:
The populated ProductType
instance.