afipws 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -1
  3. data/README.md +1 -0
  4. data/afipws.gemspec +1 -0
  5. data/lib/afipws.rb +1 -1
  6. data/lib/afipws/client.rb +0 -1
  7. data/lib/afipws/persona_service_a100.rb +14 -6
  8. data/lib/afipws/persona_service_a4.rb +14 -4
  9. data/lib/afipws/version.rb +1 -1
  10. data/lib/afipws/w_cons_declaracion.rb +63 -0
  11. data/lib/afipws/ws_constancia_inscripcion.rb +15 -5
  12. data/lib/afipws/wsaa.rb +2 -2
  13. data/lib/afipws/wsfe.rb +8 -6
  14. data/spec/afipws/core_ext/hash_spec.rb +3 -3
  15. data/spec/afipws/persona_service_a100_spec.rb +3 -3
  16. data/spec/afipws/persona_service_a4_spec.rb +1 -1
  17. data/spec/afipws/w_cons_declaracion_spec.rb +87 -0
  18. data/spec/afipws/ws_constancia_inscripcion_spec.rb +12 -14
  19. data/spec/afipws/wsaa_spec.rb +2 -2
  20. data/spec/afipws/wsfe_spec.rb +49 -47
  21. data/spec/fixtures/wconsdeclaracion/detallada_estado/success.xml +24 -0
  22. data/spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_fecha_success.xml +39 -0
  23. data/spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_inexistente.xml +16 -0
  24. data/spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_success.xml +29 -0
  25. data/spec/fixtures/wconsdeclaracion/dummy/success.xml +12 -0
  26. data/spec/fixtures/wconsdeclaracion/wconsdeclaracion.wsdl +2976 -0
  27. data/spec/fixtures/{constancia_inscripcion_dummy → ws_sr_constancia_inscripcion/dummy}/success.xml +0 -0
  28. data/spec/fixtures/{constancia_inscripcion_get_persona → ws_sr_constancia_inscripcion/get_persona}/failure.xml +0 -0
  29. data/spec/fixtures/{constancia_inscripcion_get_persona → ws_sr_constancia_inscripcion/get_persona}/fault.xml +0 -0
  30. data/spec/fixtures/{constancia_inscripcion_get_persona → ws_sr_constancia_inscripcion/get_persona}/success.xml +0 -0
  31. data/spec/fixtures/{ws_constancia_inscripcion.wsdl → ws_sr_constancia_inscripcion/ws_constancia_inscripcion.wsdl} +0 -0
  32. data/spec/fixtures/{login_cms → wsaa/login_cms}/fault.xml +0 -0
  33. data/spec/fixtures/{login_cms → wsaa/login_cms}/success.xml +0 -0
  34. data/spec/fixtures/{login_cms → wsaa/login_cms}/token_expirado.xml +0 -0
  35. data/spec/fixtures/{wsaa.wsdl → wsaa/wsaa.wsdl} +0 -0
  36. data/spec/fixtures/{fe_comp_consultar → wsfe/fe_comp_consultar}/success.xml +0 -0
  37. data/spec/fixtures/{fe_comp_tot_x_request → wsfe/fe_comp_tot_x_request}/success.xml +0 -0
  38. data/spec/fixtures/{fe_comp_ultimo_autorizado → wsfe/fe_comp_ultimo_autorizado}/success.xml +0 -0
  39. data/spec/fixtures/{fe_dummy → wsfe/fe_dummy}/success.xml +0 -0
  40. data/spec/fixtures/{fe_param_get_cotizacion → wsfe/fe_param_get_cotizacion}/dolar.xml +0 -0
  41. data/spec/fixtures/{fe_param_get_cotizacion → wsfe/fe_param_get_cotizacion}/inexistente.xml +0 -0
  42. data/spec/fixtures/{fe_param_get_ptos_venta → wsfe/fe_param_get_ptos_venta}/success.xml +0 -0
  43. data/spec/fixtures/{fe_param_get_tipos_cbte → wsfe/fe_param_get_tipos_cbte}/failure_1_error.xml +0 -0
  44. data/spec/fixtures/{fe_param_get_tipos_cbte → wsfe/fe_param_get_tipos_cbte}/failure_2_errors.xml +0 -0
  45. data/spec/fixtures/{fe_param_get_tipos_cbte → wsfe/fe_param_get_tipos_cbte}/success.xml +0 -0
  46. data/spec/fixtures/{fe_param_get_tipos_concepto → wsfe/fe_param_get_tipos_concepto}/success.xml +0 -0
  47. data/spec/fixtures/{fe_param_get_tipos_doc → wsfe/fe_param_get_tipos_doc}/success.xml +0 -0
  48. data/spec/fixtures/{fe_param_get_tipos_iva → wsfe/fe_param_get_tipos_iva}/success.xml +0 -0
  49. data/spec/fixtures/{fe_param_get_tipos_monedas → wsfe/fe_param_get_tipos_monedas}/success.xml +0 -0
  50. data/spec/fixtures/{fe_param_get_tipos_opcional → wsfe/fe_param_get_tipos_opcional}/success.xml +0 -0
  51. data/spec/fixtures/{fe_param_get_tipos_tributos → wsfe/fe_param_get_tipos_tributos}/success.xml +0 -0
  52. data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/autorizacion_1_cbte.xml +0 -0
  53. data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/autorizacion_2_cbtes.xml +0 -0
  54. data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/dos_observaciones.xml +0 -0
  55. data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/una_observacion.xml +0 -0
  56. data/spec/fixtures/{fecaea_consultar → wsfe/fecaea_consultar}/success.xml +0 -0
  57. data/spec/fixtures/{fecaea_reg_informativo → wsfe/fecaea_reg_informativo}/informe_rtdo_parcial.xml +0 -0
  58. data/spec/fixtures/{fecaea_sin_movimiento_informar → wsfe/fecaea_sin_movimiento_informar}/success.xml +0 -0
  59. data/spec/fixtures/{fecaea_solicitar → wsfe/fecaea_solicitar}/caea_ya_otorgado.xml +0 -0
  60. data/spec/fixtures/{fecaea_solicitar → wsfe/fecaea_solicitar}/error_distinto.xml +0 -0
  61. data/spec/fixtures/{fecaea_solicitar → wsfe/fecaea_solicitar}/success.xml +0 -0
  62. data/spec/fixtures/{wsfe.wsdl → wsfe/wsfe.wsdl} +1371 -1371
  63. data/spec/spec_helper.rb +3 -2
  64. data/spec/support/fake_wsaa.rb +11 -0
  65. metadata +105 -75
  66. data/lib/afipws/ws_base.rb +0 -18
