public InvoiceItemServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new InvoiceItemService(); this.createOptions = new InvoiceItemCreateOptions { Amount = 123, Currency = "usd", CustomerId = "cus_123", }; this.updateOptions = new InvoiceItemUpdateOptions { Metadata = new Dictionary <string, string> { { "key", "value" }, }, }; this.listOptions = new InvoiceItemListOptions { Limit = 1, }; }
public virtual async Task <InvoiceLineItem> Update(string invoiceItemId, InvoiceItemUpdateOptions options) { var url = string.Format("{0}/{1}", Urls.InvoiceItems, invoiceItemId); url = this.ApplyAllParameters(options, url, false); var response = await Requestor.Post(url); return(Mapper <InvoiceLineItem> .MapFromJson(response)); }
public InvoiceItemServiceTest() { this.service = new InvoiceItemService(); this.createOptions = new InvoiceItemCreateOptions() { Amount = 123, Currency = "usd", CustomerId = "cus_123", }; this.updateOptions = new InvoiceItemUpdateOptions() { Metadata = new Dictionary <string, string>() { { "key", "value" }, }, }; this.listOptions = new InvoiceItemListOptions() { Limit = 1, }; }