Ejemplo 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()));
        }
Ejemplo 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));
        }
Ejemplo 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()));
        }
Ejemplo 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);
 }
Ejemplo 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);
 }