data/spec/spec_helper.rb CHANGED
@@ -2,8 +2,9 @@ require 'rspec'
2
2
  require 'afipws'
3
3
  require 'savon/mock/spec_helper'
4
4
  require 'mocha'
5
+ require 'pry-byebug'
5
6
 
6
- Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |f| require f }
7
+ Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each { |f| require f }
7
8
 
8
9
  RSpec.configure do |config|
9
10
  config.include Savon::SpecHelper
@@ -20,4 +21,4 @@ end
20
21
 
21
22
  def fixture file
22
23
  File.read("#{Afipws::Root}/spec/fixtures/#{file}.xml")
23
- end
24
+ end
@@ -0,0 +1,11 @@
1
+ module Afipws
2
+ class FakeWSAA
3
+ def initialize ta:
4
+ @ta = ta
5
+ end
6
+
7
+ def auth
8
+ @ta
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: afipws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Nicolau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-05 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: builder
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -163,7 +177,7 @@ files:
163
177
  - lib/afipws/persona_service_a4.rb
164
178
  - lib/afipws/type_conversions.rb
165
179
  - lib/afipws/version.rb
166
- - lib/afipws/ws_base.rb
180
+ - lib/afipws/w_cons_declaracion.rb
167
181
  - lib/afipws/ws_constancia_inscripcion.rb
168
182
  - lib/afipws/wsaa.rb
169
183
  - lib/afipws/wsfe.rb
