private function setBodyRequest(RequestInterface $request, array &$requestSettings): RequestInterface
    {
        $multipartBody = [];
        foreach ($requestSettings as $key => &$value) {
            $multipartBody[] = [
                'name' => $key,
                'contents' => $value
            ];
        }

        return $request->withBody($this->transport->createStream($multipartBody));
    }
private function setBodyRequest(RequestInterface $request, array &$requestSettings): RequestInterface
    {
        $multipartBody = [];
        foreach ($requestSettings as $key => &$value) {
            $multipartBody[] = [
                'name' => $key,
                'contents' => $value
            ];
        }

        return $request->withBody($this->transport->createStream($multipartBody));
    }
private function setBodyRequest ( RequestInterface $ request , array & $ requestSettings ) : RequestInterface { $ multipartBody = [ ] ; foreach ( $ requestSettings as $ key => & $ value ) { $ multipartBody [ ] = [ 'name' => $ key , 'contents' => $ value ] ; } return $ request -> withBody ( $ this -> transport -> createStream ( $ multipartBody ) ) ; }
To register method's argument in the request for the Sellsy API.

@param RequestInterface $request
@param array            $requestSettings

@return RequestInterface
To register method s argument in the request for the Sellsy API .