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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3940933ea4642917aef2e693aa7c170052d19d4b
4
- data.tar.gz: 9766eff2f7d9e62c270d977f24e1b5c3967bf45d
3
+ metadata.gz: a9bfa712d863e4ec941511cea82559556fd22d65
4
+ data.tar.gz: 45772434c043f6bff52c406346f76c8f149885c4
5
5
  SHA512:
6
- metadata.gz: cbda0d40344b3637967d267cb3272a2c7a0e2ec5e074d471e45605da7a8dabdd5aabf7a781a34a99d7e5fdc014c3010ab8d835bac62a41179b4aec8b4dcc8860
7
- data.tar.gz: e203ce591b376f75f54fa62ea5bc83e22a8e7aeec9ddf4916db2a8e51dad0ea7f935f091c4bac838bde9665af0777669c2828960edfa373cb0d19c028a9bf270
6
+ metadata.gz: abbea650abc1eedbc70c24327e2ccbba734cd82c90b83fb6d1ec845880c68c5954d03adb64082f7da1ebeef79cab784e9a4f72cda99a9dbd2404eb2b14af7332
7
+ data.tar.gz: 610a07a9515d7560853ea7dddb0e530d8827da24ebf7196a3a2b72643c6859945430b9a370aedf33251c6bc86c187e6eb17f594ca9c7ef8386f623a4573db51c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.1.1)
4
+ Afip (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/Afip.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require "Afip/version"
2
2
  require "bundler/setup"
3
- require "./Afip/constants"
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
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez