Beispiel #1
0
        public FiscalEntity createFiscalEntity(string data)
        {
            string       fiscal_entity = this.create("/customers/" + this.id + "/fiscal_entities", data);
            FiscalEntity skeleton      = new FiscalEntity();

            return(skeleton.toClass(skeleton.toObject(fiscal_entity).ToString()));
        }
Beispiel #2
0
        public FiscalEntity toClass(string json)
        {
            FiscalEntity fiscal_entity = JsonConvert.DeserializeObject <FiscalEntity>(json, new JsonSerializerSettings
            {
                NullValueHandling = NullValueHandling.Ignore
            });

            return(fiscal_entity);
        }
Beispiel #3
0
        public FiscalEntity update(string data)
        {
            FiscalEntity fiscal_entity = this.toClass(this.toObject(this.update("/customers/" + this.parent_id + "/fiscal_entities/" + this.id, data)).ToString());

            return(fiscal_entity);
        }