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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c664ac654a9170ff39117f404a5abc20948e826e
4
- data.tar.gz: 99796563e60b6f22f7b1648e83e5abecaa40e660
3
+ metadata.gz: d5f1b1f132acfa43dbebb72257a8d1cde1d2d3b1
4
+ data.tar.gz: 9d84f2bf4c2e18506d4c04c1b7b35ee5b0ebe374
5
5
  SHA512:
6
- metadata.gz: a40b86ddfa013eb1262b999c40f90f6e88f9a410423019e20138aab3b229b457a019c6984ae7b5660c400e64748000080cd3363fabf58c72d5e8fc02ff47c8e4
7
- data.tar.gz: b7ea0537d322b4d5420f04d5c14df3b8aa3273d69c8ea54097959c2a6e26231f3fb0ffb2477075341ddf614b9ade8f7034d549cc97d82fa5555f84853e1dff15
6
+ metadata.gz: f2140a2dd81ec9e477c5e648511aa6ce06292e496562e96b5f655e9b68072e043e2e4be501ed8a3f513bfef5a3af2937624ba0ac3f30cb5bda40caaaeb52da3e
7
+ data.tar.gz: ad81e739574ab45df6647c3da978c77c9ab0c4df3e858903d2f2d5d91406bf3ffb40effcfe40f4bc3e29d168a37206f2d335cf17f65255f120f81fa80da81014
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
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.4 ruby lib
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.4"
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-04"
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 = [
@@ -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
- :peso => { codigo: 'PES', nombre: 'Pesos Argentinos' },
53
- :dolar => { codigo: 'DOL', nombre: 'Dolar Estadounidense' },
54
- :real => { codigo: '012', nombre: 'Real' },
55
- :euro => { codigo: '060', nombre: 'Euro' },
56
- :oro => { codigo: '049', nombre: 'Gramos de Oro Fino' }
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
- :responsable_inscripto => {
69
- :responsable_inscripto => '01',
70
- :consumidor_final => '06',
71
- :exento => '06',
72
- :responsable_monotributo => '06',
73
- :nota_credito_a => '03',
74
- :nota_credito_b => '08',
75
- :nota_debito_a => '02',
76
- :nota_debito_b => '07'
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
- :responsable_monotributo => {
79
- :responsable_inscripto => '11',
80
- :consumidor_final => '11',
81
- :exento => '11',
82
- :responsable_monotributo => '11',
83
- :nota_credito_c => '13',
84
- :nota_debito_c => '12'
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
 
@@ -1,4 +1,4 @@
1
1
  module AfipWsfe
2
2
  # Gem version
3
- VERSION = '0.2.4'
3
+ VERSION = '0.2.5'
4
4
  end
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
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-04 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda