Closed krisdante closed 8 months ago
Have a look at: https://packagist.org/packages/fastbill/fastbill-php-sdk
Have to give some love to the existing test suite but this fix is publishable without running the hole test suite :-)
I'm not sure if I follow the suggestion. I reported this issue exactly against this package :)
The workaround is to extend this class https://github.com/fastbill/fastbill-php-sdk/blob/master/src/Invoice/InvoiceSearchStruct.php and
class InvoiceSearchStruct extends \FastBillSdk\Invoice\InvoiceSearchStruct
{
public function setStartDate(string $startDate)
{
$this->filters['START_DATE'] = $startDate;
}
}
but would be nice to just update the SDK.
Thanks for the pr I thought the two fields are missing in the InvoiceEntity. Don't code when you are in a hurry :D
released 0.1.5
START_DATE | Invoices from a specific date END_DATE | Invoices until a specific date
is missing