PluginProbe
Billingo Official for WooCommerce / 4.2.9
Billingo Official for WooCommerce v4.2.9
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 / Spending / Spending.php

Spending.php in Billingo Official for WooCommerce 4.2.9, at src/Models/Spending/Spending.php

40 lines 1015 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\Spending;
4
5 use App\Billingo\Contracts\ValidableInterface;
6 use App\Billingo\Models\BillingoModel;
7 use App\Billingo\Validation\Spending\SpendingValidator;
8
9 /**
10 * @property int $id
11 * @property int $organization_id
12 * @property string $category
13 * @property string|null $paid_at
14 * @property string $fulfillment_date
15 * @property SpendingPartner $partner
16 * @property string $invoice_number
17 * @property string $currency
18 * @property float $conversion_rate
19 * @property float $total_gross
20 * @property float $total_gross_local
21 * @property float $total_vat_amount
22 * @property float $total_vat_amount_local
23 * @property string $invoice_date
24 * @property string $due_date
25 * @property string $payment_method
26 * @property string|null $comment
27 */
28 class Spending extends BillingoModel
29 {
30
31 protected array $cast = [
32 'partner' => SpendingPartner::class,
33 ];
34
35 protected function getValidator(): ValidableInterface
36 {
37 return new SpendingValidator();
38 }
39 }
40