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())); }
public TaxLine toClass(string json) { TaxLine tax_line = JsonConvert.DeserializeObject <TaxLine>(json, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); return(tax_line); }
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); }