1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 17:31:35 +02:00
invoiceninja/app/Models/AccountGatewayToken.php
2016-05-10 18:46:32 -04:00

25 lines
572 B
PHP

<?php namespace App\Models;
use Eloquent;
use Illuminate\Database\Eloquent\SoftDeletes;
class AccountGatewayToken extends Eloquent
{
use SoftDeletes;
protected $dates = ['deleted_at'];
public $timestamps = true;
protected $casts = [
'uses_local_payment_methods' => 'boolean',
];
public function payment_methods()
{
return $this->hasMany('App\Models\PaymentMethod');
}
public function default_payment_method()
{
return $this->hasOne('App\Models\PaymentMethod', 'id', 'default_payment_method_id');
}
}