generated from offline-agency/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first commit: created entities for taxes, settings, received document…
…s, cashbook and archive
- Loading branch information
1 parent
a31b822
commit 7f3865c
Showing
12 changed files
with
520 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
namespace OfflineAgency\LaravelFattureInCloudV2\Entities\Archive; | ||
|
||
use OfflineAgency\LaravelFattureInCloudV2\Entities\AbstractEntity; | ||
|
||
class Archive extends AbstractEntity{ | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $date; //TODO: date format | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $description; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $attachment_url; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $category; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
namespace OfflineAgency\LaravelFattureInCloudV2\Entities\Archive; | ||
|
||
use OfflineAgency\LaravelFattureInCloudV2\Entities\AbstractEntity; | ||
|
||
class ArchiveCreate extends AbstractEntity | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $attachment_token; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
namespace OfflineAgency\LaravelFattureInCloudV2\Entities\CashBook; | ||
|
||
use OfflineAgency\LaravelFattureInCloudV2\Entities\AbstractEntity; | ||
|
||
class CashBook extends AbstractEntity | ||
{ | ||
|
||
/** | ||
* @var String | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $date; //TODO: date format | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $description; | ||
/** | ||
* @var string | ||
*/ | ||
public $kind;//TODO: can be only some values | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $type;//TODO: can be only some values | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $entity_name; | ||
|
||
/** | ||
* @var object | ||
*/ | ||
public $document; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amount_in; | ||
|
||
/** | ||
* @var object | ||
*/ | ||
public $payment_account_in; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amount_out; | ||
|
||
/** | ||
* @var object | ||
*/ | ||
public $payment_account_out; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
<?php | ||
|
||
namespace OfflineAgency\LaravelFattureInCloudV2\Entities\ReceivedDocuments; | ||
|
||
use OfflineAgency\LaravelFattureInCloudV2\Entities\AbstractEntity; | ||
|
||
class ReceivedDocument extends AbstractEntity | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $type; //TODO: can be only some values | ||
|
||
/** | ||
* @var object | ||
*/ | ||
public $entity; //TODO: relate another class | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $date; //TODO: date format | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $category; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $description; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amount_net; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amount_vat; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amount_withholding_tax; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amount_other_withholding_tax; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amount_gross; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $amortization; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $rc_center; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $invoice_number; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $is_marked; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $is_detailed; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $e_invoice; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $next_due_date; | ||
|
||
/** | ||
* @var object | ||
*/ | ||
public $currency; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $tax_deductibility; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $vat_deductibility; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $item_list; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $payment_list; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $attachment_url; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $attachment_preview_url; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $auto_calculate; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $attachment_token; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $locked; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $created_at; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $updated_at; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Entities/ReceivedDocuments/ReceivedDocumentsGetExistingTotals.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace OfflineAgency\LaravelFattureInCloudV2\Entities\ReceivedDocuments; | ||
|
||
use OfflineAgency\LaravelFattureInCloudV2\Entities\AbstractEntity; | ||
|
||
class ReceivedDocumentsGetExistingTotals extends AbstractEntity | ||
{ | ||
/** | ||
* @var float | ||
*/ | ||
public $amount_due; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
public $payments_sum; | ||
|
||
} | ||
|
||
|
43 changes: 43 additions & 0 deletions
43
src/Entities/ReceivedDocuments/ReceivedDocumentsPreCreateInfo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace OfflineAgency\LaravelFattureInCloudV2\Entities\ReceivedDocuments; | ||
|
||
use OfflineAgency\LaravelFattureInCloudV2\Entities\AbstractEntity; | ||
|
||
class ReceivedDocumentsPreCreateInfo extends AbstractEntity | ||
{ | ||
/** | ||
* @var object | ||
*/ | ||
public $default_values; | ||
|
||
/** | ||
* @var object | ||
*/ | ||
public $items_default_values; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $countries_list; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $currencies_list; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $categories_list; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $payment_accounts_list; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $vat_types_list; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
namespace OfflineAgency\LaravelFattureInCloudV2\Entities\Settings; | ||
|
||
use OfflineAgency\LaravelFattureInCloudV2\Entities\AbstractEntity; | ||
|
||
class Settings extends AbstractEntity{ | ||
/** | ||
* @var int | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $name; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $type; //TODO: can be only some values | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $is_default; | ||
|
||
/** | ||
* @var object | ||
*/ | ||
public $default_payment_account; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $details; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $bank_iban; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $bank_name; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $bank_beneficiary; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $ei_payment_method; | ||
|
||
} |
Oops, something went wrong.