| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Models\Document; |
| 4 |
|
| 5 |
use App\Billingo\Contracts\ValidableInterface; |
| 6 |
use App\Billingo\Models\BillingoModel; |
| 7 |
use App\Billingo\Validation\Document\Insert\InsertReceiptValidator; |
| 8 |
|
| 9 |
/** |
| 10 |
* @property string $vendor_id |
| 11 |
* @property int $partner_id |
| 12 |
* @property string $name |
| 13 |
* @property string[] $emails |
| 14 |
* @property int $block_id |
| 15 |
* @property string $type |
| 16 |
* @property string $payment_method |
| 17 |
* @property string $currency |
| 18 |
* @property float $conversion_rate |
| 19 |
* @property bool $electronic |
| 20 |
* @property array $items |
| 21 |
*/ |
| 22 |
class ReceiptInsert extends BillingoModel |
| 23 |
{ |
| 24 |
|
| 25 |
protected array $cast = [ |
| 26 |
'items' => [ReceiptProductData::class], |
| 27 |
]; |
| 28 |
|
| 29 |
protected function getValidator(): ValidableInterface |
| 30 |
{ |
| 31 |
return new InsertReceiptValidator(); |
| 32 |
} |
| 33 |
} |
| 34 |
|