invoiceninja/app/Models/GatewayType.php
2020-10-12 07:59:25 +11:00

40 lines
816 B
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Models;
use App\Models\Gateway;
use Illuminate\Database\Eloquent\Model;
class GatewayType extends StaticModel
{
public $timestamps = false;
const CREDIT_CARD = 1;
const BANK_TRANSFER = 2;
const PAYPAL = 3;
const CRYPTO = 4;
const CUSTOM = 5;
const ALIPAY = 6;
const SOFORT = 7;
const APPLE_PAY = 8;
public function gateway()
{
return $this->belongsTo(Gateway::class);
}
public function payment_methods()
{
return $this->hasMany(PaymentType::class);
}
}