'documentIds' => ArrayParameterType::STRING
] );
} /**
* @param array<string, array<string, array<string, string>|string>> $documentTypes
*/
private function createDocuments(string
$orderId, array
$documentTypes, Context
$context): DocumentIdCollection
{ $operations =
[];
$collection =
new DocumentIdCollection();
foreach ($documentTypes as $documentType =>
$config) { $operation =
new DocumentGenerateOperation($orderId, FileTypes::PDF,
$config);
$operations[$orderId] =
$operation;
$result =
$this->documentGenerator->
generate($documentType,
$operations,
$context);
static::
assertNotNull($document =
$result->
getSuccess()->
first());
$collection->
add($document);
}