Class: Nodes::Receipt
- Inherits:
-
BuhoCfdi::BaseNode
- Object
- BuhoCfdi::BaseNode
- Nodes::Receipt
- 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
-
#certificate ⇒ Object
Returns the value of attribute certificate.
-
#certificate_number ⇒ Object
Returns the value of attribute certificate_number.
-
#confirmation ⇒ Object
Returns the value of attribute confirmation.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#date ⇒ Object
Returns the value of attribute date.
-
#discount ⇒ Object
Returns the value of attribute discount.
-
#exchange_rate ⇒ Object
Returns the value of attribute exchange_rate.
-
#expedition_place ⇒ Object
Returns the value of attribute expedition_place.
-
#folio_number ⇒ Object
Returns the value of attribute folio_number.
-
#payment_conditions ⇒ Object
Returns the value of attribute payment_conditions.
-
#payment_method ⇒ Object
Returns the value of attribute payment_method.
-
#payment_way ⇒ Object
Returns the value of attribute payment_way.
-
#serie ⇒ Object
Returns the value of attribute serie.
-
#stamp ⇒ Object
Returns the value of attribute stamp.
-
#subtotal ⇒ Object
Returns the value of attribute subtotal.
-
#total ⇒ Object
Returns the value of attribute total.
-
#type_of_receipt ⇒ Object
Returns the value of attribute type_of_receipt.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from BuhoCfdi::BaseNode
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
#certificate ⇒ Object
Returns the value of attribute certificate.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def certificate @certificate end |
#certificate_number ⇒ Object
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 |
#confirmation ⇒ Object
Returns the value of attribute confirmation.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def confirmation @confirmation end |
#currency ⇒ Object
Returns the value of attribute currency.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def currency @currency end |
#date ⇒ Object
Returns the value of attribute date.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def date @date end |
#discount ⇒ Object
Returns the value of attribute discount.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def discount @discount end |
#exchange_rate ⇒ Object
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_place ⇒ Object
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_number ⇒ Object
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_conditions ⇒ Object
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_method ⇒ Object
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_way ⇒ Object
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 |
#serie ⇒ Object
Returns the value of attribute serie.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def serie @serie end |
#stamp ⇒ Object
Returns the value of attribute stamp.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def stamp @stamp end |
#subtotal ⇒ Object
Returns the value of attribute subtotal.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def subtotal @subtotal end |
#total ⇒ Object
Returns the value of attribute total.
7 8 9 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 7 def total @total end |
#type_of_receipt ⇒ Object
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 |
#version ⇒ Object
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_hash ⇒ Object
41 42 43 |
# File 'lib/buho_cfdi/nodes/receipt.rb', line 41 def to_hash super.merge! DEFAULT end |