public function calculateInvoiceAmount() { trigger_error(sprintf( '%s:%s is deprecated since Shopware 5.7 and will be removed with 5.8. Please use the service with id `%s` instead',
__CLASS__,
__METHOD__,
CalculationServiceInterface::
class D, E_USER_DEPRECATED
);
/** @var CalculationServiceInterface $service */
$service =
Shopware()->
Container()->
get(CalculationServiceInterface::
class);
$service->
recalculateOrderTotals($this);
} /**
* @return OrderAttribute|null
*/
public function getAttribute() { return $this->attribute;
} /**
* @param OrderAttribute|array<string, mixed>|null $attribute
*
* @return Order
*/