2019-08-22 10:25:30 +10:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
|
*
|
2020-01-07 11:13:47 +11:00
|
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-08-22 10:25:30 +10:00
|
|
|
*
|
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use App\Models\Gateway;
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
2019-09-12 11:28:41 +10:00
|
|
|
class GatewayType extends StaticModel
|
2019-08-22 10:25:30 +10:00
|
|
|
{
|
2019-08-22 11:58:42 +10:00
|
|
|
public $timestamps = false;
|
2019-08-22 10:25:30 +10:00
|
|
|
|
2019-09-08 22:13:55 +10:00
|
|
|
const CREDIT_CARD = 1;
|
|
|
|
|
const BANK_TRANSFER = 2;
|
|
|
|
|
const PAYPAL = 3;
|
2019-11-18 21:46:01 +11:00
|
|
|
const CRYPTO = 4;
|
2019-09-08 22:13:55 +10:00
|
|
|
const DWOLLA = 5;
|
|
|
|
|
const CUSTOM1 = 6;
|
|
|
|
|
const ALIPAY = 7;
|
|
|
|
|
const SOFORT = 8;
|
|
|
|
|
const SEPA = 9;
|
|
|
|
|
const GOCARDLESS = 10;
|
|
|
|
|
const APPLE_PAY = 11;
|
|
|
|
|
const CUSTOM2 = 12;
|
|
|
|
|
const CUSTOM3 = 13;
|
2019-09-09 12:19:19 +10:00
|
|
|
const TOKEN = 'token';
|
2019-09-08 22:13:55 +10:00
|
|
|
|
2019-12-31 08:59:12 +11:00
|
|
|
public function gateway()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Gateway::class);
|
|
|
|
|
}
|
2019-08-22 10:25:30 +10:00
|
|
|
}
|