@@ -173,43 +187,21 @@ files:
173
187
  - spec/afipws/test.crt
174
188
  - spec/afipws/test.key
175
189
  - spec/afipws/type_conversions_spec.rb
190
+ - spec/afipws/w_cons_declaracion_spec.rb
176
191
  - spec/afipws/ws_constancia_inscripcion_spec.rb
177
192
  - spec/afipws/wsaa_spec.rb
178
193
  - spec/afipws/wsfe_spec.rb
179
- - spec/fixtures/constancia_inscripcion_dummy/success.xml
180
- - spec/fixtures/constancia_inscripcion_get_persona/failure.xml
181
- - spec/fixtures/constancia_inscripcion_get_persona/fault.xml
182
- - spec/fixtures/constancia_inscripcion_get_persona/success.xml
183
- - spec/fixtures/fe_comp_consultar/success.xml
184
- - spec/fixtures/fe_comp_tot_x_request/success.xml
185
- - spec/fixtures/fe_comp_ultimo_autorizado/success.xml
186
- - spec/fixtures/fe_dummy/success.xml
187
- - spec/fixtures/fe_param_get_cotizacion/dolar.xml
188
- - spec/fixtures/fe_param_get_cotizacion/inexistente.xml
189
- - spec/fixtures/fe_param_get_ptos_venta/success.xml
190
- - spec/fixtures/fe_param_get_tipos_cbte/failure_1_error.xml
191
- - spec/fixtures/fe_param_get_tipos_cbte/failure_2_errors.xml
192
- - spec/fixtures/fe_param_get_tipos_cbte/success.xml
193
- - spec/fixtures/fe_param_get_tipos_concepto/success.xml
194
- - spec/fixtures/fe_param_get_tipos_doc/success.xml
195
- - spec/fixtures/fe_param_get_tipos_iva/success.xml
196
- - spec/fixtures/fe_param_get_tipos_monedas/success.xml
197
- - spec/fixtures/fe_param_get_tipos_opcional/success.xml
198
- - spec/fixtures/fe_param_get_tipos_tributos/success.xml
199
- - spec/fixtures/fecae_solicitar/autorizacion_1_cbte.xml
200
- - spec/fixtures/fecae_solicitar/autorizacion_2_cbtes.xml
201
- - spec/fixtures/fecae_solicitar/dos_observaciones.xml
202
- - spec/fixtures/fecae_solicitar/una_observacion.xml
203
- - spec/fixtures/fecaea_consultar/success.xml
204
- - spec/fixtures/fecaea_reg_informativo/informe_rtdo_parcial.xml
205
- - spec/fixtures/fecaea_sin_movimiento_informar/success.xml
206
- - spec/fixtures/fecaea_solicitar/caea_ya_otorgado.xml
207
- - spec/fixtures/fecaea_solicitar/error_distinto.xml
208
- - spec/fixtures/fecaea_solicitar/success.xml
209
- - spec/fixtures/login_cms/fault.xml
210
- - spec/fixtures/login_cms/success.xml
211
- - spec/fixtures/login_cms/token_expirado.xml
212
- - spec/fixtures/ws_constancia_inscripcion.wsdl
194
+ - spec/fixtures/wconsdeclaracion/detallada_estado/success.xml
195
+ - spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_fecha_success.xml
196
+ - spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_inexistente.xml
197
+ - spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_success.xml
198
+ - spec/fixtures/wconsdeclaracion/dummy/success.xml
199
+ - spec/fixtures/wconsdeclaracion/wconsdeclaracion.wsdl
200
+ - spec/fixtures/ws_sr_constancia_inscripcion/dummy/success.xml
201
+ - spec/fixtures/ws_sr_constancia_inscripcion/get_persona/failure.xml
202
+ - spec/fixtures/ws_sr_constancia_inscripcion/get_persona/fault.xml
203
+ - spec/fixtures/ws_sr_constancia_inscripcion/get_persona/success.xml
204
+ - spec/fixtures/ws_sr_constancia_inscripcion/ws_constancia_inscripcion.wsdl
213
205
  - spec/fixtures/ws_sr_padron_a100.wsdl
