OrderTotalRepositoryInterface

Extends

Interface OrderTotalRepositoryInterface

category

System

package

Order

subpackage

Interfaces

Methods

Adds an order total object to the order.

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

Arguments

$orderId

\IdType

ID of order.

$orderTotal

\OrderTotalInterface

Order total object.

Response

integer

ID of stored order total.

Removes an order total by the given order total ID.

deleteTotalById(\IdType $orderTotalId) : \OrderTotalRepositoryInterface

Arguments

$orderTotalId

\IdType

ID of order total in the database table.

Response

\OrderTotalRepositoryInterface

Same instance for method chaining.

Removes multiple order totals by the given order ID.

deleteTotalsByOrderId(\IdType $orderId) : \OrderTotalRepositoryInterface

Arguments

$orderId

\IdType

Order ID.

Response

\OrderTotalRepositoryInterface

Same instance for method chaining.

Returns an order total object by the given ID.

getTotalById(\IdType $orderTotalId) : \StoredOrderTotalInterface

Arguments

$orderTotalId

\IdType

ID of order total in database table.

Response

\StoredOrderTotalInterface

Fetched order total.

Returns an collection of order total objects by the given order ID.

getTotalsByOrderId(\IdType $orderId) : \StoredOrderTotalCollection

Arguments

$orderId

\IdType

ID of the order in the database table.

Response

\StoredOrderTotalCollection

Fetched order total collection.

Updates a stored order total object.

store(\StoredOrderTotalInterface $orderTotal) : \OrderTotalRepositoryInterface

Arguments

$orderTotal

\StoredOrderTotalInterface

Order total.

Response

\OrderTotalRepositoryInterface

Same instance for method chaining.