diff --git a/src/factory/interface/nfe/index.ts b/src/factory/interface/nfe/index.ts index 30959c0..e7979ef 100644 --- a/src/factory/interface/nfe/index.ts +++ b/src/factory/interface/nfe/index.ts @@ -359,8 +359,8 @@ export interface DetalhePagamento { indicadorFormaPagamento: string; formaPagamento: string; valor: string; - dadosCartao: DetalhePgtoCartao; - descricaoFormaPagamento: string; + dadosCartao?: DetalhePgtoCartao; + descricaoFormaPagamento?: string; } export interface DetalhePgtoCartao { @@ -429,6 +429,7 @@ export interface Endereco { export interface Certificado { key: any; + pem: any; pfx: any; password: string; opcoes?: OpcoesCertificado; diff --git a/src/factory/webservices/webserviceHelper.ts b/src/factory/webservices/webserviceHelper.ts index 8bffcc0..5b1a118 100644 --- a/src/factory/webservices/webserviceHelper.ts +++ b/src/factory/webservices/webserviceHelper.ts @@ -56,7 +56,7 @@ export abstract class WebServiceHelper { }, agent: new https.Agent({ rejectUnauthorized: false, - // pfx: cert.pfx, + pfx: cert.pfx, cert: cert.pem, key: cert.key, passphrase: cert.password,