Skip to content

GDW-Innovations/GDWInnovations.TagorClient

Repository files navigation

The Tagor.NET API client component implements the Tagor API v2.0 API (Bailiff software developed in Belgium by a company called Organi). The component requires a Tagor server and API key to connect to.

The code (in the TagorClient folder) is entirely generated by the OpenAPI Generator project. Recreate this using this command

openapi-generator-cli generate -i TagorApi.yaml -g csharp -o GDWInnovations.TagorClient --additional-properties=packageName=GDWInnovations.TagorClient -t ./Templates/ -c config.json

We used templating and configuration files. Documentation can be seen here and template sources can be seen here


The documentation for the api is very complete and can be found under TagorClient/docs

IMPORTANT: This code comes as provided, with no support or guarantees. This code is not owned, published or supported by Organi but is managed by GDW Innovations.

 ___________ _    _   _____                            _   _                 
|  __ \  _  \ |  | | |_   _|                          | | (_)                
| |  \/ | | | |  | |   | | _ __  _ __   _____   ____ _| |_ _  ___  _ __  ___ 
| | __| | | | |/\| |   | || '_ \| '_ \ / _ \ \ / / _` | __| |/ _ \| '_ \/ __|
| |_\ \ |/ /\  /\  /  _| || | | | | | | (_) \ V / (_| | |_| | (_) | | | \__ \
 \____/___/  \/  \/   \___/_| |_|_| |_|\___/ \_/ \__,_|\__|_|\___/|_| |_|___/
                                                                             

Issues

When generating some objects who require some fields to not be null, you may get a null value exception depending on how you initialize the objects. You may get an exception if you initialize an object via the Object initialization syntax, but not if you use the constructor initialization

// Object initialization syntax. Will fail because the internal object is first initialized, and then passed the arguments (in curly braces)
TagorServiceOnlinePaymentReceivedRequest request = new()
{
    Request = new()
    {
        Bedrag = "123,45",
        TDOSId = "abc",
        TPARId = "def",
    }
};

// Constructor initialization of the inner object. Will not fail
TagorServiceOnlinePaymentReceivedRequest requestTwo = new()
{
    Request = new(bedrag: "123,45", tDOSId: "abc", tPARId: "def")
};

Updates

Update 2025-01-20: Renamed the namespaces from TagorClient to GDWInnovations.TagorClient

Update 2025-02-20: Changed the send sms code Actions/SendSms from enum to string.

Update 2025-02-21: We allow logging in the apis! For this, just call xxxApi.SetLogger(LoggerFactory)

About

The Tagor.NET component implements the Tagor API v2.0 API and provides a generated client component. The component requires a Tagor server and API key to connect to.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors