Poplidays provides many different extras selectable by customer (i.e housework, …).
An extra is selectable by user and sometimes its price depends on others extras. Thats why, an extra has more than one price.
Let’s see how this example should be displayed in your web site.
-- Extra[0] |-- code : END_OF_STAY_CLEANING |-- label : Ménage fin de séjour |-- optionType : OPTIONAL_ON_SITE |-- type : CHECK |-- mandatory : true |-- prices |-- Price[0] |-- selectedCodes : [END_OF_STAY_CLEANING] |-- value : 65 -- Extra[1] |-- code : INSURANCE_EXTRA |-- label : Assurance annulation |-- detailUrl : http://www.poplidays.com/filesystem/static/telechargement/fr_cg_assur.pdf |-- optionType : OPTIONAL_ON_BOOKING |-- type : LIST |-- mandatory : false |-- parameters |-- POPASSUR -> Pop'Assur |-- POPASSURPLUS -> Pop'Assur+ |-- prices |-- Price[0] |-- selectedCodes : [END_OF_STAY_CLEANING, POPASSUR] |-- value : 115 |-- Price[1] |-- selectedCodes : [END_OF_STAY_CLEANING, POPASSURPLUS] |-- value : 133
The behavior in you web site could be like that:
Field | Type | Description |
---|---|---|
code | String | Extra unique identifier |
label | String | Extra label |
mandatory | Boolean | Mandatory status |
type | String |
Extra type:
|
optionType | String |
Extra option type:
|
Unit | String |
Extra option unit:
|
parameters | Key-Value map | Configuration parameters (ex: available items in list) |
prices | Price | Extra prices based on user selections |