예제 #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()));
        }
예제 #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));
        }
예제 #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()));
        }
예제 #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);
 }
예제 #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);
 }