Sha256: 64404d9da2dfb965aefbf5bdb2a9fcdc3b8b8ca5719ca937ea0087fd292d9ad6
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# coding: utf-8 require 'timbradocfdi' @user_key = "mvpNUXmQfK8=" @timbrado = Timbradocfdi::Generator.new(@user_key) @rfcEmisor = "AAA010101AAA" def self.registroEmisor contrasena = "12345678a" base64Cer = "./cer.cer" base64Key = "./key.key" puts @timbrado.registroEmisor(@rfcEmisor, base64Cer, base64Key, contrasena) end def self.timbraCFDI comprobante = "./comprobanteSinTimbrar.xml" puts @timbrado.timbraCFDI(comprobante, 1) end def self.obtieneCFDI folioUUID = "E231C693-8871-4CEB-ADD4-DCCBE0BE5FDA" puts @timbrado.obtieneCFDI(@rfcEmisor, folioUUID) end def self.cancelaCFDI folioUUID = "E231C693-8871-4CEB-ADD4-DCCBE0BE5FDA" puts @timbrado.cancelaCFDI(@rfcEmisor, folioUUID) end puts "Ejecutando prueba" puts "Registrando emisor: \n" self.registroEmisor puts "------------------------------------\n\n" puts "Timbrando CFDI" self.timbraCFDI puts "------------------------------------\n\n" puts "Obteniendo CFDI" self.obtieneCFDI puts "------------------------------------\n\n" puts "Cancelando CFDI" self.cancelaCFDI puts "------------------------------------\n\n"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timbradocfdi-0.0.2 | prueba/prueba.rb |