OrderStatusService

This service class contains functions related to the order status.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

AuthHelper

$authHelper

OrderStatusRepositoryContract

$orderStatusRepo

StatusHistoryRepositoryContract

$statusHistoryRepo

string

$pluginNamespace

Methods
public __construct($authHelper, $orderStatusRepo, $statusHistoryRepo)

OrderStatusService constructor.

Parameters

Type

Name

Description

AuthHelper

$authHelper

OrderStatusRepositoryContract

$orderStatusRepo

StatusHistoryRepositoryContract

$statusHistoryRepo

public getOrderStatus($orderId, $orderStatusId):string

Get the status of a specific order

Parameters

Type

Name

Description

int

$orderId

The id of the order to find order status for

float

$orderStatusId

The id of the order status to find