Remove "refunded" from state diagram

This commit is contained in:
Raphael Michel
2019-02-14 18:28:06 +01:00
parent b3debdfb55
commit d3ecb92108
3 changed files with 9 additions and 3 deletions

View File

@@ -82,6 +82,12 @@ Orders
^^^^^^ ^^^^^^
If a customer completes the checkout process, an **Order** will be created containing all the entered information. If a customer completes the checkout process, an **Order** will be created containing all the entered information.
An order can be in one of currently five states that are listed in the diagram below: An order can be in one of currently four states that are listed in the diagram below:
.. image:: /images/order_states.png .. image:: /images/order_states.png
There are additional "fake" states that are displayed like states but not represented as states in the system:
* An order is considered **canceled (with paid fee)** if it is in **paid** status but does not include any non-cancelled positions.
* An order is considered **requiring approval** if it is in **pending** status with the ``require_approval`` attribute set to ``True``.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -4,7 +4,6 @@ Pending: Order is expecting payment\nOrder reduces quotas
Expired: Payment period is over\nOrder does not affect quotas Expired: Payment period is over\nOrder does not affect quotas
Paid: Order was successful\nOrder reduces quotas Paid: Order was successful\nOrder reduces quotas
Canceled: Order has been canceled\nOrder does not affect quotas Canceled: Order has been canceled\nOrder does not affect quotas
Refunded: Order has been refunded\nOrder does not affect quotas
[*] --> Pending: customer\nplaces order [*] --> Pending: customer\nplaces order
Pending --> Paid: successful payment Pending --> Paid: successful payment
@@ -12,8 +11,9 @@ Pending --> Expired: automatically\nor manually\non admin action
Expired --> Paid: if payment is received\nonly if quota left Expired --> Paid: if payment is received\nonly if quota left
Expired --> Canceled Expired --> Canceled
Expired --> Pending: manually\non admin action Expired --> Pending: manually\non admin action
Paid --> Refunded: manually on\nadmin action\nor if an external\npayment provider\nnotifies about a\npayment refund Paid --> Canceled: manually on\nadmin action\nor if an external\npayment provider\nnotifies about a\npayment refund
Pending --> Canceled: on admin or\ncustomer action Pending --> Canceled: on admin or\ncustomer action
Paid -> Pending: manually on admin action Paid -> Pending: manually on admin action
[*] --> Paid: customer\nplaces free order
@enduml @enduml