public function refund($amount)
    {
        $data = array(
            'amount' => (float)$amount
        );
        $data = $this->twisto->requestJson('POST', 'invoice/' . urlencode($this->invoice_id) . '/refund/', $data);
        $this->deserialize($data);
    }