Releases: flooris/ergonode-api-laravel
Releases · flooris/ergonode-api-laravel
Multi Language Support
What's Changed
- Multi language support by @TimBlommestijn-flooris in #11
Full Changelog: 0.5.4...0.5.5
Changes from Pull Request 11
- added LanguageClient
- added LanguageBaseModel
- added LanguageModel
- added function resolveTranslationsOnProductResource to resolve translation of attributes from the product.
- updated productModel to have a $translations array
- added setLocale function to the connector to retrieve values from a different language
- added a languages function to access LanguageClient
Ergonode authentication update
- Created custom ErgnodeConnectionError
- Changed the connector to authenticate once a request is being send if its not authenticated
- Updated the Authenticator to have a function that checks the cache tokens
- Updated the Authenticator to use the ErgonodeConnectionError when the login fails
Added create and update methods for the productClient
Added functionalities
- added a create method in the productClient
- added a update method in the productClient
- added a patch method in the Connector for the update requests
0.3.7
Bugfix: Ergonode connection will not throw an error when credentials are not given in env until an actual request is made.
Adding the client of AttributeOption with a few fixes
Full list of changes:
- Client of AttributeOption has been added
- Extra function on AttributeOption to get all the options of an attribute, including id, code and label
- Code formatting
- The model factory will now provide the ID as key when resolving a multi select element from the template
Can get a Collection of ProductListItemModel with the given columns (locale specific attributes)
Functionalities added:
- Added
productsList
to theErgonodeApi
for retrieving a list of products incl. the given columns - Added a option function on the
AttributeClient
, this can get the option of an attribute - Added a function that gets the value of an option of an attribute to the
ErgonodeObjectApiAbstract