示例#1
0
        public async Task <TaxCertificate> UpdateCertificateAsync(int certificateID, TaxCertificate cert, Address buyerLocation)
        {
            var companyID         = _settings.CompanyID;
            var certificate       = _avaTax.UpdateCertificateAsync(companyID, certificateID, TaxCertificateMapper.Map(cert, buyerLocation, companyID));
            var pdf               = GetCertificateBase64String(companyID, certificateID);
            var mappedCertificate = TaxCertificateMapper.Map(await certificate, await pdf);

            return(mappedCertificate);
        }