mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Update definitions
This commit is contained in:
parent
f0c278e61a
commit
ba79c6cf9c
@ -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)
|
||||
{
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
@ -255,6 +255,7 @@ class Client extends BaseModel implements HasLocalePreference
|
||||
'created_at' => 'timestamp',
|
||||
'deleted_at' => 'timestamp',
|
||||
'last_login' => 'timestamp',
|
||||
'tax_data' => 'objects',
|
||||
];
|
||||
|
||||
protected $touches = [];
|
||||
|
@ -448,6 +448,7 @@ class Company extends BaseModel
|
||||
'created_at' => 'timestamp',
|
||||
'deleted_at' => 'timestamp',
|
||||
'client_registration_fields' => 'array',
|
||||
'tax_data' => 'objects',
|
||||
];
|
||||
|
||||
protected $with = [];
|
||||
|
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user