| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Models\Partner; |
| 4 |
|
| 5 |
use App\Billingo\Contracts\ValidableInterface; |
| 6 |
use App\Billingo\Models\BillingoModel; |
| 7 |
use App\Billingo\Models\Discount; |
| 8 |
use App\Billingo\Traits\WithFactory; |
| 9 |
use App\Billingo\Validation\Partner\PartnerCustomBillingSettingsValidator; |
| 10 |
|
| 11 |
/** |
| 12 |
* @property string $payment_method |
| 13 |
* @property string $document_form |
| 14 |
* @property int $due_days |
| 15 |
* @property string $document_currency |
| 16 |
* @property string $template_language_code |
| 17 |
* @property Discount $discount |
| 18 |
*/ |
| 19 |
class PartnerCustomBillingoSettings extends BillingoModel |
| 20 |
{ |
| 21 |
use WithFactory; |
| 22 |
|
| 23 |
protected array $cast = [ |
| 24 |
'discount' => Discount::class, |
| 25 |
]; |
| 26 |
|
| 27 |
protected function getValidator(): ValidableInterface |
| 28 |
{ |
| 29 |
return new PartnerCustomBillingSettingsValidator(); |
| 30 |
} |
| 31 |
} |
| 32 |
|