gobl 0.4.0 → 0.5.0
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/lib/extensions.rb +1 -1
- data/lib/gobl/bill/advances.rb +1 -1
- data/lib/gobl/bill/charge.rb +3 -3
- data/lib/gobl/bill/delivery.rb +1 -1
- data/lib/gobl/bill/discount.rb +3 -3
- data/lib/gobl/bill/exchange_rates.rb +1 -1
- data/lib/gobl/bill/invoice.rb +5 -5
- data/lib/gobl/bill/invoice_type.rb +1 -1
- data/lib/gobl/bill/line.rb +3 -3
- data/lib/gobl/bill/line_charge.rb +1 -1
- data/lib/gobl/bill/line_discount.rb +1 -1
- data/lib/gobl/bill/ordering.rb +1 -1
- data/lib/gobl/bill/outlay.rb +1 -1
- data/lib/gobl/bill/payment.rb +1 -1
- data/lib/gobl/bill/preceding.rb +5 -5
- data/lib/gobl/bill/scheme_keys.rb +2 -2
- data/lib/gobl/bill/tax.rb +5 -5
- data/lib/gobl/bill/totals.rb +1 -1
- data/lib/gobl/cal/date.rb +1 -1
- data/lib/gobl/cal/period.rb +1 -1
- data/lib/gobl/{org → cbc}/code.rb +3 -3
- data/lib/gobl/{org → cbc}/key.rb +3 -3
- data/lib/gobl/{org → cbc}/meta.rb +2 -2
- data/lib/gobl/{org → cbc}/note.rb +3 -3
- data/lib/gobl/{org → cbc}/note_key.rb +3 -3
- data/lib/gobl/{org → cbc}/stamp.rb +5 -5
- data/lib/gobl/currency/code.rb +1 -1
- data/lib/gobl/currency/exchange_rate.rb +1 -1
- data/lib/gobl/document.rb +1 -1
- data/lib/gobl/dsig/digest.rb +1 -1
- data/lib/gobl/dsig/signature.rb +1 -1
- data/lib/gobl/envelope.rb +1 -1
- data/lib/gobl/header.rb +5 -5
- data/lib/gobl/i18n/string.rb +1 -1
- data/lib/gobl/l10n/code.rb +1 -1
- data/lib/gobl/l10n/country_code.rb +1 -1
- data/lib/gobl/map.rb +5 -1
- data/lib/gobl/note/message.rb +3 -3
- data/lib/gobl/org/address.rb +5 -6
- data/lib/gobl/org/coordinates.rb +1 -1
- data/lib/gobl/org/email.rb +3 -3
- data/lib/gobl/org/inbox.rb +5 -5
- data/lib/gobl/org/item.rb +3 -3
- data/lib/gobl/org/item_code.rb +1 -1
- data/lib/gobl/org/name.rb +3 -3
- data/lib/gobl/org/party.rb +5 -5
- data/lib/gobl/org/person.rb +3 -3
- data/lib/gobl/org/registration.rb +1 -1
- data/lib/gobl/org/telephone.rb +1 -1
- data/lib/gobl/org/unit.rb +1 -1
- data/lib/gobl/pay/advance.rb +1 -1
- data/lib/gobl/pay/card.rb +1 -1
- data/lib/gobl/pay/credit_transfer.rb +1 -1
- data/lib/gobl/pay/direct_debit.rb +1 -1
- data/lib/gobl/pay/due_date.rb +1 -1
- data/lib/gobl/pay/instructions.rb +3 -3
- data/lib/gobl/pay/method_key.rb +1 -1
- data/lib/gobl/pay/online.rb +1 -1
- data/lib/gobl/pay/term_key.rb +1 -1
- data/lib/gobl/pay/terms.rb +1 -1
- data/lib/gobl/tax/category.rb +4 -4
- data/lib/gobl/tax/category_total.rb +3 -3
- data/lib/gobl/tax/combo.rb +5 -5
- data/lib/gobl/{org/tax_identity.rb → tax/identity.rb} +11 -11
- data/lib/gobl/tax/rate.rb +4 -4
- data/lib/gobl/tax/rate_total.rb +3 -3
- data/lib/gobl/tax/rate_total_surcharge.rb +1 -1
- data/lib/gobl/tax/rate_value.rb +2 -2
- data/lib/gobl/tax/{region.rb → regime.rb} +14 -14
- data/lib/gobl/tax/scheme.rb +8 -8
- data/lib/gobl/tax/schemes.rb +1 -1
- data/lib/gobl/tax/set.rb +1 -1
- data/lib/gobl/{org → tax}/source_key.rb +3 -3
- data/lib/gobl/tax/total.rb +1 -1
- data/lib/gobl/tax/zone.rb +43 -0
- data/lib/gobl/uuid/uuid.rb +1 -1
- data/lib/gobl/value.rb +19 -0
- data/lib/gobl/version.rb +1 -1
- data/lib/gobl.rb +2 -1
- data/lib/gobl_extensions/tax/regime_helper.rb +35 -0
- metadata +14 -20
- data/data/tax/CO.json +0 -10212
- data/data/tax/ES.json +0 -902
- data/data/tax/FR.json +0 -47
- data/data/tax/GB.json +0 -56
- data/data/tax/NL.json +0 -60
- data/lib/gobl/tax/localities.rb +0 -14
- data/lib/gobl/tax/locality.rb +0 -34
- data/lib/gobl_extensions/tax/region_helper.rb +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a5bd8be31f227612ec43575b6ca52880a1f257efbdac62dd00ac6a9c8926959
|
4
|
+
data.tar.gz: 5c777dc2f00a5bbfbda46f78004ce4df13b7f5bbdfa32dd7d377afa7ca67a886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5efb407ffb854b756dbabb5557cbac4743f9aac982eb284669067bec3cd8b05e424fd7bd2e35179d161861e39732049eee54896e10808a5a1d4d8ea880b6255
|
7
|
+
data.tar.gz: 73d0476ca14e771539ab08df7167163e7f2e9f9d1de19e6ca91b943ae1cee396199ebe5bf6e29db52d1e3baa8be364ea8458d4c2ebdf903d1580d704353eee9a
|
data/lib/extensions.rb
CHANGED
@@ -9,4 +9,4 @@ GOBL::I18n::String.include GOBLExtensions::I18n::ValueKeysHelper
|
|
9
9
|
GOBL::Document.include GOBLExtensions::DocumentHelper
|
10
10
|
GOBL::Document.extend GOBLExtensions::DocumentHelper::ClassMethods
|
11
11
|
GOBL::Envelope.include GOBLExtensions::EnvelopeHelper
|
12
|
-
GOBL::Tax::
|
12
|
+
GOBL::Tax::Regime.extend GOBLExtensions::Tax::RegimeHelper::ClassMethods
|
data/lib/gobl/bill/advances.rb
CHANGED
data/lib/gobl/bill/charge.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -60,8 +60,8 @@ module GOBL
|
|
60
60
|
|
61
61
|
# @!attribute [r] meta
|
62
62
|
# Additional semi-structured information.
|
63
|
-
# @return [GOBL::
|
64
|
-
property :meta, GOBL::
|
63
|
+
# @return [GOBL::CBC::Meta]
|
64
|
+
property :meta, GOBL::CBC::Meta
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
data/lib/gobl/bill/delivery.rb
CHANGED
data/lib/gobl/bill/discount.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -60,8 +60,8 @@ module GOBL
|
|
60
60
|
|
61
61
|
# @!attribute [r] meta
|
62
62
|
# Additional semi-structured information.
|
63
|
-
# @return [GOBL::
|
64
|
-
property :meta, GOBL::
|
63
|
+
# @return [GOBL::CBC::Meta]
|
64
|
+
property :meta, GOBL::CBC::Meta
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
data/lib/gobl/bill/invoice.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -121,13 +121,13 @@ module GOBL
|
|
121
121
|
|
122
122
|
# @!attribute [r] notes
|
123
123
|
# Unstructured information that is relevant to the invoice, such as correction or additional legal details.
|
124
|
-
# @return [Array<GOBL::
|
125
|
-
property :notes, [GOBL::
|
124
|
+
# @return [Array<GOBL::CBC::Note>]
|
125
|
+
property :notes, [GOBL::CBC::Note]
|
126
126
|
|
127
127
|
# @!attribute [r] meta
|
128
128
|
# Additional semi-structured data that doesn't fit into the body of the invoice.
|
129
|
-
# @return [GOBL::
|
130
|
-
property :meta, GOBL::
|
129
|
+
# @return [GOBL::CBC::Meta]
|
130
|
+
property :meta, GOBL::CBC::Meta
|
131
131
|
end
|
132
132
|
end
|
133
133
|
end
|
data/lib/gobl/bill/line.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -62,8 +62,8 @@ module GOBL
|
|
62
62
|
|
63
63
|
# @!attribute [r] notes
|
64
64
|
# Set of specific notes for this line that may be required for clarification.
|
65
|
-
# @return [Array<GOBL::
|
66
|
-
property :notes, [GOBL::
|
65
|
+
# @return [Array<GOBL::CBC::Note>]
|
66
|
+
property :notes, [GOBL::CBC::Note]
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
data/lib/gobl/bill/ordering.rb
CHANGED
data/lib/gobl/bill/outlay.rb
CHANGED
data/lib/gobl/bill/payment.rb
CHANGED
data/lib/gobl/bill/preceding.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -52,8 +52,8 @@ module GOBL
|
|
52
52
|
|
53
53
|
# @!attribute [r] stamps
|
54
54
|
# Seals of approval from other organisations.
|
55
|
-
# @return [Array<GOBL::
|
56
|
-
property :stamps, [GOBL::
|
55
|
+
# @return [Array<GOBL::CBC::Stamp>]
|
56
|
+
property :stamps, [GOBL::CBC::Stamp]
|
57
57
|
|
58
58
|
# @!attribute [r] notes
|
59
59
|
# Additional details regarding preceding invoice
|
@@ -62,8 +62,8 @@ module GOBL
|
|
62
62
|
|
63
63
|
# @!attribute [r] meta
|
64
64
|
# Additional semi-structured data that may be useful in specific regions
|
65
|
-
# @return [GOBL::
|
66
|
-
property :meta, GOBL::
|
65
|
+
# @return [GOBL::CBC::Meta]
|
66
|
+
property :meta, GOBL::CBC::Meta
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
@@ -3,12 +3,12 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
10
|
module Bill
|
11
11
|
# SchemeKeys stores a list of keys that makes it easier to perform matches.
|
12
|
-
SchemeKeys = [GOBL::
|
12
|
+
SchemeKeys = [GOBL::CBC::Key] # rubocop:disable Naming/ConstantName, Style/MutableConstant
|
13
13
|
end
|
14
14
|
end
|
data/lib/gobl/bill/tax.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -15,8 +15,8 @@ module GOBL
|
|
15
15
|
|
16
16
|
# @!attribute [r] prices_include
|
17
17
|
# Category of the tax already included in the line item prices, especially useful for B2C retailers with customers who prefer final prices inclusive of tax.
|
18
|
-
# @return [GOBL::
|
19
|
-
property :prices_include, GOBL::
|
18
|
+
# @return [GOBL::CBC::Code]
|
19
|
+
property :prices_include, GOBL::CBC::Code
|
20
20
|
|
21
21
|
# @!attribute [r] schemes
|
22
22
|
# Special tax schemes that apply to this invoice according to local requirements.
|
@@ -25,8 +25,8 @@ module GOBL
|
|
25
25
|
|
26
26
|
# @!attribute [r] meta
|
27
27
|
# Any additional data that may be required for processing, but should never be relied upon by recipients.
|
28
|
-
# @return [GOBL::
|
29
|
-
property :meta, GOBL::
|
28
|
+
# @return [GOBL::CBC::Meta]
|
29
|
+
property :meta, GOBL::CBC::Meta
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/lib/gobl/bill/totals.rb
CHANGED
data/lib/gobl/cal/date.rb
CHANGED
data/lib/gobl/cal/period.rb
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
|
-
module
|
10
|
+
module CBC
|
11
11
|
# Short upper-case identifier.
|
12
12
|
class Code < GOBL::Value
|
13
13
|
# The Schema ID of the GOBL Code structure
|
14
|
-
SCHEMA_ID = 'https://gobl.org/draft-0/
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/cbc/code'
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
data/lib/gobl/{org → cbc}/key.rb
RENAMED
@@ -3,15 +3,15 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
|
-
module
|
10
|
+
module CBC
|
11
11
|
# Text identifier to be used instead of a code for a more verbose but readable identifier.
|
12
12
|
class Key < GOBL::Value
|
13
13
|
# The Schema ID of the GOBL Key structure
|
14
|
-
SCHEMA_ID = 'https://gobl.org/draft-0/
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/cbc/key'
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -3,11 +3,11 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
|
-
module
|
10
|
+
module CBC
|
11
11
|
# Meta defines a structure for data about the data being defined.
|
12
12
|
class Meta < GOBL::Map
|
13
13
|
end
|
@@ -3,15 +3,15 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
|
-
module
|
10
|
+
module CBC
|
11
11
|
# Note represents a free text of additional information that may be added to a document.
|
12
12
|
class Note < GOBL::Object
|
13
13
|
# The Schema ID of the GOBL Note structure
|
14
|
-
SCHEMA_ID = 'https://gobl.org/draft-0/
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/cbc/note'
|
15
15
|
|
16
16
|
# @!attribute [r] key
|
17
17
|
# Key specifying subject of the text
|
@@ -3,15 +3,15 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
|
-
module
|
10
|
+
module CBC
|
11
11
|
# NoteKey identifies the type of note being edited
|
12
12
|
class NoteKey < GOBL::Enum
|
13
13
|
# The Schema ID of the GOBL NoteKey structure
|
14
|
-
SCHEMA_ID = 'https://gobl.org/draft-0/
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/cbc/note#/$defs/NoteKey'
|
15
15
|
|
16
16
|
# The enumeration of values of the object and their descriptions (Values different to these are not allowed)
|
17
17
|
ENUM = {
|
@@ -3,20 +3,20 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
|
-
module
|
10
|
+
module CBC
|
11
11
|
# Stamp defines an official seal of approval from a third party like a governmental agency or intermediary and should thus be included in any official envelopes.
|
12
12
|
class Stamp < GOBL::Object
|
13
13
|
# The Schema ID of the GOBL Stamp structure
|
14
|
-
SCHEMA_ID = 'https://gobl.org/draft-0/
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/cbc/stamp'
|
15
15
|
|
16
16
|
# @!attribute [r] prv
|
17
17
|
# Identity of the agency used to create the stamp usually defined by each region.
|
18
|
-
# @return [GOBL::
|
19
|
-
property :prv, GOBL::
|
18
|
+
# @return [GOBL::CBC::Key]
|
19
|
+
property :prv, GOBL::CBC::Key
|
20
20
|
validates :prv, presence: true
|
21
21
|
|
22
22
|
# @!attribute [r] val
|
data/lib/gobl/currency/code.rb
CHANGED
data/lib/gobl/document.rb
CHANGED
data/lib/gobl/dsig/digest.rb
CHANGED
data/lib/gobl/dsig/signature.rb
CHANGED
data/lib/gobl/envelope.rb
CHANGED
data/lib/gobl/header.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -26,8 +26,8 @@ module GOBL
|
|
26
26
|
|
27
27
|
# @!attribute [r] stamps
|
28
28
|
# Seals of approval from other organisations.
|
29
|
-
# @return [Array<GOBL::
|
30
|
-
property :stamps, [GOBL::
|
29
|
+
# @return [Array<GOBL::CBC::Stamp>]
|
30
|
+
property :stamps, [GOBL::CBC::Stamp]
|
31
31
|
|
32
32
|
# @!attribute [r] tags
|
33
33
|
# Set of labels that describe but have no influence on the data.
|
@@ -36,8 +36,8 @@ module GOBL
|
|
36
36
|
|
37
37
|
# @!attribute [r] meta
|
38
38
|
# Additional semi-structured information about this envelope.
|
39
|
-
# @return [GOBL::
|
40
|
-
property :meta, GOBL::
|
39
|
+
# @return [GOBL::CBC::Meta]
|
40
|
+
property :meta, GOBL::CBC::Meta
|
41
41
|
|
42
42
|
# @!attribute [r] notes
|
43
43
|
# Any information that may be relevant to other humans about this envelope
|
data/lib/gobl/i18n/string.rb
CHANGED
data/lib/gobl/l10n/code.rb
CHANGED
data/lib/gobl/map.rb
CHANGED
@@ -48,6 +48,10 @@ module GOBL
|
|
48
48
|
# Returns the number of entries in the map
|
49
49
|
# @return [Integer] the number of entries in the map
|
50
50
|
#
|
51
|
+
# @!method values
|
52
|
+
# Returns an array with the values in the map
|
53
|
+
# @return [Array] the values in the map
|
54
|
+
#
|
51
55
|
# @!method each_key
|
52
56
|
# Iterates over each key in the map
|
53
57
|
# @overload each(&block)
|
@@ -57,6 +61,6 @@ module GOBL
|
|
57
61
|
# @overload each
|
58
62
|
# Returns an Enumerator that iterates over the keys in the map
|
59
63
|
# @return [Enumerator] the enumerator of the keys
|
60
|
-
def_delegators :_map, :[], :each, :empty?, :length, :each_key
|
64
|
+
def_delegators :_map, :[], :each, :empty?, :length, :each_key, :values
|
61
65
|
end
|
62
66
|
end
|
data/lib/gobl/note/message.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -26,8 +26,8 @@ module GOBL
|
|
26
26
|
|
27
27
|
# @!attribute [r] meta
|
28
28
|
# Any additional semi-structured data that might be useful.
|
29
|
-
# @return [GOBL::
|
30
|
-
property :meta, GOBL::
|
29
|
+
# @return [GOBL::CBC::Meta]
|
30
|
+
property :meta, GOBL::CBC::Meta
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/lib/gobl/org/address.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -59,16 +59,15 @@ module GOBL
|
|
59
59
|
property :street_extra, String
|
60
60
|
|
61
61
|
# @!attribute [r] locality
|
62
|
-
#
|
62
|
+
# Village, town, district, or city, typically inside a region.
|
63
63
|
# @return [String]
|
64
64
|
property :locality, String
|
65
65
|
validates :locality, presence: true
|
66
66
|
|
67
67
|
# @!attribute [r] region
|
68
|
-
# Province,
|
68
|
+
# Province, county, or state, inside a country.
|
69
69
|
# @return [String]
|
70
70
|
property :region, String
|
71
|
-
validates :region, presence: true
|
72
71
|
|
73
72
|
# @!attribute [r] code
|
74
73
|
# Post or ZIP code.
|
@@ -87,8 +86,8 @@ module GOBL
|
|
87
86
|
|
88
87
|
# @!attribute [r] meta
|
89
88
|
# Any additional semi-structure details about the address.
|
90
|
-
# @return [GOBL::
|
91
|
-
property :meta, GOBL::
|
89
|
+
# @return [GOBL::CBC::Meta]
|
90
|
+
property :meta, GOBL::CBC::Meta
|
92
91
|
end
|
93
92
|
end
|
94
93
|
end
|
data/lib/gobl/org/coordinates.rb
CHANGED
data/lib/gobl/org/email.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.34.1
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -31,8 +31,8 @@ module GOBL
|
|
31
31
|
|
32
32
|
# @!attribute [r] meta
|
33
33
|
# Additional fields.
|
34
|
-
# @return [GOBL::
|
35
|
-
property :meta, GOBL::
|
34
|
+
# @return [GOBL::CBC::Meta]
|
35
|
+
property :meta, GOBL::CBC::Meta
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|