214
206
  - spec/fixtures/ws_sr_padron_a100/company_types/success.xml
215
207
  - spec/fixtures/ws_sr_padron_a100/dummy/success.xml
@@ -218,11 +210,41 @@ files:
218
210
  - spec/fixtures/ws_sr_padron_a4.wsdl
219
211
  - spec/fixtures/ws_sr_padron_a4/dummy/success.xml
220
212
  - spec/fixtures/ws_sr_padron_a4/get_persona/success.xml
221
- - spec/fixtures/wsaa.wsdl
222
- - spec/fixtures/wsfe.wsdl
213
+ - spec/fixtures/wsaa/login_cms/fault.xml
214
+ - spec/fixtures/wsaa/login_cms/success.xml
215
+ - spec/fixtures/wsaa/login_cms/token_expirado.xml
216
+ - spec/fixtures/wsaa/wsaa.wsdl
217
+ - spec/fixtures/wsfe/fe_comp_consultar/success.xml
218
+ - spec/fixtures/wsfe/fe_comp_tot_x_request/success.xml
219
+ - spec/fixtures/wsfe/fe_comp_ultimo_autorizado/success.xml
220
+ - spec/fixtures/wsfe/fe_dummy/success.xml
221
+ - spec/fixtures/wsfe/fe_param_get_cotizacion/dolar.xml
222
+ - spec/fixtures/wsfe/fe_param_get_cotizacion/inexistente.xml
223
+ - spec/fixtures/wsfe/fe_param_get_ptos_venta/success.xml
224
+ - spec/fixtures/wsfe/fe_param_get_tipos_cbte/failure_1_error.xml
225
+ - spec/fixtures/wsfe/fe_param_get_tipos_cbte/failure_2_errors.xml
226
+ - spec/fixtures/wsfe/fe_param_get_tipos_cbte/success.xml
227
+ - spec/fixtures/wsfe/fe_param_get_tipos_concepto/success.xml
228
+ - spec/fixtures/wsfe/fe_param_get_tipos_doc/success.xml
229
+ - spec/fixtures/wsfe/fe_param_get_tipos_iva/success.xml
230
+ - spec/fixtures/wsfe/fe_param_get_tipos_monedas/success.xml
231
+ - spec/fixtures/wsfe/fe_param_get_tipos_opcional/success.xml
232
+ - spec/fixtures/wsfe/fe_param_get_tipos_tributos/success.xml
233
+ - spec/fixtures/wsfe/fecae_solicitar/autorizacion_1_cbte.xml
234
+ - spec/fixtures/wsfe/fecae_solicitar/autorizacion_2_cbtes.xml
235
+ - spec/fixtures/wsfe/fecae_solicitar/dos_observaciones.xml
236
+ - spec/fixtures/wsfe/fecae_solicitar/una_observacion.xml
237
+ - spec/fixtures/wsfe/fecaea_consultar/success.xml
238
+ - spec/fixtures/wsfe/fecaea_reg_informativo/informe_rtdo_parcial.xml
239
+ - spec/fixtures/wsfe/fecaea_sin_movimiento_informar/success.xml
240
+ - spec/fixtures/wsfe/fecaea_solicitar/caea_ya_otorgado.xml
241
+ - spec/fixtures/wsfe/fecaea_solicitar/error_distinto.xml
242
+ - spec/fixtures/wsfe/fecaea_solicitar/success.xml
243
+ - spec/fixtures/wsfe/wsfe.wsdl
223
244
  - spec/manual/generar_keys.txt
224
245
  - spec/manual/test.rb
225
246
  - spec/spec_helper.rb
247
+ - spec/support/fake_wsaa.rb
226
248
  - spec/support/matchers.rb
227
249
  - spec/support/savon_extensions.rb
228
250
  homepage: https://github.com/eeng/afipws
@@ -255,43 +277,21 @@ test_files:
255
277
  - spec/afipws/test.crt
256
278
  - spec/afipws/test.key
257
279
  - spec/afipws/type_conversions_spec.rb
280
+ - spec/afipws/w_cons_declaracion_spec.rb
258
281
  - spec/afipws/ws_constancia_inscripcion_spec.rb
