fdis 0.1.4 → 0.1.6

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
  SHA256:
3
- metadata.gz: 2f555a3706777fe8d5425a1d7cca9f79bb4b34d6dc4411868aa50e8a19b9822e
4
- data.tar.gz: 17a4190069accb20e5b228a2c289827320bda98cd2fee2ee37fd4526b51266af
3
+ metadata.gz: 5448f6ba3adf782da20155ebfa218925bf804f0aba90721b4bfaf6d89182ae02
4
+ data.tar.gz: 85993c42a37eaf3e0e99ef0a255db5662ba7259c21d39529ce27b236154efcf5
5
5
  SHA512:
6
- metadata.gz: 5c8b36fe4e65f960ae587c9686990504a842c5988783a92e3726bda007192cb50c393ba4e9e2a6323bd59fef222caebcf4ab600df9d752cb9ddf9500b3002d13
7
- data.tar.gz: 56323b116dc3cd4f6a3feedd028b643e6669a6b9243fede5c8adc485b786757e599b93da1f2b5d46266ead8c9dcd11a5c6a4637c2376823e7ffce504dc6d34e1
6
+ metadata.gz: 6df980d5aaeeec6ca535b9fe6360b94ac2c50487403ba980bd416b6e9e1567f9bc4d9eb56c323defb842007e5a0bd5828275773002657c3f4b03f57fb0392282
7
+ data.tar.gz: 68038c091abdf8068974bb62accc0bae2fced4f0e19a3baf723ef2ba621f3a2292247633e43cf26a1dd06153538059e94ecb8c7811f2c32510ec601acb208853
@@ -99,7 +99,8 @@ module Fdis
99
99
  receptor['Nombre'] = params[:receptor_razon].to_s
100
100
  receptor['Rfc'] = params[:receptor_rfc].to_s
101
101
  receptor['DomicilioFiscalReceptor'] = params[:receptor_cp].to_s
102
- receptor['RegimenFiscalReceptor'] = params[:receptor_regimen].to_s
102
+ receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, 'S01')
103
+
103
104
 
104
105
  # totales
105
106
  total = params[:total].to_f
@@ -485,6 +486,7 @@ module Fdis
485
486
  # receptor_cp: '47180',
486
487
  # receptor_razon: 'Car zone',
487
488
  # receptor_rfc: '',
489
+ # receptor_regimen: '',
488
490
  # uso_cfdi: 'G03',
489
491
  # time: "%Y-%m-%dT%H:%M:%S",
490
492
  # line_items: [
@@ -556,6 +558,7 @@ module Fdis
556
558
  receptor['Nombre'] = params.fetch(:receptor_razon, '')
557
559
  receptor['DomicilioFiscalReceptor'] = params.fetch(:receptor_cp, '47180')
558
560
  receptor['UsoCFDI'] = params.fetch(:uso_cfdi, 'G03')
561
+ receptor['RegimenFiscalReceptor'] = params.fetch(:receptor_regimen, 'S01')
559
562
 
560
563
  # retencion_iva = params.fetch(:retencion_iva, 0)
561
564
 
@@ -774,6 +777,9 @@ module Fdis
774
777
  http.request(request)
775
778
  end
776
779
 
780
+ puts "---- Fdis: request"
781
+ puts "-- body: #{request.body} --"
782
+
777
783
  puts "---- Fdis: Respuesta"
778
784
  puts "-- Codigo: #{json_response.code} --"
779
785
  puts "-- Mensaje: #{json_response.message} --"
data/lib/fdis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla