Skip to content

Ruby client para los servicios web de la AFIP

License

Notifications You must be signed in to change notification settings

mauro-labattaglia/afipws

This branch is 44 commits behind eeng/afipws:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d1e0112 · Oct 28, 2020
Oct 28, 2020
Oct 28, 2020
Oct 28, 2020
Aug 20, 2018
Jan 12, 2011
Oct 28, 2020
May 26, 2020
Dec 20, 2019
Oct 28, 2020
Jan 12, 2011
Oct 28, 2020
Jul 7, 2018
Aug 20, 2018
Feb 13, 2020
Jan 15, 2011
Oct 28, 2020

Repository files navigation

Afipws

Ruby client para los web services de la AFIP.

Build Status

Servicios Disponibles

  • wsaa (WSAA)
  • wsfe (WSFE)
  • ws_sr_constancia_inscripcion (WSConstanciaInscripcion)
  • ws_sr_padron_a100 (PersonaServiceA100)
  • ws_sr_padron_a4 (PersonaServiceA4)
  • ws_sr_padron_a5 (PersonaServiceA5)
  • wconsdeclaracion (WConsDeclaracion)

Uso

Primero hay que crear la clave privada y obtener el certificado correspondiente según los pasos indicados aquí.

Luego hay que instalar la librería:

gem install afipws

Y por último usamos el web service de esta forma:

require 'afipws'
ws = Afipws::WSFE.new env: :development, cuit: '...', key: File.read('test.key'), cert: File.read('test.crt')
puts ws.cotizacion 'DOL'

Ver specs para más ejemplos.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Test, test, test (guard)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

About

Ruby client para los servicios web de la AFIP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%