/// <summary> /// Replaces a recipient in an envelope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='envelopeId'> /// The id of the envelope/bulk. /// </param> /// <param name='recipientId'> /// The id of an recipient in the bulk or envelope. /// </param> /// <param name='recipient'> /// The new recipient data. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> ReplaceAsync(this IRecipient operations, string envelopeId, string recipientId, FlowApiSendEnvelopeRecipient recipient, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ReplaceWithHttpMessagesAsync(envelopeId, recipientId, recipient, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }