Add site
This commit is contained in:
parent
805844cd32
commit
7d2ee25ffe
@ -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)]
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user