Afip 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14339a7526709b0500e6a277f2eaf1efff9705cd
4
- data.tar.gz: dc8acd86308ba3d67470ce6cc5d39a4ae271d92c
3
+ metadata.gz: 7434fc3cd137eef16f26fff0b767f4fa0a793e13
4
+ data.tar.gz: 17483af5dd601be801acc5a759257a5b5dfa3250
5
5
  SHA512:
6
- metadata.gz: c221ade9aea0b0e4970f9d6739bb4fa630003c4b852994dce97e92518e83c663cffb5e652389ec32f6a4407c63931d734d86f67eb74453833629864db396099e
7
- data.tar.gz: 8d2ffe0f90184c1377bc5fd94a4bcb07bb32751c98ea98d78bbbd58721eb6b1d89cc8e090969ebe7e28718c4df9b0ed59446da1f3e9dcf3c1b3279e838b455c3
6
+ metadata.gz: 7f771951bbe4293471daa462ebea95ecae069d7edefaa2a1a4cf8c7e01e748773650b344a7923284219884eb40940625b04bac5dc5e5c312292b072748cbbe1f
7
+ data.tar.gz: ae6b53964ca337a05fde30389384cd820d8b0546221e68a473c5ce4f6f76f3a537f7446edede188769f10c3ad9ac250e707d4c14699f4d424caa082e005a4388
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.3.7)
4
+ Afip (0.3.8)
5
5
  httpi
6
6
  savon
7
7
 
data/lib/Afip.rb CHANGED
@@ -54,67 +54,4 @@ module Afip
54
54
  def deleteToken
55
55
  AuthData.deleteToken
56
56
  end
57
-
58
- CBTE_TIPO = {
59
- "01"=>"Factura A",
60
- "02"=>"Nota de Débito A",
61
- "03"=>"Nota de Crédito A",
62
- "06"=>"Factura B",
63
- "07"=>"Nota de Debito B",
64
- "08"=>"Nota de Credito B",
65
- "11"=>"Factura C",
66
- "12"=>"Nota de Debito C",
67
- "13"=>"Nota de Credito C"
68
- }
69
-
70
- CONCEPTOS = {"Productos"=>"01", "Servicios"=>"02", "Productos y Servicios"=>"03"}
71
-
72
- 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"}
73
-
74
- MONEDAS = {
75
- :peso => {:codigo => "PES", :nombre =>"Pesos Argentinos"},
76
- :dolar => {:codigo => "DOL", :nombre =>"Dolar Estadounidense"},
77
- :real => {:codigo => "012", :nombre =>"Real"},
78
- :euro => {:codigo => "060", :nombre =>"Euro"},
79
- :oro => {:codigo => "049", :nombre =>"Gramos de Oro Fino"}
80
- }
81
-
82
- ALIC_IVA = [["03", 0], ["04", 0.105], ["05", 0.21], ["06", 0.27]]
83
-
84
- BILL_TYPE = {
85
- :responsable_inscripto => {
86
- :responsable_inscripto => "01",
87
- :consumidor_final => "06",
88
- :exento => "06",
89
- :responsable_monotributo => "06",
90
- :nota_credito_a => "03",
91
- :nota_credito_b => "08",
92
- :nota_debito_a => "02",
93
- :nota_debito_b => "07"
94
- },
95
- :responsable_monotributo => {
96
- :responsable_inscripto => "11",
97
- :consumidor_final => "11",
98
- :exento => "11",
99
- :responsable_monotributo => "11",
100
- :nota_credito_c => "13",
101
- :nota_debito_c => "12"
102
- }
103
- }
104
-
105
- URLS =
106
- {
107
- :test => {
108
- :wsaa => 'https://wsaahomo.afip.gov.ar/ws/services/LoginCms',
109
- :padron => "https://awshomo.afip.gov.ar/sr-padron/webservices/personaServiceA5?WSDL",
110
- :wsfe => 'https://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL'
111
- },
112
- :production => {
113
- :wsaa => 'https://wsaa.afip.gov.ar/ws/services/LoginCms',
114
- :padron => "https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA5?WSDL",
115
- :wsfe => 'https://servicios1.afip.gov.ar/wsfev1/service.asmx'
116
- }
117
- }
118
-
119
-
120
57
  end
data/lib/Afip/ctg.rb CHANGED
@@ -17,7 +17,7 @@ module Afip
17
17
  pretty_print_xml: true,
18
18
  encoding: 'UTF-8',
19
19
  ssl_version: :TLSv1,
20
- wsdl: Afip.service_url
20
+ wsdl: Afip::AuthData.wsaa_url
21
21
  )
22
22
 
23
23
  @ctg_num = attrs[:ctg_num]
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
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.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez