Afip 1.3.1 → 1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0a981229e686fd5da81a3a5150cdc40e33618444e2634316a62ca7ed4a11e99
4
- data.tar.gz: a7ff567e5d65c45e138f2d6cfa1299608464d3fa918fcae199876be04d3d4311
3
+ metadata.gz: 51d7c07034126a05b165ac77141de924ca683e8ed2055482cfd74e92eb49c0e6
4
+ data.tar.gz: 805f2a7c4cfc6ed25c73f716cb8013da3b0c0f2fd528fcbf2fc7d49f2b937982
5
5
  SHA512:
6
- metadata.gz: 045574c0b2417a763152a89b68e9ccdc292061986bef4e802b61c3b5dff6195f9db20c2e497179e69c0f3f49c6dc04589e1519433dbd290fe54814c7de1b7199
7
- data.tar.gz: c1c2094ba36bdfa54b935c1818a3a4dbf5601f33127178416c4de41d7d55bc36127ea69765c9256d2e0499d2b8333fde381d70e1da756895ca957cffd8e219d5
6
+ metadata.gz: 1b1c6b780376724cf5ba81b15c14d1e5fad2abd9a557e3ddc5549df142d5b0a051209291495920261b6ab964f604ec404ad0b465d999b9380941fd99ab665a40
7
+ data.tar.gz: 6af5bb6732aed0a6ac367b9c1a5d006159c77008df7a301f81e308fdbf18296554d7cc112c9c4c1896464eb5b480b84117be645294fbcf8a378244920883638d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (1.3)
4
+ Afip (1.3.1)
5
5
  httpi
6
6
  nokogiri (>= 1.10.4)
7
7
  savon
@@ -44,6 +44,12 @@ module Afip
44
44
  end
45
45
  end
46
46
 
47
+ def self.get_tipos_cbte
48
+ client = set_client
49
+ body = { "Auth" => Afip.auth_hash }
50
+ response = client.call(:fe_param_get_tipos_cbte, message: body)
51
+ end
52
+
47
53
  def self.get_tributos
48
54
  client = set_client
49
55
  body = { "Auth" => Afip.auth_hash }
@@ -8,7 +8,16 @@ module Afip
8
8
  "08"=>"Nota de Credito B",
9
9
  "11"=>"Factura C",
10
10
  "12"=>"Nota de Debito C",
11
- "13"=>"Nota de Credito C"
11
+ "13"=>"Nota de Credito C",
12
+ "201" => "Factura de Crédito electrónica MiPyMEs (FCE) A",
13
+ "202" => "Nota de Débito electrónica MiPyMEs (FCE) A",
14
+ "203" => "Nota de Crédito electrónica MiPyMEs (FCE) A",
15
+ "206" => "Factura de Crédito electrónica MiPyMEs (FCE) B",
16
+ "207" => "Nota de Débito electrónica MiPyMEs (FCE) B",
17
+ "208" => "Nota de Crédito electrónica MiPyMEs (FCE) B",
18
+ "211" => "Factura de Crédito electrónica MiPyMEs (FCE) C",
19
+ "212" => "Nota de Débito electrónica MiPyMEs (FCE) C",
20
+ "213" => "Nota de Crédito electrónica MiPyMEs (FCE) C",
12
21
  }
13
22
 
14
23
  CONCEPTOS = {"Productos"=>"01", "Servicios"=>"02", "Productos y Servicios"=>"03"}
@@ -50,16 +59,16 @@ module Afip
50
59
 
51
60
  AVAILABLE_TYPES = {
52
61
  :responsable_inscripto => {
53
- :responsable_inscripto => ["01", "02", "03"],
54
- :consumidor_final => ["06", "07", "08"],
55
- :exento => ["06", "07", "08"],
56
- :responsable_monotributo => ["06", "07", "08"],
62
+ :responsable_inscripto => ["01", "02", "03", "201", "202", "203"],
63
+ :consumidor_final => ["06", "07", "08", "206", "207", "208"],
64
+ :exento => ["06", "07", "08", "206", "207", "208"],
65
+ :responsable_monotributo => ["06", "07", "08", "206", "207", "208"],
57
66
  },
58
67
  :responsable_monotributo => {
59
- :responsable_inscripto => ["11", "12", "13"],
60
- :consumidor_final => ["11", "12", "13"],
61
- :exento => ["11", "12", "13"],
62
- :responsable_monotributo => ["11", "12", "13"]
68
+ :responsable_inscripto => ["11", "12", "13", "211", "212", "213"],
69
+ :consumidor_final => ["11", "12", "13", "211", "212", "213"],
70
+ :exento => ["11", "12", "13", "211", "212", "213"],
71
+ :responsable_monotributo => ["11", "12", "13", "211", "212", "213"]
63
72
  }
64
73
  }
65
74
 
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: '1.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-30 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon