2019-11-11 13:21:19 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2019-11-11 13:21:19 +01:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2022-04-27 05:20:41 +02:00
|
|
|
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-11-11 13:21:19 +01:00
|
|
|
*
|
2021-06-16 08:58:16 +02:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2019-11-11 13:21:19 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\DataMapper;
|
|
|
|
|
|
|
|
class FeesAndLimits
|
|
|
|
{
|
2019-12-30 22:59:12 +01:00
|
|
|
public $min_limit = -1; //equivalent to null
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $max_limit = -1; //equivalent to null
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_amount = 0;
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_percent = 0;
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_tax_name1 = '';
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_tax_name2 = '';
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_tax_name3 = '';
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_tax_rate1 = 0;
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_tax_rate2 = 0;
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_tax_rate3 = 0;
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $fee_cap = 0;
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2019-12-30 22:59:12 +01:00
|
|
|
public $adjust_fee_percent = false;
|
2019-11-11 13:21:19 +01:00
|
|
|
|
2021-01-18 11:59:24 +01:00
|
|
|
public $is_enabled = true;
|
|
|
|
|
2019-11-11 13:21:19 +01:00
|
|
|
//public $gateway_type_id = 1;
|
|
|
|
|
|
|
|
public static $casts = [
|
2021-01-18 11:59:24 +01:00
|
|
|
'is_enabled' => 'bool',
|
2019-11-11 13:21:19 +01:00
|
|
|
'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',
|
2020-02-26 08:55:01 +01:00
|
|
|
'fee_tax_rate1' => 'float',
|
2019-11-11 13:21:19 +01:00
|
|
|
'fee_tax_rate2' => 'float',
|
|
|
|
'fee_tax_rate3' => 'float',
|
|
|
|
'fee_cap' => 'float',
|
|
|
|
'adjust_fee_percent' => 'bool',
|
|
|
|
];
|
|
|
|
}
|