259
282
  - spec/afipws/wsaa_spec.rb
260
283
  - spec/afipws/wsfe_spec.rb
261
- - spec/fixtures/constancia_inscripcion_dummy/success.xml
262
- - spec/fixtures/constancia_inscripcion_get_persona/failure.xml
263
- - spec/fixtures/constancia_inscripcion_get_persona/fault.xml
264
- - spec/fixtures/constancia_inscripcion_get_persona/success.xml
265
- - spec/fixtures/fe_comp_consultar/success.xml
266
- - spec/fixtures/fe_comp_tot_x_request/success.xml
267
- - spec/fixtures/fe_comp_ultimo_autorizado/success.xml
268
- - spec/fixtures/fe_dummy/success.xml
269
- - spec/fixtures/fe_param_get_cotizacion/dolar.xml
270
- - spec/fixtures/fe_param_get_cotizacion/inexistente.xml
271
- - spec/fixtures/fe_param_get_ptos_venta/success.xml
272
- - spec/fixtures/fe_param_get_tipos_cbte/failure_1_error.xml
273
- - spec/fixtures/fe_param_get_tipos_cbte/failure_2_errors.xml
274
- - spec/fixtures/fe_param_get_tipos_cbte/success.xml
275
- - spec/fixtures/fe_param_get_tipos_concepto/success.xml
276
- - spec/fixtures/fe_param_get_tipos_doc/success.xml
277
- - spec/fixtures/fe_param_get_tipos_iva/success.xml
278
- - spec/fixtures/fe_param_get_tipos_monedas/success.xml
279
- - spec/fixtures/fe_param_get_tipos_opcional/success.xml
280
- - spec/fixtures/fe_param_get_tipos_tributos/success.xml
281
- - spec/fixtures/fecae_solicitar/autorizacion_1_cbte.xml
282
- - spec/fixtures/fecae_solicitar/autorizacion_2_cbtes.xml
283
- - spec/fixtures/fecae_solicitar/dos_observaciones.xml
284
- - spec/fixtures/fecae_solicitar/una_observacion.xml
285
- - spec/fixtures/fecaea_consultar/success.xml
286
- - spec/fixtures/fecaea_reg_informativo/informe_rtdo_parcial.xml
287
- - spec/fixtures/fecaea_sin_movimiento_informar/success.xml
288
- - spec/fixtures/fecaea_solicitar/caea_ya_otorgado.xml
289
- - spec/fixtures/fecaea_solicitar/error_distinto.xml
290
- - spec/fixtures/fecaea_solicitar/success.xml
291
- - spec/fixtures/login_cms/fault.xml
292
- - spec/fixtures/login_cms/success.xml
293
- - spec/fixtures/login_cms/token_expirado.xml
294
- - spec/fixtures/ws_constancia_inscripcion.wsdl
284
+ - spec/fixtures/wconsdeclaracion/detallada_estado/success.xml
285
+ - spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_fecha_success.xml
286
+ - spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_inexistente.xml
287
+ - spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_success.xml
288
+ - spec/fixtures/wconsdeclaracion/dummy/success.xml
289
+ - spec/fixtures/wconsdeclaracion/wconsdeclaracion.wsdl
290
+ - spec/fixtures/ws_sr_constancia_inscripcion/dummy/success.xml
291
+ - spec/fixtures/ws_sr_constancia_inscripcion/get_persona/failure.xml
292
+ - spec/fixtures/ws_sr_constancia_inscripcion/get_persona/fault.xml
293
+ - spec/fixtures/ws_sr_constancia_inscripcion/get_persona/success.xml
294
+ - spec/fixtures/ws_sr_constancia_inscripcion/ws_constancia_inscripcion.wsdl
295
295
  - spec/fixtures/ws_sr_padron_a100.wsdl
296
296
  - spec/fixtures/ws_sr_padron_a100/company_types/success.xml
297
297
  - spec/fixtures/ws_sr_padron_a100/dummy/success.xml
