Class: Xrechnung::PaymentMeans
- Inherits:
-
Object
- Object
- Xrechnung::PaymentMeans
- Includes:
- MemberContainer
- Defined in:
- lib/xrechnung/payment_means.rb
Overview
<cac:PaymentMeans>
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
<cbc:InstructionNote>Textvermerk der Zahlung</cbc:InstructionNote>
<cbc:PaymentID>Verwendungszweck</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>DE12500105170648489890</cbc:ID>
<cbc:Name>Harry Hirsch</cbc:Name>
<cac:FinancialInstitutionBranch>
<cbc:ID>XUFUXHB</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
Instance Attribute Summary collapse
- #payee_financial_account ⇒ Xrechnung::PayeeFinancialAccount
- #payment_mandate ⇒ Xrechnung::PaymentMandate
- #payment_means_code ⇒ String
Instance Method Summary collapse
-
#to_xml(xml) ⇒ Object
noinspection RubyResolve.
Methods included from MemberContainer
#[], #[]=, included, #initialize
Instance Attribute Details
#payee_financial_account ⇒ Xrechnung::PayeeFinancialAccount
39 |
# File 'lib/xrechnung/payment_means.rb', line 39 member :payee_financial_account, type: Xrechnung::PayeeFinancialAccount |
#payment_mandate ⇒ Xrechnung::PaymentMandate
45 |
# File 'lib/xrechnung/payment_means.rb', line 45 member :payment_mandate, type: Xrechnung::PaymentMandate, optional: true |
#payment_means_code ⇒ String
21 |
# File 'lib/xrechnung/payment_means.rb', line 21 member :payment_means_code, type: Integer |
Instance Method Details
#to_xml(xml) ⇒ Object
noinspection RubyResolve
48 49 50 51 52 53 54 55 |
# File 'lib/xrechnung/payment_means.rb', line 48 def to_xml(xml) xml.cbc :PaymentMeansCode, payment_means_code xml.cbc :InstructionNote, instruction_note if instruction_note xml.cbc :PaymentID, payment_id if payment_id payee_financial_account&.to_xml(xml) payment_mandate&.to_xml(xml) xml.target! end |