Exemple #1
0
        public ShippingContact createShippingContact(string data)
        {
            string          shipping_contact = this.create("/customers/" + this.id + "/shipping_contacts", data);
            ShippingContact skeleton         = new ShippingContact();

            return(skeleton.toClass(skeleton.toObject(shipping_contact).ToString()));
        }
        public ShippingContact toClass(string json)
        {
            ShippingContact shipping_contact = JsonConvert.DeserializeObject <ShippingContact>(json, new JsonSerializerSettings
            {
                NullValueHandling = NullValueHandling.Ignore
            });

            return(shipping_contact);
        }
        public ShippingContact update(string data)
        {
            ShippingContact shipping_contact = this.toClass(this.toObject(this.update("/customers/" + this.parent_id + "/shipping_contacts/" + this.id, data)).ToString());

            return(shipping_contact);
        }