Class: CobroDigital::Transaccion

Inherits:
Operador
  • Object
show all
Defined in:
lib/cobro_digital/transaccion.rb

Constant Summary collapse

CONSULTAR_TRANSACCIONES_WS =
'consultar_transacciones'
FILTRO_TIPO =
'tipo'
FILTRO_NOMBRE =
'nombre'
FILTRO_CONCEPTO =
'concepto'
FILTRO_NRO_BOLETA =
'nro_boleta'
FILTRO_IDENTIFICADOR =
'identificador'
FILTRO_TIPO_EGRESO =

Transacciones de retiro del dinero depositado por los pagadores.

'egresos'
FILTRO_TIPO_INGRESO =

Todo lo que incremente el saldo de la cuenta CobroDigital. Generalmente son sólo las cobranzas.

'ingresos'
FILTRO_TIPO_TARJETA_CREDITO =

Solo aquellas cobranzas abonadas con tarjeta de crédito.

'tarjeta_credito'
FILTRO_TIPO_DEBITO_AUTOMATICO =

Está relacionado a los débitos realizados por CBU.

'debito_automatico'

Instance Attribute Summary

Attributes inherited from Operador

#client, #http_method, #render, #response, #webservice

Class Method Summary collapse

Methods inherited from Operador

#call, #initialize, #parse_response, #request

Constructor Details

This class inherits a constructor from CobroDigital::Operador

Class Method Details

.consultar(desde, hasta, filtros = {}) ⇒ Object

{ ‘desde’=>‘20160932’, ‘hasta’=>‘20161001’ }



27
28
29
30
31
32
33
# File 'lib/cobro_digital/transaccion.rb', line 27

def self.consultar(desde, hasta, filtros = {})
  CobroDigital::Transaccion.new(
    :http_method => CobroDigital::Https::GET,
    :webservice  => CONSULTAR_TRANSACCIONES_WS,
    :render      => render(desde, hasta, filtros)
  )
end

.render(desde, hasta, filtros = {}) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/cobro_digital/transaccion.rb', line 18

def self.render(desde, hasta, filtros = {})
  {
    :desde   => desde.strftime('%Y%m%d'),
    :hasta   => hasta.strftime('%Y%m%d'),
    :filtros => filtros
  }
end