OrderObjectService

Implements \OrderObjectServiceInterface

Class OrderObjectService

category

System

package

Order

Methods

OrderObjectService Constructor

__construct(\OrderItemFactoryInterface $orderItemFactory, \OrderItemAttributeFactoryInterface $orderItemAttributeFactory, \OrderItemAttributeFactoryInterface $orderItemPropertyFactory, \OrderTotalFactoryInterface $orderTotalFactory) 

Arguments

$orderItemFactory

\OrderItemFactoryInterface

$orderItemAttributeFactory

\OrderItemAttributeFactoryInterface

$orderItemPropertyFactory

\OrderItemAttributeFactoryInterface

$orderTotalFactory

\OrderTotalFactoryInterface

Create Order Item Attribute Object

createOrderItemAttributeObject(\StringType $name, \StringType $value) : \OrderItemAttribute

Creates and returns an order item attribute object.

Arguments

$name

\StringType

Name of the order item object attribute to be created.

$value

\StringType

Value of the order item object attribute to be created.

Response

\OrderItemAttribute

Create Order Item Object

createOrderItemObject(\StringType $name) : \OrderItemInterface

Creates and returns an order item object.

Arguments

$name

\StringType

Name of the order item object to be created.

Response

\OrderItemInterface

Create Order Item Property Object

createOrderItemPropertyObject(\StringType $name, \StringType $value) : \OrderItemPropertyInterface

Creates and returns an order item property object.

Arguments

$name

\StringType

Name of the order item object property to be created.

$value

\StringType

Value of the orreturn $this->orderItemAttributeFactory->createOrderItemAttribute($name, $value);der item object property to be created.

Response

\OrderItemPropertyInterface

Create Order Total Object

createOrderTotalObject(\StringType $title, \DecimalType $value, \StringType $valueText = null, \StringType $class = null, \IntType $sortOrder = null) : \OrderTotalInterface

Creates and returns an order total object.

Arguments

$title

\StringType

Title of the order total to be created.

$value

\DecimalType

value of the order total to be created.

$valueText

\StringType

Value text of the order total to be created.

$class

\StringType

Class of the order total to be created.

$sortOrder

\IntType

Sort order of the order total to be created.

Response

\OrderTotalInterface

Create Stored Order Item Attribute Object

createStoredOrderItemAttributeObject(\IdType $orderItemAttributeId) : \StoredOrderItemAttributeInterface

Creates and returns a stored order item attribute object.

Arguments

$orderItemAttributeId

\IdType

Order item attribute id of the order item attribute to be stored.

Response

\StoredOrderItemAttributeInterface

Create Stored Order Item Object

createStoredOrderItemObject(\IdType $orderItemId) : \StoredOrderItemInterface

Creates and returns a stored order item object.

Arguments

$orderItemId

\IdType

Order item id of the order item to be stored.

Response

\StoredOrderItemInterface

Create Stored Order Item Property Object

createStoredOrderItemPropertyObject(\IdType $orderItemPropertyId) : \StoredOrderItemPropertyInterface

Creates and returns a stored order item property object.

Arguments

$orderItemPropertyId

\IdType

Order property id of the order item property to be stored.

Response

\StoredOrderItemPropertyInterface

Create Stored Order Total Object

createStoredOrderTotalObject(\IdType $orderTotalId) : \StoredOrderTotalInterface

Creates and returns a stored order total object.

Arguments

$orderTotalId

\IdType

Order total id of the order total to be stored.

Response

\StoredOrderTotalInterface

Properties

orderItemFactory

orderItemFactory : \OrderItemFactoryInterface

orderItemAttributeFactory

orderItemAttributeFactory : \OrderItemAttributeFactoryInterface

orderItemPropertyFactory

orderItemPropertyFactory : \OrderItemPropertyFactoryInterface

orderTotalFactory

orderTotalFactory : \OrderTotalFactoryInterface