Esempio n. 1
0
        public StripeInvoiceItem UpdateInvoiceItem(string invoiceItemId, StripeInvoiceItemInfo item)
        {
            StringBuilder str = UrlEncode(item);
            string        ep  = string.Format("{0}/invoiceitems/{1}", api_endpoint, invoiceItemId);

            return(DoRequest <StripeInvoiceItem> (ep, "POST", str.ToString()));
        }
Esempio n. 2
0
        public StripeInvoiceItem UpdateInvoiceItem(string invoiceItemId, StripeInvoiceItemInfo item)
        {
            StringBuilder str  = UrlEncode(item);
            string        ep   = string.Format("{0}/invoiceitems/{1}", api_endpoint, invoiceItemId);
            string        json = DoRequest(ep, "POST", str.ToString());

            return(JsonConvert.DeserializeObject <StripeInvoiceItem> (json));
        }
Esempio n. 3
0
        public StripeInvoiceItem CreateInvoiceItem(StripeInvoiceItemInfo item)
        {
            if (string.IsNullOrEmpty(item.CustomerID))
            {
                throw new ArgumentNullException("item.CustomerID");
            }
            StringBuilder str = UrlEncode(item);
            string        ep  = string.Format("{0}/invoiceitems", api_endpoint);

            return(DoRequest <StripeInvoiceItem> (ep, "POST", str.ToString()));
        }
Esempio n. 4
0
 public StripeInvoiceItem UpdateInvoiceItem(string invoiceItemId, StripeInvoiceItemInfo item)
 {
     StringBuilder str = UrlEncode (item);
     string ep = string.Format ("{0}/invoiceitems/{1}", api_endpoint, invoiceItemId);
     string json = DoRequest (ep, "POST", str.ToString ());
     return JsonConvert.DeserializeObject<StripeInvoiceItem> (json);
 }
Esempio n. 5
0
 public StripeInvoiceItem CreateInvoiceItem(StripeInvoiceItemInfo item)
 {
     if (string.IsNullOrEmpty (item.CustomerID))
         throw new ArgumentNullException ("item.CustomerID");
     StringBuilder str = UrlEncode (item);
     string ep = string.Format ("{0}/invoiceitems", api_endpoint);
     string json = DoRequest (ep, "POST", str.ToString ());
     return JsonConvert.DeserializeObject<StripeInvoiceItem> (json);
 }