xrechnung 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/xrechnung.rb +1 -0
- data/lib/xrechnung/party.rb +5 -0
- data/lib/xrechnung/party_identification.rb +16 -0
- data/lib/xrechnung/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20dbcc1c7469fc9e33412b8689ef2b3193947ee9f63a89559103e7acfa242b3a
|
4
|
+
data.tar.gz: 7a46f6b6ff6d5c8b38c35aca2493c97cbfe8ef5d9273dccfde737a5d2aa15bf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55663ebdd4fbe55110a140ecc1e32e8a317e4eea45c99f4e92101eec777089b347d90b13285629f8c57ca6464c8e07f6e52fb61dbfbf2216354835d794bf54f4
|
7
|
+
data.tar.gz: 52b06a5cf65759a28f245b0df1ffd0f5106ab553a507771eb69493c123ebca19bf91d3dac0dc4cfe0f2f4b76b802e9ceba58429b73d471c8c94f3dcbc91f0b18
|
data/Gemfile.lock
CHANGED
data/lib/xrechnung.rb
CHANGED
@@ -5,6 +5,7 @@ require "xrechnung/quantity"
|
|
5
5
|
require "xrechnung/id"
|
6
6
|
require "xrechnung/member_container"
|
7
7
|
require "xrechnung/contact"
|
8
|
+
require "xrechnung/party_identification"
|
8
9
|
require "xrechnung/party_legal_entity"
|
9
10
|
require "xrechnung/party_tax_scheme"
|
10
11
|
require "xrechnung/postal_address"
|
data/lib/xrechnung/party.rb
CHANGED
@@ -10,6 +10,10 @@ module Xrechnung
|
|
10
10
|
# @return [Xrechnung::PostalAddress]
|
11
11
|
member :postal_address, type: Xrechnung::PostalAddress
|
12
12
|
|
13
|
+
# @!attribute party_identification
|
14
|
+
# @return [Xrechnung::PartyIdentification]
|
15
|
+
member :party_identification, type: Xrechnung::PartyIdentification
|
16
|
+
|
13
17
|
# @!attribute party_tax_scheme
|
14
18
|
# @return [Xrechnung::PartyTaxScheme]
|
15
19
|
member :party_tax_scheme, type: Xrechnung::PartyTaxScheme
|
@@ -52,6 +56,7 @@ module Xrechnung
|
|
52
56
|
end
|
53
57
|
end
|
54
58
|
end
|
59
|
+
party_identification&.to_xml(xml)
|
55
60
|
postal_address&.to_xml(xml)
|
56
61
|
party_tax_scheme&.to_xml(xml)
|
57
62
|
party_legal_entity&.to_xml(xml)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Xrechnung
|
2
|
+
class PartyIdentification
|
3
|
+
include MemberContainer
|
4
|
+
|
5
|
+
# @!attribute id
|
6
|
+
# @return [String]
|
7
|
+
member :id, type: String
|
8
|
+
|
9
|
+
# noinspection RubyResolve
|
10
|
+
def to_xml(xml)
|
11
|
+
xml.cac :PartyIdentification do
|
12
|
+
xml.cbc :ID, id
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/xrechnung/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xrechnung
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Kornberger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/xrechnung/legal_monetary_total.rb
|
83
83
|
- lib/xrechnung/member_container.rb
|
84
84
|
- lib/xrechnung/party.rb
|
85
|
+
- lib/xrechnung/party_identification.rb
|
85
86
|
- lib/xrechnung/party_legal_entity.rb
|
86
87
|
- lib/xrechnung/party_tax_scheme.rb
|
87
88
|
- lib/xrechnung/payee_financial_account.rb
|