| 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\Models\Discount; |
| 8 |
use App\Billingo\Validation\Document\DocumentInsertValidator; |
| 9 |
|
| 10 |
/** |
| 11 |
* @property string $vendor_id |
| 12 |
* @property int $partner_id |
| 13 |
* @property int $block_id |
| 14 |
* @property int $bank_account_id |
| 15 |
* @property string $type |
| 16 |
* @property string $fulfillment_date |
| 17 |
* @property string $due_date |
| 18 |
* @property string $payment_method |
| 19 |
* @property string $language |
| 20 |
* @property string $currency |
| 21 |
* @property float $conversion_rate |
| 22 |
* @property bool $electronic |
| 23 |
* @property bool $paid |
| 24 |
* @property array $items |
| 25 |
* @property string $comment |
| 26 |
* @property DocumentSettings $settings |
| 27 |
* @property int[] $advance_invoice |
| 28 |
* @property Discount $discount |
| 29 |
* @property bool $instant_payment |
| 30 |
* @property DocumentInstantPaymentRequest|null $instant_payment_request |
| 31 |
*/ |
| 32 |
class DocumentInsert extends BillingoModel |
| 33 |
{ |
| 34 |
protected array $cast = [ |
| 35 |
'items' => [DocumentItem::class], |
| 36 |
'settings' => DocumentSettings::class, |
| 37 |
'discount' => Discount::class, |
| 38 |
]; |
| 39 |
|
| 40 |
protected function getValidator(): ValidableInterface |
| 41 |
{ |
| 42 |
return new DocumentInsertValidator(); |
| 43 |
} |
| 44 |
} |
| 45 |
|