php-twinfield / twinfield

PHP 7.3+ Library for using the Twinfield API.
https://accounting.twinfield.com/webservices/documentation/#/
Other
33 stars 77 forks source link

How to add retrieving Declarations? (Build DeclarationApiConnector) #216

Closed jhjvandenbroek closed 2 years ago

jhjvandenbroek commented 2 years ago

I need some guidance since the architecture of php-twinfield is quite complex.

What steps need to be taken to add calls to the Declarations queries as defined in Twinfield: /webservices/declarations.asmx?wsdl

rojtjo commented 2 years ago

I've prepared some things for you on the feature/declarations branch which you could use as a reference of as a starting point.

I created the DeclarationService and the DeclarationApiConnector classes and made a start on implementing the GetAllSummaries query. I've added @todo comments in the following commit https://github.com/php-twinfield/twinfield/commit/7f55c358e91b3bfefd5ffa3a9d40002d2fa125c2 which should show you what's left to do.

Let me know if this helps!

jhjvandenbroek commented 2 years ago

Thank you for these pointers and the code. I took a look and it seems fairly straightforward to me now.

However by now we've implemented our own connector (without the use of this package). It is a good fit for us as we needed only a few endpoints. I'm not sure if I will return to this package any time in the future.