Class: Cieloz::Requisicao::Transacao

Inherits:
Resposta
  • Object
show all
Defined in:
lib/cieloz/requisicao/resposta/transacao.rb

Constant Summary collapse

STATUSES =
{
  "0"   => :criada,
  "1"   => :em_andamento,
  "2"   => :autenticada,
  "3"   => :nao_autenticada,
  "4"   => :autorizada,
  "5"   => :nao_autorizada,
  "6"   => :capturada,
  "9"   => :cancelada,
  "10"  => :em_autenticacao,
  "12"  => :em_cancelamento
}

Instance Attribute Summary collapse

Attributes inherited from Resposta

#xml

Instance Method Summary collapse

Methods inherited from Resposta

from

Methods included from Helpers

#attributes=, included, #initialize

Instance Attribute Details

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/cieloz/requisicao/resposta/transacao.rb', line 4

def status
  @status
end

#tidObject

Returns the value of attribute tid.



4
5
6
# File 'lib/cieloz/requisicao/resposta/transacao.rb', line 4

def tid
  @tid
end

#url_autenticacaoObject

Returns the value of attribute url_autenticacao.



4
5
6
# File 'lib/cieloz/requisicao/resposta/transacao.rb', line 4

def url_autenticacao
  @url_autenticacao
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/cieloz/requisicao/resposta/transacao.rb', line 6

def success?
  true
end