gobl 0.15.2 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -6
  3. data/data/regimes/co.json +18 -17
  4. data/data/regimes/es.json +95 -96
  5. data/data/regimes/fr.json +1 -0
  6. data/data/regimes/gb.json +1 -0
  7. data/data/regimes/it.json +816 -1944
  8. data/data/regimes/mx.json +576 -0
  9. data/data/regimes/nl.json +1 -0
  10. data/data/regimes/pt.json +206 -317
  11. data/data/regimes/us.json +1 -0
  12. data/lib/generated/gobl/bill/charge.rb +1 -1
  13. data/lib/generated/gobl/bill/correction_options.rb +52 -0
  14. data/lib/generated/gobl/bill/delivery.rb +1 -1
  15. data/lib/generated/gobl/bill/discount.rb +1 -1
  16. data/lib/generated/gobl/bill/document_reference.rb +1 -1
  17. data/lib/generated/gobl/bill/invoice.rb +36 -34
  18. data/lib/generated/gobl/bill/line.rb +1 -1
  19. data/lib/generated/gobl/bill/line_charge.rb +1 -1
  20. data/lib/generated/gobl/bill/line_discount.rb +1 -1
  21. data/lib/generated/gobl/bill/ordering.rb +1 -1
  22. data/lib/generated/gobl/bill/outlay.rb +1 -1
  23. data/lib/generated/gobl/bill/payment.rb +1 -1
  24. data/lib/generated/gobl/bill/preceding.rb +3 -3
  25. data/lib/generated/gobl/bill/tax.rb +1 -1
  26. data/lib/generated/gobl/bill/totals.rb +1 -1
  27. data/lib/generated/gobl/cal/date.rb +1 -1
  28. data/lib/generated/gobl/cal/date_time.rb +18 -0
  29. data/lib/generated/gobl/cal/period.rb +1 -1
  30. data/lib/generated/gobl/cbc/code.rb +1 -1
  31. data/lib/generated/gobl/cbc/{code_set.rb → code_map.rb} +3 -3
  32. data/lib/generated/gobl/cbc/key.rb +1 -1
  33. data/lib/generated/gobl/cbc/meta.rb +1 -1
  34. data/lib/generated/gobl/cbc/note.rb +1 -1
  35. data/lib/generated/gobl/currency/code.rb +1 -1
  36. data/lib/generated/gobl/currency/exchange_rate.rb +1 -1
  37. data/lib/generated/gobl/dsig/digest.rb +1 -1
  38. data/lib/generated/gobl/dsig/signature.rb +1 -1
  39. data/lib/generated/gobl/envelope.rb +5 -5
  40. data/lib/generated/gobl/head/header.rb +54 -0
  41. data/lib/generated/gobl/{cbc → head}/stamp.rb +3 -3
  42. data/lib/generated/gobl/i18n/string.rb +1 -1
  43. data/lib/generated/gobl/l10n/code.rb +1 -1
  44. data/lib/generated/gobl/l10n/country_code.rb +1 -1
  45. data/lib/generated/gobl/note/message.rb +1 -1
  46. data/lib/generated/gobl/org/address.rb +1 -1
  47. data/lib/generated/gobl/org/coordinates.rb +2 -2
  48. data/lib/generated/gobl/org/email.rb +1 -1
  49. data/lib/generated/gobl/org/identity.rb +7 -2
  50. data/lib/generated/gobl/org/image.rb +1 -1
  51. data/lib/generated/gobl/org/inbox.rb +1 -1
  52. data/lib/generated/gobl/org/item.rb +8 -3
  53. data/lib/generated/gobl/org/name.rb +1 -1
  54. data/lib/generated/gobl/org/party.rb +18 -13
  55. data/lib/generated/gobl/org/person.rb +1 -1
  56. data/lib/generated/gobl/org/registration.rb +1 -1
  57. data/lib/generated/gobl/org/telephone.rb +1 -1
  58. data/lib/generated/gobl/org/unit.rb +4 -1
  59. data/lib/generated/gobl/org/website.rb +2 -2
  60. data/lib/generated/gobl/pay/advance.rb +1 -1
  61. data/lib/generated/gobl/pay/card.rb +1 -1
  62. data/lib/generated/gobl/pay/credit_transfer.rb +1 -1
  63. data/lib/generated/gobl/pay/direct_debit.rb +1 -1
  64. data/lib/generated/gobl/pay/due_date.rb +1 -1
  65. data/lib/generated/gobl/pay/instructions.rb +1 -1
  66. data/lib/generated/gobl/pay/online.rb +1 -1
  67. data/lib/generated/gobl/pay/terms.rb +2 -3
  68. data/lib/generated/gobl/schema/object.rb +15 -0
  69. data/lib/generated/gobl/tax/category.rb +15 -5
  70. data/lib/generated/gobl/tax/category_total.rb +1 -1
  71. data/lib/generated/gobl/tax/code_definition.rb +33 -0
  72. data/lib/generated/gobl/tax/combo.rb +6 -1
  73. data/lib/generated/gobl/tax/identity.rb +1 -1
  74. data/lib/generated/gobl/tax/key_definition.rb +8 -8
  75. data/lib/generated/gobl/tax/preceding_definitions.rb +1 -1
  76. data/lib/generated/gobl/tax/rate.rb +10 -5
  77. data/lib/generated/gobl/tax/rate_total.rb +6 -1
  78. data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
  79. data/lib/generated/gobl/tax/rate_value.rb +1 -1
  80. data/lib/generated/gobl/tax/regime.rb +12 -1
  81. data/lib/generated/gobl/tax/scenario.rb +3 -3
  82. data/lib/generated/gobl/tax/scenario_set.rb +1 -1
  83. data/lib/generated/gobl/tax/set.rb +1 -1
  84. data/lib/generated/gobl/tax/source.rb +28 -0
  85. data/lib/generated/gobl/tax/total.rb +1 -1
  86. data/lib/generated/gobl/tax/zone.rb +3 -3
  87. data/lib/generated/gobl/uuid/uuid.rb +1 -1
  88. data/lib/gobl/extensions/envelope_helper.rb +1 -1
  89. data/lib/gobl/extensions/schema/object_helper.rb +49 -0
  90. data/lib/gobl/operations.rb +14 -15
  91. data/lib/gobl/struct.rb +1 -1
  92. data/lib/gobl/version.rb +1 -1
  93. data/lib/gobl.rb +2 -2
  94. metadata +11 -7
  95. data/lib/generated/gobl/document.rb +0 -16
  96. data/lib/generated/gobl/header.rb +0 -52
  97. data/lib/gobl/extensions/document_helper.rb +0 -47
