Model/Api/ShippingMethods.php
protected function getShippingOptionsData($shippingMethods)
    {
        $shippingOptionsModel = $this->shippingOptionsInterfaceFactory->create();

        $shippingTaxModel = $this->shippingTaxInterfaceFactory->create();
        $shippingTaxModel->setAmount(0);

        $shippingOptionsModel->setShippingOptions($shippingMethods);
        $shippingOptionsModel->setTaxResult($shippingTaxModel);

        return $shippingOptionsModel;
    }
protected function getShippingOptionsData($shippingMethods)
    {
        $shippingOptionsModel = $this->shippingOptionsInterfaceFactory->create();

        $shippingTaxModel = $this->shippingTaxInterfaceFactory->create();
        $shippingTaxModel->setAmount(0);

        $shippingOptionsModel->setShippingOptions($shippingMethods);
        $shippingOptionsModel->setTaxResult($shippingTaxModel);

        return $shippingOptionsModel;
    }
protected function getShippingOptionsData ( $ shippingMethods ) { $ shippingOptionsModel = $ this -> shippingOptionsInterfaceFactory -> create ( ) ; $ shippingTaxModel = $ this -> shippingTaxInterfaceFactory -> create ( ) ; $ shippingTaxModel -> setAmount ( 0 ) ; $ shippingOptionsModel -> setShippingOptions ( $ shippingMethods ) ; $ shippingOptionsModel -> setTaxResult ( $ shippingTaxModel ) ; return $ shippingOptionsModel ; }
Set shipping methods to the ShippingOptions object

@param $shippingMethods
Set shipping methods to the ShippingOptions object