Afip 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62e5f910e1de8fd328fc454d4c5b18b7033e00e9
4
- data.tar.gz: 9a5c2a1ad6bd7c43fa2c110bfbbcff2794b27ea0
3
+ metadata.gz: de79bdafa2ec3ba9e20a26d435f79486fe368a1e
4
+ data.tar.gz: 704e99f10b69fc632a5faea821f04b6e4f2a6a62
5
5
  SHA512:
6
- metadata.gz: a6069b04d25a9aa7998b13f52ecb002b21cb5483086c35b529b1eee3c72ec27aa84fc501263abfa8a43ad0eb2f49e4eda68ab67c08e545a97e850beba9204545
7
- data.tar.gz: e068f95ee075a26d6e5ef21bae80bb23cc2f7d7fb75bfef9515f372c720ef99b7748a15935f4a352acb02a4df852c10080b33ef3fa7d2ac5b0fe153a7ff5399b
6
+ metadata.gz: '093ab7989ba41987f375defb219edc5b433b7cc52f4f4a18dc26a9853b8e973d5b105ec3029c091f2ed08e7357d4b31405e0b50b2c26efcca7189a86a5d0403a'
7
+ data.tar.gz: cf67422d7d9a3b4abcff4da82f48c76550d9138c15ad7983e26cbbac04285ebd2664b91a65ed8e26a6b2119e09bef73280836ff2e23baae6f003625ad9177ea8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.4.1)
4
+ Afip (0.4.2)
5
5
  httpi
6
6
  savon
7
7
 
data/lib/Afip/ctg.rb CHANGED
@@ -202,6 +202,11 @@ module Afip
202
202
  response.body[:consultar_especies_response][:response][:array_establecimientos][:establecimiento].map{|c| [c]}
203
203
  end
204
204
 
205
+ def consultar_provincias
206
+ response = client.call(:consultar_provincia, message: body)
207
+ response.body[:consultar_provincia_response][:response][:array_provincias][:provincia].map{|c| [c[:codigo],c[:descripcion]]}
208
+ end
209
+
205
210
  def consultar_localidades
206
211
  response = client.call(:consultar_localidades_por_provincia, message: body)
207
212
  response.body[:consultar_localidades_por_provincia_response][:response][:array_localidades][:localidad].map{|c| [c[:codigo],c[:descripcion]]}
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez