Пример #1
0
        public TaxLine createTaxLine(string data)
        {
            string  tax_line = this.request("POST", "/orders/" + this.id + "/tax_lines", data);
            TaxLine skeleton = new TaxLine();

            return(skeleton.toClass(skeleton.toObject(tax_line).ToString()));
        }
Пример #2
0
        public TaxLine toClass(string json)
        {
            TaxLine tax_line = JsonConvert.DeserializeObject <TaxLine>(json, new JsonSerializerSettings
            {
                NullValueHandling = NullValueHandling.Ignore
            });

            return(tax_line);
        }
Пример #3
0
        public TaxLine update(string data)
        {
            TaxLine tax_line = this.toClass(this.toObject(this.update("/orders/" + this.parent_id + "/tax_lines/" + this.id, data)).ToString());

            return(tax_line);
        }