Class: EcfDgii::Generated::EcfApi

Inherits:
Object
  • Object
show all
Defined in:
lib/ecf_dgii/generated/api/ecf_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ EcfApi

Returns a new instance of EcfApi.



19
20
21
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#anulacion_rangos(rnc, anulacion_request, opts = {}) ⇒ RespuestaAnulacionRango

Parameters:

  • rnc (String)
  • anulacion_request (AnulacionRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



26
27
28
29
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 26

def anulacion_rangos(rnc, anulacion_request, opts = {})
  data, _status_code, _headers = anulacion_rangos_with_http_info(rnc, anulacion_request, opts)
  data
end

#anulacion_rangos_with_http_info(rnc, anulacion_request, opts = {}) ⇒ Array<(RespuestaAnulacionRango, Integer, Hash)>

Returns RespuestaAnulacionRango data, response status code and response headers.

Parameters:

  • rnc (String)
  • anulacion_request (AnulacionRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RespuestaAnulacionRango, Integer, Hash)>)

    RespuestaAnulacionRango data, response status code and response headers



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 35

def anulacion_rangos_with_http_info(rnc, anulacion_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.anulacion_rangos ...'
  end
  # verify the required parameter 'rnc' is set
  if @api_client.config.client_side_validation && rnc.nil?
    fail ArgumentError, "Missing the required parameter 'rnc' when calling EcfApi.anulacion_rangos"
  end
  # verify the required parameter 'anulacion_request' is set
  if @api_client.config.client_side_validation && anulacion_request.nil?
    fail ArgumentError, "Missing the required parameter 'anulacion_request' when calling EcfApi.anulacion_rangos"
  end
  # resource path
  local_var_path = '/ecf/anularrango/{rnc}'.sub('{rnc}', CGI.escape(rnc.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(anulacion_request)

  # return_type
  return_type = opts[:debug_return_type] || 'RespuestaAnulacionRango'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.anulacion_rangos",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#anulacion_rangos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#firmar_semilla(rnc, xml, opts = {}) ⇒ nil

Parameters:

  • rnc (String)
  • xml (File)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


96
97
98
99
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 96

def firmar_semilla(rnc, xml, opts = {})
  firmar_semilla_with_http_info(rnc, xml, opts)
  nil
end

#firmar_semilla_with_http_info(rnc, xml, opts = {}) ⇒ Array<(nil, Integer, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • rnc (String)
  • xml (File)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 105

def firmar_semilla_with_http_info(rnc, xml, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.firmar_semilla ...'
  end
  # verify the required parameter 'rnc' is set
  if @api_client.config.client_side_validation && rnc.nil?
    fail ArgumentError, "Missing the required parameter 'rnc' when calling EcfApi.firmar_semilla"
  end
  # verify the required parameter 'xml' is set
  if @api_client.config.client_side_validation && xml.nil?
    fail ArgumentError, "Missing the required parameter 'xml' when calling EcfApi.firmar_semilla"
  end
  # resource path
  local_var_path = '/ecf/FirmarSemilla/{rnc}'.sub('{rnc}', CGI.escape(rnc.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['multipart/form-data'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}
  form_params['xml'] = xml

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.firmar_semilla",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#firmar_semilla\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_ecf_by_id(rnc, id, opts = {}) ⇒ Array<EcfResponse>

Parameters:

  • rnc (String)
  • id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :include_ecf_content (Boolean) — default: default to false

Returns:



166
167
168
169
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 166

def get_ecf_by_id(rnc, id, opts = {})
  data, _status_code, _headers = get_ecf_by_id_with_http_info(rnc, id, opts)
  data
end

#get_ecf_by_id_with_http_info(rnc, id, opts = {}) ⇒ Array<(Array<EcfResponse>, Integer, Hash)>

Returns Array<EcfResponse> data, response status code and response headers.

Parameters:

  • rnc (String)
  • id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :include_ecf_content (Boolean) — default: default to false

Returns:

  • (Array<(Array<EcfResponse>, Integer, Hash)>)

    Array<EcfResponse> data, response status code and response headers



176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 176

def get_ecf_by_id_with_http_info(rnc, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.get_ecf_by_id ...'
  end
  # verify the required parameter 'rnc' is set
  if @api_client.config.client_side_validation && rnc.nil?
    fail ArgumentError, "Missing the required parameter 'rnc' when calling EcfApi.get_ecf_by_id"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling EcfApi.get_ecf_by_id"
  end
  # resource path
  local_var_path = '/ecf/{rnc}/message/{id}'.sub('{rnc}', CGI.escape(rnc.to_s)).sub('{id}', CGI.escape(id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'includeEcfContent'] = opts[:'include_ecf_content'] if !opts[:'include_ecf_content'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Array<EcfResponse>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.get_ecf_by_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#get_ecf_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_anulaciones(opts = {}) ⇒ PaginatedApiResultOfAnulacionListResponse

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



237
238
239
240
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 237

def list_anulaciones(opts = {})
  data, _status_code, _headers = list_anulaciones_with_http_info(opts)
  data
end

#list_anulaciones_with_http_info(opts = {}) ⇒ Array<(PaginatedApiResultOfAnulacionListResponse, Integer, Hash)>

Returns PaginatedApiResultOfAnulacionListResponse data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 250

def list_anulaciones_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.list_anulaciones ...'
  end
  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)$/)
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"page\"]' when calling EcfApi.list_anulaciones, must conform to the pattern #{pattern}."
  end

  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)$/)
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"limit\"]' when calling EcfApi.list_anulaciones, must conform to the pattern #{pattern}."
  end

  # resource path
  local_var_path = '/ecf/anulaciones'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'TipoEcf'] = @api_client.build_collection_param(opts[:'tipo_ecf'], :multi) if !opts[:'tipo_ecf'].nil?
  query_params[:'Rncs'] = @api_client.build_collection_param(opts[:'rncs'], :multi) if !opts[:'rncs'].nil?
  query_params[:'FechaDesde'] = opts[:'fecha_desde'] if !opts[:'fecha_desde'].nil?
  query_params[:'FechaHasta'] = opts[:'fecha_hasta'] if !opts[:'fecha_hasta'].nil?
  query_params[:'Page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PaginatedApiResultOfAnulacionListResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.list_anulaciones",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#list_anulaciones\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#query_ecf(rnc, encf, opts = {}) ⇒ Array<EcfResponse>

Parameters:

  • rnc (String)
  • encf (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :include_ecf_content (Boolean) — default: default to false

Returns:



315
316
317
318
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 315

def query_ecf(rnc, encf, opts = {})
  data, _status_code, _headers = query_ecf_with_http_info(rnc, encf, opts)
  data
end

#query_ecf_with_http_info(rnc, encf, opts = {}) ⇒ Array<(Array<EcfResponse>, Integer, Hash)>

Returns Array<EcfResponse> data, response status code and response headers.

Parameters:

  • rnc (String)
  • encf (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :include_ecf_content (Boolean) — default: default to false

Returns:

  • (Array<(Array<EcfResponse>, Integer, Hash)>)

    Array<EcfResponse> data, response status code and response headers



325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 325

def query_ecf_with_http_info(rnc, encf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.query_ecf ...'
  end
  # verify the required parameter 'rnc' is set
  if @api_client.config.client_side_validation && rnc.nil?
    fail ArgumentError, "Missing the required parameter 'rnc' when calling EcfApi.query_ecf"
  end
  # verify the required parameter 'encf' is set
  if @api_client.config.client_side_validation && encf.nil?
    fail ArgumentError, "Missing the required parameter 'encf' when calling EcfApi.query_ecf"
  end
  # resource path
  local_var_path = '/ecf/{rnc}/{encf}'.sub('{rnc}', CGI.escape(rnc.to_s)).sub('{encf}', CGI.escape(encf.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'includeEcfContent'] = opts[:'include_ecf_content'] if !opts[:'include_ecf_content'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Array<EcfResponse>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.query_ecf",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#query_ecf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf31(ecf31_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf31_ecf (Ecf31ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



381
382
383
384
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 381

def recepcion_ecf31(ecf31_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf31_with_http_info(ecf31_ecf, opts)
  data
end

#recepcion_ecf31_with_http_info(ecf31_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf31_ecf (Ecf31ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 389

def recepcion_ecf31_with_http_info(ecf31_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf31 ...'
  end
  # verify the required parameter 'ecf31_ecf' is set
  if @api_client.config.client_side_validation && ecf31_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf31_ecf' when calling EcfApi.recepcion_ecf31"
  end
  # resource path
  local_var_path = '/ecf/31'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf31_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf31",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf31\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf32(ecf32_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf32_ecf (Ecf32ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



445
446
447
448
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 445

def recepcion_ecf32(ecf32_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf32_with_http_info(ecf32_ecf, opts)
  data
end

#recepcion_ecf32_with_http_info(ecf32_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf32_ecf (Ecf32ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 453

def recepcion_ecf32_with_http_info(ecf32_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf32 ...'
  end
  # verify the required parameter 'ecf32_ecf' is set
  if @api_client.config.client_side_validation && ecf32_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf32_ecf' when calling EcfApi.recepcion_ecf32"
  end
  # resource path
  local_var_path = '/ecf/32'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf32_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf32",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf32\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf33(ecf33_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf33_ecf (Ecf33ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



509
510
511
512
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 509

def recepcion_ecf33(ecf33_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf33_with_http_info(ecf33_ecf, opts)
  data
end

#recepcion_ecf33_with_http_info(ecf33_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf33_ecf (Ecf33ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 517

def recepcion_ecf33_with_http_info(ecf33_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf33 ...'
  end
  # verify the required parameter 'ecf33_ecf' is set
  if @api_client.config.client_side_validation && ecf33_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf33_ecf' when calling EcfApi.recepcion_ecf33"
  end
  # resource path
  local_var_path = '/ecf/33'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf33_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf33",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf33\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf34(ecf34_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf34_ecf (Ecf34ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



573
574
575
576
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 573

def recepcion_ecf34(ecf34_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf34_with_http_info(ecf34_ecf, opts)
  data
end

#recepcion_ecf34_with_http_info(ecf34_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf34_ecf (Ecf34ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 581

def recepcion_ecf34_with_http_info(ecf34_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf34 ...'
  end
  # verify the required parameter 'ecf34_ecf' is set
  if @api_client.config.client_side_validation && ecf34_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf34_ecf' when calling EcfApi.recepcion_ecf34"
  end
  # resource path
  local_var_path = '/ecf/34'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf34_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf34",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf34\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf41(ecf41_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf41_ecf (Ecf41ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



637
638
639
640
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 637

def recepcion_ecf41(ecf41_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf41_with_http_info(ecf41_ecf, opts)
  data
end

#recepcion_ecf41_with_http_info(ecf41_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf41_ecf (Ecf41ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 645

def recepcion_ecf41_with_http_info(ecf41_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf41 ...'
  end
  # verify the required parameter 'ecf41_ecf' is set
  if @api_client.config.client_side_validation && ecf41_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf41_ecf' when calling EcfApi.recepcion_ecf41"
  end
  # resource path
  local_var_path = '/ecf/41'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf41_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf41",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf41\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf43(ecf43_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf43_ecf (Ecf43ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



701
702
703
704
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 701

def recepcion_ecf43(ecf43_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf43_with_http_info(ecf43_ecf, opts)
  data
end

#recepcion_ecf43_with_http_info(ecf43_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf43_ecf (Ecf43ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 709

def recepcion_ecf43_with_http_info(ecf43_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf43 ...'
  end
  # verify the required parameter 'ecf43_ecf' is set
  if @api_client.config.client_side_validation && ecf43_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf43_ecf' when calling EcfApi.recepcion_ecf43"
  end
  # resource path
  local_var_path = '/ecf/43'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf43_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf43",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf43\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf44(ecf44_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf44_ecf (Ecf44ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



765
766
767
768
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 765

def recepcion_ecf44(ecf44_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf44_with_http_info(ecf44_ecf, opts)
  data
end

#recepcion_ecf44_with_http_info(ecf44_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf44_ecf (Ecf44ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 773

def recepcion_ecf44_with_http_info(ecf44_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf44 ...'
  end
  # verify the required parameter 'ecf44_ecf' is set
  if @api_client.config.client_side_validation && ecf44_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf44_ecf' when calling EcfApi.recepcion_ecf44"
  end
  # resource path
  local_var_path = '/ecf/44'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf44_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf44",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf44\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf45(ecf45_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf45_ecf (Ecf45ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



829
830
831
832
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 829

def recepcion_ecf45(ecf45_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf45_with_http_info(ecf45_ecf, opts)
  data
end

#recepcion_ecf45_with_http_info(ecf45_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf45_ecf (Ecf45ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 837

def recepcion_ecf45_with_http_info(ecf45_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf45 ...'
  end
  # verify the required parameter 'ecf45_ecf' is set
  if @api_client.config.client_side_validation && ecf45_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf45_ecf' when calling EcfApi.recepcion_ecf45"
  end
  # resource path
  local_var_path = '/ecf/45'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf45_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf45",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf45\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf46(ecf46_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf46_ecf (Ecf46ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



893
894
895
896
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 893

def recepcion_ecf46(ecf46_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf46_with_http_info(ecf46_ecf, opts)
  data
end

#recepcion_ecf46_with_http_info(ecf46_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf46_ecf (Ecf46ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 901

def recepcion_ecf46_with_http_info(ecf46_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf46 ...'
  end
  # verify the required parameter 'ecf46_ecf' is set
  if @api_client.config.client_side_validation && ecf46_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf46_ecf' when calling EcfApi.recepcion_ecf46"
  end
  # resource path
  local_var_path = '/ecf/46'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf46_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf46",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf46\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#recepcion_ecf47(ecf47_ecf, opts = {}) ⇒ EcfResponse

Parameters:

  • ecf47_ecf (Ecf47ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



957
958
959
960
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 957

def recepcion_ecf47(ecf47_ecf, opts = {})
  data, _status_code, _headers = recepcion_ecf47_with_http_info(ecf47_ecf, opts)
  data
end

#recepcion_ecf47_with_http_info(ecf47_ecf, opts = {}) ⇒ Array<(EcfResponse, Integer, Hash)>

Returns EcfResponse data, response status code and response headers.

Parameters:

  • ecf47_ecf (Ecf47ECF)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EcfResponse, Integer, Hash)>)

    EcfResponse data, response status code and response headers



965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 965

def recepcion_ecf47_with_http_info(ecf47_ecf, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.recepcion_ecf47 ...'
  end
  # verify the required parameter 'ecf47_ecf' is set
  if @api_client.config.client_side_validation && ecf47_ecf.nil?
    fail ArgumentError, "Missing the required parameter 'ecf47_ecf' when calling EcfApi.recepcion_ecf47"
  end
  # resource path
  local_var_path = '/ecf/47'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ecf47_ecf)

  # return_type
  return_type = opts[:debug_return_type] || 'EcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.recepcion_ecf47",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#recepcion_ecf47\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#search_all_ecfs(opts = {}) ⇒ PaginatedApiResultOfEcfResponse

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1032
1033
1034
1035
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 1032

def search_all_ecfs(opts = {})
  data, _status_code, _headers = search_all_ecfs_with_http_info(opts)
  data
end

#search_all_ecfs_with_http_info(opts = {}) ⇒ Array<(PaginatedApiResultOfEcfResponse, Integer, Hash)>

Returns PaginatedApiResultOfEcfResponse data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 1051

def search_all_ecfs_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.search_all_ecfs ...'
  end
  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/)
  if @api_client.config.client_side_validation && !opts[:'amount_from'].nil? && opts[:'amount_from'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"amount_from\"]' when calling EcfApi.search_all_ecfs, must conform to the pattern #{pattern}."
  end

  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/)
  if @api_client.config.client_side_validation && !opts[:'amount_to'].nil? && opts[:'amount_to'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"amount_to\"]' when calling EcfApi.search_all_ecfs, must conform to the pattern #{pattern}."
  end

  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)$/)
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"page\"]' when calling EcfApi.search_all_ecfs, must conform to the pattern #{pattern}."
  end

  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)$/)
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"limit\"]' when calling EcfApi.search_all_ecfs, must conform to the pattern #{pattern}."
  end

  # resource path
  local_var_path = '/ecf'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'Encfs'] = @api_client.build_collection_param(opts[:'encfs'], :multi) if !opts[:'encfs'].nil?
  query_params[:'Ids'] = @api_client.build_collection_param(opts[:'ids'], :multi) if !opts[:'ids'].nil?
  query_params[:'TiposEcfs'] = @api_client.build_collection_param(opts[:'tipos_ecfs'], :multi) if !opts[:'tipos_ecfs'].nil?
  query_params[:'IncludeEcfContent'] = opts[:'include_ecf_content'] if !opts[:'include_ecf_content'].nil?
  query_params[:'FromFechaEmision'] = opts[:'from_fecha_emision'] if !opts[:'from_fecha_emision'].nil?
  query_params[:'ToFechaEmision'] = opts[:'to_fecha_emision'] if !opts[:'to_fecha_emision'].nil?
  query_params[:'AmountFrom'] = opts[:'amount_from'] if !opts[:'amount_from'].nil?
  query_params[:'AmountTo'] = opts[:'amount_to'] if !opts[:'amount_to'].nil?
  query_params[:'Progresses'] = @api_client.build_collection_param(opts[:'progresses'], :multi) if !opts[:'progresses'].nil?
  query_params[:'DgiiEstados'] = @api_client.build_collection_param(opts[:'dgii_estados'], :multi) if !opts[:'dgii_estados'].nil?
  query_params[:'Page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PaginatedApiResultOfEcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.search_all_ecfs",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#search_all_ecfs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#search_ecfs(rnc, opts = {}) ⇒ PaginatedApiResultOfEcfResponse

Parameters:

  • rnc (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1142
1143
1144
1145
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 1142

def search_ecfs(rnc, opts = {})
  data, _status_code, _headers = search_ecfs_with_http_info(rnc, opts)
  data
end

#search_ecfs_with_http_info(rnc, opts = {}) ⇒ Array<(PaginatedApiResultOfEcfResponse, Integer, Hash)>

Returns PaginatedApiResultOfEcfResponse data, response status code and response headers.

Parameters:

  • rnc (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
# File 'lib/ecf_dgii/generated/api/ecf_api.rb', line 1162

def search_ecfs_with_http_info(rnc, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: EcfApi.search_ecfs ...'
  end
  # verify the required parameter 'rnc' is set
  if @api_client.config.client_side_validation && rnc.nil?
    fail ArgumentError, "Missing the required parameter 'rnc' when calling EcfApi.search_ecfs"
  end
  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/)
  if @api_client.config.client_side_validation && !opts[:'amount_from'].nil? && opts[:'amount_from'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"amount_from\"]' when calling EcfApi.search_ecfs, must conform to the pattern #{pattern}."
  end

  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/)
  if @api_client.config.client_side_validation && !opts[:'amount_to'].nil? && opts[:'amount_to'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"amount_to\"]' when calling EcfApi.search_ecfs, must conform to the pattern #{pattern}."
  end

  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)$/)
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"page\"]' when calling EcfApi.search_ecfs, must conform to the pattern #{pattern}."
  end

  pattern = Regexp.new(/^-?(?:0|[1-9]\d*)$/)
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] !~ pattern
    fail ArgumentError, "invalid value for 'opts[:\"limit\"]' when calling EcfApi.search_ecfs, must conform to the pattern #{pattern}."
  end

  # resource path
  local_var_path = '/ecf/{rnc}'.sub('{rnc}', CGI.escape(rnc.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'Encfs'] = @api_client.build_collection_param(opts[:'encfs'], :multi) if !opts[:'encfs'].nil?
  query_params[:'Ids'] = @api_client.build_collection_param(opts[:'ids'], :multi) if !opts[:'ids'].nil?
  query_params[:'TiposEcfs'] = @api_client.build_collection_param(opts[:'tipos_ecfs'], :multi) if !opts[:'tipos_ecfs'].nil?
  query_params[:'IncludeEcfContent'] = opts[:'include_ecf_content'] if !opts[:'include_ecf_content'].nil?
  query_params[:'FromFechaEmision'] = opts[:'from_fecha_emision'] if !opts[:'from_fecha_emision'].nil?
  query_params[:'ToFechaEmision'] = opts[:'to_fecha_emision'] if !opts[:'to_fecha_emision'].nil?
  query_params[:'AmountFrom'] = opts[:'amount_from'] if !opts[:'amount_from'].nil?
  query_params[:'AmountTo'] = opts[:'amount_to'] if !opts[:'amount_to'].nil?
  query_params[:'Progresses'] = @api_client.build_collection_param(opts[:'progresses'], :multi) if !opts[:'progresses'].nil?
  query_params[:'DgiiEstados'] = @api_client.build_collection_param(opts[:'dgii_estados'], :multi) if !opts[:'dgii_estados'].nil?
  query_params[:'Page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'Limit'] = opts[:'limit'] if !opts[:'limit'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PaginatedApiResultOfEcfResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['Bearer']

  new_options = opts.merge(
    :operation => :"EcfApi.search_ecfs",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: EcfApi#search_ecfs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end