Add a method to create links between orders
This commit is contained in:
parent
cbf5237689
commit
8b37fdbdca
@ -197,4 +197,20 @@ trait Orders
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function ordersLinksCreate(array $links)
|
||||
{
|
||||
if (!count($links)) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Parameters `links` must contains a data'
|
||||
);
|
||||
}
|
||||
|
||||
/* @noinspection PhpUndefinedMethodInspection */
|
||||
return $this->client->makeRequest(
|
||||
'/orders/links/create',
|
||||
'POST',
|
||||
$links
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user