StoredOrderItem

Extends \OrderItem Implements \StoredOrderItemInterface, \AddonValueContainerInterface

Class StoredOrderItem

category

System

package

Order

subpackage

Entities

Methods

OrderItem constructor.

__construct(\StringType $name) 
inherited

Arguments

$name

\StringType

Order item name.

Merges the existing addon values with new ones.

addAddonValues(\KeyValueCollection $addonValues) : \OrderItem
inherited

Arguments

$addonValues

\KeyValueCollection

Contains the new addon values to be merged with the existing ones.

Response

\OrderItem

Same instance for method chaining.

Deletes a specific addon value entry by key.

deleteAddonValue(\StringType $key) : \OrderItem
inherited

Arguments

$key

\StringType

Addon key.

Response

\OrderItem

Same instance for method chaining.

Returns the order addon key value from collection.

getAddonValue(\StringType $key) : string
inherited

Arguments

$key

\StringType

Addon key.

Response

string

Addon value.

Returns the addon value container ID.

getAddonValueContainerId() : integer

Response

integer

Addon value container ID.

Returns the addon collection of an order item.

getAddonValues() : \EditableKeyValueCollection
inherited

Response

\EditableKeyValueCollection

Addon collection.

Returns the attributes of the order item.

getAttributes() : \OrderItemAttributeCollection
inherited

Response

\OrderItemAttributeCollection

Attributes of the order item.

Returns the checkout information of the order item.

getCheckoutInformation() : string
inherited

Response

string

Checkout information of the order item.

Returns the amount of discount of the order item.

getDiscountMade() : float
inherited

Response

float

Amount of discount of the order item.

Returns the download information collection of the order item.

getDownloadInformation() : \OrderItemDownloadInformationCollection
inherited

Response

\OrderItemDownloadInformationCollection

Download information collection of the order item.

Returns the final price of the order item.

getFinalPrice() : float
inherited

Response

float

Final price of the order item.

Returns the gx customizer data collection of the order item.

getGXCustomizerData() : \OrderItemGXCustomizerDataCollection
inherited

Response

\OrderItemGXCustomizerDataCollection

GXCustomizerData collection of the order item.

Returns the name of the order item.

getName() : string
inherited

Response

string

Name of the order item.

Returns ID of the stored order item ID.

getOrderItemId() : integer

Response

integer

Order item ID.

Returns the price of the order item.

getPrice() : double
inherited

Response

double

Price of the order item.

Returns the product model of the order item.

getProductModel() : string
inherited

Response

string

Product model of the order item.

Returns the quantity of the order item.

getQuantity() : double
inherited

Response

double

Quantity of the order item.

Returns the name of quantity unit of the order item.

getQuantityUnitName() : string
inherited

Response

string

Name of quantity unit of the order item.

Returns the shipping time of the order item.

getShippingTimeInfo() : string
inherited

Response

string

Shipping time of the order item.

Returns the tax of the order item.

getTax() : float
inherited

Response

float

Tax of the order item.

Is tax of the order item allowed?

isTaxAllowed() : boolean
inherited

Response

boolean

Is tax of the order item allowed?

Adds/updates a key value in the addon value collection.

setAddonValue(\StringType $key, \StringType $value) : \OrderItem
inherited

Arguments

$key

\StringType

Addon key.

$value

\StringType

Addon value.

Response

\OrderItem

Same instance for method chaining.

Sets attributes of the OrderItem.

setAttributes(\OrderItemAttributeCollection $attributeCollection) : \OrderItem
inherited

Arguments

$attributeCollection

\OrderItemAttributeCollection

Attributes of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets the checkout information.

setCheckoutInformation(\StringType $checkoutInformation) : \OrderItem
inherited

Arguments

$checkoutInformation

\StringType

Contains the checkout info of the order item.

Response

\OrderItem

Same instance for method chaining.

Sets discount of the OrderItem.

setDiscountMade(\DecimalType $discount) : \OrderItem
inherited

Arguments

$discount

\DecimalType

Discount of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets the download information of the OrderItem.

setDownloadInformation(\OrderItemDownloadInformationCollection $downloads) : \OrderItem
inherited

Arguments

$downloads

\OrderItemDownloadInformationCollection

Download information collection.

Response

\OrderItem

Same instance for method chaining.

Sets the gx customizer data of the OrderItem.

setGXCustomizerData(\OrderItemGXCustomizerDataCollection $gxCustomizerData) : \OrderItem
inherited

Arguments

$gxCustomizerData

\OrderItemGXCustomizerDataCollection

GXCustomizerData collection.

Response

\OrderItem

Same instance for method chaining.

Sets name of the OrderItem.

setName(\StringType $name) : \OrderItem
inherited

Arguments

$name

\StringType

Name of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets price of the OrderItem.

setPrice(\DecimalType $price) : \OrderItem
inherited

Arguments

$price

\DecimalType

Price of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets product model of the OrderItem.

setProductModel(\StringType $model) : \OrderItem
inherited

Arguments

$model

\StringType

Model of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets quantity of the OrderItem.

setQuantity(\DecimalType $quantity) : \OrderItem
inherited

Arguments

$quantity

\DecimalType

Quantity of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets name of quantity unit of the OrderItem.

setQuantityUnitName(\StringType $name) : \OrderItem
inherited

Arguments

$name

\StringType

Name of quantity unit of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets shipping time of the OrderItem.

setShippingTimeInfo(\StringType $time) : \OrderItem
inherited

Arguments

$time

\StringType

Shipping time of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets tax of the OrderItem.

setTax(\DecimalType $tax) : \OrderItem
inherited

Arguments

$tax

\DecimalType

Tax of the OrderItem.

Response

\OrderItem

Same instance for method chaining.

Sets whether tax of the OrderItem is allowed or not.

setTaxAllowed(\BoolType $allow) : \OrderItem
inherited

Arguments

$allow

\BoolType

Tax allowed or not?

Response

\OrderItem

Same instance for method chaining.

Properties

ID

id : integer
var

Type(s)

integer

Product model.

productModel : string
inherited
var

Type(s)

string

Name.

name : string
inherited
var

Type(s)

string

Price.

price : float
inherited
var

Type(s)

float

Quantity.

quantity : float
inherited
var

Type(s)

float

Tax amount.

tax : float
inherited
var

Type(s)

float

Tax allowed on this order item.

taxAllowed : boolean
inherited
var

Type(s)

boolean

Amount of discount made on this order item.

discountMade : float
inherited

.

var

Type(s)

float

Order item shipping time info text.

shippingTimeInfo : string
inherited
var

Type(s)

string

Attributes of the order item.

attributes : \OrderItemAttributeCollection
inherited

Order item quantity unit name.

quantityUnitName : string
inherited
var

Type(s)

string

Checkout information.

checkoutInformation : string
inherited
var

Type(s)

string

Download information.

downloadInformation : \OrderItemDownloadInformationCollection
inherited

GX customizer data.

gxCustomizerData : \OrderItemGXCustomizerDataCollection
inherited

Order item addon collection.

addonValues : \EditableKeyValueCollection
inherited