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".
StreetandHousethen 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 path | Document 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.Address | 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.Delivery.Address | Delivery invoice, Delivery label |
Model.Order.BaseOrder.Customers[].Addresses[] | Cooking complete ticket, Cooking complete label |
Model.Order.BaseOrder.Delivery.Address | Cooking complete ticket, Cooking complete label |
Model.Banquet.Customer.Addresses[] | Banquet preliminary order ticket |
Model.Customer.Addresses[] | VAT invoice |
Model.Deliveries[].Address | Courier's route list |
Model.ParentOrder.Customers[].Addresses[] | Payment/refund receipt |
Model.ParentOrder.Delivery.Address | Payment/refund receipt |
Model.Reserve.Customer.Addresses[] | Table reserved sign |
Properties
| Name | Type | Description |
|---|---|---|
| AdditionalInfo | string | Additional information |
| Building | string | Building |
| City | string | City |
| Doorphone | string | Intercom |
| Entrance | string | Entrance |
| Flat | string | Apartment |
| Floor | string | Floor |
| House | string | House |
| Index | string | Postal code |
| Line1 | string | Line1 |
| Line2 | string | Line2 |
| Region | string | Region |
| Street | string | Street |
| UaeAddressingSystem | bool | Addressing system of UAE |