StoredOrderItemInterface

Extends \OrderItemInterface

Interface StoredOrderItemInterface

category

System

package

Order

subpackage

Interfaces

Methods

Merges the existing addon values with new ones.

addAddonValues(\KeyValueCollection $addonValues) : \OrderItemInterface
inherited

Arguments

$addonValues

\KeyValueCollection

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

Response

\OrderItemInterface

Same instance for method chaining.

Deletes a specific addon value entry by key.

deleteAddonValue(\StringType $key) : \OrderItemInterface
inherited

Arguments

$key

\StringType

Addon key.

Response

\OrderItemInterface

Same instance for method chaining.

Returns the order addon key value from collection.

getAddonValue(\StringType $key) : string
inherited
Throws
\InvalidArgumentException

On invalid arguments.

Arguments

$key

\StringType

Addon key.

Response

string

Addon value.

Returns the addon collection of the order item.

getAddonValues() : \EditableKeyValueCollection
inherited

Response

\EditableKeyValueCollection

The addon collection of the order item.

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) : \OrderItemInterface
inherited

Arguments

$key

\StringType

Addon key.

$value

\StringType

Addon value.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the attributes of the order item.

setAttributes(\OrderItemAttributeCollection $attributeCollection) : \OrderItemInterface
inherited

Arguments

$attributeCollection

\OrderItemAttributeCollection

Attributes of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the checkout information.

setCheckoutInformation(\StringType $checkoutInformation) : \OrderItemInterface
inherited

Arguments

$checkoutInformation

\StringType

Contains the checkout info of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the discount of the order item.

setDiscountMade(\DecimalType $discount) : \OrderItemInterface
inherited

Arguments

$discount

\DecimalType

Discount of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the download information of the order item.

setDownloadInformation(\OrderItemDownloadInformationCollection $downloads) : \OrderItemInterface
inherited

Arguments

$downloads

\OrderItemDownloadInformationCollection

Download information collection of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the gx customizer data of the order item.

setGXCustomizerData(\OrderItemGXCustomizerDataCollection $gxCustomizerData) : \OrderItemInterface
inherited

Arguments

$gxCustomizerData

\OrderItemGXCustomizerDataCollection

GXCustomizerData collection of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the name of the order item.

setName(\StringType $name) : \OrderItemInterface
inherited

Arguments

$name

\StringType

Name of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the price of the order item.

setPrice(\DecimalType $price) : \OrderItemInterface
inherited

Arguments

$price

\DecimalType

Price of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the product model of the order item.

setProductModel(\StringType $model) : \OrderItemInterface
inherited

Arguments

$model

\StringType

Model of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the quantity of the order item.

setQuantity(\DecimalType $quantity) : \OrderItemInterface
inherited

Arguments

$quantity

\DecimalType

Quantity of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the name of quantity unit of the order item.

setQuantityUnitName(\StringType $name) : \OrderItemInterface
inherited

Arguments

$name

\StringType

Name of quantity unit of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the shipping time of the order item.

setShippingTimeInfo(\StringType $time) : \OrderItemInterface
inherited

Arguments

$time

\StringType

Shipping time of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets the tax of the order item.

setTax(\DecimalType $tax) : \OrderItemInterface
inherited

Arguments

$tax

\DecimalType

Tax of the order item.

Response

\OrderItemInterface

Same instance for method chaining.

Sets whether tax of the OrderItem is allowed or not.

setTaxAllowed(\BoolType $allow) : \OrderItemInterface
inherited

Arguments

$allow

\BoolType

Tax allowed or not?

Response

\OrderItemInterface

Same instance for method chaining.