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