IUCJsonOrderHospCreate Method |
Namespace: LSOmni.Service
SalesEntry OrderHospCreate( OrderHosp request, bool returnOrderIdOnly )
{ "request": { "Address": { "Address1": "Somestreet 109", "CellPhoneNumber": "555-1234", "City": "Kopavogur", "PhoneNumber": "555-3214", "PostCode": "200", "Type": 1 }, "BillToName": "Tom Tomsson", "CardId": "10021", "Comment": "Make it fast", "DeliveryType": 0, "Directions": "", "Email": "tom@xyz.com", "ExternalId": "MYID123", "Name": "Tom Tomsson", "OrderDiscountLines": [{ "Description": "Deal", "DiscountAmount": 0.00, "DiscountPercent": 0.00, "DiscountType": 6, "LineNumber": 9750, "OfferNumber": "S10025", "PeriodicDiscGroup": "", "PeriodicDiscType": 0 }, { "Description": "Deal", "DiscountAmount": 0.00, "DiscountPercent": 0.00, "DiscountType": 6, "LineNumber": 10000, "OfferNumber": "S10025", "PeriodicDiscGroup": "", "PeriodicDiscType": 0 }, { "Description": "Deal", "DiscountAmount": 0.00, "DiscountPercent": 0.00, "DiscountType": 6, "LineNumber": 20000, "OfferNumber": "S10025", "PeriodicDiscGroup": "", "PeriodicDiscType": 0 }, { "Description": "Deal", "DiscountAmount": 0.00, "DiscountPercent": 0.00, "DiscountType": 6, "LineNumber": 30000, "OfferNumber": "S10025", "PeriodicDiscGroup": "", "PeriodicDiscType": 0 }], "OrderLines": [{ "Amount": 7.50, "DiscountAmount": 0.00, "DiscountPercent": 0.00, "IsADeal": true, "ItemDescription": "Cheese Burger Meal", "ItemId": "S10025", "ItemImageId": null, "LineNumber": 9750, "LineType": 0, "NetAmount": 6.82, "NetPrice": 6.82, "Price": 7.50, "PriceModified": false, "Quantity": 1.00, "SubLines": [{ "Amount": 5.32, "DealCode": "S10025", "DealLineId": 10000, "DealModifierLineId": 0, "Description": "Cheese Burger", "DiscountAmount": 0.00, "DiscountPercent": 0.00, "ItemId": "R0024", "LineNumber": 10000, "ManualDiscountAmount": 0.0, "ManualDiscountPercent": 0.0, "ModifierGroupCode": "", "ModifierSubCode": "", "NetAmount": 4.84, "NetPrice": 4.84, "ParentSubLineId": 0, "Price": 5.32, "Quantity": 1.00, "TAXAmount": 0.48, "Type": 1, "Uom": "" }, { "Amount": 1.28, "DealCode": "S10025", "DealLineId": 20000, "DealModifierLineId": 70000, "Description": "Jalapeno Popper", "DiscountAmount": 0.00, "DiscountPercent": 0.00, "ItemId": "33430", "LineNumber": 20000, "ManualDiscountAmount": 0.0, "ManualDiscountPercent": 0.0, "ModifierGroupCode": "", "ModifierSubCode": "", "NetAmount": 1.16, "NetPrice": 1.16, "ParentSubLineId": 0, "Price": 1.28, "Quantity": 1.00, "TAXAmount": 0.12, "Type": 1, "Uom": "" }, { "Amount": 0.90, "DealCode": "S10025", "DealLineId": 30000, "DealModifierLineId": 70000, "Description": "Orange Soda", "DiscountAmount": 0.00, "DiscountPercent": 0.00, "ItemId": "30520", "LineNumber": 30000, "ManualDiscountAmount": 0.0, "ManualDiscountPercent": 0.0, "ModifierGroupCode": "", "ModifierSubCode": "", "NetAmount": 0.82, "NetPrice": 0.82, "ParentSubLineId": 0, "Price": 0.90, "Quantity": 1.00, "TAXAmount": 0.08, "Type": 1, "Uom": "" }] "TaxAmount": 0.68, "UomId": "", "VariantDescription": "", "VariantId": "" }], "OrderPayments": [{ "Amount": 7.50, "AuthorizationCode": "123456", "CardNumber": "10xx xxxx xxxx 1475", "CardType": "VISA", "CurrencyCode": "GBP", "CurrencyFactor": 1, "ExternalReference": "MyRef123", "LineNumber": 1, "PaymentType": "2", "PreApprovedValidDate": "\/Date(1704111120000)\/", "TenderType": "1", "TokenNumber": "123456" }], "PickupTime": "\/Date(1704111120000)\/", "RestaurantNo": "S0017", "SalesType": "TAKEAWAY", "StoreId": "S0017", "TotalAmount": 7.50, "TotalDiscount": 0.00, "TotalNetAmount": 6.82 }, "returnOrderIdOnly": 0 }