Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<ProposalTransfer xmlns="http://www.codeweavers.net/webservices">
...
<Vehicle>
<IsNew>false</IsNew>
<IsCommercial>false</IsCommercial>
<Make>Volkswagen</Make>
<Model>Passat Diesel Estate</Model>
<Derivative>1.6 Tdi Bluemotion Tech S 5dr (2011 -)</Derivative>
<CurrentMileage>18000</CurrentMileage>
...</Vehicle>
<ValueAddedProducts>
<ValueAddedProduct>
<Name>Product Name</Name>
<Type>Product Type (see below)</Type>
<PriceIncludingVAT>1234.56</PriceIncludingVAT>
</ValueAddedProduct>
</ValueAddedProducts>
<Credit>...
<head>
<script type='text/javascript'>
function loadPlugin() {
codeweavers.main({ });
}
</script>
</head>
<body onload="loadPlugin()">
<div id="PLUGIN_DIV_ID">
</div>
defaultParameters: {
deposit: { },
term: { },
annualMileage: { }
}
emailFunction: function (emailer) {
emailer.send({ }); // Required - This will send the email.
}
options: {
dontCalculateOnLoad: false,
disableAutomaticRecalculation: false,
recalculationFadeSpeed: 100,
recalculationFadeAmount: 100
}
registration: {
date: '2013-02-07'
}
registration: {
date: '2014-01-01',
number: 'BT02BCY'
}
vehicle: {
type: 'car',
identifier: '57294',
identifierType: 'CAPSHORTCODE',
isNew: false,
cashPrice: '9695',
imageUrl: 'www.MyUrl.co.uk/Image/car.jpg',
linkBackUrl: 'www.MyUrl.co.uk/car',
mileage: '12123',
registration: { },
vehicle: {
stockId: "STOCK1234"
}