facturama-ruby-sdk 0.0.4 → 0.0.5
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/lib/facturama/services/catalog_service.rb +40 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31bf08cf4d885fa828b24dc3cbfcc40a9a576d40ce5b07637e6764eb4dc13513
|
4
|
+
data.tar.gz: 9a94d07036c51f4b707d00d34aee2dfa7dcbb439e98f3b58423c5dd5b9af42b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 614949bcb1be2169a85b8f1f63b3dd1b0ee330ff7403c1cd93f616139b22a1e198511e7e8e40295c16c98d3d1adffc4fb4c57f856273613ffd021457bba6256c
|
7
|
+
data.tar.gz: '0329e8aa9bfd9b9bb56d1761e5621144f0079366c3da23e19fddc613a394cf363a2de37514eb7ee70a080f6ee3211ac5d41a92f070d43bae7a46e3e9e5d53bc8'
|
@@ -38,6 +38,46 @@ module Facturama
|
|
38
38
|
def fiscal_regimens
|
39
39
|
get('fiscalregimens')
|
40
40
|
end
|
41
|
+
|
42
|
+
def postal_codes
|
43
|
+
get('postalcodes')
|
44
|
+
end
|
45
|
+
|
46
|
+
def countries(keyword = '')
|
47
|
+
get("countries?keyword=#{keyword}")
|
48
|
+
end
|
49
|
+
|
50
|
+
def federal_taxes
|
51
|
+
get('federaltaxes')
|
52
|
+
end
|
53
|
+
|
54
|
+
def cfdi_types
|
55
|
+
get('cfditypes')
|
56
|
+
end
|
57
|
+
|
58
|
+
def relation_types
|
59
|
+
get('relationtypes')
|
60
|
+
end
|
61
|
+
|
62
|
+
def cfdi_uses(keyword = '')
|
63
|
+
get("cfdiuses?keyword=#{keyword}")
|
64
|
+
end
|
65
|
+
|
66
|
+
def states(country)
|
67
|
+
get("states?keyword=#{country}")
|
68
|
+
end
|
69
|
+
|
70
|
+
def municipalities state_code
|
71
|
+
get("municipalities?keyword=#{state_code}")
|
72
|
+
end
|
73
|
+
|
74
|
+
def localities state_code
|
75
|
+
get("localities?keyword=#{state_code}")
|
76
|
+
end
|
77
|
+
|
78
|
+
def neighborhoods postal_code
|
79
|
+
get("neighborhoods?keyword=#{postal_code}")
|
80
|
+
end
|
41
81
|
end
|
42
82
|
end
|
43
83
|
end
|