afipws 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -1
- data/README.md +1 -0
- data/afipws.gemspec +1 -0
- data/lib/afipws.rb +1 -1
- data/lib/afipws/client.rb +0 -1
- data/lib/afipws/persona_service_a100.rb +14 -6
- data/lib/afipws/persona_service_a4.rb +14 -4
- data/lib/afipws/version.rb +1 -1
- data/lib/afipws/w_cons_declaracion.rb +63 -0
- data/lib/afipws/ws_constancia_inscripcion.rb +15 -5
- data/lib/afipws/wsaa.rb +2 -2
- data/lib/afipws/wsfe.rb +8 -6
- data/spec/afipws/core_ext/hash_spec.rb +3 -3
- data/spec/afipws/persona_service_a100_spec.rb +3 -3
- data/spec/afipws/persona_service_a4_spec.rb +1 -1
- data/spec/afipws/w_cons_declaracion_spec.rb +87 -0
- data/spec/afipws/ws_constancia_inscripcion_spec.rb +12 -14
- data/spec/afipws/wsaa_spec.rb +2 -2
- data/spec/afipws/wsfe_spec.rb +49 -47
- data/spec/fixtures/wconsdeclaracion/detallada_estado/success.xml +24 -0
- data/spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_fecha_success.xml +39 -0
- data/spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_inexistente.xml +16 -0
- data/spec/fixtures/wconsdeclaracion/detallada_lista_declaraciones/por_id_success.xml +29 -0
- data/spec/fixtures/wconsdeclaracion/dummy/success.xml +12 -0
- data/spec/fixtures/wconsdeclaracion/wconsdeclaracion.wsdl +2976 -0
- data/spec/fixtures/{constancia_inscripcion_dummy → ws_sr_constancia_inscripcion/dummy}/success.xml +0 -0
- data/spec/fixtures/{constancia_inscripcion_get_persona → ws_sr_constancia_inscripcion/get_persona}/failure.xml +0 -0
- data/spec/fixtures/{constancia_inscripcion_get_persona → ws_sr_constancia_inscripcion/get_persona}/fault.xml +0 -0
- data/spec/fixtures/{constancia_inscripcion_get_persona → ws_sr_constancia_inscripcion/get_persona}/success.xml +0 -0
- data/spec/fixtures/{ws_constancia_inscripcion.wsdl → ws_sr_constancia_inscripcion/ws_constancia_inscripcion.wsdl} +0 -0
- data/spec/fixtures/{login_cms → wsaa/login_cms}/fault.xml +0 -0
- data/spec/fixtures/{login_cms → wsaa/login_cms}/success.xml +0 -0
- data/spec/fixtures/{login_cms → wsaa/login_cms}/token_expirado.xml +0 -0
- data/spec/fixtures/{wsaa.wsdl → wsaa/wsaa.wsdl} +0 -0
- data/spec/fixtures/{fe_comp_consultar → wsfe/fe_comp_consultar}/success.xml +0 -0
- data/spec/fixtures/{fe_comp_tot_x_request → wsfe/fe_comp_tot_x_request}/success.xml +0 -0
- data/spec/fixtures/{fe_comp_ultimo_autorizado → wsfe/fe_comp_ultimo_autorizado}/success.xml +0 -0
- data/spec/fixtures/{fe_dummy → wsfe/fe_dummy}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_cotizacion → wsfe/fe_param_get_cotizacion}/dolar.xml +0 -0
- data/spec/fixtures/{fe_param_get_cotizacion → wsfe/fe_param_get_cotizacion}/inexistente.xml +0 -0
- data/spec/fixtures/{fe_param_get_ptos_venta → wsfe/fe_param_get_ptos_venta}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_cbte → wsfe/fe_param_get_tipos_cbte}/failure_1_error.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_cbte → wsfe/fe_param_get_tipos_cbte}/failure_2_errors.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_cbte → wsfe/fe_param_get_tipos_cbte}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_concepto → wsfe/fe_param_get_tipos_concepto}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_doc → wsfe/fe_param_get_tipos_doc}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_iva → wsfe/fe_param_get_tipos_iva}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_monedas → wsfe/fe_param_get_tipos_monedas}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_opcional → wsfe/fe_param_get_tipos_opcional}/success.xml +0 -0
- data/spec/fixtures/{fe_param_get_tipos_tributos → wsfe/fe_param_get_tipos_tributos}/success.xml +0 -0
- data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/autorizacion_1_cbte.xml +0 -0
- data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/autorizacion_2_cbtes.xml +0 -0
- data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/dos_observaciones.xml +0 -0
- data/spec/fixtures/{fecae_solicitar → wsfe/fecae_solicitar}/una_observacion.xml +0 -0
- data/spec/fixtures/{fecaea_consultar → wsfe/fecaea_consultar}/success.xml +0 -0
- data/spec/fixtures/{fecaea_reg_informativo → wsfe/fecaea_reg_informativo}/informe_rtdo_parcial.xml +0 -0
- data/spec/fixtures/{fecaea_sin_movimiento_informar → wsfe/fecaea_sin_movimiento_informar}/success.xml +0 -0
- data/spec/fixtures/{fecaea_solicitar → wsfe/fecaea_solicitar}/caea_ya_otorgado.xml +0 -0
- data/spec/fixtures/{fecaea_solicitar → wsfe/fecaea_solicitar}/error_distinto.xml +0 -0
- data/spec/fixtures/{fecaea_solicitar → wsfe/fecaea_solicitar}/success.xml +0 -0
- data/spec/fixtures/{wsfe.wsdl → wsfe/wsfe.wsdl} +1371 -1371
- data/spec/spec_helper.rb +3 -2
- data/spec/support/fake_wsaa.rb +11 -0
- metadata +105 -75
- 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__) +
|
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
|
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.
|
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-
|
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/
|
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/
|
180
|
-
- spec/fixtures/
|
181
|
-
- spec/fixtures/
|
182
|
-
- spec/fixtures/
|
183
|
-
- spec/fixtures/
|
184
|
-
- spec/fixtures/
|
185
|
-
- spec/fixtures/
|
186
|
-
- spec/fixtures/
|
187
|
-
- spec/fixtures/
|
188
|
-
- spec/fixtures/
|
189
|
-
- spec/fixtures/
|
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.
|
222
|
-
- spec/fixtures/
|
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/
|
262
|
-
- spec/fixtures/
|
263
|
-
- spec/fixtures/
|
264
|
-
- spec/fixtures/
|
265
|
-
- spec/fixtures/
|
266
|
-
- spec/fixtures/
|
267
|
-
- spec/fixtures/
|
268
|
-
- spec/fixtures/
|
269
|
-
- spec/fixtures/
|
270
|
-
- spec/fixtures/
|
271
|
-
- spec/fixtures/
|
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.
|
304
|
-
- spec/fixtures/
|
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
|
data/lib/afipws/ws_base.rb
DELETED
@@ -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
|