/// <summary> /// Deletes the specified recipient file from a template. Deletes the specified recipient file from the specified template. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="recipientId">The ID of the recipient being accessed.</param> <param name="templateRecipients">TBD Description</param> /// <returns>8Task of ApiResponse (Recipients)</returns> public async System.Threading.Tasks.Task<ApiResponse<Recipients>> DeleteRecipientAsyncWithHttpInfo (string accountId, string templateId, string recipientId, TemplateRecipients templateRecipients) { // verify the required parameter 'accountId' is set if (accountId == null) throw new ApiException(400, "Missing required parameter 'accountId' when calling DeleteRecipient"); // verify the required parameter 'templateId' is set if (templateId == null) throw new ApiException(400, "Missing required parameter 'templateId' when calling DeleteRecipient"); // verify the required parameter 'recipientId' is set if (recipientId == null) throw new ApiException(400, "Missing required parameter 'recipientId' when calling DeleteRecipient"); var path_ = "/v2/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}"; var pathParams = new Dictionary<String, String>(); var queryParams = new Dictionary<String, String>(); var headerParams = new Dictionary<String, String>(); var formParams = new Dictionary<String, String>(); var fileParams = new Dictionary<String, FileParameter>(); String postBody = null; // to determine the Accept header String[] http_header_accepts = new String[] { "application/json" }; String http_header_accept = Configuration.ApiClient.SelectHeaderAccept(http_header_accepts); if (http_header_accept != null) headerParams.Add("Accept", Configuration.ApiClient.SelectHeaderAccept(http_header_accepts)); // set "format" to json by default // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json pathParams.Add("format", "json"); if (accountId != null) pathParams.Add("accountId", Configuration.ApiClient.ParameterToString(accountId)); // path parameter if (templateId != null) pathParams.Add("templateId", Configuration.ApiClient.ParameterToString(templateId)); // path parameter if (recipientId != null) pathParams.Add("recipientId", Configuration.ApiClient.ParameterToString(recipientId)); // path parameter postBody = Configuration.ApiClient.Serialize(templateRecipients); // http body (model) parameter // make the HTTP request IRestResponse response = (IRestResponse) await Configuration.ApiClient.CallApiAsync(path_, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, pathParams); int statusCode = (int) response.StatusCode; if (statusCode >= 400) throw new ApiException (statusCode, "Error calling DeleteRecipient: " + response.Content, response.Content); else if (statusCode == 0) throw new ApiException (statusCode, "Error calling DeleteRecipient: " + response.ErrorMessage, response.ErrorMessage); return new ApiResponse<Recipients>(statusCode, response.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), (Recipients) Configuration.ApiClient.Deserialize(response, typeof(Recipients))); }
/// <summary> /// Deletes the specified recipient file from a template. Deletes the specified recipient file from the specified template. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="recipientId">The ID of the recipient being accessed.</param> <param name="templateRecipients">TBD Description</param> /// <returns>7Task of Recipients</returns> public async System.Threading.Tasks.Task<Recipients> DeleteRecipientAsync (string accountId, string templateId, string recipientId, TemplateRecipients templateRecipients) { ApiResponse<Recipients> response = await DeleteRecipientAsyncWithHttpInfo(accountId, templateId, recipientId, templateRecipients); return response.Data; }
/// <summary> /// Deletes the specified recipient file from a template. Deletes the specified recipient file from the specified template. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param><param name="recipientId">The ID of the recipient being accessed.</param> <param name="templateRecipients">TBD Description</param> /// <returns>5Recipients</returns> public Recipients DeleteRecipient (string accountId, string templateId, string recipientId, TemplateRecipients templateRecipients) { ApiResponse<Recipients> response = DeleteRecipientWithHttpInfo(accountId, templateId, recipientId, templateRecipients); return response.Data; }
/// <summary> /// Adds tabs for a recipient. Adds one or more recipients to a template. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param> <param name="templateRecipients">TBD Description</param> /// <returns>5Recipients</returns> public Recipients CreateRecipients (string accountId, string templateId, TemplateRecipients templateRecipients) { ApiResponse<Recipients> response = CreateRecipientsWithHttpInfo(accountId, templateId, templateRecipients); return response.Data; }
/// <summary> /// Updates recipients in a template. Updates recipients in a template. \n\nYou can edit the following properties: `email`, `userName`, `routingOrder`, `faxNumber`, `deliveryMethod`, `accessCode`, and `requireIdLookup`. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param> <param name="templateRecipients">TBD Description</param> /// <returns>7Task of RecipientsUpdateSummary</returns> public async System.Threading.Tasks.Task<RecipientsUpdateSummary> UpdateRecipientsAsync (string accountId, string templateId, TemplateRecipients templateRecipients) { ApiResponse<RecipientsUpdateSummary> response = await UpdateRecipientsAsyncWithHttpInfo(accountId, templateId, templateRecipients); return response.Data; }
/// <summary> /// Updates recipients in a template. Updates recipients in a template. \n\nYou can edit the following properties: `email`, `userName`, `routingOrder`, `faxNumber`, `deliveryMethod`, `accessCode`, and `requireIdLookup`. /// </summary> ///<param name="accountId">The external account number (int) or account ID Guid.</param><param name="templateId">The ID of the template being accessed.</param> <param name="templateRecipients">TBD Description</param> /// <returns>5RecipientsUpdateSummary</returns> public RecipientsUpdateSummary UpdateRecipients (string accountId, string templateId, TemplateRecipients templateRecipients) { ApiResponse<RecipientsUpdateSummary> response = UpdateRecipientsWithHttpInfo(accountId, templateId, templateRecipients); return response.Data; }