1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/DataMapper/FeesAndLimits.php

61 lines
1.3 KiB
PHP
Raw Normal View History

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2023-01-28 23:21:40 +01:00
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
*
2021-06-16 08:58:16 +02:00
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\DataMapper;
class FeesAndLimits
{
public $min_limit = -1; //equivalent to null
public $max_limit = -1; //equivalent to null
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;
2021-01-18 11:59:24 +01:00
public $is_enabled = true;
//public $gateway_type_id = 1;
public static $casts = [
2021-01-18 11:59:24 +01:00
'is_enabled' => 'bool',
'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',
'fee_tax_rate2' => 'float',
'fee_tax_rate3' => 'float',
'fee_cap' => 'float',
'adjust_fee_percent' => 'bool',
];
}