IUCServiceOneListHospCalculate 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
This Sample request can be used in SOAP UI application to send request to LS Commerce.
Basket for EasyBurger Restaurant, Cheese Burger Meal, with Jalapeno Popper and Reg Orange Soda
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://lsretail.com/LSOmniService/EComm/2017/Service" xmlns:ns="http://lsretail.com/LSOmniService/Base/2017" xmlns:ns1="http://lsretail.com/LSOmniService/Loy/2017">
<soapenv:Header/>
<soapenv:Body>
<ser:OneListHospCalculate>
<ser:oneList>
<ns1:CardId>10021</ns1:CardId>
<ns1:IsHospitality>true</ns1:IsHospitality>
<ns1:Items>
<ns1:OneListItem>
<ns1:IsADeal>true</ns1:IsADeal>
<ns1:ItemId>S10025</ns1:ItemId>
<ns1:OnelistSubLines>
<ns1:OneListItemSubLine>
<ns1:DealLineId>10000</ns1:DealLineId>
<ns1:DealModLineId>0</ns1:DealModLineId>
<ns1:Quantity>1</ns1:Quantity>
<ns1:Type>Deal</ns1:Type>
</ns1:OneListItemSubLine>
<ns1:OneListItemSubLine>
<ns1:DealLineId>20000</ns1:DealLineId>
<ns1:DealModLineId>70000</ns1:DealModLineId>
<ns1:Quantity>1</ns1:Quantity>
<ns1:Type>Deal</ns1:Type>
<ns1:Uom>PORTION</ns1:Uom>
</ns1:OneListItemSubLine>
<ns1:OneListItemSubLine>
<ns1:DealLineId>30000</ns1:DealLineId>
<ns1:DealModLineId>70000</ns1:DealModLineId>
<ns1:Quantity>1</ns1:Quantity>
<ns1:Type>Deal</ns1:Type>
<ns1:Uom>REG</ns1:Uom>
</ns1:OneListItemSubLine>
</ns1:OnelistSubLines>
<ns1:Quantity>1</ns1:Quantity>
<ns1:UnitOfMeasureId></ns1:UnitOfMeasureId>
</ns1:OneListItem>
</ns1:Items>
<ns1:ListType>Basket</ns1:ListType>
<ns1:SalesType>TAKEAWAY</ns1:SalesType>
<ns1:StoreId>S0017</ns1:StoreId>
</ser:oneList>
</ser:OneListHospCalculate>
</soapenv:Body>
</soapenv:Envelope>
See Also