Class: Afipws::PersonaServiceA5
- Inherits:
-
Object
- Object
- Afipws::PersonaServiceA5
- Defined in:
- lib/afipws/persona_service_a5.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_padron_a5.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 = {}) ⇒ PersonaServiceA5
constructor
A new instance of PersonaServiceA5.
Constructor Details
#initialize(options = {}) ⇒ PersonaServiceA5
Returns a new instance of PersonaServiceA5.
12 13 14 15 16 |
# File 'lib/afipws/persona_service_a5.rb', line 12 def initialize = {} @cuit = [:cuit] @wsaa = WSAA.new .merge(service: 'ws_sr_padron_a5') @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.
10 11 12 |
# File 'lib/afipws/persona_service_a5.rb', line 10 def wsaa @wsaa end |
Instance Method Details
#dummy ⇒ Object
18 19 20 |
# File 'lib/afipws/persona_service_a5.rb', line 18 def dummy request(:dummy)[:return] end |
#get_persona(id) ⇒ Object
22 23 24 25 |
# File 'lib/afipws/persona_service_a5.rb', line 22 def get_persona id = @wsaa.auth.merge(cuitRepresentada: @cuit, idPersona: id) request(:get_persona, )[:persona_return] end |