src/Invoice/InvoiceApi.php
/**
     * Createa a new free form invoice with given data
     */
Createa a new free form invoice with given data
Createa a new free form invoice with given data
public function newInvoice(array $data) : Invoice
    {
        $response = $this->harvestHttp->post($this->endpoint, $data);
        $data = $this->harvestHttp->decodeResponseBody($response);
        return $this->makeInvoiceModel($data);
    }
public function newInvoice ( array $ data ) : Invoice { $ response = $ this -> harvestHttp -> post ( $ this -> endpoint , $ data ) ; $ data = $ this -> harvestHttp -> decodeResponseBody ( $ response ) ; return $ this -> makeInvoiceModel ( $ data ) ; }
Createa a new free form invoice with given data
Createa a new free form invoice with given data