Skip to content

Commit

Permalink
47 - fix missing filter property
Browse files Browse the repository at this point in the history
  • Loading branch information
teiling88 committed Feb 15, 2024
1 parent 7d7630d commit 84f5c68
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Invoice/InvoiceEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ class InvoiceEntity

public $documentUrl;

public $startDate;

public $endDate;

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

public function __construct(?\SimpleXMLElement $data = null)
Expand Down
20 changes: 20 additions & 0 deletions src/Invoice/InvoiceSearchStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ public function setEndDueDateFilter(string $endDueDate)
$this->filters['END_DUE_DATE'] = $endDueDate;
}

public function setStartDate(string $startDueDate)
{
$this->filters['START_DATE'] = $startDueDate;
}

public function setEndDateFilter(string $endDueDate)
{
$this->filters['END_DATE'] = $endDueDate;
}

public function setStartPaidDate(string $startDueDate)
{
$this->filters['START_PAID_DATE'] = $startDueDate;
}

public function setEndPaidDateFilter(string $endDueDate)
{
$this->filters['END_PAID_DATE'] = $endDueDate;
}

public function setTypeFilter(string $type)
{
$this->filters['TYPE'] = $type;
Expand Down

0 comments on commit 84f5c68

Please sign in to comment.