Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Documentation/Changelog/11.10/Feature-866-OrderStatusMethods.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. include:: ../../Includes.rst.txt

==========================================================================
Feature: #866 - Status methods of the payment and the shipping of an order
==========================================================================

See `Issue 866 <https://github.com/extcode/cart/issues/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
24 changes: 24 additions & 0 deletions Documentation/Changelog/11.10/Index.rst
Original file line number Diff line number Diff line change
@@ -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 <Feature-866-OrderStatusMethods>`

.. toctree::
:hidden:
:glob:

*-*
1 change: 1 addition & 0 deletions Documentation/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading