Sha256: d5f049c55cc9a4710b8622ebc58a9ebf53802e9c2040f2e0a094a50e7ba90b15

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

module Afipws
  class WSConstanciaInscripcion < WSBase
    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_constancia_inscripcion.wsdl'
    }.freeze

    def initialize options = {}
      super
      @wsaa = WSAA.new options.merge(service: 'ws_sr_constancia_inscripcion')
      @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(cuit_representada: cuit, id_persona: id)
      request(:get_persona, message)[:persona_return]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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