Update definitions

This commit is contained in:
David Bomba 2023-03-21 21:29:44 +11:00
parent f0c278e61a
commit ba79c6cf9c
6 changed files with 24 additions and 3 deletions

View File

@ -13,8 +13,15 @@ namespace App\DataMapper\Tax;
use App\DataMapper\Tax\ZipTax\Response;
/**
* ClientTaxData
*
* Definition for the client tax data
*/
class ClientTaxData
{
public int $updated_at;
public function __construct(public Response $origin, public Response $destination)
{
}

View File

@ -13,8 +13,15 @@ namespace App\DataMapper\Tax;
use App\DataMapper\Tax\ZipTax\Response;
/**
* CompanyTaxData
*
* Definition for the company tax data structure
*/
class CompanyTaxData
{
public int $updated_at;
public function __construct(public Response $origin)
{
}

View File

@ -13,8 +13,15 @@ namespace App\DataMapper\Tax;
use App\DataMapper\Tax\ZipTax\Response;
/**
* InvoiceTaxData
*
* Definition for the invoice tax data structure
*/
class InvoiceTaxData
{
public int $updated_at;
public function __construct(public Response $origin)
{
}

View File

@ -255,6 +255,7 @@ class Client extends BaseModel implements HasLocalePreference
'created_at' => 'timestamp',
'deleted_at' => 'timestamp',
'last_login' => 'timestamp',
'tax_data' => 'objects',
];
protected $touches = [];

View File

@ -448,6 +448,7 @@ class Company extends BaseModel
'created_at' => 'timestamp',
'deleted_at' => 'timestamp',
'client_registration_fields' => 'array',
'tax_data' => 'objects',
];
protected $with = [];

View File

@ -277,9 +277,6 @@ class Invoice extends BaseModel
];
protected $casts = [
// 'date' => 'date:Y-m-d',
// 'due_date' => 'date:Y-m-d',
// 'partial_due_date' => 'date:Y-m-d',
'line_items' => 'object',
'backup' => 'object',
'updated_at' => 'timestamp',
@ -287,6 +284,7 @@ class Invoice extends BaseModel
'deleted_at' => 'timestamp',
'is_deleted' => 'bool',
'is_amount_discount' => 'bool',
'tax_data' => 'objects',
];
protected $with = [];