f0f1f2.studio Template reference
English
Open application
Interface

IAddress

Definition

Namespace
Resto.Front.PrintTemplates.Cheques.Razor.TemplateModels
Available since
3.5

The delivery address of an order, or one of a guest's saved addresses: the parts separately plus a ready-made "where to deliver" line.

Detailed description

The model carries an address two ways at once: as separate parts (Region, City, Street, House, Building, Entrance, Floor, Flat, Doorphone, Index, AdditionalInfo) and as two summary lines — Line1 ("where to deliver") and Line2 (how to find the guest once there).

Print `Line1`. That is what the stock delivery invoice and courier route list use, with the district and the note on separate lines. Assemble the address from its parts only when you need your own order or your own separators.

Which parts are filled depends on the delivery address format chosen at the office, and this is the model's main trap:

  • in the old format the operator picks the street from a directory and types the house number, and the city comes from the street — the parts are meaningful;
  • in the smart (new) format the street and house are typed as one line, and the street reference is replaced by a service "default street". Street and House then carry service values rather than being empty: string.IsNullOrEmpty(Street) will not filter them out, and the receipt gets noise.

The address is not necessarily typed by a cashier: it can arrive from the call centre, from the web office or from an order aggregator through the API — with a different set of filled fields each time.

UaeAddressingSystem marks the UAE addressing system, where the familiar "street and house" pair carries no meaning.

Available in documents

Access pathDocument types
Model.Order.Customers[].Addresses[]Guest bill, Sales receipt, Fiscal receipt appendix, Correction fiscal receipt appendix, Delivery label for regular order, iikoCard receipt, Prepayment receipt, Payment/refund receipt, Service ticket, VAT invoice
Model.Order.Delivery.AddressGuest bill, Sales receipt, Fiscal receipt appendix, Correction fiscal receipt appendix, Delivery label for regular order, iikoCard receipt, Prepayment receipt, Payment/refund receipt, Service ticket, VAT invoice
Model.Delivery.AddressDelivery invoice, Delivery label
Model.Order.BaseOrder.Customers[].Addresses[]Cooking complete ticket, Cooking complete label
Model.Order.BaseOrder.Delivery.AddressCooking complete ticket, Cooking complete label
Model.Banquet.Customer.Addresses[]Banquet preliminary order ticket
Model.Customer.Addresses[]VAT invoice
Model.Deliveries[].AddressCourier's route list
Model.ParentOrder.Customers[].Addresses[]Payment/refund receipt
Model.ParentOrder.Delivery.AddressPayment/refund receipt
Model.Reserve.Customer.Addresses[]Table reserved sign

Properties

NameTypeDescription
AdditionalInfostringAdditional information
BuildingstringBuilding
CitystringCity
DoorphonestringIntercom
EntrancestringEntrance
FlatstringApartment
FloorstringFloor
HousestringHouse
IndexstringPostal code
Line1stringLine1
Line2stringLine2
RegionstringRegion
StreetstringStreet
UaeAddressingSystemboolAddressing system of UAE