예제 #1
0
        public PaymentSource createPaymentSource(string data)
        {
            string        payment_source = this.create("/customers/" + this.id + "/payment_sources", data);
            PaymentSource skeleton       = new PaymentSource();

            return(skeleton.toClass(skeleton.toObject(payment_source).ToString()));
        }
예제 #2
0
        public PaymentSource toClass(string json)
        {
            PaymentSource payment_source = JsonConvert.DeserializeObject <PaymentSource>(json, new JsonSerializerSettings
            {
                NullValueHandling = NullValueHandling.Ignore
            });

            return(payment_source);
        }
예제 #3
0
        public PaymentSource update(string data)
        {
            PaymentSource payment_source = this.toClass(this.toObject(this.update("/customers/" + this.parent_id + "/payment_sources/" + this.id, data)).ToString());

            return(payment_source);
        }