Skip to content

Commit

Permalink
Add execution to einvoice upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ciungulete committed Sep 4, 2024
1 parent 6740744 commit d243a40
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Resources/Efactura.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ class Efactura
*
* @throws Exception
*/
public function upload(string $xml_path, string $tax_identification_number, UploadStandard $standard = UploadStandard::UBL, bool $extern = false, bool $selfInvoice = false): CreateUploadResponse
{
public function upload(
string $xml_path,
string $tax_identification_number,
UploadStandard $standard = UploadStandard::UBL,
bool $extern = false,
bool $selfInvoice = false,
bool $execution = false,
): CreateUploadResponse {
$payload = Payload::upload(
resource: 'prod/FCTEL/rest/upload',
body: Xml::from($xml_path)->toString(),
Expand All @@ -35,6 +41,7 @@ public function upload(string $xml_path, string $tax_identification_number, Uplo
'standard' => $standard->value,
...($extern ? ['extern' => 'DA'] : []),
...($selfInvoice ? ['autofactura' => 'DA'] : []),
...($execution ? ['executare' => 'DA'] : []),
],
);

Expand Down

0 comments on commit d243a40

Please sign in to comment.