VNS.GSPro 4.0.0

dotnet add package VNS.GSPro --version 4.0.0
NuGet\Install-Package VNS.GSPro -Version 4.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VNS.GSPro" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VNS.GSPro --version 4.0.0
#r "nuget: VNS.GSPro, 4.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VNS.GSPro as a Cake Addin
#addin nuget:?package=VNS.GSPro&version=4.0.0

// Install VNS.GSPro as a Cake Tool
#tool nuget:?package=VNS.GSPro&version=4.0.0

VNS GSPro

Simple integration to Gensam GSPro

Installation

Use the package manager nuget to install.

dotnet add package VNS.GSPro

Usage

// Set variables
string _url = "";
string _login = "";
string _password = "";

// Init GSPro Obj
var gs = new GSPro(_url, _login, _password);

// Ping the system
string gs.Ping();

// Check if is alive
bool gs.IsAlive;

// Get current status
string gs.Status;

// Forsikring
string _status = "TILBUD";
string _art = "";
int _frekvens = 1; // 1, 3, 6, 12

var forsikring = new VNS.GSPro.Forsikring() { Ikraft = DateTime.Now, Status = _status, Art = _art, Frekvens = _frekvens };

// Forsikring Forsikringstager Egenskaber
forsikring.Forsikringstager.Egenskaber.Add(string, string);

// Forsikringstager Adresse
forsikring.Forsikringstager.Adresse.Egenskaber.Add(string, string);

// Forsikrings Egenskaber
forsikring.Egenskaber.Add(string, string);
        
// Forsikrings Adresse Egenskaber
var adresse = new VNS.GSPro.Adresse();
adresse.Egenskaber.Add(string, string);
forsikring.Adresser.Add(adresse);
        
// Genstand 
var genstand = new VNS.GSPro.Genstand(string, string);
        
// Dækninger
genstand.Daekninger.Add(string, string);
        
// Egenskaber
genstand.Egenskaber.Add(string, string);
        
// Ydelser
genstand.Ydelser.Add(string, string);
        
// Add genstand to forsikring
forsikring.Genstande.Add(genstand);
        
// Calculate price
var calcResult = gs.BeregnPris(forsikring, out string payloadXml); // Payloadxml will return the full object as XML

// Result properties
Console.WriteLine(calcResult.StatusKode); // Get status code
Console.WriteLine(calcResult.StatusTekst); // Get status text
Console.WriteLine(calcResult.SamletPris); // Get total price

// calcResult.Priser will return a collection of prices
// calcResult.Omkostninger will return a collection of costs

Console.WriteLine(calcResult.ToXml()); // Will return the full XML

// Create forsikring
var createResult = gs.OpretAftale(forsikring, out string payloadXml); // Payloadxml will return the full object as XML

// Result properties
Console.WriteLine(createResult.StatusKode); // Get status code
Console.WriteLine(createResult.StatusTekst); // Get status text
Console.WriteLine(createResult.PoliceNummer); // Get police number
Console.WriteLine(createResult.AftaleId); // Get aftale id
Console.WriteLine(createResult.KundeNummer); // Get customer number
Console.WriteLine(createResult.IndividId); // Get individ id

Console.WriteLine(createResult.ToXml()); // Will return the full XML

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • 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
4.0.0 95 12/14/2023
3.0.6 127 10/10/2023
3.0.5 248 2/8/2023
3.0.4 239 2/8/2023
3.0.3 296 12/14/2022
3.0.2 285 12/14/2022
3.0.1 261 12/9/2022
3.0.0 264 12/6/2022
2.0.8 336 10/27/2022
2.0.7 484 9/13/2022
2.0.5 398 8/22/2022
2.0.4 429 7/11/2022
2.0.3 443 7/10/2022
2.0.2 419 7/10/2022
2.0.1 421 7/9/2022
2.0.0 436 6/29/2022