protected function setFreightDimensionsOnPayload()
    {
        if ($this->items) {
            $this->payload['nVlLargura'] = $this->width();
            $this->payload['nVlAltura'] = $this->height();
            $this->payload['nVlComprimento'] = $this->length();
            $this->payload['nVlDiametro'] = 0;
            $this->payload['nVlPeso'] = $this->useWeightOrVolume();
        }

        return $this;
    }
protected function setFreightDimensionsOnPayload()
    {
        if ($this->items) {
            $this->payload['nVlLargura'] = $this->width();
            $this->payload['nVlAltura'] = $this->height();
            $this->payload['nVlComprimento'] = $this->length();
            $this->payload['nVlDiametro'] = 0;
            $this->payload['nVlPeso'] = $this->useWeightOrVolume();
        }

        return $this;
    }
protected function setFreightDimensionsOnPayload ( ) { if ( $ this -> items ) { $ this -> payload [ 'nVlLargura' ] = $ this -> width ( ) ; $ this -> payload [ 'nVlAltura' ] = $ this -> height ( ) ; $ this -> payload [ 'nVlComprimento' ] = $ this -> length ( ) ; $ this -> payload [ 'nVlDiametro' ] = 0 ; $ this -> payload [ 'nVlPeso' ] = $ this -> useWeightOrVolume ( ) ; } return $ this ; }
Calcula largura, altura, comprimento, peso e volume do frete no payload.

@return self
Calcula largura altura comprimento peso e volume do frete no payload .