public virtual StripeInvoiceLineItem Update(string invoiceItemId, StripeInvoiceItemUpdateOptions updateOptions, StripeRequestOptions requestOptions = null) { return(Mapper <StripeInvoiceLineItem> .MapFromJson( Requestor.PostString(this.ApplyAllParameters(updateOptions, $"{Urls.InvoiceItems}/{invoiceItemId}", false), SetupRequestOptions(requestOptions)) )); }
public virtual async Task<StripeInvoiceLineItem> UpdateAsync(string invoiceItemId, StripeInvoiceItemUpdateOptions updateOptions, StripeRequestOptions requestOptions = null) { return Mapper<StripeInvoiceLineItem>.MapFromJson( await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.InvoiceItems}/{invoiceItemId}", false), SetupRequestOptions(requestOptions)) ); }
public virtual StripeInvoiceItem Update(string invoiceItemId, StripeInvoiceItemUpdateOptions updateOptions) { var url = string.Format("{0}/{1}", Urls.InvoiceItems, invoiceItemId); url = ParameterBuilder.ApplyAllParameters(updateOptions, url); var response = Requestor.PostString(url,ApiKeyAppSettingName); return Mapper<StripeInvoiceItem>.MapFromJson(response); }
public virtual StripeInvoiceItem Update(string invoiceItemId, StripeInvoiceItemUpdateOptions updateOptions) { var url = string.Format("{0}/{1}", Urls.InvoiceItems, invoiceItemId); url = ParameterBuilder.ApplyAllParameters(updateOptions, url); var response = Requestor.PostString(url); return(Mapper <StripeInvoiceItem> .MapFromJson(response)); }
public virtual StripeInvoiceLineItem Update(string invoiceItemId, StripeInvoiceItemUpdateOptions updateOptions, StripeRequestOptions requestOptions = null) { requestOptions = SetupRequestOptions(requestOptions); var url = string.Format("{0}/{1}", Urls.InvoiceItems, invoiceItemId); url = this.ApplyAllParameters(updateOptions, url, false); var response = Requestor.PostString(url, requestOptions); return Mapper<StripeInvoiceLineItem>.MapFromJson(response); }
public virtual StripeInvoiceLineItem Update(string invoiceItemId, StripeInvoiceItemUpdateOptions updateOptions, StripeRequestOptions requestOptions = null) { requestOptions = SetupRequestOptions(requestOptions); var url = string.Format("{0}/{1}", Urls.InvoiceItems, invoiceItemId); url = this.ApplyAllParameters(updateOptions, url, false); var response = Requestor.PostString(url, requestOptions); return(Mapper <StripeInvoiceLineItem> .MapFromJson(response)); }
public virtual async Task <StripeInvoiceLineItem> UpdateAsync(string invoiceItemId, StripeInvoiceItemUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(Mapper <StripeInvoiceLineItem> .MapFromJson( await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.InvoiceItems}/{invoiceItemId}", false), SetupRequestOptions(requestOptions), cancellationToken) )); }