| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Models\Product; |
| 4 |
|
| 5 |
use App\Billingo\Contracts\ValidableInterface; |
| 6 |
use App\Billingo\Models\BillingoModel; |
| 7 |
use App\Billingo\Traits\WithFactory; |
| 8 |
use App\Billingo\Validation\Product\ProductValidator; |
| 9 |
|
| 10 |
/** |
| 11 |
* @property int $id |
| 12 |
* @property string $name |
| 13 |
* @property string $comment |
| 14 |
* @property string $currency |
| 15 |
* @property string $vat |
| 16 |
* @property float $net_unit_price |
| 17 |
* @property float $gross_unit_price |
| 18 |
* @property string $unit |
| 19 |
* @property string $general_ledger_number |
| 20 |
* @property string $general_ledger_taxcode |
| 21 |
* @property string $entitlement |
| 22 |
* @property string $ean |
| 23 |
* @property string $sku |
| 24 |
* @property bool $is_manage |
| 25 |
* @property float $purchase_price |
| 26 |
* @property bool $is_generate_erase_code |
| 27 |
*/ |
| 28 |
|
| 29 |
class Product extends BillingoModel |
| 30 |
{ |
| 31 |
use WithFactory; |
| 32 |
|
| 33 |
protected function getValidator(): ValidableInterface |
| 34 |
{ |
| 35 |
return new ProductValidator(); |
| 36 |
} |
| 37 |
} |
| 38 |
|