View Source VatchexGreece (VatchexGreece v0.8.1)

Main module of VatchexGreece that contains high-level functions that the user typically will interact with.

Link to this section Summary

Functions

Pull information from the web service for the target VAT ID :afm_called_for, by the source VAT ID :afm_called_by, with authentication parameters :username and :password.

Same as VatchexGreece.fetch/1, but the resulting tuple is unwrapped. Returns nil if there were errors, otherwise it returns the resulting data.

get(input) deprecated

Pull information from the web service for the target VAT ID afm_called_for defined in the Results struct that has first been created with new/4.

Define a new struct that will be manipulated from containing only the minimal information required to query the SOAP API, to containing the complete request, the SOAP API response, and the parsed information thereof into the corresponding structs.

Link to this section Functions

Link to this function

fetch(list)

View Source (since 0.8.0)

Pull information from the web service for the target VAT ID :afm_called_for, by the source VAT ID :afm_called_by, with authentication parameters :username and :password.

To create the authentication credentials:

  1. Sign up to the "wspublicreg" service using your TAXISnet credentials.
  2. Create "special access codes" through the "Διαχείριση Ειδικών Κωδικών" application on TAXISnet.

Regarding the target and source VAT IDs, you will typically pass a valid 9-digit VAT ID, with or without the "EL" prefix. The "EL" prefix will get stripped. Older VAT IDs only have 8 digits, and will get leading-zero-padded to 9 digits.

Note: the function minimizes and checks the source and target VAT IDs, and only sends the request to the API if both minimized VAT IDs are valid.

Link to this function

fetch!(list)

View Source (since 0.8.0)

Same as VatchexGreece.fetch/1, but the resulting tuple is unwrapped. Returns nil if there were errors, otherwise it returns the resulting data.

Link to this function

get(input)

View Source (since 0.7.0)
This function is deprecated. Instead of chaining this after new/4, use fetch/1.

Pull information from the web service for the target VAT ID afm_called_for defined in the Results struct that has first been created with new/4.

Note: the function minimizes and checks the source and target VAT IDs, and only sends the request to the API if both minimized VAT IDs are valid.

Link to this function

new(afm_called_for, username, password, afm_called_by)

View Source (since 0.8.0)
This function is deprecated. Instead of chaining this with get/1, use fetch/1.

Define a new struct that will be manipulated from containing only the minimal information required to query the SOAP API, to containing the complete request, the SOAP API response, and the parsed information thereof into the corresponding structs.