1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add credit support to the API

This commit is contained in:
Hillel Coren 2017-05-30 14:50:25 +03:00
parent 7cfcaa72ec
commit 72db373a41

View File

@ -83,7 +83,7 @@ class APICest
$this->listEntities('vendors'); $this->listEntities('vendors');
$data = new stdClass; $data = new stdClass;
$data->client_id = $clientId $data->client_id = $clientId;
$data->amount = 1; $data->amount = 1;
$this->createEntity('credit', $data); $this->createEntity('credit', $data);
$this->listEntities('credits'); $this->listEntities('credits');