EKAER.Client
1.0.0
dotnet add package EKAER.Client --version 1.0.0
NuGet\Install-Package EKAER.Client -Version 1.0.0
<PackageReference Include="EKAER.Client" Version="1.0.0" />
paket add EKAER.Client --version 1.0.0
#r "nuget: EKAER.Client, 1.0.0"
// Install EKAER.Client as a Cake Addin
#addin nuget:?package=EKAER.Client&version=1.0.0
// Install EKAER.Client as a Cake Tool
#tool nuget:?package=EKAER.Client&version=1.0.0
Preamble and warnings
PLEASE NOTE: this is not an official client, and not supported by the EKAER or by the National Tax and Customs Administration of Hungary.
Please read and understand the license before you start to use it!
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What is it?
This is an unofficial .NET standard client library for the hungarian ekaer API interface. With this library you can:
- Create trade cards
- List your trade cards
- Modify your trade cards
- Delete your trade cards
- Finalize your trade cards
For more information see the official website at https://ekaer.nav.gov.hu/ and the official API documentation at: https://ekaer.nav.gov.hu/faq/?page_id=9
How to use?
Basically you must understand the official documentation, then add this project as reference.
Query tradecard
var client = new ApiClient(apiUser, apiPassword, VATNumber, apiSecret);
var tradeCard = client.QueryTradeCard("TCN NUMBER");
Modify tradecard
tradeCard = client.ModifyTradeCard(tradeCard);
Finalize tradecard
client.FinalizeTradeCard(tradeCard.Tcn);
Create tradecard
client.CreateTradeCard(tradeCard);
Delete tradecard
client.DeleteTradeCard(tradeCard.Tcn, "Reason text");
Error handling
When something goes wrong, you can catch the EKAERException exception for error details.
try
{
var finalized = client.FinalizeTradeCard(tradeCard.Tcn);
}
catch (EKAERException e)
{
Console.WriteLine(e.Result.ReasonCode);
Console.WriteLine(e.Result.FuncCode);
Console.WriteLine(e.Message);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 577 | 7/10/2019 |