/** * Creates an {@link Inventory} object related to this {@link Checkout} instance. This * method also starts loading data defined by the passed inventory <var>request</var>. * * @param request request that defines what data should be loaded * @param callback inventory listener * @return inventory */ @Nonnull public Inventory loadInventory(@Nonnull Inventory.Request request, @Nonnull Inventory.Callback callback) { final Inventory inventory = makeInventory(); inventory.load(request, callback); return inventory; }