Merge pull request #17656 from civicrm/5.27
[civicrm-core.git] / api / v3 / FinancialAccount.php
CommitLineData
134bc82c 1<?php
134bc82c
CW
2/*
3 +--------------------------------------------------------------------+
a30c801b 4 | Copyright CiviCRM LLC. All rights reserved. |
134bc82c 5 | |
a30c801b
TO
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 |
134bc82c 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
134bc82c
CW
11
12/**
244bbdd8 13 * This api exposes CiviCRM FinancialAccount.
134bc82c
CW
14 *
15 * @package CiviCRM_APIv3
134bc82c
CW
16 */
17
18/**
244bbdd8 19 * Save a FinancialAccount.
134bc82c 20 *
c490a46a 21 * @param array $params
77b97be7 22 *
a6c01b45 23 * @return array
134bc82c
CW
24 */
25function civicrm_api3_financial_account_create($params) {
ddaf2161 26 return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'FinancialAccount');
134bc82c
CW
27}
28
29/**
244bbdd8 30 * Get a FinancialAccount.
134bc82c 31 *
c490a46a 32 * @param array $params
77b97be7 33 *
a6c01b45 34 * @return array
244bbdd8 35 * Array of retrieved FinancialAccount property values.
134bc82c
CW
36 */
37function civicrm_api3_financial_account_get($params) {
38 return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
39}
40
41/**
244bbdd8 42 * Delete a FinancialAccount.
134bc82c 43 *
c490a46a 44 * @param array $params
77b97be7 45 *
a6c01b45 46 * @return array
16b10e64 47 * Array of deleted values.
134bc82c
CW
48 */
49function civicrm_api3_financial_account_delete($params) {
50 return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
51}