/// <summary> /// 請求書の更新 /// </summary> /// <remarks> /// 指定した事業所の請求書を更新する /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// 請求書ID /// </param> /// <param name='parameters'> /// 請求書の更新 /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <InvoicesResponse> UpdateAsync(this IInvoices operations, int id, InvoicesUpdateParams parameters = default(InvoicesUpdateParams), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(id, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update entity in invoices /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='invoiceid'> /// key: invoiceid /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateAsync(this IInvoices operations, string invoiceid, MicrosoftDynamicsCRMinvoice body, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateWithHttpMessagesAsync(invoiceid, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Update entity in invoices /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='invoiceid'> /// key: invoiceid of invoice /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse UpdateWithHttpMessages(this IInvoices operations, string invoiceid, MicrosoftDynamicsCRMinvoice body, Dictionary <string, List <string> > customHeaders = null) { return(operations.UpdateWithHttpMessagesAsync(invoiceid, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }