Skip to content

Commit

Permalink
Added: Partial ItemAccount endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
RickDBCN committed Oct 18, 2024
1 parent 2e2d84b commit 2070f3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,18 @@ public function updateItem($data)
{
return $this->sendRequest("api/Item", "PUT", [], $data);
}
public function getItemAccountByCode($code)
{
$params = array(
'itemCode' => $code,
);
return $this->sendRequest("api/ItemAccount/ByItem", "GET", $params);
}

public function createItemAccount($data)
{
return $this->sendRequest("api/ItemAccount", "POST", [], $data);
}

/**
* @throws Exception
Expand Down

0 comments on commit 2070f3f

Please sign in to comment.