1
0
mirror of synced 2024-11-22 05:16:07 +03:00
This commit is contained in:
Uryvskiy Dima 2024-08-02 15:14:59 +03:00
parent 805844cd32
commit 7d2ee25ffe

View File

@ -203,10 +203,11 @@ trait Orders
* Create links between orders * Create links between orders
* *
* @param array $links links data * @param array $links links data
* @param null $site site code
* *
* @return ApiResponse * @return ApiResponse
*/ */
public function ordersLinksCreate(array $links) public function ordersLinksCreate(array $links, $site = null)
{ {
if (!count($links)) { if (!count($links)) {
throw new \InvalidArgumentException( throw new \InvalidArgumentException(
@ -218,7 +219,10 @@ trait Orders
return $this->client->makeRequest( return $this->client->makeRequest(
'/orders/links/create', '/orders/links/create',
'POST', 'POST',
$links $this->fillSite(
$site,
['links' => json_encode($links)]
)
); );
} }
} }