예제 #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()));
        }
예제 #2
0
        public ShippingContact toClass(string json)
        {
            ShippingContact shipping_contact = JsonConvert.DeserializeObject <ShippingContact>(json, new JsonSerializerSettings
            {
                NullValueHandling = NullValueHandling.Ignore
            });

            return(shipping_contact);
        }
예제 #3
0
        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);
        }