Move constants to dedicated enum

This commit is contained in:
James Cole
2022-04-13 14:21:33 +02:00
parent a2627b5158
commit 9cfced1732
4 changed files with 85 additions and 14 deletions

View File

@@ -77,20 +77,6 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class Webhook extends Model
{
use SoftDeletes;
// dont forget to update the config in firefly.php
// triggers
public const DELIVERY_JSON = 300;
public const RESPONSE_ACCOUNTS = 210;
public const RESPONSE_NONE = 220;
// actions
public const RESPONSE_TRANSACTIONS = 200;
public const TRIGGER_DESTROY_TRANSACTION = 120;
public const TRIGGER_STORE_TRANSACTION = 100;
// delivery
public const TRIGGER_UPDATE_TRANSACTION = 110;
protected $casts
= [
'active' => 'boolean',