| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Models\Document; |
| 4 |
|
| 5 |
use App\Billingo\Models\Address; |
| 6 |
use App\Billingo\Models\BillingoModel; |
| 7 |
use App\Billingo\Models\Partner\PartnerShipping; |
| 8 |
use App\Billingo\Contracts\ValidableInterface; |
| 9 |
use App\Billingo\Traits\WithFactory; |
| 10 |
use App\Billingo\Validation\Document\DocumentPartnerValidator; |
| 11 |
|
| 12 |
/** |
| 13 |
* @property int $id |
| 14 |
* @property string $name |
| 15 |
* @property Address $address |
| 16 |
* @property array $emails |
| 17 |
* @property string $taxcode |
| 18 |
* @property string $iban |
| 19 |
* @property string $swift |
| 20 |
* @property string $account_number |
| 21 |
* @property string $phone |
| 22 |
* @property string $tax_type |
| 23 |
* @property PartnerShipping $partner_shipping |
| 24 |
*/ |
| 25 |
class DocumentPartner extends BillingoModel |
| 26 |
{ |
| 27 |
|
| 28 |
use WithFactory; |
| 29 |
|
| 30 |
protected array $cast = [ |
| 31 |
'address' => Address::class, |
| 32 |
'partner_shipping' => PartnerShipping::class, |
| 33 |
]; |
| 34 |
|
| 35 |
protected function getValidator(): ValidableInterface |
| 36 |
{ |
| 37 |
return new DocumentPartnerValidator(); |
| 38 |
} |
| 39 |
} |
| 40 |
|