Methods
createOrderCancellationDocument
createOrderCancellationDocument(\Shopware\Models\Order\Order $order, \Shopware\Models\Document\Document $documentType, array $positions, string $invoiceNumber, string $comment, string $dateString, boolean $cancelShippingCost) : \Shopware\Models\Order\Document\Document
Arguments
$order
\Shopware\Models\Order\Order
$documentType
\Shopware\Models\Document\Document
$cancelShippingCost
boolean
Response
\Shopware\Models\Order\Document\Document
createOrderDocument
createOrderDocument(\Shopware\Models\Order\Order $order, \Shopware\Models\Document\Document $documentType, array $documentConfig = array()) : \Shopware\Models\Order\Document\Document
Arguments
$order
\Shopware\Models\Order\Order
$documentType
\Shopware\Models\Document\Document
Response
\Shopware\Models\Order\Document\Document
showOrderCancellationDocumentPreview
showOrderCancellationDocumentPreview(\Shopware\Models\Order\Order $order, \Shopware\Models\Document\Document $documentType, array $positions, string $invoiceNumber, string $comment, string|null $dateString, boolean $cancelShippingCost)
Arguments
$order
\Shopware\Models\Order\Order
$documentType
\Shopware\Models\Document\Document
$dateString
string|null
A formatted date string for the invoice. If null, today's date is used.
$cancelShippingCost
boolean