Server protocol interface
- Source:
Methods
getAvailableLeasingParams(on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
on_success |
function
|
|
on_failure |
function
|
getCampaigns(feed_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
feed_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
getConfigQuickInfo(session_id, config_name, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
config_name |
string
|
|
on_success |
function
|
|
on_failure |
function
|
getRetailers(on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
on_success |
function
|
|
on_failure |
function
|
getSpecification(config, localization_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
config |
spv.ds.Config
|
|
localization_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionCareSendCustomerOrder(session_id, retid_delivery, retid_sales, customer_first_name, customer_last_name, customer_street_address, customer_city, customer_postal_code, customer_phone, customer_email, redirect, attachment, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
retid_delivery |
string
|
|
retid_sales |
string
|
|
customer_first_name |
string
|
|
customer_last_name |
string
|
|
customer_street_address |
string
|
|
customer_city |
string
|
|
customer_postal_code |
string
|
|
customer_phone |
string
|
|
customer_email |
string
|
|
redirect |
boolean
|
|
attachment |
boolean
|
|
on_success |
function
|
|
on_failure |
function
|
sessionDisableCCPrices(session_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionDisablePrivateLeasing(session_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionEnableCCPrices(session_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionEnablePrivateLeasing(session_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionGenerateRetailerHtmlForPdf(session_id, template_name, retailer_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
template_name |
string
|
|
retailer_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionGetCampaigns(session_id, feed_id, on_success, on_failure)
- Deprecated:
- Newer versions of the backend has made this method session free. Use getCampaigns() instead.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
feed_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionGetCurrentPriceMode(session_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionGetLeasingParams(session_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionGetLoan(session_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionResetLoan(session_id, send_update, on_state_update, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
send_update |
spv.vds.SendBopUpdateFlag
|
|
on_state_update |
function
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSendCustomerMailAndTacdis(session_id, customer_first_name, customer_surname, customer_email, customer_phone, preferred_contact_time, preferred_contact_media, want_quote, want_newsletter, mail_link_url, retailer_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
customer_first_name |
string
|
|
customer_surname |
string
|
|
customer_email |
string
|
|
customer_phone |
string
|
|
preferred_contact_time |
string
|
|
preferred_contact_media |
string
|
|
want_quote |
boolean
|
|
want_newsletter |
boolean
|
|
mail_link_url |
string
|
|
retailer_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSendMailToCustomer(session_id, customer_email, want_newsletter, want_summary_pdf, mail_link_url, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
customer_email |
string
|
|
want_newsletter |
boolean
|
|
want_summary_pdf |
boolean
|
|
mail_link_url |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSendMailToCustomerAndRetailer(session_id, customer_first_name, customer_surname, customer_email, customer_phone, preferred_contact_time, preferred_contact_media, want_newsletter, want_summary_pdf, retailer_id, mail_link_url, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
customer_first_name |
string
|
|
customer_surname |
string
|
|
customer_email |
string
|
|
customer_phone |
string
|
|
preferred_contact_time |
string
|
|
preferred_contact_media |
string
|
|
want_newsletter |
boolean
|
|
want_summary_pdf |
boolean
|
|
retailer_id |
string
|
|
mail_link_url |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSendToTacdis(session_id, customer_first_name, customer_surname, customer_email, customer_phone, retailer_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
customer_first_name |
string
|
|
customer_surname |
string
|
|
customer_email |
string
|
|
customer_phone |
string
|
|
retailer_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSendVolvoCareMailToRetailer(session_id, customer_first_name, customer_surname, customer_address, customer_zipcode, customer_city, customer_email, customer_phone, skype_name, preferred_contact_media, free_text, retailer_id, mail_link_url, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
customer_first_name |
string
|
|
customer_surname |
string
|
|
customer_address |
string
|
|
customer_zipcode |
number
|
|
customer_city |
string
|
|
customer_email |
string
|
|
customer_phone |
string
|
|
skype_name |
string
|
|
preferred_contact_media |
string
|
|
free_text |
string
|
|
retailer_id |
string
|
|
mail_link_url |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSetLoan(session_id, down_payment, interest_rate, number_of_months, send_update, on_state_update, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
down_payment |
number
|
|
interest_rate |
number
|
|
number_of_months |
number
|
|
send_update |
spv.vds.SendBopUpdateFlag
|
|
on_state_update |
function
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSetPriceMode(session_id, price_mode, send_update, on_state_update, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
price_mode |
spv.vds.VdsPriceMode
|
|
send_update |
spv.vds.SendBopUpdateFlag
|
|
on_state_update |
function
|
|
on_success |
function
|
|
on_failure |
function
|
sessionSetRetailerBusinessGroup(session_id, business_group_retailer_id, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
business_group_retailer_id |
string
|
|
on_success |
function
|
|
on_failure |
function
|
sessionUpdateCCInputParams(session_id, input_params, send_update, on_state_update, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
input_params |
Object.<string, Object>
|
|
send_update |
spv.vds.SendBopUpdateFlag
|
|
on_state_update |
function
|
|
on_success |
function
|
|
on_failure |
function
|
sessionUpdateLeasingParams(session_id, driving_distance, send_update, on_state_update, on_success, on_failure)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
session_id |
string
|
|
driving_distance |
number
|
|
send_update |
spv.vds.SendBopUpdateFlag
|
|
on_state_update |
function
|
|
on_success |
function
|
|
on_failure |
function
|