2019-11-11 13:21:19 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\DataMapper;
|
|
|
|
|
|
|
|
class FeesAndLimits
|
|
|
|
{
|
2019-11-12 12:36:24 +01:00
|
|
|
public $min_limit = -1; //equivalent to null
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-11-12 12:36:24 +01:00
|
|
|
public $max_limit = -1; //equivalent to null
|
2019-11-11 13:21:19 +01:00
|
|
|
|
|
|
|
public $fee_amount = 0;
|
|
|
|
|
|
|
|
public $fee_percent = 0;
|
|
|
|
|
|
|
|
public $fee_tax_name1 = '';
|
|
|
|
|
|
|
|
public $fee_tax_name2 = '';
|
|
|
|
|
|
|
|
public $fee_tax_name3 = '';
|
|
|
|
|
|
|
|
public $fee_tax_rate1 = 0;
|
|
|
|
|
|
|
|
public $fee_tax_rate2 = 0;
|
|
|
|
|
|
|
|
public $fee_tax_rate3 = 0;
|
|
|
|
|
|
|
|
public $fee_cap = 0;
|
|
|
|
|
|
|
|
public $adjust_fee_percent = false;
|
|
|
|
|
|
|
|
//public $gateway_type_id = 1;
|
|
|
|
|
|
|
|
public static $casts = [
|
|
|
|
'gateway_type_id' => 'int',
|
|
|
|
'min_limit' => 'float',
|
|
|
|
'max_limit' => 'float',
|
|
|
|
'fee_amount' => 'float',
|
|
|
|
'fee_percent' => 'float',
|
|
|
|
'fee_tax_name1' => 'string',
|
|
|
|
'fee_tax_name2' => 'string',
|
|
|
|
'fee_tax_name3' => 'string',
|
|
|
|
'fee_tax_rate1' => 'void',
|
|
|
|
'fee_tax_rate2' => 'float',
|
|
|
|
'fee_tax_rate3' => 'float',
|
|
|
|
'fee_cap' => 'float',
|
|
|
|
'adjust_fee_percent' => 'bool',
|
|
|
|
];
|
|
|
|
}
|