Afip 0.5.3 → 0.5.4

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: '0836338d04497dbc0f1d5f5f427addecb7811814'
4
- data.tar.gz: eae456ad4a09a4ef30c45ddf8e0817ee46606105
3
+ metadata.gz: bde6f783f9c1dfb2360e04b95049128677b623ff
4
+ data.tar.gz: 5db047f806ac920205b01f40679812563d00df25
5
5
  SHA512:
6
- metadata.gz: 5ee058709ae39f5b90b61e52086a8532c246804af3e94da8f5c1ecaa507bed3bb63eb1f54d938c8f933a8f1b4fe86d093732d145ff9883b7145d6943c7b77224
7
- data.tar.gz: 04a412a451b479e750cc56a4d449fba15fd3e0ec4b19bd771888d45116b0d63138d39fd314daf6636e237a56428c3b45e76c32ad0933ab85080cb8a281823f5d
6
+ metadata.gz: 87d1d90131990756a64a18b464a4cec5895aac2dc8756d75086bb93f4cc1dd488941405b30b5ed826b421874249669fc96ef2c14240f51c15283ce8b1cecd142
7
+ data.tar.gz: c5e0013413e6e21565f2f5cb3f7b10e24894563dafdf6e7b1db362ccf69012b21e7d5b6e4dde9372911cbd0f32223432358bfb5f32ed748e3a67368c721e0746
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.5.2)
4
+ Afip (0.5.3)
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,:cod_especie, :cuit_canjeador,:rccc, :destino, :destinatario, :localidad_origen, :localidad_destino,
4
+ attr_accessor :ctg_num, :cp_num, :cod_especie, :cuit_canjeador,:rccc, :destino, :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 = {})
@@ -21,6 +21,7 @@ module Afip
21
21
  )
22
22
 
23
23
  @ctg_num = attrs[:ctg_num]
24
+ @cp_num = attrs[:cp_num]
24
25
  @cod_especie = attrs[:cod_especie]
25
26
  @cuit_canjeador = attrs[:cuit_canjeador]
26
27
  @rccc = attrs[:rccc]
@@ -46,8 +47,8 @@ module Afip
46
47
  @body = {"request" =>{"auth" => Afip.auth_hash("wsctg")}}
47
48
  end
48
49
 
49
- def solicitar_ctg_invicial
50
- body = setup_ctg
50
+ def solicitar_ctg_inicial
51
+ setup_ctg
51
52
 
52
53
  pp response = client.call(:solicitar_ctg_inicial,message: body)
53
54
 
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon