Skip to content

Commit

Permalink
first commit: created entities for taxes, settings, received document…
Browse files Browse the repository at this point in the history
…s, cashbook and archive
  • Loading branch information
the-marciello committed May 30, 2024
1 parent a31b822 commit 7f3865c
Show file tree
Hide file tree
Showing 12 changed files with 520 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Entities/Archive/Archive.php
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;
}
12 changes: 12 additions & 0 deletions src/Entities/Archive/ArchiveCreate.php
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;
}
62 changes: 62 additions & 0 deletions src/Entities/CashBook/CashBook.php
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;
}
158 changes: 158 additions & 0 deletions src/Entities/ReceivedDocuments/ReceivedDocument.php
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;
}
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 src/Entities/ReceivedDocuments/ReceivedDocumentsPreCreateInfo.php
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;
}
57 changes: 57 additions & 0 deletions src/Entities/Settings/Settings.php
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;

}
Loading

0 comments on commit 7f3865c

Please sign in to comment.