<?php

namespace Pancake;

class Invoices {

    public static function get(Server $server) {
        return $server->get("invoices");
    }

    public static function send(Server $server, $unique_id) {
        return $server->post("invoices/send", array("unique_id" => $unique_id));
    }

}

<?php

namespace Pancake;

class Invoices {

    public static function get(Server $server) {
        return $server->get("invoices");
    }

    public static function send(Server $server, $unique_id) {
        $result = $server->post("invoices/send", array("unique_id" => $unique_id));
        return $result['status'];
    }

}

Use 'status' to return whether or not the email has sent successfully.
Use 'status' to return whether or not the email has sent successfully.
