Class: Xrechnung::PaymentMeans

Inherits:
Object
  • Object
show all
Includes:
MemberContainer
Defined in:
lib/xrechnung/payment_means.rb

Overview

cac:PaymentMeans cbc:PaymentMeansCode30</cbc:PaymentMeansCode> cbc:InstructionNoteTextvermerk der Zahlung</cbc:InstructionNote> cbc:PaymentIDVerwendungszweck</cbc:PaymentID> cac:PayeeFinancialAccount cbc:IDDE12500105170648489890</cbc:ID> cbc:NameHarry Hirsch</cbc:Name> cac:FinancialInstitutionBranch cbc:IDXUFUXHB</cbc:ID> </cac:FinancialInstitutionBranch> </cac:PayeeFinancialAccount> </cac:PaymentMeans>

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MemberContainer

#[], #[]=, included, #initialize

Instance Attribute Details

#payee_financial_accountXrechnung::PayeeFinancialAccount



39
# File 'lib/xrechnung/payment_means.rb', line 39

member :payee_financial_account, type: Xrechnung::PayeeFinancialAccount

#payment_mandateXrechnung::PaymentMandate



45
# File 'lib/xrechnung/payment_means.rb', line 45

member :payment_mandate, type: Xrechnung::PaymentMandate, optional: true

#payment_means_codeString

Returns:

  • (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
  &.to_xml(xml)
  payment_mandate&.to_xml(xml)
  xml.target!
end