15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/samples/sample_api_multi.rb', line 15
def run
puts "====================================================================="
puts " FACTURAMA MULTIEMISOR SDK #{Facturama::VERSION}"
puts "====================================================================="
facturama = create_api_instance
begin
sample_cfdis(facturama)
rescue FacturamaException => ex
puts "----------- EXCEPCIONES -----------"
puts " * " + ex.message
if ex.details
ex.details.each do |item|
puts "#{item[0]}: " + item[1].join(",")
end
end
rescue Exception => ex
puts "----------- EXCEPCIONES -----------"
puts " * " + ex.to_s
end
end
|