afip_wsfe 0.2.4 → 0.2.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/VERSION +1 -1
- data/afip_wsfe.gemspec +3 -3
- data/lib/afip_wsfe/constants.rb +45 -21
- data/lib/afip_wsfe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5f1b1f132acfa43dbebb72257a8d1cde1d2d3b1
|
|
4
|
+
data.tar.gz: 9d84f2bf4c2e18506d4c04c1b7b35ee5b0ebe374
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2140a2dd81ec9e477c5e648511aa6ce06292e496562e96b5f655e9b68072e043e2e4be501ed8a3f513bfef5a3af2937624ba0ac3f30cb5bda40caaaeb52da3e
|
|
7
|
+
data.tar.gz: ad81e739574ab45df6647c3da978c77c9ab0c4df3e858903d2f2d5d91406bf3ffb40effcfe40f4bc3e29d168a37206f2d335cf17f65255f120f81fa80da81014
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.5
|
data/afip_wsfe.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: afip_wsfe 0.2.
|
|
5
|
+
# stub: afip_wsfe 0.2.5 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "afip_wsfe".freeze
|
|
9
|
-
s.version = "0.2.
|
|
9
|
+
s.version = "0.2.5"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
|
13
13
|
s.authors = ["Paco Moreno".freeze]
|
|
14
|
-
s.date = "2018-08-
|
|
14
|
+
s.date = "2018-08-08"
|
|
15
15
|
s.description = "Wrapper para usar web service de factura electr\u{f3}nica de AFIP".freeze
|
|
16
16
|
s.email = "pakerimus@gmail.com".freeze
|
|
17
17
|
s.extra_rdoc_files = [
|
data/lib/afip_wsfe/constants.rb
CHANGED
|
@@ -24,6 +24,30 @@ module AfipWsfe
|
|
|
24
24
|
'64'=>'Liquidacion B'
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
CBTE_LETRA = {
|
|
28
|
+
'01'=>'A',
|
|
29
|
+
'02'=>'A',
|
|
30
|
+
'03'=>'A',
|
|
31
|
+
'04'=>'A',
|
|
32
|
+
'05'=>'A',
|
|
33
|
+
'06'=>'B',
|
|
34
|
+
'07'=>'B',
|
|
35
|
+
'08'=>'B',
|
|
36
|
+
'09'=>'B',
|
|
37
|
+
'10'=>'B',
|
|
38
|
+
'11'=>'C',
|
|
39
|
+
'12'=>'C',
|
|
40
|
+
'13'=>'C',
|
|
41
|
+
'34'=>'A',
|
|
42
|
+
'35'=>'B',
|
|
43
|
+
'39'=>'A',
|
|
44
|
+
'40'=>'B',
|
|
45
|
+
'60'=>'A',
|
|
46
|
+
'61'=>'B',
|
|
47
|
+
'63'=>'A',
|
|
48
|
+
'64'=>'B'
|
|
49
|
+
}
|
|
50
|
+
|
|
27
51
|
# Name to code mapping for Sale types.
|
|
28
52
|
CONCEPTOS = {
|
|
29
53
|
'Productos' => 1,
|
|
@@ -49,11 +73,11 @@ module AfipWsfe
|
|
|
49
73
|
|
|
50
74
|
# Currency code and names hash identified by a symbol
|
|
51
75
|
MONEDAS = {
|
|
52
|
-
:
|
|
53
|
-
:
|
|
54
|
-
:
|
|
55
|
-
:
|
|
56
|
-
:
|
|
76
|
+
peso: { codigo: 'PES', nombre: 'Pesos Argentinos' },
|
|
77
|
+
dolar: { codigo: 'DOL', nombre: 'Dolar Estadounidense' },
|
|
78
|
+
real: { codigo: '012', nombre: 'Real' },
|
|
79
|
+
euro: { codigo: '060', nombre: 'Euro' },
|
|
80
|
+
oro: { codigo: '049', nombre: 'Gramos de Oro Fino' }
|
|
57
81
|
}
|
|
58
82
|
|
|
59
83
|
# Tax percentage and codes according to each iva combination
|
|
@@ -65,23 +89,23 @@ module AfipWsfe
|
|
|
65
89
|
]
|
|
66
90
|
|
|
67
91
|
BILL_TYPE = {
|
|
68
|
-
:
|
|
69
|
-
:
|
|
70
|
-
:
|
|
71
|
-
:
|
|
72
|
-
:
|
|
73
|
-
:
|
|
74
|
-
:
|
|
75
|
-
:
|
|
76
|
-
:
|
|
92
|
+
responsable_inscripto: {
|
|
93
|
+
responsable_inscripto: '01',
|
|
94
|
+
consumidor_final: '06',
|
|
95
|
+
exento: '06',
|
|
96
|
+
responsable_monotributo: '06',
|
|
97
|
+
nota_credito_a: '03',
|
|
98
|
+
nota_credito_b: '08',
|
|
99
|
+
nota_debito_a: '02',
|
|
100
|
+
nota_debito_b: '07'
|
|
77
101
|
},
|
|
78
|
-
:
|
|
79
|
-
:
|
|
80
|
-
:
|
|
81
|
-
:
|
|
82
|
-
:
|
|
83
|
-
:
|
|
84
|
-
:
|
|
102
|
+
responsable_monotributo: {
|
|
103
|
+
responsable_inscripto: '11',
|
|
104
|
+
consumidor_final: '11',
|
|
105
|
+
exento: '11',
|
|
106
|
+
responsable_monotributo: '11',
|
|
107
|
+
nota_credito_c: '13',
|
|
108
|
+
nota_debito_c: '12'
|
|
85
109
|
}
|
|
86
110
|
}
|
|
87
111
|
|
data/lib/afip_wsfe/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: afip_wsfe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paco Moreno
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-08-
|
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: shoulda
|