Skip to content

Releases: Anteris-Dev/autotask-client

v0.3.1

02 Sep 00:16
822641f
Compare
Choose a tag to compare

Added

  • Test script to composer.json file.

Fixed

  • Invalid composer.json file.
  • Requirement of .env file existence caused tests to fail.

Removed

  • Tests for modules our sandbox account does not have access to.

v0.3.0

02 Sep 00:16
88a48ad
Compare
Choose a tag to compare

Added

  • __toString() method on the QueryBuilder classes which allows for the built query to be used as a string. (Just build your query as normal but don't execute it, echo it!)
  • loop() method to QueryBuilder which allows you to loop through all records and perform an action.
  • Unit tests in the tests directory. Coverage is minimal for now.
  • PHP 7.4 as an explicit dependency.

Fixed

  • GLCode, MSRP, SGDA, SIC, and SKU are now corrected as lowercase in their camel cased name.
  • paymentTerms and quantityNowReceiving are now nullable given how Autotask responds to these requests.
  • Types of long and short from Autotask are no longer type cast. There is not a good PHP alternative (int is too short, double does not work).
  • contractID is cast to an integer instead of string. (Autotask says its dataType should be string but returns int)
  • Paginator classes were being generated with a funky $contacts variable (even if they were not a contact resource! 😐)

Removed

  • Docs directory. This belongs elsewhere.

v0.2.1

31 Aug 15:53
7c0f653
Compare
Choose a tag to compare

Added

  • Description of requirements to the README.

Changed

  • Relaxed composer version requirements.

v0.2.0

25 Aug 19:32
Compare
Choose a tag to compare

Added

  • This changelog.
  • Support for retrieving entity metadata via getEntityInformation(), getEntityFields(), and getEntityUserDefinedFields().
  • Support for retrieving the query count via the count() method on the QueryBuilder.

Changed

  • User Defined Fields are now represented as Data Transfer Objects, though they still are organized as an array on each entity that supports them.

Fixed

  • User Defined Fields are not present on entities that do not support them.
  • Guzzle Response object is not imported on service classes that do not require it.

v0.1.4

21 Aug 16:25
Compare
Choose a tag to compare

Fixes

  • Issue with child resources where they were not sending requests to the right endpoint.

v0.1.3

18 Aug 16:53
Compare
Choose a tag to compare

Changed

  • Version constraints in Composer to be more relaxed.

Fixed

  • QueryBuilder getFilters() returned $this->filters which did not exist.
  • Entity constructors did not check to see if the array property was set before attempting to cast to Carbon.

v0.1.2

18 Aug 13:59
Compare
Choose a tag to compare
  • Adds Carbon as an explicit dependency to composer.

v0.1.1

17 Aug 23:09
Compare
Choose a tag to compare
  • Resolves an issue with the Base URI where a developer may pass in something that doesn't work.

v0.1.0

17 Aug 22:12
Compare
Choose a tag to compare

Initial release of the Autotask API client.