Class: Facturama::FacturamaApiWeb

Inherits:
Object
  • Object
show all
Defined in:
lib/facturama/facturama_api_web.rb

Instance Method Summary collapse

Constructor Details

#initialize(facturama_user, facturama_password, is_development = true) ⇒ FacturamaApiWeb

Returns a new instance of FacturamaApiWeb.



12
13
14
15
16
17
18
19
20
# File 'lib/facturama/facturama_api_web.rb', line 12

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

Instance Method Details

#branch_officeObject

Lugares de expedición (Sucursales)



38
39
40
# File 'lib/facturama/facturama_api_web.rb', line 38

def branch_office
  @branch_office_service
end

#catalogObject

Catálogo



33
34
35
# File 'lib/facturama/facturama_api_web.rb', line 33

def catalog
  @catalog_service
end

#cfdisObject

CFDI (Facturas)



43
44
45
# File 'lib/facturama/facturama_api_web.rb', line 43

def cfdis
  @cfdi_service
end

#clientsObject

Clientes



23
24
25
# File 'lib/facturama/facturama_api_web.rb', line 23

def clients
  @client_service
end

#productsObject

Artículos ( Productos o servicios para los conceptos )



28
29
30
# File 'lib/facturama/facturama_api_web.rb', line 28

def products
  @product_service
end