@volvo-cars/benefit-in-kind-estimator
calculate benefit in kind value of a car with a token.
Usage
import { useBenefitInKind } from '@volvo-cars/benefit-in-kind-estimator';
const { taxBreakdown, completed, error } = useBenefitInKind({
isStockCar: false,
locale: 'sv-SE',
regionCode: 'SE',
token: 'token',
envURI: '',
gpeSource: '',
salesModelName: 'default',
});
Options
options | Description | Default |
---|
isStockCar | if car is stock car ot not | false |
locale | sv-SE or en-GB | - |
salesModelName | sales model name | default |
token | car config token | - |
regionCode | SE , GB | - |
taxationDate | date of the taxation which will be used to calculate the BIK | - |
cceEnvironment | staging or qa | - |
gpeSource | gpe-prod-urax-prod or gpe-prod-urax-qa | gpe-prod-urax-prod |
skip | skip the query | false |
envURI | https://www.volvocars.com/api/graphql or https://qawww.volvocars.com/api/graphql | - |