Click or drag to resize

TaxCalculatorGetTax Method

OFV Kjøretøydata service

DEPRECATED! Calculate tax

Namespace:  OfvTaxData.Service
Assembly:  OfvTaxData.Service (in OfvTaxData.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public CalculatedItem GetTax(
	string username,
	string password,
	string ipaddress,
	int vehicleGroup,
	string date,
	int weight,
	int power,
	string co2,
	string nox,
	int fuel,
	int energysource,
	Nullable<int> batteryRange
)

Parameters

username
Type: SystemString
Valid username
password
Type: SystemString
Valid password MD5 encrypted
ipaddress
Type: SystemString
Internet ip address of requester
vehicleGroup
Type: SystemInt32
Vehiclegroup code. Example: 101 = Passenger car, 311 = Commercial, etc.
date
Type: SystemString
Current date or a date back inn time for history taxes
weight
Type: SystemInt32
Weight of vehicle with driver
power
Type: SystemInt32
Power in Kw
co2
Type: SystemString
CO2 emmision in g/km
nox
Type: SystemString
NOx emmision in mg/km
fuel
Type: SystemInt32
Fuel type - see GetAvailableInputValuesTax(String, String, String) to get list of valid values
energysource
Type: SystemInt32
Energysource for vehicle - see GetAvailableInputValuesTax(String, String, String) to get list of valid values
batteryRange
Type: SystemNullableInt32
Battery range for hybrid vehicles

Return Value

Type: CalculatedItem
Result of tax calculation
Exceptions
ExceptionCondition
SystemException
See Also