Class: Arca::PersonaServiceA100
- Inherits:
-
Object
- Object
- Arca::PersonaServiceA100
- Defined in:
- lib/arca/persona_service_a100.rb
Constant Summary collapse
- WSDL =
{ development: "https://awshomo.afip.gov.ar/sr-parametros/webservices/parameterServiceA100?WSDL", production: "https://aws.afip.gov.ar/sr-parametros/webservices/parameterServiceA100?WSDL", test: "#{Root}/test/fixtures/ws_sr_padron_a100.wsdl" }.freeze
Instance Attribute Summary collapse
-
#wsaa ⇒ Object
readonly
Returns the value of attribute wsaa.
Instance Method Summary collapse
- #company_types ⇒ Object
- #dummy ⇒ Object
-
#initialize(options = {}) ⇒ PersonaServiceA100
constructor
A new instance of PersonaServiceA100.
- #jurisdictions ⇒ Object
- #public_organisms ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ PersonaServiceA100
Returns a new instance of PersonaServiceA100.
13 14 15 16 17 |
# File 'lib/arca/persona_service_a100.rb', line 13 def initialize( = {}) @cuit = [:cuit] @wsaa = WSAA.new .merge(service: "ws_sr_padron_a100") @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.
11 12 13 |
# File 'lib/arca/persona_service_a100.rb', line 11 def wsaa @wsaa end |
Instance Method Details
#company_types ⇒ Object
27 28 29 |
# File 'lib/arca/persona_service_a100.rb', line 27 def company_types get_parameter_collection_by_name "SUPA.TIPO_EMPRESA_JURIDICA" end |
#dummy ⇒ Object
19 20 21 |
# File 'lib/arca/persona_service_a100.rb', line 19 def dummy request(:dummy)[:return] end |
#jurisdictions ⇒ Object
23 24 25 |
# File 'lib/arca/persona_service_a100.rb', line 23 def jurisdictions get_parameter_collection_by_name "SUPA.E_PROVINCIA" end |
#public_organisms ⇒ Object
31 32 33 |
# File 'lib/arca/persona_service_a100.rb', line 31 def public_organisms get_parameter_collection_by_name "SUPA.E_ORGANISMO_INFORMANTE" end |