public function create(array $data)
    {
        $response = $this->post(self::$path, $data)
            ->status('201')
            ->contentType('application/json')
            ->getJson();

        return $response;
    }
public function create(array $data)
    {
        $response = $this->post(self::$path, $data)
            ->status('201')
            ->contentType('application/json')
            ->getJson();

        return $response;
    }
public function create ( array $ data ) { $ response = $ this -> post ( self :: $ path , $ data ) -> status ( '201' ) -> contentType ( 'application/json' ) -> getJson ( ) ; return $ response ; }
Creates a new settlement.

@param array $data Creation data

@see https://developers.klarna.com/api/#merchant-card-service-api-create-a-new-settlement

@throws ConnectorException When the API replies with an error response
@throws RequestException   When an error is encountered
@throws \RuntimeException  If the location header is missing
@throws \RuntimeException  If the API replies with an unexpected response
@throws \LogicException    When Guzzle cannot populate the response

@return array Settlement data
Creates a new settlement .