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 / DocumentSummary.php

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

31 lines 743 B
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\Models\BillingoModel;
6 use App\Billingo\Contracts\ValidableInterface;
7 use App\Billingo\Traits\WithFactory;
8 use App\Billingo\Validation\Document\DocumentSummaryValidator;
9
10 /**
11 * @property float $net_amount
12 * @property float $net_amount_local
13 * @property float $gross_amount_local
14 * @property float $vat_amount
15 * @property float $vat_amount_local
16 * @property array $vat_rate_summary
17 */
18 class DocumentSummary extends BillingoModel
19 {
20 use WithFactory;
21
22 protected array $cast = [
23 'vat_rate_summary' => [DocumentVatRateSummary::class],
24 ];
25
26 protected function getValidator(): ValidableInterface
27 {
28 return new DocumentSummaryValidator();
29 }
30 }
31