3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
13 * This api exposes CiviCRM FinancialType.
15 * @package CiviCRM_APIv3
19 * Save a FinancialType.
21 * @param array $params
25 function civicrm_api3_financial_type_create($params) {
26 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__
), $params, 'FinancialType');
29 function _civicrm_api3_financial_type_create_spec(&$params) {
30 $params['name']['api.required'] = 1;
34 * Get a FinancialType.
36 * @param array $params
39 * Array of retrieved FinancialType property values.
41 function civicrm_api3_financial_type_get($params) {
42 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
46 * Delete a FinancialType.
48 * @param array $params
51 * Array of deleted values.
53 function civicrm_api3_financial_type_delete($params) {
54 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);