From 1b5f4643dcc19a1abb0f3c03906fcf22391b8d0f Mon Sep 17 00:00:00 2001 From: sasha-marker Date: Fri, 13 Nov 2020 19:02:20 +0700 Subject: [PATCH 1/2] Update Market.php Adding a method for editing an order in the market --- src/VK/Actions/Market.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/VK/Actions/Market.php b/src/VK/Actions/Market.php index b3f403c..7813b1e 100644 --- a/src/VK/Actions/Market.php +++ b/src/VK/Actions/Market.php @@ -479,4 +479,17 @@ public function restoreComment($access_token, array $params = []) { public function search($access_token, array $params = []) { return $this->request->post('market.search', $access_token, $params); } + + /** + * Edit order + * + * @param string $access_token + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + public function editOrder($access_token, array $params = []) { + return $this->request->post('market.editOrder', $access_token, $params); + } } From cf8ea449cf9936f1c3e517dc3b87d306f60601ab Mon Sep 17 00:00:00 2001 From: sasha-marker Date: Mon, 22 Mar 2021 19:45:29 +0700 Subject: [PATCH 2/2] Update Market.php Added work with properties --- src/VK/Actions/Market.php | 126 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/src/VK/Actions/Market.php b/src/VK/Actions/Market.php index 7813b1e..c4b41fe 100644 --- a/src/VK/Actions/Market.php +++ b/src/VK/Actions/Market.php @@ -492,4 +492,130 @@ public function search($access_token, array $params = []) { public function editOrder($access_token, array $params = []) { return $this->request->post('market.editOrder', $access_token, $params); } + + /** + * Add property + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function addProperty($access_token, array $params = []) { + return $this->request->post('market.addProperty', $access_token, $params); + } + + /** + * Add property variant + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function addPropertyVariant($access_token, array $params = []) { + return $this->request->post('market.addPropertyVariant', $access_token, $params); + } + + /** + * Delete property + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function deleteProperty($access_token, array $params = []) { + return $this->request->post('market.deleteProperty', $access_token, $params); + } + + /** + * Delete property variant + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function deletePropertyVariant($access_token, array $params = []) { + return $this->request->post('market.deletePropertyVariant', $access_token, $params); + } + + /** + * Edit property + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function editProperty($access_token, array $params = []) { + return $this->request->post('market.editProperty', $access_token, $params); + } + + /** + * Edit property variant + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function editPropertyVariant($access_token, array $params = []) { + return $this->request->post('market.editPropertyVariant', $access_token, $params); + } + + /** + * Get properties + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function getProperties($access_token, array $params = []) { + return $this->request->post('market.getProperties', $access_token, $params); + } + + /** + * Group items + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function groupItems() { + return $this->request->post('market.groupItems', $access_token, $params); + } + + /** + * Ungroup items + * + * @param string + * @param array $params + * @throws VKClientException + * @throws VKApiException + * @return mixed + */ + + public function ungroupItems() { + return $this->request->post('market.ungroupItems', $access_token, $params); + } }