public int ObtemQuantidadeTransacoesPendentes(DateTime data, string CupomFiscal) { int ret = ACBrTEFInterop.TEF_TEFCliSiTef_ObtemQuantidadeTransacoesPendentes(this.Handle, ToOADate(data), ToUTF8(CupomFiscal)); CheckResult(ret); return(ret); }
public bool ADM(TefTipo gp = TefTipo.Nenhum) { int ret = ACBrTEFInterop.TEF_ADM(this.Handle, (int)gp); CheckResult(ret); return(ret == 1); }
public int DefineMensagemPermanentePinPad(string mensagem) { int ret = ACBrTEFInterop.TEF_TEFCliSiTef_DefineMensagemPermanentePinPad(this.Handle, ToUTF8(mensagem)); CheckResult(ret); return(ret); }
public bool CNC(string rede, string nsu, DateTime dataHoraTransacao, decimal valor) { int ret = ACBrTEFInterop.TEF_CNC(this.Handle, rede, nsu, dataHoraTransacao.ToOADate(), Convert.ToDouble(valor)); CheckResult(ret); return(ret == 1); }
public bool CRT(decimal valor, string indiceFPG_ECF, string documentoVinculado = "", int moeda = 0) { int ret = ACBrTEFInterop.TEF_CRT(this.Handle, Convert.ToDouble(valor), ToUTF8(indiceFPG_ECF), ToUTF8(documentoVinculado), moeda); CheckResult(ret); return(ret == 1); }
public string LeInformacao(int Identificacao, int Sequencia) { const int bufferLen = 256; StringBuilder buffer = new StringBuilder(bufferLen); int ret = ACBrTEFInterop.TEF_Resp_LeInformacao(this.Handle, this.ComposedHandle, buffer, bufferLen, Identificacao, Sequencia); CheckResult(ret); return(buffer.ToString()); }
public Resp this[int index] { get { if (index >= Count) { throw new IndexOutOfRangeException(); } IntPtr composedHandle; int ret = ACBrTEFInterop.TEF_RespostasPendentes_GetItem(this.Handle, this.ComposedHandle, index, out composedHandle); CheckResult(ret); return(new Resp(this.Parent, composedHandle)); } }
public bool CHQ(decimal valor, string indiceFPG_ECF, string documentoVinculado = "", string CMC7 = "", char tipoPessoa = 'F', string documentoPessoa = "", DateTime DataCheque = default(DateTime), string banco = "", string agencia = "", string agenciaDC = "", string conta = "", string contaDC = "", string cheque = "", string chequeDC = "", string compensacao = "") { if (DataCheque == default(DateTime)) { DataCheque = DateTime.Now; } int ret = ACBrTEFInterop.TEF_CHQ(this.Handle, Convert.ToDouble(valor), ToUTF8(indiceFPG_ECF), ToUTF8(documentoVinculado), ToUTF8(CMC7), tipoPessoa, ToUTF8(documentoPessoa), DataCheque.ToOADate(), ToUTF8(banco), ToUTF8(agencia), ToUTF8(agenciaDC), ToUTF8(conta), ToUTF8(contaDC), ToUTF8(cheque), ToUTF8(chequeDC), ToUTF8(compensacao)); CheckResult(ret); return(ret == 1); }
public void FinalizarCupom(bool bloqueia = true) { int ret = ACBrTEFInterop.TEF_FinalizarCupom(this.Handle, bloqueia); CheckResult(ret); }
public void ImprimirTransacoesPendentes() { int ret = ACBrTEFInterop.TEF_ImprimirTransacoesPendentes(this.Handle); CheckResult(ret); }
public void ConfirmarTransacoesPendentes() { int ret = ACBrTEFInterop.TEF_ConfirmarTransacoesPendentes(this.Handle); CheckResult(ret); }
public void NCN(string rede, string nsu, string finalizacao, decimal valor = 0M, string documentoVinculado = "") { int ret = ACBrTEFInterop.TEF_NCN(this.Handle, rede, nsu, finalizacao, Convert.ToDouble(valor), documentoVinculado); CheckResult(ret); }
public void CNF(string rede, string nsu, string finalizacao, string documentoVinculado = "") { int ret = ACBrTEFInterop.TEF_CNF(this.Handle, rede, nsu, finalizacao, documentoVinculado); CheckResult(ret); }
public void ATV(TefTipo gp = TefTipo.Nenhum) { int ret = ACBrTEFInterop.TEF_ATV(this.Handle, (int)gp); CheckResult(ret); }
public void AtivarGP(TefTipo gp) { int ret = ACBrTEFInterop.TEF_AtivarGP(this.Handle, (int)gp); CheckResult(ret); }
public void DesInicializar(TefTipo gp) { int ret = ACBrTEFInterop.TEF_DesInicializar(this.Handle, (int)gp); CheckResult(ret); }