예제 #1
0
        /// <summary>
        ///     Updates the existing opening balance information.
        /// </summary>
        /// <param name="update_info">The update_info is the OpeningBalance object which contains the updation information.</param>
        /// <returns>OpeningBalance object.</returns>
        public OpeningBalance UpdateOpeningBalance(OpeningBalance update_info)
        {
            var url        = baseAddress + "/openingbalances";
            var json       = JsonConvert.SerializeObject(update_info);
            var jsonstring = new Dictionary <object, object>();

            jsonstring.Add("JSONString", json);
            var response = ZohoHttpClient.put(url, getQueryParameters(jsonstring));

            return(SettingsParser.getOpeningBalance(response));
        }