Skip to content

Commit

Permalink
47 - fix missing property
Browse files Browse the repository at this point in the history
  • Loading branch information
teiling88 committed Feb 15, 2024
1 parent 280174e commit 7d7630d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Invoice/InvoiceEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ class InvoiceEntity

public $documentUrl;

public $startDate;

public $endDate;

public const FIELD_MAPPING = [
'INVOICE_ID' => 'invoiceId',
'TYPE' => 'type',
Expand Down Expand Up @@ -183,6 +187,8 @@ class InvoiceEntity
'PAYMENTS' => 'payments',
'PAYMENT_INFO' => 'paymentInfo',
'DOCUMENT_URL' => 'documentUrl',
'START_DATE' => 'startDate',
'END_DATE' => 'endDate',
];

public const XML_FIELD_MAPPING = [
Expand Down Expand Up @@ -240,9 +246,11 @@ class InvoiceEntity
'payments' => 'PAYMENTS',
'paymentInfo' => 'PAYMENT_INFO',
'documentUrl' => 'DOCUMENT_URL',
'startDate' => 'START_DATE',
'endDate' => 'END_DATE',
];

public function __construct(\SimpleXMLElement $data = null)
public function __construct(?\SimpleXMLElement $data = null)
{
if ($data) {
$this->setData($data);
Expand Down

0 comments on commit 7d7630d

Please sign in to comment.