@@ -300,10 +300,40 @@ test_files:
300
300
  - spec/fixtures/ws_sr_padron_a4.wsdl
301
301
  - spec/fixtures/ws_sr_padron_a4/dummy/success.xml
302
302
  - spec/fixtures/ws_sr_padron_a4/get_persona/success.xml
303
- - spec/fixtures/wsaa.wsdl
304
- - spec/fixtures/wsfe.wsdl
303
+ - spec/fixtures/wsaa/login_cms/fault.xml
304
+ - spec/fixtures/wsaa/login_cms/success.xml
305
+ - spec/fixtures/wsaa/login_cms/token_expirado.xml
306
+ - spec/fixtures/wsaa/wsaa.wsdl
307
+ - spec/fixtures/wsfe/fe_comp_consultar/success.xml
308
+ - spec/fixtures/wsfe/fe_comp_tot_x_request/success.xml
309
+ - spec/fixtures/wsfe/fe_comp_ultimo_autorizado/success.xml
310
+ - spec/fixtures/wsfe/fe_dummy/success.xml
311
+ - spec/fixtures/wsfe/fe_param_get_cotizacion/dolar.xml
312
+ - spec/fixtures/wsfe/fe_param_get_cotizacion/inexistente.xml
313
+ - spec/fixtures/wsfe/fe_param_get_ptos_venta/success.xml
314
+ - spec/fixtures/wsfe/fe_param_get_tipos_cbte/failure_1_error.xml
315
+ - spec/fixtures/wsfe/fe_param_get_tipos_cbte/failure_2_errors.xml
316
+ - spec/fixtures/wsfe/fe_param_get_tipos_cbte/success.xml
317
+ - spec/fixtures/wsfe/fe_param_get_tipos_concepto/success.xml
318
+ - spec/fixtures/wsfe/fe_param_get_tipos_doc/success.xml
319
+ - spec/fixtures/wsfe/fe_param_get_tipos_iva/success.xml
320
+ - spec/fixtures/wsfe/fe_param_get_tipos_monedas/success.xml
321
+ - spec/fixtures/wsfe/fe_param_get_tipos_opcional/success.xml
322
+ - spec/fixtures/wsfe/fe_param_get_tipos_tributos/success.xml
323
+ - spec/fixtures/wsfe/fecae_solicitar/autorizacion_1_cbte.xml
324
+ - spec/fixtures/wsfe/fecae_solicitar/autorizacion_2_cbtes.xml
325
+ - spec/fixtures/wsfe/fecae_solicitar/dos_observaciones.xml
326
+ - spec/fixtures/wsfe/fecae_solicitar/una_observacion.xml
327
+ - spec/fixtures/wsfe/fecaea_consultar/success.xml
328
+ - spec/fixtures/wsfe/fecaea_reg_informativo/informe_rtdo_parcial.xml
329
+ - spec/fixtures/wsfe/fecaea_sin_movimiento_informar/success.xml
330
+ - spec/fixtures/wsfe/fecaea_solicitar/caea_ya_otorgado.xml
331
+ - spec/fixtures/wsfe/fecaea_solicitar/error_distinto.xml
332
+ - spec/fixtures/wsfe/fecaea_solicitar/success.xml
333
+ - spec/fixtures/wsfe/wsfe.wsdl
305
334
  - spec/manual/generar_keys.txt
306
335
  - spec/manual/test.rb
307
336
  - spec/spec_helper.rb
337
+ - spec/support/fake_wsaa.rb
308
338
  - spec/support/matchers.rb
309
339
  - spec/support/savon_extensions.rb
@@ -1,18 +0,0 @@
1
- module Afipws
2
- class WSBase
3
- extend Forwardable
4
-
5
- attr_reader :wsaa, :client, :env
6
- def_delegators :wsaa, :cuit, :auth
7
-
8
- def initialize options = {}
9
- @env = (options[:env] || :test).to_sym
10
- end
11
-
12
- def request action, body = nil
13
- @client.request(action, body).to_hash[:"#{action}_response"]
14
- rescue Savon::SOAPFault => f
15
- raise WSError, f.message
16
- end
17
- end
18
- end