Sha256: e920fd246c37ff64f2ccc873440caa6c112e916579c3384ac3f753f7f39b2fe2

Contents?: true

Size: 755 Bytes

Versions: 1

Compression:

Stored size: 755 Bytes

Contents

module Afipws
  class PersonaServiceA4 < WSBase
    WSDL = {
      development: 'https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA4?WSDL',
      production: 'https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA4?WSDL',
      test: Root + '/spec/fixtures/ws_sr_padron_a4.wsdl'
    }.freeze

    def initialize options = {}
      super
      @wsaa = WSAA.new options.merge(service: 'ws_sr_padron_a4')
      @client = Client.new Hash(options[:savon]).reverse_merge(wsdl: WSDL[env], soap_version: 1)
    end

    def dummy
      request(:dummy)[:return]
    end

    def get_persona id
      message = auth.merge(cuitRepresentada: cuit, idPersona: id)
      request(:get_persona, message)[:persona_return][:persona]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
afipws-1.1.0 lib/afipws/persona_service_a4.rb