invoiceninja/app/Models/TransactionEvent.php

57 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2022-03-09 18:40:45 +11:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2022-04-27 13:20:41 +10:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
2022-03-09 18:40:45 +11:00
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Models;
/**
* Class Bank.
*/
class TransactionEvent extends StaticModel
{
public $timestamps = false;
public $guarded = ['id'];
public $casts = [
2022-03-10 11:32:04 +11:00
'metadata' => 'array',
2022-03-09 18:40:45 +11:00
'payment_request' => 'array',
'paymentables' => 'array',
];
2022-03-09 20:32:46 +11:00
public const INVOICE_MARK_PAID = 1;
2022-03-09 20:32:46 +11:00
public const INVOICE_UPDATED = 2;
2022-03-09 20:32:46 +11:00
public const INVOICE_DELETED = 3;
2022-03-09 20:32:46 +11:00
public const INVOICE_PAYMENT_APPLIED = 4;
2022-03-09 20:32:46 +11:00
public const INVOICE_CANCELLED = 5;
2022-03-09 20:32:46 +11:00
public const INVOICE_FEE_APPLIED = 6;
2022-03-10 12:17:05 +11:00
public const INVOICE_REVERSED = 7;
2022-03-09 20:32:46 +11:00
public const PAYMENT_MADE = 100;
2022-03-09 20:32:46 +11:00
public const PAYMENT_APPLIED = 101;
2022-03-09 20:32:46 +11:00
public const PAYMENT_REFUND = 102;
2022-03-09 20:32:46 +11:00
public const PAYMENT_FAILED = 103;
2022-03-10 11:32:04 +11:00
public const GATEWAY_PAYMENT_MADE = 104;
2022-03-10 11:32:04 +11:00
public const PAYMENT_DELETED = 105;
2022-03-10 11:32:04 +11:00
public const CLIENT_STATUS = 200;
2022-03-09 18:40:45 +11:00
}