public function update()
    {
        if (!isset($this->_links->self->href)) {
            return $this;
        }

        $body = json_encode([
            "tracking" => $this->tracking,
        ]);

        $result = $this->client->performHttpCallToFullUrl(
            MollieApiClient::HTTP_PATCH,
            $this->_links->self->href,
            $body
        );

        return ResourceFactory::createFromApiResult($result, new Shipment($this->client));
    }
public function update()
    {
        if (!isset($this->_links->self->href)) {
            return $this;
        }

        $body = json_encode([
            "tracking" => $this->tracking,
        ]);

        $result = $this->client->performHttpCallToFullUrl(
            MollieApiClient::HTTP_PATCH,
            $this->_links->self->href,
            $body
        );

        return ResourceFactory::createFromApiResult($result, new Shipment($this->client));
    }
public function update ( ) { if ( ! isset ( $ this -> _links -> self -> href ) ) { return $ this ; } $ body = json_encode ( [ "tracking" => $ this -> tracking , ] ) ; $ result = $ this -> client -> performHttpCallToFullUrl ( MollieApiClient :: HTTP_PATCH , $ this -> _links -> self -> href , $ body ) ; return ResourceFactory :: createFromApiResult ( $ result , new Shipment ( $ this -> client ) ) ; }
Save changes made to this shipment.

@return BaseResource|Shipment
@throws \Mollie\Api\Exceptions\ApiException
Save changes made to this shipment .