data/data/regimes/us.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "name": {
4
4
  "en": "United States of America"
5
5
  },
6
+ "time_zone": "America/Chicago",
6
7
  "country": "US",
7
8
  "currency": "USD",
8
9
  "categories": [
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ ##
4
+ ## DO NOT EDIT - This file was generated automatically.
5
+ ##
6
+ ## Generated with GOBL v0.55.0
7
+ ##
8
+
9
+ module GOBL
10
+ module Bill
11
+ # CorrectionOptions defines a structure used to pass configuration options to correct a previous invoice.
12
+ class CorrectionOptions < GOBL::Object
13
+ # The Schema ID of the GOBL CorrectionOptions structure
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/bill/correction-options'
15
+
16
+ # @!attribute [r] issue_date
17
+ # When the new corrective invoice's issue date should be set to.
18
+ # @return [GOBL::Cal::Date]
19
+ property :issue_date, GOBL::Cal::Date
20
+
21
+ # @!attribute [r] stamps
22
+ # Stamps of the previous document to include in the preceding data.
23
+ # @return [Array<GOBL::Head::Stamp>]
24
+ property :stamps, [GOBL::Head::Stamp]
25
+
26
+ # @!attribute [r] credit
27
+ # Credit when true indicates that the corrective document should cancel the previous document.
28
+ # @return [Boolean]
29
+ property :credit, Boolean
30
+
31
+ # @!attribute [r] debit
32
+ # Debit when true indicates that the corrective document should add new items to the previous document.
33
+ # @return [Boolean]
34
+ property :debit, Boolean
35
+
36
+ # @!attribute [r] reason
37
+ # Human readable reason for the corrective operation.
38
+ # @return [String]
39
+ property :reason, String
40
+
41
+ # @!attribute [r] correction_method
42
+ # Correction method as defined by the tax regime.
43
+ # @return [GOBL::CBC::Key]
44
+ property :correction_method, GOBL::CBC::Key
45
+
46
+ # @!attribute [r] corrections
47
+ # Correction keys that describe the specific changes according to the tax regime.
48
+ # @return [Array<GOBL::CBC::Key>]
49
+ property :corrections, [GOBL::CBC::Key]
50
+ end
51
+ end
52
+ end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -18,17 +18,6 @@ module GOBL
18
18
  # @return [GOBL::UUID::UUID]
19
19
  property :uuid, GOBL::UUID::UUID
20
20
 
21
- # @!attribute [r] series
22
- # Used as a prefix to group codes.
23
- # @return [String]
24
- property :series, String
25
-
26
- # @!attribute [r] code
27
- # Sequential code used to identify this invoice in tax declarations.
28
- # @return [String]
29
- property :code, String
30
- validates_presence_of :code
31
-
32
21
  # Enumeration of possible values for {#type} with their corresponding descriptions
33
22
  TYPE_ENUM = {
34
23
  'standard' => 'A regular commercial invoice document between a supplier and customer.',
@@ -42,35 +31,23 @@ module GOBL
42
31
  # Type of invoice document subject to the requirements of the local tax regime.
43
32
  # @return [GOBL::CBC::Key]
44
33
  property :type, GOBL::CBC::Key
45
- validates_presence_of :type
46
- validates_inclusion_of :type, in: TYPE_ENUM.keys
47
-
48
- # @!attribute [r] currency
49
- # Currency for all invoice totals.
50
- # @return [GOBL::Currency::Code]
51
- property :currency, GOBL::Currency::Code
52
- validates_presence_of :currency
53
-
54
- # @!attribute [r] exchange_rates
55
- # Exchange rates to be used when converting the invoices monetary values into other currencies.
56
- # @return [Array<GOBL::Currency::ExchangeRate>]
57
- property :exchange_rates, [GOBL::Currency::ExchangeRate]
34
+ validates_inclusion_of :type, in: TYPE_ENUM.keys, allow_blank: true
58
35
 
59
- # @!attribute [r] tax
60
- # Special tax configuration for billing.
61
- # @return [Tax]
62
- property :tax, Tax
36
+ # @!attribute [r] series
37
+ # Used as a prefix to group codes.
38
+ # @return [String]
39
+ property :series, String
63
40
 
64
- # @!attribute [r] preceding
65
- # Key information regarding previous invoices and potentially details as to why they were corrected.
66
- # @return [Array<Preceding>]
67
- property :preceding, [Preceding]
41
+ # @!attribute [r] code
42
+ # Sequential code used to identify this invoice in tax declarations.
43
+ # @return [String]
44
+ property :code, String
45
+ validates_presence_of :code
68
46
 
69
47
  # @!attribute [r] issue_date
70
48
  # When the invoice was created.
71
49
  # @return [GOBL::Cal::Date]
72
50
  property :issue_date, GOBL::Cal::Date
73
- validates_presence_of :issue_date
74
51
 
75
52
  # @!attribute [r] op_date
76
53
  # Date when the operation defined by the invoice became effective.
@@ -82,6 +59,26 @@ module GOBL
82
59
  # @return [GOBL::Cal::Date]
83
60
  property :value_date, GOBL::Cal::Date
84
61
 
62
+ # @!attribute [r] currency
63
+ # Currency for all invoice totals.
64
+ # @return [GOBL::Currency::Code]
65
+ property :currency, GOBL::Currency::Code
66
+
67
+ # @!attribute [r] exchange_rates
68
+ # Exchange rates to be used when converting the invoices monetary values into other currencies.
69
+ # @return [Array<GOBL::Currency::ExchangeRate>]
70
+ property :exchange_rates, [GOBL::Currency::ExchangeRate]
71
+
72
+ # @!attribute [r] preceding
73
+ # Key information regarding previous invoices and potentially details as to why they were corrected.
74
+ # @return [Array<Preceding>]
75
+ property :preceding, [Preceding]
76
+
77
+ # @!attribute [r] tax
78
+ # Special tax configuration for billing.
79
+ # @return [Tax]
80
+ property :tax, Tax
81
+
85
82
  # @!attribute [r] supplier
86
83
  # The taxable entity supplying the goods or services.
87
84
  # @return [GOBL::Org::Party]
@@ -138,6 +135,11 @@ module GOBL
138
135
  # @return [Array<GOBL::CBC::Note>]
139
136
  property :notes, [GOBL::CBC::Note]
140
137
 
138
+ # @!attribute [r] complements
139
+ # Additional complementary objects that add relevant information to the invoice.
140
+ # @return [Array<GOBL::Schema::Object>]
141
+ property :complements, [GOBL::Schema::Object]
142
+
141
143
  # @!attribute [r] meta
142
144
  # Additional semi-structured data that doesn't fit into the body of the invoice.
143
145
  # @return [GOBL::CBC::Meta]
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -41,8 +41,8 @@ module GOBL
41
41
 
42
42
  # @!attribute [r] stamps
43
43
  # Seals of approval from other organisations that may need to be listed.
44
- # @return [Array<GOBL::CBC::Stamp>]
45
- property :stamps, [GOBL::CBC::Stamp]
44
+ # @return [Array<GOBL::Head::Stamp>]
45
+ property :stamps, [GOBL::Head::Stamp]
46
46
 
47
47
  # @!attribute [r] corrections
48
48
  # Tax regime specific keys reflecting why the preceding invoice is being replaced.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ ##
4
+ ## DO NOT EDIT - This file was generated automatically.
5
+ ##
6
+ ## Generated with GOBL v0.55.0
7
+ ##
8
+
9
+ module GOBL
10
+ module Cal
11
+ # Civil date time in simplified ISO format with no time zone
12
+ # information, for example: 2021-05-26T13:45:00
13
+ class DateTime < String
14
+ # The Schema ID of the GOBL DateTime structure
15
+ SCHEMA_ID = 'https://gobl.org/draft-0/cal/date-time'
16
+ end
17
+ end
18
+ end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,13 +3,13 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
10
10
  module CBC
11
- # CodeSet is a map of keys to specific codes, useful to determine regime specific codes from their key counterparts.
12
- class CodeSet < GOBL::Map
11
+ # CodeMap is a map of keys to specific codes, useful to determine regime specific codes from their key counterparts.
12
+ class CodeMap < GOBL::Map
13
13
  end
14
14
  end
15
15
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -20,14 +20,14 @@ module GOBL
20
20
 
21
21
  # @!attribute [r] head
22
22
  # Details on what the contents are
23
- # @return [Header]
24
- property :head, Header
23
+ # @return [GOBL::Head::Header]
24
+ property :head, GOBL::Head::Header
25
25
  validates_presence_of :head
26
26
 
27
27
  # @!attribute [r] doc
28
28
  # The data inside the envelope
29
- # @return [Document]
30
- property :doc, Document
29
+ # @return [GOBL::Schema::Object]
30
+ property :doc, GOBL::Schema::Object
31
31
  validates_presence_of :doc
32
32
 
33
33
  # @!attribute [r] sigs
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ ##
4
+ ## DO NOT EDIT - This file was generated automatically.
5
+ ##
6
+ ## Generated with GOBL v0.55.0
7
+ ##
8
+
9
+ module GOBL
10
+ module Head
11
+ # Header defines the metadata of the body.
12
+ class Header < GOBL::Object
13
+ # The Schema ID of the GOBL Header structure
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/head/header'
15
+
16
+ # @!attribute [r] uuid
17
+ # Unique UUIDv1 identifier for the envelope.
18
+ # @return [GOBL::UUID::UUID]
19
+ property :uuid, GOBL::UUID::UUID
20
+ validates_presence_of :uuid
21
+
22
+ # @!attribute [r] dig
23
+ # Digest of the canonical JSON body.
24
+ # @return [GOBL::DSig::Digest]
25
+ property :dig, GOBL::DSig::Digest
26
+ validates_presence_of :dig
27
+
28
+ # @!attribute [r] stamps
29
+ # Seals of approval from other organisations that can only be added to non-draft envelopes.
30
+ # @return [Array<GOBL::Head::Stamp>]
31
+ property :stamps, [GOBL::Head::Stamp]
32
+
33
+ # @!attribute [r] tags
34
+ # Set of labels that describe but have no influence on the data.
35
+ # @return [Array<String>]
36
+ property :tags, [String]
37
+
38
+ # @!attribute [r] meta
39
+ # Additional semi-structured information about this envelope.
40
+ # @return [GOBL::CBC::Meta]
41
+ property :meta, GOBL::CBC::Meta
42
+
43
+ # @!attribute [r] notes
44
+ # Any information that may be relevant to other humans about this envelope
45
+ # @return [String]
46
+ property :notes, String
47
+
48
+ # @!attribute [r] draft
49
+ # When true, implies that this document should not be considered final. Digital signatures are optional.
50
+ # @return [Boolean]
51
+ property :draft, Boolean
52
+ end
53
+ end
54
+ end
@@ -3,15 +3,15 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
10
- module CBC
10
+ module Head
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/cbc/stamp'
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/head/stamp'
15
15
 
16
16
  # @!attribute [r] prv
17
17
  # Identity of the agency used to create the stamp usually defined by each region.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -24,7 +24,7 @@ module GOBL
24
24
  property :lon, Float
25
25
 
26
26
  # @!attribute [r] w3w
27
- # Text coordinates compose of three words.
27
+ # What 3 Words text coordinates.
28
28
  # @return [String]
29
29
  property :w3w, String
30
30
 
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -24,7 +24,7 @@ module GOBL
24
24
  property :label, String
25
25
 
26
26
  # @!attribute [r] type
27
- # The type of Code being represented and usually specific for a particular context, country, or tax regime.
27
+ # The type of Code being represented and usually specific for a particular context, country, or tax regime, and cannot be used alongside the key.
28
28
  # @return [GOBL::CBC::Code]
29
29
  property :type, GOBL::CBC::Code
30
30
 
@@ -33,6 +33,11 @@ module GOBL
33
33
  # @return [GOBL::CBC::Code]
34
34
  property :code, GOBL::CBC::Code
35
35
  validates_presence_of :code
36
+
37
+ # @!attribute [r] description
38
+ # Description adds details about what the code could mean or imply
39
+ # @return [String]
40
+ property :description, String
36
41
  end
37
42
  end
38
43
  end