/// <summary> /// Update specific milestoneFreeRole to loan Update specific milestoneFreeRole to loan /// </summary> /// <exception cref="Elli.Api.Loans.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="logId">Unique Identifier of log(LogId)</param> /// <param name="id">Unique Identifier of loan(LoanId)</param> /// <param name="milestoneFreeRole"> (optional)</param> /// <returns>Task of void</returns> public async System.Threading.Tasks.Task UpdateMilestoneFreeRoleAsync(string logId, string id, MilestoneFreeRoleContract milestoneFreeRole = null) { await UpdateMilestoneFreeRoleAsyncWithHttpInfo(logId, id, milestoneFreeRole); }
/// <summary> /// Update specific milestoneFreeRole to loan Update specific milestoneFreeRole to loan /// </summary> /// <exception cref="Elli.Api.Loans.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="logId">Unique Identifier of log(LogId)</param> /// <param name="id">Unique Identifier of loan(LoanId)</param> /// <param name="milestoneFreeRole"> (optional)</param> /// <returns>Task of ApiResponse</returns> public async System.Threading.Tasks.Task <ApiResponse <Object> > UpdateMilestoneFreeRoleAsyncWithHttpInfo(string logId, string id, MilestoneFreeRoleContract milestoneFreeRole = null) { // verify the required parameter 'logId' is set if (logId == null) { throw new ApiException(400, "Missing required parameter 'logId' when calling MilestoneFreeRolesApi->UpdateMilestoneFreeRole"); } // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing required parameter 'id' when calling MilestoneFreeRolesApi->UpdateMilestoneFreeRole"); } var localVarPath = "/encompass/v1/loans/{id}/milestoneFreeRoles/{logId}"; var localVarPathParams = new Dictionary <String, String>(); var localVarQueryParams = new Dictionary <String, String>(); var localVarHeaderParams = new Dictionary <String, String>(Configuration.DefaultHeader); var localVarFormParams = new Dictionary <String, String>(); var localVarFileParams = new Dictionary <String, FileParameter>(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/json" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/json" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) { localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); } if (logId != null) { localVarPathParams.Add("logId", Configuration.ApiClient.ParameterToString(logId)); // path parameter } if (id != null) { localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter } if (milestoneFreeRole != null && milestoneFreeRole.GetType() != typeof(byte[])) { localVarPostBody = Configuration.ApiClient.Serialize(milestoneFreeRole); // http body (model) parameter } else { localVarPostBody = milestoneFreeRole; // byte array } // authentication (bearerAuth) required // oauth required if (!String.IsNullOrEmpty(Configuration.AccessToken)) { localVarHeaderParams["Authorization"] = "Bearer " + Configuration.AccessToken; } // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UpdateMilestoneFreeRole", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <Object>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), null)); }
/// <summary> /// Update specific milestoneFreeRole to loan Update specific milestoneFreeRole to loan /// </summary> /// <exception cref="Elli.Api.Loans.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="logId">Unique Identifier of log(LogId)</param> /// <param name="id">Unique Identifier of loan(LoanId)</param> /// <param name="milestoneFreeRole"> (optional)</param> /// <returns></returns> public void UpdateMilestoneFreeRole(string logId, string id, MilestoneFreeRoleContract milestoneFreeRole = null) { UpdateMilestoneFreeRoleWithHttpInfo(logId, id, milestoneFreeRole); }