PluginProbe
Billingo Official for WooCommerce / trunk
Billingo Official for WooCommerce vtrunk
4.3.3 4.3.2 trunk 0.0.2 1.0.0 2.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 All 82 releases
billingo / src / Models / Document / Document.php

Document.php in Billingo Official for WooCommerce trunk, at src/Models/Document/Document.php

66 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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\Models\Document\DocumentPartner as DocumentPartner;
9 use App\Billingo\Models\Partner\Partner;
10 use App\Billingo\Traits\WithFactory;
11 use App\Billingo\Validation\Document\DocumentValidator;
12
13 /**
14 * * @property int $id
15 * * @property string $invoice_number
16 * * @property string $type
17 * * @property string $correction_type
18 * * @property bool $cancelled
19 * * @property int $block_id
20 * * @property string $payment_status
21 * * @property string $payment_method
22 * * @property float $gross_total
23 * * @property string $currency
24 * * @property float $conversion_rate
25 * * @property string $invoice_date
26 * * @property string $fulfillment_date
27 * * @property string $due_date
28 * * @property string|null $paid_date
29 * * @property Organization $organization
30 * * @property Partner $partner
31 * * @property DocumentPartner $document_partner
32 * * @property bool $electronic
33 * * @property string $comment
34 * * @property array $tags
35 * * @property string $notification_status
36 * * @property string $language
37 * * @property array $items
38 * * @property array $settings
39 * * @property string $online_szamla_status
40 * * @property float|null $discount
41 * * @property int|null $recurring_id
42 * * @property DocumentSummary $summary
43 * * @property array $related_documents
44 */
45 class Document extends BillingoModel
46 {
47
48 use WithFactory;
49
50 protected array $cast = [
51 'organization' => Organization::class,
52 'partner' => Partner::class,
53 'document_partner' => DocumentPartner::class,
54 'items' => [DocumentItem::class],
55 'summary' => DocumentSummary::class,
56 'settings' => DocumentSettings::class,
57 'related_documents' => [DocumentAncestor::class],
58 'discount' => Discount::class,
59 ];
60
61 protected function getValidator(): ValidableInterface
62 {
63 return new DocumentValidator();
64 }
65 }
66