CustomerOrderItem
class CustomerOrderItem extends DataModel
Order item in customer order.
Constants
TYPE_DISCOUNT |
|
TYPE_PRODUCT |
|
TYPE_SHIPPING |
|
TYPE_SURCHARGE |
|
TYPE_COUPON |
|
Properties
protected array | $fields | from DataModel | |
protected boolean | $isEncrypted | from DataModel | |
protected Identity | $configItemId | ||
protected Identity | $customerOrderId | ||
protected Identity | $id | ||
protected Identity | $productId | ||
protected string | $name | ||
protected double | $price | ||
protected double | $priceGross | ||
protected double | $quantity | ||
protected string | $sku | ||
protected string | $type | ||
protected string | $unique | ||
protected double | $vat | ||
protected CustomerOrderItemVariation[] | $variations |
Methods
__construct()
Constructor
setOptions(stdClass $object = null, array $options = null)
Sets Properties with matching Array Values
from DataModel
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))
Convert the Model into stdClass Object
from DataModel
mixed:string|NULL
getField(boolean $toWawi = false, string $key)
Get a Model Member Name
from DataModel
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)
No description
from DataModel
getConfigItemId()
No description
getCustomerOrderId()
No description
getProductId()
No description
setName(string $name)
No description
string
getName()
No description
setPrice(double $price)
No description
double
getPrice()
No description
setPriceGross(double $priceGross)
No description
double
getPriceGross()
No description
setQuantity(double $quantity)
No description
double
getQuantity()
No description
setSku(string $sku)
No description
string
getSku()
No description
setType(string $type)
No description
string
getType()
No description
setUnique(string $unique)
No description
string
getUnique()
No description
setVat(double $vat)
No description
double
getVat()
No description
setVariations(array $variations)
No description
getVariations()
No description
clearVariations()
No description
Details
at line 156
__construct()
Constructor
in Model at line 33
multitype:
getProperties()
Get the Model Properties
in DataModel at line 172
Model
setOptions(stdClass $object = null, array $options = null)
Sets Properties with matching Array Values
in DataModel at line 70
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))
Convert the Model into stdClass Object
in Model at line 115
toJson()
in DataModel at line 35
mixed:string
getFields()
Fields Getter
in DataModel at line 45
validate()
Object Validation
in DataModel at line 59
mixed:string|NULL
getField(boolean $toWawi = false, string $key)
Get a Model Member Name
in DataModel at line 59
boolean
isEncrypted()
Encrypted Status