OrderTotalRepositoryWriterInterface
in
Interface OrderTotalRepositoryWriterInterface
Tags
Table of Contents
- insertIntoOrder() : int
- Inserts an order total item to an order by the given order ID.
- update() : OrderTotalRepositoryWriterInterface
- Updates the passed order total item.
Methods
insertIntoOrder()
Inserts an order total item to an order by the given order ID.
public
insertIntoOrder(IdType $orderId, OrderTotalInterface $orderTotal) : int
Parameters
- $orderId : IdType
-
ID of the order.
- $orderTotal : OrderTotalInterface
-
Order total item to insert.
Return values
int —ID of stored order total item.
update()
Updates the passed order total item.
public
update(StoredOrderTotalInterface $orderTotal) : OrderTotalRepositoryWriterInterface
Parameters
- $orderTotal : StoredOrderTotalInterface
-
Order total item to update.
Return values
OrderTotalRepositoryWriterInterface —Same instance for method chaining.