Afip 0.5.9 → 0.6.0

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: 3cac3b8e5bac753c19b7b57f418cd8a67347fecd
4
- data.tar.gz: 4cc69ec9f5108fb6f3365718106b6bf879c97e18
3
+ metadata.gz: cd7001c3cd7dab808c9abae128267923fa1f9049
4
+ data.tar.gz: ababeda413e2d3c29297fe4fbf572fd967280eff
5
5
  SHA512:
6
- metadata.gz: dc58cdeb8316f8d5b52b2b7df2d64496f5bdf374abe0afa27f91bf622753312299a94fe4159a74168229093ffed677cc9aff47ae0d4e1b979e3dcb3959b4970a
7
- data.tar.gz: c95d4937625d9a1b75fe47abb45f15fbf5ce23bf5d0022b7dc999e8e883d2ce24c9102dc91e1de6b1363920e5dcc531b9c4539aa671193db6bd05952b14435b9
6
+ metadata.gz: e5658c86be52892c77366fa7fbb7141f64680145dad080e5626ad24df91280f81d49d04679175b7eccf621f519c3755cc46ae79bf177aa058bb072159e073ce2
7
+ data.tar.gz: b81a9ea959c919a8a83f5216e8f0146333777a4df8602fc06e386c068c001976a02c5703274b1a1fd3d9758f9e460e64da74c1289bd7d4b0d4442b8765a1e68c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.5.8)
4
+ Afip (0.5.9)
5
5
  httpi
6
6
  savon
7
7
 
data/lib/Afip/ctg.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Afip
2
2
  class CTG
3
3
  attr_reader :client, :base_imp, :total
4
- attr_accessor :ctg_num, :cp_num, :cod_especie, :cuit_canjeador,:rccc, :destino, :destinatario, :localidad_origen, :localidad_destino,
4
+ attr_accessor :ctg_num, :cp_num, :cod_especie, :cuit_canjeador,:rccc, :cuit_destino, :cuit_destinatario, :localidad_origen, :localidad_destino,
5
5
  :cosecha, :peso, :cuit_transportista, :horas, :patente, :km, :cuit_corredor, :remitente_com, :body
6
6
 
7
7
  def initialize(attrs = {})
@@ -25,8 +25,8 @@ module Afip
25
25
  @cod_especie = attrs[:cod_especie]
26
26
  @cuit_canjeador = attrs[:cuit_canjeador]
27
27
  @rccc = attrs[:rccc]
28
- @destino = attrs[:destino]
29
- @destinatario = attrs[:destinatario]
28
+ @cuit_destino = attrs[:cuit_destino]
29
+ @cuit_destinatario = attrs[:cuit_destinatario]
30
30
  @localidad_origen = attrs[:localidad_origen]
31
31
  @localidad_destino = attrs[:localidad_destino]
32
32
  @cosecha = attrs[:cosecha]
@@ -61,16 +61,16 @@ module Afip
61
61
 
62
62
  datos = {
63
63
  "datosSolicitarCTGInicial" =>{
64
- "cartaPorte" => @cp_num.to_i, #long
64
+ "cartaPorte" => @cp_num, #long
65
65
  "codigoEspecie" => @cod_especie, #int
66
66
  #"cuitCanjeador" => @cuit_canjeador.to_i, #long
67
67
  #"remitenteComercialComoCanjeador" => @rccc,
68
- "cuitDestino" => @destino.to_i, #long
69
- "cuitDestinatario" => @destinatario.to_i, #long
68
+ "cuitDestino" => @cuit_destino, #long
69
+ "cuitDestinatario" => @cuit_destinatario, #long
70
70
  "codigoLocalidadOrigen" => @localidad_origen, #int
71
71
  "codigoLocalidadDestino" => @localidad_destino, #int
72
72
  "codigoCosecha" => @cosecha, #string
73
- "pesoNeto" => @peso.to_i, #long
73
+ "pesoNeto" => @peso, #long
74
74
  #"cuitTransportista" => @cuit_transportista.to_i, #long
75
75
  #"cantHoras" => @horas, #int
76
76
  #"patente" => @patente, #string
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.5.9"
2
+ VERSION = "0.6.0"
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.5.9
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez