class CobroDigital::Transaccion

Constants

CONSULTAR_TRANSACCIONES_WS
FILTRO_CONCEPTO
FILTRO_IDENTIFICADOR
FILTRO_NOMBRE
FILTRO_NRO_BOLETA
FILTRO_TIPO
FILTRO_TIPO_DEBITO_AUTOMATICO
FILTRO_TIPO_EGRESO
FILTRO_TIPO_INGRESO
FILTRO_TIPO_TARJETA_CREDITO

Public Class Methods

consultar(desde, hasta, filtros = {}) click to toggle source

{ 'desde'=>'20160932', 'hasta'=>'20161001' }

# 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 = {}) click to toggle source
# 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