class Facturama::FacturamaApiWeb

Public Class Methods

new(facturama_user, facturama_password, is_development = true) click to toggle source
# File lib/facturama/facturama_api_web.rb, line 13
def initialize(facturama_user, facturama_password, is_development = true)

    @connection_info = Facturama::Models::ConnectionInfo.new(facturama_user, facturama_password, is_development)

    @client_service = Facturama::Services::ClientService.new(@connection_info)
    @product_service = Facturama::Services::ProductService.new(@connection_info)
    @catalog_service = Facturama::Services::CatalogService.new(@connection_info)
    @branch_office_service = Facturama::Services::BranchOfficeService.new(@connection_info)
    @cfdi_service = Facturama::Services::CfdiService.new(@connection_info)

end

Public Instance Methods

branch_office() click to toggle source

Lugares de expedición (Sucursales)

# File lib/facturama/facturama_api_web.rb, line 42
def branch_office
    @branch_office_service
end
catalog() click to toggle source

Catálogo

# File lib/facturama/facturama_api_web.rb, line 37
def catalog
    @catalog_service
end
cfdis() click to toggle source

CFDI (Facturas)

# File lib/facturama/facturama_api_web.rb, line 47
def cfdis
    @cfdi_service
end
clients() click to toggle source

Clientes

# File lib/facturama/facturama_api_web.rb, line 27
def clients
    @client_service
end
products() click to toggle source

Artículos ( Productos o servicios para los conceptos )

# File lib/facturama/facturama_api_web.rb, line 32
def products
  @product_service
end