1
0
mirror of synced 2024-11-24 22:36:06 +03:00

Add method to get of currencies list (#182)

This commit is contained in:
curse89 2023-11-27 15:06:47 +03:00 committed by GitHub
parent 140e48e6e9
commit dbf4c9267a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View File

@ -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"
);
}
}

View File

@ -184,7 +184,8 @@ class ApiClientReferenceTest extends TestCase
['stores'],
['couriers'],
['costs'],
['units']
['units'],
['currencies'],
];
}