-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{package}: [update] - general fiscalization stuff
- Loading branch information
Showing
14 changed files
with
1,147 additions
and
41 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 tonikresic\CroatianFiscalization\Company; | ||
|
||
class Certificate | ||
{ | ||
/** | ||
* Path to the Certificate. | ||
* | ||
* @var string | ||
*/ | ||
public string $path; | ||
|
||
/** | ||
* Certificate password. | ||
* | ||
* @var string | ||
*/ | ||
public string $password; | ||
|
||
/** | ||
* Certificate constructor. | ||
* | ||
* @param string $path | ||
* @param string $password | ||
*/ | ||
public function __construct(string $path, string $password) | ||
{ | ||
$this->path = $path; | ||
$this->password = $password; | ||
} | ||
} |
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,51 @@ | ||
<?php | ||
|
||
namespace tonikresic\CroatianFiscalization\Company; | ||
|
||
class Company | ||
{ | ||
/** | ||
* Company UID. | ||
* | ||
* @var string | ||
*/ | ||
public string $uid; | ||
|
||
/** | ||
* Company fiscalization Certificate. | ||
* | ||
* @var Certificate | ||
*/ | ||
public Certificate $certificate; | ||
|
||
/** | ||
* Demo fiscalization. | ||
* | ||
* @var bool | ||
*/ | ||
public bool $demo; | ||
|
||
|
||
/** | ||
* If the Invoice should be taxed. | ||
* | ||
* @var bool | ||
*/ | ||
public bool $shouldBeTaxed; | ||
|
||
/** | ||
* Company constructor. | ||
* | ||
* @param string $uid | ||
* @param Certificate $certificate | ||
* @param bool $demo | ||
* @param bool $shouldBeTaxed | ||
*/ | ||
public function __construct(string $uid, Certificate $certificate, bool $demo, bool $shouldBeTaxed) | ||
{ | ||
$this->uid = $uid; | ||
$this->certificate = $certificate; | ||
$this->demo = $demo; | ||
$this->shouldBeTaxed = $shouldBeTaxed; | ||
} | ||
} |
Oops, something went wrong.