summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/SevereCloud/vksdk/v2/api
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api')
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/api/errors.go23
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/api/market.go5
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/api/store.go35
-rw-r--r--vendor/github.com/SevereCloud/vksdk/v2/api/stories.go5
4 files changed, 64 insertions, 4 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go b/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go
index a852e7d9..e9ea1310 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/api/errors.go
@@ -174,6 +174,9 @@ const (
// Unknown group.
ErrUnknownGroup ErrorType = 40
+ // Additional signup required.
+ ErrAdditionalSignupRequired ErrorType = 41
+
// One of the parameters specified was missing or invalid
//
// Check the required parameters list and their format on a method
@@ -658,9 +661,15 @@ const (
// Item has bad links in description.
ErrMarketItemHasBadLinks ErrorType = 1408
- // Shop not enabled.
+ // Extended market not enabled.
ErrMarketShopNotEnabled ErrorType = 1409
+ // Grouping items with different properties.
+ ErrMarketGroupingItemsWithDifferentProperties ErrorType = 1412
+
+ // Grouping already has such variant.
+ ErrMarketGroupingAlreadyHasSuchVariant ErrorType = 1413
+
// Variant not found.
ErrMarketVariantNotFound ErrorType = 1416
@@ -697,6 +706,9 @@ const (
// Crop size is less than the minimum.
ErrMarketPhotosCropSizeTooLow ErrorType = 1435
+ // Market not enabled.
+ ErrMarketNotEnabled ErrorType = 1438
+
// Cart is empty.
ErrMarketCartEmpty ErrorType = 1427
@@ -730,6 +742,15 @@ const (
// Servers number limit is reached.
ErrCallbackServersLimit ErrorType = 2000
+ // Stickers are not purchased.
+ ErrStickersNotPurchased ErrorType = 2100
+
+ // Too many favorite stickers.
+ ErrStickersTooManyFavorites ErrorType = 2101
+
+ // Stickers are not favorite.
+ ErrStickersNotFavorite ErrorType = 2102
+
// Specified link is incorrect (can't find source).
ErrWallCheckLinkCantDetermineSource ErrorType = 3102
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go
index dc140a86..f78a068d 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/api/market.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/api/market.go
@@ -306,8 +306,9 @@ func (vk *VK) MarketRestoreComment(params Params) (response int, err error) {
// MarketSearchResponse struct.
type MarketSearchResponse struct {
- Count int `json:"count"`
- Items []object.MarketMarketItem `json:"items"`
+ Count int `json:"count"`
+ Items []object.MarketMarketItem `json:"items"`
+ ViewType int `json:"view_type"`
}
// MarketSearch searches market items in a community's catalog.
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/store.go b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go
new file mode 100644
index 00000000..a2df4ca0
--- /dev/null
+++ b/vendor/github.com/SevereCloud/vksdk/v2/api/store.go
@@ -0,0 +1,35 @@
+package api // import "github.com/SevereCloud/vksdk/api"
+
+import (
+ "github.com/SevereCloud/vksdk/v2/object"
+)
+
+// StoreAddStickersToFavorite add stickers to favorite.
+//
+// https://vk.com/dev/store.addStickersToFavorite
+func (vk *VK) StoreAddStickersToFavorite(params Params) (response int, err error) {
+ err = vk.RequestUnmarshal("store.addStickersToFavorite", &response, params)
+ return
+}
+
+// StoreGetFavoriteStickersResponse struct.
+type StoreGetFavoriteStickersResponse struct {
+ Count int `json:"count"`
+ Items []object.BaseSticker `json:"items"`
+}
+
+// StoreGetFavoriteStickers return favorite stickers.
+//
+// https://vk.com/dev/store.getFavoriteStickers
+func (vk *VK) StoreGetFavoriteStickers(params Params) (response StoreGetFavoriteStickersResponse, err error) {
+ err = vk.RequestUnmarshal("store.getFavoriteStickers", &response, params)
+ return
+}
+
+// StoreRemoveStickersFromFavorite remove stickers from favorite.
+//
+// https://vk.com/dev/store.removeStickersFromFavorite
+func (vk *VK) StoreRemoveStickersFromFavorite(params Params) (response int, err error) {
+ err = vk.RequestUnmarshal("store.removeStickersFromFavorite", &response, params)
+ return
+}
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go
index 46c643b9..b68424b8 100644
--- a/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go
+++ b/vendor/github.com/SevereCloud/vksdk/v2/api/stories.go
@@ -1,6 +1,8 @@
package api // import "github.com/SevereCloud/vksdk/v2/api"
-import "github.com/SevereCloud/vksdk/v2/object"
+import (
+ "github.com/SevereCloud/vksdk/v2/object"
+)
// StoriesBanOwner allows to hide stories from chosen sources from current user's feed.
//
@@ -240,6 +242,7 @@ func (vk *VK) StoriesHideReply(params Params) (response int, err error) {
type StoriesSaveResponse struct {
Count int `json:"count"`
Items []object.StoriesStory `json:"items"`
+ object.ExtendedResponse
}
// StoriesSave method.