using System; using System.Collections.Generic; namespace Retailcrm.Versions.V5 { public partial class Client { /// /// Get external store settings /// /// /// public new Response StoreSettingGet(string code) { throw new ArgumentException("This method is unavailable in API V5", code); } /// /// Edit external store settings /// /// /// public new Response StoreSettingsEdit(Dictionary configuration) { throw new ArgumentException("This method is unavailable in API V5"); } /// /// Get products groups /// /// /// /// /// public Response StoreProductsGroups(Dictionary filter = null, int page = 1, int limit = 20) { Dictionary parameters = new Dictionary(); if (filter != null && filter.Count > 0) { parameters.Add("filter", filter); } if (page > 0) { parameters.Add("page", page); } if (limit > 0) { parameters.Add("limit", limit); } return Request.MakeRequest("/store/products-groups", Request.MethodGet, parameters); } /// /// Get products properties /// /// /// /// /// public Response StoreProductsProperties(Dictionary filter = null, int page = 1, int limit = 20) { Dictionary parameters = new Dictionary(); if (filter != null && filter.Count > 0) { parameters.Add("filter", filter); } if (page > 0) { parameters.Add("page", page); } if (limit > 0) { parameters.Add("limit", limit); } return Request.MakeRequest("/store/products/properties", Request.MethodGet, parameters); } } }