IUCJsonOneListHospCalculate Method |
Calculates OneList Basket for Hospitality and returns Hospitality Order Object
Namespace: LSOmni.ServiceAssembly: LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2026.8.0
SyntaxOrderHosp OneListHospCalculate(
OneList oneList
)
Parameters
- oneList OneList
- OneList Object
Return Value
OrderHospOrder Object that can be used to Create Order
Remarks
LS Central WS2: MobilePosCalculate
This function can be used to send in Basket and convert it to Hospitality Order.
Basic Hospitality Order data is then set for finalize it by setting the Order setting,
Contact Info, Payment and then it can be posted for Creation
Example
Sample requests including minimum data needed to be able to process the request in LS Commerce
Basket for EasyBurger Restaurant, Cheese Burger Meal, with Jalapeno Popper and Reg Orange Soda
{
"oneList": {
"CardId": "10021",
"ExternalType": 0,
"IsHospitality": true,
"Items": [{
"IsADeal": true,
"ItemId": "S10025",
"OnelistSubLines": [{
"DealLineId": 10000,
"DealModLineId": 0,
"Quantity": 1,
"Type": 1
}, {
"DealLineId": 20000,
"DealModLineId": 70000,
"Quantity": 1,
"Type": 1,
"Uom": "PORTION"
}, {
"DealLineId": 30000,
"DealModLineId": 70000,
"Quantity": 1,
"Type": 1,
"Uom": "REG"
}],
"Quantity": 1,
"UnitOfMeasureId": null
}],
"ListType": 0,
"SalesType": "TAKEAWAY",
"StoreId": "S0017"
}
}
See Also