Click or drag to resize

IUCJsonOneListHospCalculate Method

Calculates OneList Basket for Hospitality and returns Hospitality Order Object

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2024.4
Syntax
C#
OrderHosp OneListHospCalculate(
	OneList oneList
)

Parameters

oneList
Type: LSRetail.Omni.Domain.DataModel.Loyalty.BasketsOneList
OneList Object

Return Value

Type: OrderHosp
Order 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

Examples
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

REST Sample Request
{
  "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