Syrve POS API SDK

Getting delivery address settings

[ v8  ]

The V8 API now allows you to receive address settings to correctly handle delivery creation.

For this purpose, the AddressShowTypeSettings property was added to the IRestaurant restaurant settings.

How to get new delivery address settings:

IRestaurant restaurant = PluginContext.Operations.GetHostRestaurant();
AddressShowTypeSettings addressShowTypeSettings = restaurant.AddressShowTypeSettings;

addressShowTypeSettings will have the following fields:

Address display types:

LEGACY - Address format with the fields “City”, “Street”, “House”, “Building”

CITY - Address format with the fields “Where to deliver” (Line1), “Entrance”, “Floor”, etc.

INTERNATIONAL - UK address style with Line1 and Line2

NOPOSTCODE - UAE address style.

This functionality can be useful so that when creating a delivery in Syrve POS, the plugin can determine whether it is allowed to use the Line1 and Line2 fields to create the delivery address or not.