<?php
-
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
namespace Civi\Api4;
/**
* If your interest is really in payments you should use that api.
*
* @see https://docs.civicrm.org/dev/en/latest/financial/financialentities/#financial-items
- *
+ * @since 5.40
* @package Civi\Api4
*/
class FinancialItem extends Generic\DAOEntity {
-
- /**
- * @see \Civi\Api4\Generic\AbstractEntity::permissions()
- * @return array
- */
- public static function permissions() {
- $permissions = \CRM_Core_Permission::getEntityActionPermissions()['financial_item'] ?? [];
-
- // Merge permissions for this entity with the defaults
- return array_merge($permissions, [
- 'create' => [\CRM_Core_Permission::ALWAYS_DENY_PERMISSION],
- 'update' => [\CRM_Core_Permission::ALWAYS_DENY_PERMISSION],
- ]);
- }
+ use Generic\Traits\ReadOnly;
}