1
0
mirror of synced 2024-11-21 21:06:07 +03:00

Add a method to create links between orders

This commit is contained in:
Uryvskiy Dima 2024-08-02 14:41:52 +03:00
parent cbf5237689
commit 8b37fdbdca

View File

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