Class: Afipws::WSConstanciaInscripcion
- Inherits:
-
Object
- Object
- Afipws::WSConstanciaInscripcion
- Defined in:
- lib/afipws/ws_constancia_inscripcion.rb
Constant Summary collapse
- WSDL =
{ development: 'https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA5?WSDL', production: 'https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA5?WSDL', test: Root + '/spec/fixtures/ws_sr_constancia_inscripcion/ws_constancia_inscripcion.wsdl' }.freeze
Instance Attribute Summary collapse
-
#wsaa ⇒ Object
readonly
Returns the value of attribute wsaa.
Instance Method Summary collapse
- #dummy ⇒ Object
- #get_persona(id) ⇒ Object
-
#initialize(options = {}) ⇒ WSConstanciaInscripcion
constructor
A new instance of WSConstanciaInscripcion.
Constructor Details
#initialize(options = {}) ⇒ WSConstanciaInscripcion
Returns a new instance of WSConstanciaInscripcion.
11 12 13 14 15 |
# File 'lib/afipws/ws_constancia_inscripcion.rb', line 11 def initialize = {} @cuit = [:cuit] @wsaa = WSAA.new .merge(service: 'ws_sr_constancia_inscripcion') @client = Client.new Hash([:savon]).reverse_merge(wsdl: WSDL[@wsaa.env], soap_version: 1) end |
Instance Attribute Details
#wsaa ⇒ Object (readonly)
Returns the value of attribute wsaa.
9 10 11 |
# File 'lib/afipws/ws_constancia_inscripcion.rb', line 9 def wsaa @wsaa end |
Instance Method Details
#dummy ⇒ Object
17 18 19 |
# File 'lib/afipws/ws_constancia_inscripcion.rb', line 17 def dummy request(:dummy)[:return] end |
#get_persona(id) ⇒ Object
21 22 23 24 |
# File 'lib/afipws/ws_constancia_inscripcion.rb', line 21 def get_persona id = @wsaa.auth.merge(cuit_representada: @cuit, id_persona: id) request(:get_persona, )[:persona_return] end |