Project

afipws

0.03
No release in over 3 years
Ruby client para los web services de la AFIP
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
~> 0.80.0

Runtime

 Project Readme

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