Add method to get of currencies list (#182)
This commit is contained in:
parent
140e48e6e9
commit
dbf4c9267a
@ -284,4 +284,22 @@ trait References
|
||||
['unit' => json_encode($unit)]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of currencies
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \RetailCrm\Exception\CurlException
|
||||
* @throws \RetailCrm\Exception\InvalidJsonException
|
||||
*
|
||||
* @return \RetailCrm\Response\ApiResponse
|
||||
*/
|
||||
public function currenciesList()
|
||||
{
|
||||
/* @noinspection PhpUndefinedMethodInspection */
|
||||
return $this->client->makeRequest(
|
||||
'/reference/currencies',
|
||||
"GET"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,8 @@ class ApiClientReferenceTest extends TestCase
|
||||
['stores'],
|
||||
['couriers'],
|
||||
['costs'],
|
||||
['units']
|
||||
['units'],
|
||||
['currencies'],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user