diff --git a/Documentation/Changelog/11.10/Feature-866-OrderStatusMethods.rst b/Documentation/Changelog/11.10/Feature-866-OrderStatusMethods.rst new file mode 100644 index 00000000..6d540d6d --- /dev/null +++ b/Documentation/Changelog/11.10/Feature-866-OrderStatusMethods.rst @@ -0,0 +1,32 @@ +.. include:: ../../Includes.rst.txt + +========================================================================== +Feature: #866 - Status methods of the payment and the shipping of an order +========================================================================== + +See `Issue 866 `__ + +Description +=========== + +The payment (``\Extcode\Cart\Domain\Model\Order\Payment``) and the shipping +(``\Extcode\Cart\Domain\Model\Order\Shipping``) of an order have new methods +for the status of EXT:cart: + +========= ================================================================== +Service Methods +========= ================================================================== +payment ``isOpen()``, ``isPending()``, ``isPaid()``, ``isCanceled()`` +shipping ``isOpen()``, ``isOnHold()``, ``isInProcess()``, ``isShipped()`` +========= ================================================================== + +Further status added by other extensions have no method, compare them with +``getStatus()``. + +Impact +====== + +Extensions, e.g. for payment providers, use the methods instead of comparing +the status with strings themselves. + +.. index:: PHP-API diff --git a/Documentation/Changelog/11.10/Index.rst b/Documentation/Changelog/11.10/Index.rst new file mode 100644 index 00000000..6dd3d0a3 --- /dev/null +++ b/Documentation/Changelog/11.10/Index.rst @@ -0,0 +1,24 @@ +.. include:: ../../Includes.rst.txt + +11.10 Changes +============= + +**Table of contents** + +.. contents:: + :local: + :depth: 1 + +11.10.0 +------- + +Features +~~~~~~~~ + +* :doc:`#866 - Status methods of the payment and the shipping of an order ` + +.. toctree:: + :hidden: + :glob: + + *-* diff --git a/Documentation/Changelog/Index.rst b/Documentation/Changelog/Index.rst index f68fa373..33aee134 100644 --- a/Documentation/Changelog/Index.rst +++ b/Documentation/Changelog/Index.rst @@ -16,6 +16,7 @@ ChangeLog 12.2/Index 12.1/Index 12.0/Index + 11.10/Index 11.9/Index 11.8/Index 11.7/Index