VatchexGreece v0.6.0 released, now works properly as a dependency

1 minute read

VatchexGreece logo in SVG

VatchexGreece is an Elixir library to easily pull company information from the SOAP web service (WSDL definition) of the Greek General Secretariat of Information Systems for Public Administration (GSIS) using the VAT ID (Αριθμός Φορολογικού Μητρώου, abbreviated as “ΑΦΜ” or “Α.Φ.Μ.”).

v0.6.0

With the support of the patient folks on the Elixir discord server, the library now works properly as a dependency for applications.

Changelog

  • Removed dependency on values within config/config.exs in accordance with the Elixir Library Guidelines
  • Moved the XML request template request.xml.eex from priv/ to lib/, and it now gets statically compiled into VatchexGreece.Request.prepare/4.
  • Moved gsis_wsdl_url into VatchexGreece.Request as @gsis_wsdl_url, since it’s only used within request.ex.
  • Most VAT validation functions in VatchexGreece.Validate are now public, each with a tuple, bang, and boolean variant for convenience.
  • Fixed error handling in VatchexGreece.Process to play nice with downstream functions in pipes, i.e. with functions in VatchexGreece.Fixes.
  • Functions in VatchexGreece.Fixes now work with response tuples, so that errors/exceptions bubble up to Vatchex.get/4 and its arity-2 and bang variants.
  • Improved documentation, and installation instructions now include how to configure Soap in your app’s config/config.exs in order to use VatchexGreece as a dependency, until PR #108 gets merged.