1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Set visible to boolean cast

This commit is contained in:
David Bomba 2020-10-12 10:21:24 +11:00
parent f1c5f37189
commit 5072d63436
3 changed files with 3 additions and 6 deletions

View File

@ -79,10 +79,6 @@ class CompanyGateway extends BaseModel
public function getTypeAlias($gateway_type_id)
{
if ($gateway_type_id == 'token') {
$gateway_type_id = 1;
}
return GatewayType::find($gateway_type_id)->alias;
}

View File

@ -20,7 +20,7 @@ class Gateway extends StaticModel
'is_offsite' => 'boolean',
'is_secure' => 'boolean',
'recommended' => 'boolean',
//'visible' => 'boolean',
'visible' => 'boolean',
'sort_order' => 'int',
'updated_at' => 'timestamp',
'created_at' => 'timestamp',

View File

@ -26,7 +26,8 @@ class GatewayType extends StaticModel
const ALIPAY = 6;
const SOFORT = 7;
const APPLE_PAY = 8;
const SEPA = 9;
public function gateway()
{
return $this->belongsTo(Gateway::class);