use Onetoweb\Minox\Utils;
$id = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa';
$results = $client->otherDocument->get($id);
$filename = '/path/to/file.pdf';
Utils::saveFile($filename, $results);
$batchId = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa';
$filepath = '/path/to/file.pdf';
$results = $client->otherDocument->transactionLineBatch($batchId, $filepath);
use Onetoweb\Minox\Utils;
$batchId = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa';
$results = $client->otherDocument->getBatchDocument($batchId);
$filename = '/path/to/file.pdf';
Utils::saveFile($filename, $results);
$batchId = 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa';
$results = $client->otherDocument->deleteBatchDocument($batchId);