OrderTotalRepositoryWriterInterface

Extends

Interface OrderTotalRepositoryWriterInterface

category

System

package

Order

subpackage

Interfaces

Methods

Inserts an order total item to an order by the given order ID.

insertIntoOrder(\IdType $orderId, \OrderTotalInterface $orderTotal) : integer

Arguments

$orderId

\IdType

ID of the order.

$orderTotal

\OrderTotalInterface

Order total item to insert.

Response

integer

ID of stored order total item.

Updates the passed order total item.

update(\StoredOrderTotalInterface $orderTotal) : \OrderTotalRepositoryWriterInterface

Arguments

$orderTotal

\StoredOrderTotalInterface

Order total item to update.

Response

\OrderTotalRepositoryWriterInterface

Same instance for method chaining.