public ShippingLine createShippingLine(string data) { string shipping_line = this.request("POST", "/orders/" + this.id + "/shipping_lines", data); ShippingLine skeleton = new ShippingLine(); return(skeleton.toClass(skeleton.toObject(shipping_line).ToString())); }
public ShippingLine toClass(string json) { ShippingLine shipping_line = JsonConvert.DeserializeObject <ShippingLine>(json, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); return(shipping_line); }
public ShippingLine destroy() { ShippingLine shipping_line = this.toClass(this.toObject(this.delete("/orders/" + this.parent_id + "/shipping_lines/" + this.id)).ToString()); return(shipping_line); }
public ShippingLine update(string data) { ShippingLine shipping_line = this.toClass(this.toObject(this.update("/orders/" + this.parent_id + "/shipping_lines/" + this.id, data)).ToString()); return(shipping_line); }