Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 139 additions & 0 deletions src/VK/Actions/Market.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,4 +479,143 @@ 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);
}

/**
* 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);
}
}