Class: Xrechnung::PayeeParty
- Inherits:
-
Object
- Object
- Xrechnung::PayeeParty
- Includes:
- MemberContainer
- Defined in:
- lib/xrechnung/payee_party.rb
Overview
<cac:PayeeParty>
<cac:PartyIdentification>
<cbc:ID schemeID="SEPA">FR932874294</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>Payee Name Ltd</cbc:Name>
</cac:PartyName>
</cac:PayeeParty>
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#to_xml(xml) ⇒ Object
noinspection RubyResolve.
Methods included from MemberContainer
#[], #[]=, included, #initialize
Instance Attribute Details
#id ⇒ String
15 |
# File 'lib/xrechnung/payee_party.rb', line 15 member :id, type: String |
#name ⇒ String
19 |
# File 'lib/xrechnung/payee_party.rb', line 19 member :name, type: String, optional: true |
Instance Method Details
#to_xml(xml) ⇒ Object
noinspection RubyResolve
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/xrechnung/payee_party.rb', line 22 def to_xml(xml) xml.cac :PayeeParty do xml.cac :PartyIdentification do xml.cbc :ID, id, schemeID: "SEPA" end if name xml.cac :PartyName do xml.cbc :Name, name end end end end |