Merge pull request #20560 from colemanw/searchable
[civicrm-core.git] / Civi / Api4 / FinancialItem.php
CommitLineData
3ee1fe40
SL
1<?php
2
3/*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
11 */
12
13/**
14 *
15 * @package CRM
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 */
18
19namespace Civi\Api4;
20
21/**
22 * Financial Item entity.
23 *
24 * Financial Items are low level accounting entries. They track the amounts paid to each line item.
25 *
26 * If your interest is really in payments you should use that api.
27 *
28 * @see https://docs.civicrm.org/dev/en/latest/financial/financialentities/#financial-items
29 *
30 * @package Civi\Api4
31 */
32class FinancialItem extends Generic\DAOEntity {
33
ee73f136
MD
34 /**
35 * @see \Civi\Api4\Generic\AbstractEntity::permissions()
36 * @return array
37 */
38 public static function permissions() {
39 $permissions = \CRM_Core_Permission::getEntityActionPermissions()['financial_item'] ?? [];
40
41 // Merge permissions for this entity with the defaults
42 return array_merge($permissions, [
43 'create' => [\CRM_Core_Permission::ALWAYS_DENY_PERMISSION],
44 'update' => [\CRM_Core_Permission::ALWAYS_DENY_PERMISSION],
45 ]);
46 }
47
3ee1fe40 48}