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 Entity Financial Trxn.
21 * @param array $params
25 function civicrm_api3_entity_financial_trxn_create($params) {
26 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__
), $params, 'EntityFinancialTrxn');
30 * Get a Entity Financial Trxn.
32 * @param array $params
35 * Array of retrieved Entity Financial Trxn property values.
37 function civicrm_api3_entity_financial_trxn_get($params) {
38 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
42 * Delete a Entity Financial Trxn.
44 * @param array $params
47 * Array of deleted values.
49 function civicrm_api3_entity_financial_trxn_delete($params) {
50 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__
), $params);
54 * Adjust Metadata for Create action.
56 * The metadata is used for setting defaults, documentation & validation.
58 * @param array $params
59 * Array of parameters determined by getfields.
61 function _civicrm_api3_entity_financial_trxn_create_spec(&$params) {
62 $params['entity_table']['api.required'] = 1;
63 $params['entity_id']['api.required'] = 1;
64 $params['financial_trxn_id']['api.required'] = 1;
65 $params['amount']['api.required'] = 1;