Class: Xrechnung::Price
- Inherits:
-
Object
- Object
- Xrechnung::Price
- Includes:
- MemberContainer
- Defined in:
- lib/xrechnung/price.rb
Instance Attribute Summary collapse
- #allowance_charge ⇒ Xrechnung::AllowanceCharge
- #base_quantity ⇒ Xrechnung::Quantity
- #price_amount ⇒ Xrechnung::Currency
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Price
constructor
A new instance of Price.
-
#to_xml(xml) ⇒ Object
noinspection RubyResolve.
Methods included from MemberContainer
Constructor Details
Instance Attribute Details
#allowance_charge ⇒ Xrechnung::AllowanceCharge
15 |
# File 'lib/xrechnung/price.rb', line 15 member :allowance_charge, type: Xrechnung::AllowanceCharge |
#base_quantity ⇒ Xrechnung::Quantity
11 |
# File 'lib/xrechnung/price.rb', line 11 member :base_quantity, type: Xrechnung::Quantity |
#price_amount ⇒ Xrechnung::Currency
7 |
# File 'lib/xrechnung/price.rb', line 7 member :price_amount, type: Xrechnung::Currency |
Instance Method Details
#to_xml(xml) ⇒ Object
noinspection RubyResolve
23 24 25 26 27 28 29 |
# File 'lib/xrechnung/price.rb', line 23 def to_xml(xml) xml.cac :Price do xml.cbc :PriceAmount, *price_amount.xml_args xml.cbc(:BaseQuantity, *base_quantity.xml_args) unless base_quantity.nil? allowance_charge&.to_xml(xml) end end |