DocumentService

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

Namespace

IO\Services

Properties
Type Name Description

DocumentRepositoryContract

$documentRepo

Methods
public __construct($documentRepo)

DocumentService constructor.

Parameters

Type

Name

Description

DocumentRepositoryContract

$documentRepo

public getDocumentsByOrderId($orderId): PaginatedResult

Get order documents for a specific order

Parameters

Type

Name

Description

int

$orderId

Unique id of order