Skip to content

Commit

Permalink
add contract termination info
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed May 23, 2016
1 parent fafd964 commit aa2bf81
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/source/standard/contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ Schema
:changes:
List of :ref:`Change` objects.

:amountPaid:
:ref:`Value` object.

Amount of money actually paid.

:terminationDetails:
string, required for unsuccessful contract

Reasons for contract termination. Presense of this field indicates that contract is unsuccessful.


Workflow
--------

Expand Down
5 changes: 4 additions & 1 deletion docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,14 @@ All changes are also listed on the contract view.
Completing contract
-------------------

Before contract can be completed ``amountPaid`` field value should be set.
Before contract can be completed ``amountPaid`` field value should be set (regardless whether the contract was successful or unsuccessful).
Contract can be completed by switching to ``terminated`` status.
Let's perform these actions in single request:

.. include:: tutorial/contract-termination.http
:code:


If contract is unsuccessful reasons for termination ``terminationDetails`` should be specified.

Any future modification to the contract are not allowed.

0 comments on commit aa2bf81

Please sign in to comment.