Example #1
0
        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()));
        }
Example #2
0
        public ShippingLine toClass(string json)
        {
            ShippingLine shipping_line = JsonConvert.DeserializeObject <ShippingLine>(json, new JsonSerializerSettings
            {
                NullValueHandling = NullValueHandling.Ignore
            });

            return(shipping_line);
        }
Example #3
0
        public ShippingLine destroy()
        {
            ShippingLine shipping_line = this.toClass(this.toObject(this.delete("/orders/" + this.parent_id + "/shipping_lines/" + this.id)).ToString());

            return(shipping_line);
        }
Example #4
0
        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);
        }