Afip 0.6.1 → 0.6.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/Afip/ctg.rb +5 -0
- data/lib/Afip/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz: '
|
|
3
|
+
metadata.gz: 55ccee38cedc3edd4cf7bbeccebca78a7537ea63
|
|
4
|
+
data.tar.gz: '002692a675d43003ea701334bdf423dad12f3e51'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b394f712b5d1021650e7d650d8af26c4e9a175e7e2ee212b455e248464c3d421a2c7518ce5c73152e9c43482f26208e3ddade4a15efaeaeca21a948a6c618d7
|
|
7
|
+
data.tar.gz: daf7de49ca155cc3056a20d3ab5b89a0fc981f011fac80ac370153388c3e6ddcc6cd50968f691c7083f2514875878ec7328285b2a3f826c279fbf47b383a8945
|
data/Gemfile.lock
CHANGED
data/lib/Afip/ctg.rb
CHANGED
|
@@ -209,6 +209,11 @@ module Afip
|
|
|
209
209
|
response.body[:consultar_provincias_response][:consultar_provincias_response][:array_provincias][:provincia].map{|c| [c[:codigo],c[:descripcion]]}
|
|
210
210
|
end
|
|
211
211
|
|
|
212
|
+
def consultar_cosechas
|
|
213
|
+
response = client.call(:consultar_cosechas, message: body)
|
|
214
|
+
response.body[:consultar_cosechas_response][:array_cosechas][:cosecha].map{|c| [c[:codigo],c[:descripcion]]}
|
|
215
|
+
end
|
|
216
|
+
|
|
212
217
|
def consultar_localidades(city)
|
|
213
218
|
body["request"]["codigoProvincia"] = city
|
|
214
219
|
response = client.call(:consultar_localidades_por_provincia, message: body)
|
data/lib/Afip/version.rb
CHANGED