Module: Centralpos

Defined in:
lib/centralpos/account.rb,
lib/centralpos.rb,
lib/centralpos/batch.rb,
lib/centralpos/utils.rb,
lib/centralpos/errors.rb,
lib/centralpos/version.rb,
lib/centralpos/core/errors.rb,
lib/centralpos/core/logger.rb,
lib/centralpos/transaction.rb,
lib/centralpos/core/gateway.rb

Overview

Allowed Operations: [

:add_registro,
:del_registro,
:get_estado_presentaciones,
:get_presentaciones_abiertas,
:list_registros,
:list_tarjetas_habilitadas,
:put_procesa_presentacion

]

Deprecated Operations: [

:get_respuesta_presentacion,
:get_detalles_presentacion_respondida,
:put_datos_presentacion_abierta,
:get_presentaciones_futuras,
:get_presentaciones_respondidas

]

Defined Under Namespace

Modules: Core, Utils Classes: Account, AccountError, Batch, Error, Transaction

Constant Summary collapse

VERSION =
"0.2.3"
@@sandbox_wsdl_endpoint =
''
@@production_wsdl_endpoint =
''
@@override_timezone =
true
@@default_timezone =
'-0300'

Class Method Summary collapse

Class Method Details

.default_timezoneObject



37
38
39
# File 'lib/centralpos.rb', line 37

def default_timezone
  @@default_timezone
end

.default_timezone=(value) ⇒ Object



57
58
59
# File 'lib/centralpos.rb', line 57

def default_timezone=(value)
  @@default_timezone = value
end

.override_timezoneObject



33
34
35
# File 'lib/centralpos.rb', line 33

def override_timezone
  @@override_timezone
end

.override_timezone=(value) ⇒ Object



53
54
55
# File 'lib/centralpos.rb', line 53

def override_timezone=(value)
  @@override_timezone = value.is_a?(Boolean) ? value : true
end

.production_wsdl_endpointObject



29
30
31
# File 'lib/centralpos.rb', line 29

def production_wsdl_endpoint
  @@production_wsdl_endpoint
end

.production_wsdl_endpoint=(url_string) ⇒ Object



49
50
51
# File 'lib/centralpos.rb', line 49

def production_wsdl_endpoint=(url_string)
  @@production_wsdl_endpoint = url_string
end

.sandbox_wsdl_endpointObject



25
26
27
# File 'lib/centralpos.rb', line 25

def sandbox_wsdl_endpoint
  @@sandbox_wsdl_endpoint
end

.sandbox_wsdl_endpoint=(url_string) ⇒ Object



45
46
47
# File 'lib/centralpos.rb', line 45

def sandbox_wsdl_endpoint=(url_string)
  @@sandbox_wsdl_endpoint = url_string
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Centralpos)

    the object that the method was called on



41
42
43
# File 'lib/centralpos.rb', line 41

def setup
  yield self
end