From 779cb42a94518d9fa3033d267d14c64bb2c60501 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 21 Oct 2019 16:35:09 +1300 Subject: [PATCH] dev/financial#79 minimal deprecation of Contribution.transact. It seems urgent that we so some deprecation of this api - this is the absolute minimum. More would involve creating some noise when people use it but there is a separate issue for that. This is just to geet it out of being 'promoted' by the api explorer --- api/v3/Contribution.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/v3/Contribution.php b/api/v3/Contribution.php index bbaf070382..f5b1d94643 100644 --- a/api/v3/Contribution.php +++ b/api/v3/Contribution.php @@ -763,3 +763,13 @@ function _civicrm_api3_contribution_repeattransaction_spec(&$params) { 'type' => CRM_Utils_Type::T_INT, ]; } + +/** + * Declare deprecated functions. + * + * @return array + * Array of deprecated actions + */ +function _civicrm_api3_contribution_deprecation() { + return ['transact' => 'Contribute.transact is ureliable & unsupported - see https://docs.civicrm.org/dev/en/latest/financial/OrderAPI/ for how to move on']; +} -- 2.25.1