Class: Nodes::Receipt

Inherits:
BuhoCfdi::BaseNode show all
Defined in:
lib/buho_cfdi/nodes/receipt.rb

Constant Summary collapse

DEFAULT =
{
  'xsi:schemaLocation' => 'http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd',
}

Instance Attribute Summary collapse

Attributes inherited from BuhoCfdi::BaseNode

#node_hash

Instance Method Summary collapse

Methods inherited from BuhoCfdi::BaseNode

attr_accessor, build_child, #build_child, #build_child!, #build_children, #initialize, params

Constructor Details

This class inherits a constructor from BuhoCfdi::BaseNode

Instance Attribute Details

#certificateObject

Returns the value of attribute certificate.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def certificate
  @certificate
end

#certificate_numberObject

Returns the value of attribute certificate_number.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def certificate_number
  @certificate_number
end

#confirmationObject

Returns the value of attribute confirmation.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def confirmation
  @confirmation
end

#currencyObject

Returns the value of attribute currency.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def currency
  @currency
end

#dateObject

Returns the value of attribute date.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def date
  @date
end

#discountObject

Returns the value of attribute discount.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def discount
  @discount
end

#exchange_rateObject

Returns the value of attribute exchange_rate.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def exchange_rate
  @exchange_rate
end

#expedition_placeObject

Returns the value of attribute expedition_place.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def expedition_place
  @expedition_place
end

#folio_numberObject

Returns the value of attribute folio_number.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def folio_number
  @folio_number
end

#payment_conditionsObject

Returns the value of attribute payment_conditions.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def payment_conditions
  @payment_conditions
end

#payment_methodObject

Returns the value of attribute payment_method.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def payment_method
  @payment_method
end

#payment_wayObject

Returns the value of attribute payment_way.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def payment_way
  @payment_way
end

#serieObject

Returns the value of attribute serie.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def serie
  @serie
end

#stampObject

Returns the value of attribute stamp.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def stamp
  @stamp
end

#subtotalObject

Returns the value of attribute subtotal.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def subtotal
  @subtotal
end

#totalObject

Returns the value of attribute total.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def total
  @total
end

#type_of_receiptObject

Returns the value of attribute type_of_receipt.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def type_of_receipt
  @type_of_receipt
end

#versionObject

Returns the value of attribute version.



7
8
9
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7

def version
  @version
end

Instance Method Details

#to_hashObject



41
42
43
# File 'lib/buho_cfdi/nodes/receipt.rb', line 41

def to_hash
  super.merge! DEFAULT
end