gobl 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/tax/CO.json +9892 -100
- data/lib/gobl/bill/advances.rb +1 -1
- data/lib/gobl/bill/charge.rb +1 -1
- data/lib/gobl/bill/delivery.rb +1 -1
- data/lib/gobl/bill/discount.rb +1 -1
- data/lib/gobl/bill/exchange_rates.rb +1 -1
- data/lib/gobl/bill/invoice.rb +4 -4
- data/lib/gobl/bill/invoice_type.rb +1 -1
- data/lib/gobl/bill/line.rb +1 -1
- 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 +14 -9
- data/lib/gobl/bill/scheme_keys.rb +1 -1
- data/lib/gobl/bill/tax.rb +1 -1
- 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/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 +3 -3
- 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/note/message.rb +1 -1
- data/lib/gobl/num/amount.rb +1 -1
- data/lib/gobl/org/address.rb +1 -1
- data/lib/gobl/org/code.rb +1 -1
- data/lib/gobl/org/coordinates.rb +1 -1
- data/lib/gobl/org/email.rb +1 -1
- data/lib/gobl/org/inbox.rb +1 -1
- data/lib/gobl/org/item.rb +1 -1
- data/lib/gobl/org/item_code.rb +1 -1
- data/lib/gobl/org/key.rb +1 -1
- data/lib/gobl/org/meta.rb +1 -1
- data/lib/gobl/org/name.rb +1 -1
- data/lib/gobl/org/note.rb +1 -1
- data/lib/gobl/org/note_key.rb +1 -1
- data/lib/gobl/org/party.rb +1 -1
- data/lib/gobl/org/person.rb +1 -1
- data/lib/gobl/org/registration.rb +1 -1
- data/lib/gobl/org/source_key.rb +1 -1
- data/lib/gobl/org/stamp.rb +29 -0
- data/lib/gobl/org/tax_identity.rb +5 -5
- 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 +1 -1
- 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 +1 -1
- data/lib/gobl/tax/category_total.rb +1 -1
- data/lib/gobl/tax/combo.rb +1 -1
- data/lib/gobl/tax/localities.rb +1 -1
- data/lib/gobl/tax/locality.rb +1 -1
- data/lib/gobl/tax/rate.rb +1 -1
- data/lib/gobl/tax/rate_total.rb +1 -1
- data/lib/gobl/tax/rate_total_surcharge.rb +1 -1
- data/lib/gobl/tax/rate_value.rb +1 -1
- data/lib/gobl/tax/region.rb +3 -3
- data/lib/gobl/tax/scheme.rb +1 -1
- data/lib/gobl/tax/schemes.rb +1 -1
- data/lib/gobl/tax/set.rb +1 -1
- data/lib/gobl/tax/total.rb +1 -1
- data/lib/gobl/uuid/uuid.rb +1 -1
- data/lib/gobl/version.rb +1 -1
- metadata +3 -3
- data/lib/gobl/stamp.rb +0 -27
data/lib/gobl/bill/advances.rb
CHANGED
data/lib/gobl/bill/charge.rb
CHANGED
data/lib/gobl/bill/delivery.rb
CHANGED
data/lib/gobl/bill/discount.rb
CHANGED
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.32.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -51,9 +51,9 @@ module GOBL
|
|
51
51
|
property :tax, Tax
|
52
52
|
|
53
53
|
# @!attribute [r] preceding
|
54
|
-
# Key information regarding
|
55
|
-
# @return [Preceding]
|
56
|
-
property :preceding, Preceding
|
54
|
+
# Key information regarding previous invoices and potentially details as to why they were corrected.
|
55
|
+
# @return [Array<Preceding>]
|
56
|
+
property :preceding, [Preceding]
|
57
57
|
|
58
58
|
# @!attribute [r] issue_date
|
59
59
|
# When the invoice was created.
|
data/lib/gobl/bill/line.rb
CHANGED
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.32.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -18,25 +18,25 @@ module GOBL
|
|
18
18
|
# @return [GOBL::UUID::UUID]
|
19
19
|
property :uuid, GOBL::UUID::UUID
|
20
20
|
|
21
|
+
# @!attribute [r] series
|
22
|
+
# Series identification code
|
23
|
+
# @return [String]
|
24
|
+
property :series, String
|
25
|
+
|
21
26
|
# @!attribute [r] code
|
22
|
-
#
|
27
|
+
# Code of the previous document.
|
23
28
|
# @return [String]
|
24
29
|
property :code, String
|
25
30
|
validates :code, presence: true
|
26
31
|
|
27
|
-
# @!attribute [r] series
|
28
|
-
# Additional identification details
|
29
|
-
# @return [String]
|
30
|
-
property :series, String
|
31
|
-
|
32
32
|
# @!attribute [r] issue_date
|
33
|
-
#
|
33
|
+
# The issue date if the previous document.
|
34
34
|
# @return [GOBL::Cal::Date]
|
35
35
|
property :issue_date, GOBL::Cal::Date
|
36
36
|
validates :issue_date, presence: true
|
37
37
|
|
38
38
|
# @!attribute [r] period
|
39
|
-
# Tax period in which the previous invoice
|
39
|
+
# Tax period in which the previous invoice had an effect.
|
40
40
|
# @return [GOBL::Cal::Period]
|
41
41
|
property :period, GOBL::Cal::Period
|
42
42
|
|
@@ -50,6 +50,11 @@ module GOBL
|
|
50
50
|
# @return [String]
|
51
51
|
property :correction_method, String
|
52
52
|
|
53
|
+
# @!attribute [r] stamps
|
54
|
+
# Seals of approval from other organisations.
|
55
|
+
# @return [Array<GOBL::Org::Stamp>]
|
56
|
+
property :stamps, [GOBL::Org::Stamp]
|
57
|
+
|
53
58
|
# @!attribute [r] notes
|
54
59
|
# Additional details regarding preceding invoice
|
55
60
|
# @return [String]
|
data/lib/gobl/bill/tax.rb
CHANGED
data/lib/gobl/bill/totals.rb
CHANGED
data/lib/gobl/cal/date.rb
CHANGED
data/lib/gobl/cal/period.rb
CHANGED
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.32.0
|
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<Stamp>]
|
30
|
-
property :stamps, [Stamp]
|
29
|
+
# @return [Array<GOBL::Org::Stamp>]
|
30
|
+
property :stamps, [GOBL::Org::Stamp]
|
31
31
|
|
32
32
|
# @!attribute [r] tags
|
33
33
|
# Set of labels that describe but have no influence on the data.
|
data/lib/gobl/i18n/string.rb
CHANGED
data/lib/gobl/l10n/code.rb
CHANGED
data/lib/gobl/note/message.rb
CHANGED
data/lib/gobl/num/amount.rb
CHANGED
data/lib/gobl/org/address.rb
CHANGED
data/lib/gobl/org/code.rb
CHANGED
data/lib/gobl/org/coordinates.rb
CHANGED
data/lib/gobl/org/email.rb
CHANGED
data/lib/gobl/org/inbox.rb
CHANGED
data/lib/gobl/org/item.rb
CHANGED
data/lib/gobl/org/item_code.rb
CHANGED
data/lib/gobl/org/key.rb
CHANGED
data/lib/gobl/org/meta.rb
CHANGED
data/lib/gobl/org/name.rb
CHANGED
data/lib/gobl/org/note.rb
CHANGED
data/lib/gobl/org/note_key.rb
CHANGED
data/lib/gobl/org/party.rb
CHANGED
data/lib/gobl/org/person.rb
CHANGED
data/lib/gobl/org/source_key.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
##
|
4
|
+
## DO NOT EDIT - This file was generated automatically.
|
5
|
+
##
|
6
|
+
## Generated with GOBL v0.32.0
|
7
|
+
##
|
8
|
+
|
9
|
+
module GOBL
|
10
|
+
module Org
|
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
|
+
class Stamp < GOBL::Object
|
13
|
+
# The Schema ID of the GOBL Stamp structure
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/org/stamp'
|
15
|
+
|
16
|
+
# @!attribute [r] prv
|
17
|
+
# Identity of the agency used to create the stamp usually defined by each region.
|
18
|
+
# @return [GOBL::Org::Key]
|
19
|
+
property :prv, GOBL::Org::Key
|
20
|
+
validates :prv, presence: true
|
21
|
+
|
22
|
+
# @!attribute [r] val
|
23
|
+
# The serialized stamp value generated for or by the external agency
|
24
|
+
# @return [String]
|
25
|
+
property :val, String
|
26
|
+
validates :val, presence: true
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -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.32.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -14,7 +14,7 @@ module GOBL
|
|
14
14
|
SCHEMA_ID = 'https://gobl.org/draft-0/org/tax-identity'
|
15
15
|
|
16
16
|
# @!attribute [r] uuid
|
17
|
-
# Unique universal identity code.
|
17
|
+
# Unique universal identity code for this tax identity.
|
18
18
|
# @return [GOBL::UUID::UUID]
|
19
19
|
property :uuid, GOBL::UUID::UUID
|
20
20
|
|
@@ -25,17 +25,17 @@ module GOBL
|
|
25
25
|
validates :country, presence: true
|
26
26
|
|
27
27
|
# @!attribute [r] locality
|
28
|
-
# Where inside a country the
|
28
|
+
# Where inside a country the identity holder is based for tax purposes, like a city, county, province, state, or combination of various.
|
29
29
|
# @return [GOBL::L10n::Code]
|
30
30
|
property :locality, GOBL::L10n::Code
|
31
31
|
|
32
32
|
# @!attribute [r] source
|
33
|
-
# What is the source document of
|
33
|
+
# What is the source document of the tax identity.
|
34
34
|
# @return [SourceKey]
|
35
35
|
property :source, SourceKey
|
36
36
|
|
37
37
|
# @!attribute [r] code
|
38
|
-
#
|
38
|
+
# Normalized code shown on the original identity document.
|
39
39
|
# @return [String]
|
40
40
|
property :code, String
|
41
41
|
|
data/lib/gobl/org/telephone.rb
CHANGED
data/lib/gobl/org/unit.rb
CHANGED
data/lib/gobl/pay/advance.rb
CHANGED
data/lib/gobl/pay/card.rb
CHANGED