fdis2 0.1.38 → 0.1.39

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
  SHA256:
3
- metadata.gz: 1a9e6bbeef90049161e36f9d36d3a0fb3038e4c566cf936c4977a8cdb906d3c5
4
- data.tar.gz: aa75ad47cf0fd88170f84cb9a516b990e8a89b2c2e159fcc1565de68320ca83f
3
+ metadata.gz: 4b53b3a811defcda631d631b2ea5c219f3d4892dfdb68bc8e07e2cdaea58bd6b
4
+ data.tar.gz: 27404d02de44889c96b7802a09b95189250d92aa42f6a3c2767b78294e7a772e
5
5
  SHA512:
6
- metadata.gz: f9bcbcc2816861b996a3e811dcd0da1404014a507be257fb0784f8823e11786b1f46bb873daaf14e79dec0a8178766cf538c12d82a54b71f75b54d6874f93a22
7
- data.tar.gz: 8f0f0849d1de5b737d29e9c0751b58e224fde5133bc12310c95d2c5a04b6bd58dc35ea16b2f2592782c70ba33861c168f65a926ba6e5ce3fa758b6257b6ce24b
6
+ metadata.gz: 75b92fdc7faa5c7db1b8e7753877904ace628246079eaf47a0e19e5b926b1ac1dfcaebb271c939c8978b82304de23b77059f3fbd363f32b3531470b8c87f5f89
7
+ data.tar.gz: 6ca04d6ac843d7be20c01be9f66723861412d3735d6c3d8f2f6d61ae1bac015a29dcff2de89381b413bfd8750fa47d41426a8140e04435066670583782899f0c
data/README.md CHANGED
@@ -37,7 +37,7 @@ Initialize a new object with your config arguments
37
37
  production = (Boolean) # environment, optional, default is -false-
38
38
 
39
39
  # The object
40
- obj = Fdis::Facturacion.new(production_token, development_token, rfc, razon_social, regimen, path_to_key, key_passphrase, path_to_cer, production)
40
+ obj = Fdis2::Facturacion.new(production_token, development_token, rfc, razon_social, regimen, path_to_key, key_passphrase, path_to_cer, production)
41
41
  ```
42
42
 
43
43
  ## Development
@@ -468,8 +468,15 @@ module Fdis2
468
468
  comprobante['Serie'] = params.fetch(:series, 'FA').to_s
469
469
  comprobante['Folio'] = params.fetch(:folio).to_s
470
470
  comprobante['Fecha'] = time.to_s
471
- comprobante['FormaPago'] = params.fetch(:forma_pago, '01')
472
471
  comprobante['MetodoPago'] = params.fetch(:metodo_pago, 'PUE')
472
+
473
+ if comprobante['MetodoPago'] == 'PPD'
474
+ comprobante['FormaPago'] = '99'
475
+ else
476
+ comprobante['FormaPago'] = params.fetch(:forma_pago, '01')
477
+ end
478
+
479
+
473
480
  comprobante['LugarExpedicion'] = params.fetch(:cp, '47180')
474
481
  comprobante['NoCertificado'] = @serial
475
482
  comprobante['Certificado'] = @cadena
data/lib/fdis2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis2
2
- VERSION = "0.1.38"
2
+ VERSION = "0.1.39"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdis2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.38
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla