Afip 0.1.2 → 0.1.3
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.rb +62 -1
- 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: a9bfa712d863e4ec941511cea82559556fd22d65
|
4
|
+
data.tar.gz: 45772434c043f6bff52c406346f76c8f149885c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbea650abc1eedbc70c24327e2ccbba734cd82c90b83fb6d1ec845880c68c5954d03adb64082f7da1ebeef79cab784e9a4f72cda99a9dbd2404eb2b14af7332
|
7
|
+
data.tar.gz: 610a07a9515d7560853ea7dddb0e530d8827da24ebf7196a3a2b72643c6859945430b9a370aedf33251c6bc86c187e6eb17f594ca9c7ef8386f623a4573db51c
|
data/Gemfile.lock
CHANGED
data/lib/Afip.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "Afip/version"
|
2
2
|
require "bundler/setup"
|
3
|
-
require "
|
3
|
+
#require "Afip/constants"
|
4
4
|
require "savon"
|
5
5
|
require "Afip/core_ext/float"
|
6
6
|
require "Afip/core_ext/hash"
|
@@ -49,6 +49,67 @@ module Afip
|
|
49
49
|
def deleteToken
|
50
50
|
AuthData.deleteToken
|
51
51
|
end
|
52
|
+
|
53
|
+
CBTE_TIPO = {
|
54
|
+
"01"=>"Factura A",
|
55
|
+
"02"=>"Nota de Débito A",
|
56
|
+
"03"=>"Nota de Crédito A",
|
57
|
+
"06"=>"Factura B",
|
58
|
+
"07"=>"Nota de Debito B",
|
59
|
+
"08"=>"Nota de Credito B",
|
60
|
+
"11"=>"Factura C",
|
61
|
+
"12"=>"Nota de Debito C",
|
62
|
+
"13"=>"Nota de Credito C"
|
63
|
+
}
|
64
|
+
|
65
|
+
CONCEPTOS = {"Productos"=>"01", "Servicios"=>"02", "Productos y Servicios"=>"03"}
|
66
|
+
|
67
|
+
DOCUMENTOS = {"CUIT"=>"80", "CUIL"=>"86", "CDI"=>"87", "LE"=>"89", "LC"=>"90", "CI Extranjera"=>"91", "en tramite"=>"92", "Acta Nacimiento"=>"93", "CI Bs. As. RNP"=>"95", "DNI"=>"96", "Pasaporte"=>"94", "Doc. (Otro)"=>"99"}
|
68
|
+
|
69
|
+
MONEDAS = {
|
70
|
+
:peso => {:codigo => "PES", :nombre =>"Pesos Argentinos"},
|
71
|
+
:dolar => {:codigo => "DOL", :nombre =>"Dolar Estadounidense"},
|
72
|
+
:real => {:codigo => "012", :nombre =>"Real"},
|
73
|
+
:euro => {:codigo => "060", :nombre =>"Euro"},
|
74
|
+
:oro => {:codigo => "049", :nombre =>"Gramos de Oro Fino"}
|
75
|
+
}
|
76
|
+
|
77
|
+
ALIC_IVA = [["03", 0], ["04", 0.105], ["05", 0.21], ["06", 0.27]]
|
78
|
+
|
79
|
+
BILL_TYPE = {
|
80
|
+
:responsable_inscripto => {
|
81
|
+
:responsable_inscripto => "01",
|
82
|
+
:consumidor_final => "06",
|
83
|
+
:exento => "06",
|
84
|
+
:responsable_monotributo => "06",
|
85
|
+
:nota_credito_a => "03",
|
86
|
+
:nota_credito_b => "08",
|
87
|
+
:nota_debito_a => "02",
|
88
|
+
:nota_debito_b => "07"
|
89
|
+
},
|
90
|
+
:responsable_monotributo => {
|
91
|
+
:responsable_inscripto => "11",
|
92
|
+
:consumidor_final => "11",
|
93
|
+
:exento => "11",
|
94
|
+
:responsable_monotributo => "11",
|
95
|
+
:nota_credito_c => "13",
|
96
|
+
:nota_debito_c => "12"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
URLS =
|
101
|
+
{
|
102
|
+
:test => {
|
103
|
+
:wsaa => 'https://wsaahomo.afip.gov.ar/ws/services/LoginCms',
|
104
|
+
:padron => "https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA5?WSDL",
|
105
|
+
:wsfe => 'https://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL'
|
106
|
+
},
|
107
|
+
:production => {
|
108
|
+
:wsaa => 'https://wsaa.afip.gov.ar/ws/services/LoginCms',
|
109
|
+
:padron => "https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA5?WSDL",
|
110
|
+
:wsfe => 'https://servicios1.afip.gov.ar/wsfev1/service.asmx'
|
111
|
+
}
|
112
|
+
}
|
52
113
|
|
53
114
|
|
54
115
|
end
|
data/lib/Afip/version.rb
CHANGED