IWarehouse/IWarehouseContactInformation should implement IReadOnly

Found in

EPiServer.Commerce 11.8.2

Fixed in

EPiServer.Commerce 12.0.0

Created

Mar 09, 2018

Updated

Apr 11, 2018

Area

Core

State

Closed, Fixed and tested


Description

The instances returned by methods of IWarehouseInventory are not "editable" and it's quite confusing to do so. Developers would have to do this

var warehouse = new Warehouse(readOnlyWarehouse);

which is not intuitive.

See https://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2018/3/how-to-update-existing-warehouse-from-code/ for discussion and background.