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