Click or drag to resize

TaxCalculatorCalculateTax Method

OFV Kjøretøydata service

DEPRECATED! Calculate tax - replace old service at "api.ofv.no"

Namespace:  OfvTaxData.Service
Assembly:  OfvTaxData.Service (in OfvTaxData.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public CalculatedItem CalculateTax(
	int effectKw,
	string emissionCo2,
	int ownWeight,
	string emissionNOx,
	string fuel,
	string date,
	string ktg,
	Nullable<int> batteryRange
)

Parameters

effectKw
Type: SystemInt32
Power in Kw
emissionCo2
Type: SystemString
CO2 emmision in g/km
ownWeight
Type: SystemInt32
Weight of vehicle with driver
emissionNOx
Type: SystemString
NOx emmision in mg/km
fuel
Type: SystemString
Fuel type as text. Valid values are: DIESEL_BATTERY, GASOLINE_BATTERY, HYBRID, HYBRID_CHARGEABLE and BATTERY
date
Type: SystemString
Current date or a date back inn time for history taxes
ktg
Type: SystemString
Vehiclegroup type as text. Valid values are: PessengerCar and Commercial
batteryRange
Type: SystemNullableInt32
Battery range for hybrid vehicles

Return Value

Type: CalculatedItem
Result of tax calculation
See Also