module Afip

Constants

ALIC_IVA
AVAILABLE_TYPES
BILL_TYPE
CBTE_TIPO
CONCEPTOS
DOCUMENTOS
IVA_COND
MONEDAS
OPCIONALES
URLS
VERSION

Public Class Methods

root() click to toggle source
# File lib/Afip.rb, line 18
def self.root
  File.expand_path '../..', __FILE__
end
setup() { |self| ... } click to toggle source
# File lib/Afip.rb, line 35
def self.setup(&block)
    yield self
end

Public Instance Methods

auth_hash(service = "wsfe") click to toggle source
# File lib/Afip.rb, line 41
def auth_hash(service = "wsfe")
  case service
  when "wsfe"
    { 'Token' => Afip::TOKEN, 'Sign'  => Afip::SIGN, 'Cuit'  => Afip.cuit }
  when "ws_sr_padron_a4"
    { 'token' => Afip::TOKEN, 'sign'  => Afip::SIGN, 'cuitRepresentado'  => Afip.cuit }
  when "wsctg"
    { 'token' => Afip::TOKEN, 'sign'  => Afip::SIGN, 'cuitRepresentado'  => Afip.cuit }
  end
end
deleteToken() click to toggle source
# File lib/Afip.rb, line 56
def deleteToken
    AuthData.deleteToken
end
log?() click to toggle source
# File lib/Afip.rb, line 52
def log?
  Afip.verbose || ENV["VERBOSE"]
end