/// <summary>
        /// Registro de empresas CODI® Registra una empresa para hacer uso de operaciones CODI®.&lt;br&gt;&lt;br&gt; &lt;b&gt;Nota:&lt;b&gt; Es requerido tener el certificado emitido por BANXICO® asi como el Nombre de la empresa, Nombre comercial y el Registro Federal de Contribuyentes (RFC) de la empresa.&lt;br/&gt;
        /// </summary>
        /// <exception cref="MX.Wire4.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body">Información de la cuenta del beneficiario</param>
        /// <param name="authorization">Header para token</param>
        /// <returns>Task of CompanyRegistered</returns>
        public async System.Threading.Tasks.Task <CompanyRegistered> RegisterCompanyUsingPOSTAsync(CompanyRequested body, string authorization)
        {
            ApiResponse <CompanyRegistered> localVarResponse = await RegisterCompanyUsingPOSTAsyncWithHttpInfo(body, authorization);

            return(localVarResponse.Data);
        }
        /// <summary>
        /// Registro de empresas CODI® Registra una empresa para hacer uso de operaciones CODI®.&lt;br&gt;&lt;br&gt; &lt;b&gt;Nota:&lt;b&gt; Es requerido tener el certificado emitido por BANXICO® asi como el Nombre de la empresa, Nombre comercial y el Registro Federal de Contribuyentes (RFC) de la empresa.&lt;br/&gt;
        /// </summary>
        /// <exception cref="MX.Wire4.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body">Información de la cuenta del beneficiario</param>
        /// <param name="authorization">Header para token</param>
        /// <returns>Task of ApiResponse (CompanyRegistered)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <CompanyRegistered> > RegisterCompanyUsingPOSTAsyncWithHttpInfo(CompanyRequested body, string authorization)
        {
            // verify the required parameter 'body' is set
            if (body == null)
            {
                throw new ApiException(400, "Missing required parameter 'body' when calling EmpresasCoDiApi->RegisterCompanyUsingPOST");
            }
            // verify the required parameter 'authorization' is set
            if (authorization == null)
            {
                throw new ApiException(400, "Missing required parameter 'authorization' when calling EmpresasCoDiApi->RegisterCompanyUsingPOST");
            }

            var    localVarPath         = "/codi/companies";
            var    localVarPathParams   = new Dictionary <String, String>();
            var    localVarQueryParams  = new List <KeyValuePair <String, String> >();
            var    localVarHeaderParams = new Dictionary <String, String>(this.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 = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json"
            };
            String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (authorization != null)
            {
                localVarHeaderParams.Add("Authorization", this.Configuration.ApiClient.ParameterToString(authorization));                        // header parameter
            }
            if (body != null && body.GetType() != typeof(byte[]))
            {
                localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
            }
            else
            {
                localVarPostBody = body; // byte array
            }

            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                            Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                            localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("RegisterCompanyUsingPOST", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <CompanyRegistered>(localVarStatusCode,
                                                       localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
                                                       (CompanyRegistered)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CompanyRegistered))));
        }
        /// <summary>
        /// Registro de empresas CODI® Registra una empresa para hacer uso de operaciones CODI®.&lt;br&gt;&lt;br&gt; &lt;b&gt;Nota:&lt;b&gt; Es requerido tener el certificado emitido por BANXICO® asi como el Nombre de la empresa, Nombre comercial y el Registro Federal de Contribuyentes (RFC) de la empresa.&lt;br/&gt;
        /// </summary>
        /// <exception cref="MX.Wire4.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body">Información de la cuenta del beneficiario</param>
        /// <param name="authorization">Header para token</param>
        /// <returns>CompanyRegistered</returns>
        public CompanyRegistered RegisterCompanyUsingPOST(CompanyRequested body, string authorization)
        {
            ApiResponse <CompanyRegistered> localVarResponse = RegisterCompanyUsingPOSTWithHttpInfo(body, authorization);

            return(localVarResponse.Data);
        }