1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Models/TransactionEvent.php

57 lines
1.1 KiB
PHP
Raw Normal View History

2022-03-09 08:40:45 +01:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2022-04-27 05:20:41 +02:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
2022-03-09 08:40:45 +01: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 01:32:04 +01:00
'metadata' => 'array',
2022-03-09 08:40:45 +01:00
'payment_request' => 'array',
'paymentables' => 'array',
];
2022-03-09 10:32:46 +01:00
public const INVOICE_MARK_PAID = 1;
2022-03-09 10:32:46 +01:00
public const INVOICE_UPDATED = 2;
2022-03-09 10:32:46 +01:00
public const INVOICE_DELETED = 3;
2022-03-09 10:32:46 +01:00
public const INVOICE_PAYMENT_APPLIED = 4;
2022-03-09 10:32:46 +01:00
public const INVOICE_CANCELLED = 5;
2022-03-09 10:32:46 +01:00
public const INVOICE_FEE_APPLIED = 6;
2022-03-10 02:17:05 +01:00
public const INVOICE_REVERSED = 7;
2022-03-09 10:32:46 +01:00
public const PAYMENT_MADE = 100;
2022-03-09 10:32:46 +01:00
public const PAYMENT_APPLIED = 101;
2022-03-09 10:32:46 +01:00
public const PAYMENT_REFUND = 102;
2022-03-09 10:32:46 +01:00
public const PAYMENT_FAILED = 103;
2022-03-10 01:32:04 +01:00
public const GATEWAY_PAYMENT_MADE = 104;
2022-03-10 01:32:04 +01:00
public const PAYMENT_DELETED = 105;
2022-03-10 01:32:04 +01:00
public const CLIENT_STATUS = 200;
2022-03-09 08:40:45 +01:00
}