Fix order api to support a pseudoConstant for financial_type_id
authoreileen <emcnaughton@wikimedia.org>
Wed, 19 Dec 2018 05:06:50 +0000 (18:06 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 16 Jan 2019 22:34:41 +0000 (11:34 +1300)
commit785f03e2de9e79452bc007a85b36b0a51442076f
tree8c5a491c3cd10e8159b71153fa3a2d37a708a321
parent017357657731facc9559fcad327679ee6d8acb33
Fix order api to support a pseudoConstant for financial_type_id

Adds functionality & test to support 'Event Fee' instead of '4' for Order.create financial_type_id.

This improves consistency with Contribution.create api and others
api/v3/Order.php
api/v3/utils.php
tests/phpunit/api/v3/OrderTest.php