Skip to content

Ruby client para los servicios web de la AFIP

License

Notifications You must be signed in to change notification settings

Avancargo/afipws

 
 

Repository files navigation

Afipws

Ruby client para los web services de la AFIP.

Build Status

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'

De momento sólo están soportados los servicios WSAA y WSFEv1. Ver specs para más ejemplos.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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%