gobl 0.7.3 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/regimes/pt.json +234 -0
- data/lib/gobl/bill/charge.rb +1 -1
- data/lib/gobl/bill/delivery.rb +3 -3
- data/lib/gobl/bill/discount.rb +1 -1
- data/lib/gobl/bill/document_reference.rb +37 -0
- data/lib/gobl/bill/invoice.rb +11 -8
- data/lib/gobl/bill/invoice_type.rb +2 -4
- 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 +48 -3
- data/lib/gobl/bill/outlay.rb +1 -1
- data/lib/gobl/bill/payment.rb +6 -6
- data/lib/gobl/bill/preceding.rb +1 -1
- data/lib/gobl/bill/tax.rb +3 -3
- 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/cbc/code.rb +1 -1
- data/lib/gobl/cbc/key.rb +1 -1
- data/lib/gobl/cbc/meta.rb +1 -1
- data/lib/gobl/cbc/note.rb +1 -1
- data/lib/gobl/cbc/note_key.rb +2 -4
- data/lib/gobl/cbc/stamp.rb +1 -1
- data/lib/gobl/currency/code.rb +2 -4
- 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/enum.rb +2 -12
- data/lib/gobl/envelope.rb +1 -1
- data/lib/gobl/header.rb +1 -1
- data/lib/gobl/i18n/string.rb +1 -1
- data/lib/gobl/l10n/code.rb +1 -1
- data/lib/gobl/l10n/country_code.rb +2 -4
- data/lib/gobl/note/message.rb +1 -1
- data/lib/gobl/org/address.rb +1 -1
- data/lib/gobl/org/coordinates.rb +1 -1
- data/lib/gobl/org/email.rb +1 -1
- data/lib/gobl/org/image.rb +67 -0
- 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/name.rb +1 -1
- data/lib/gobl/org/party.rb +11 -1
- data/lib/gobl/org/person.rb +6 -1
- 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/org/website.rb +38 -0
- 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 +2 -2
- data/lib/gobl/pay/method_key.rb +4 -6
- data/lib/gobl/pay/online.rb +1 -1
- data/lib/gobl/pay/term_key.rb +2 -4
- 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/identity.rb +1 -1
- data/lib/gobl/tax/rate.rb +2 -2
- 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 +6 -1
- data/lib/gobl/tax/regime.rb +3 -3
- data/lib/gobl/tax/scheme.rb +1 -1
- data/lib/gobl/tax/set.rb +1 -1
- data/lib/gobl/tax/source_key.rb +2 -4
- data/lib/gobl/tax/total.rb +1 -1
- data/lib/gobl/tax/zone.rb +1 -1
- data/lib/gobl/uuid/uuid.rb +1 -1
- data/lib/gobl/version.rb +1 -1
- metadata +7 -7
- data/lib/gobl/bill/advances.rb +0 -14
- data/lib/gobl/bill/exchange_rates.rb +0 -14
- data/lib/gobl/bill/scheme_keys.rb +0 -14
- data/lib/gobl/tax/schemes.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e14eb326a6bbca1237cdc6782714e9dbcacbe53e3bcb0028e52acefbb83ea5b
|
4
|
+
data.tar.gz: fb366c4ba614d652d14938a7d99f85522db3dc2845b32b611fc78d8bb9761ead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2109bb654d767070f4261cd45b85d97bd7e7ebbb9d03ea83b8af5fd61f73434d0e5ebd2d13f35aa368d154d68fef3742116d8b405eec1611bd7799c410bce124
|
7
|
+
data.tar.gz: 63d05794780f7e4a200490b56f1477fb4fb14dc11e4aab0ce2e81358ff58d2f02175318e16f13ea46098edd1f8a045ceefe51de9a5b384913450a09103b5796f
|
@@ -0,0 +1,234 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://gobl.org/draft-0/tax/regime",
|
3
|
+
"name": {
|
4
|
+
"en": "Portugal",
|
5
|
+
"pt": "Portugal"
|
6
|
+
},
|
7
|
+
"country": "PT",
|
8
|
+
"zones": [
|
9
|
+
{
|
10
|
+
"code": "01",
|
11
|
+
"region": {
|
12
|
+
"pt": "Aveiro"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"code": "02",
|
17
|
+
"region": {
|
18
|
+
"pt": "Beja"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"code": "03",
|
23
|
+
"region": {
|
24
|
+
"pt": "Braga"
|
25
|
+
}
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"code": "04",
|
29
|
+
"region": {
|
30
|
+
"pt": "Bragança"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"code": "05",
|
35
|
+
"region": {
|
36
|
+
"pt": "Castelo Branco"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"code": "06",
|
41
|
+
"region": {
|
42
|
+
"pt": "Coimbra"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"code": "07",
|
47
|
+
"region": {
|
48
|
+
"pt": "Évora"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"code": "08",
|
53
|
+
"region": {
|
54
|
+
"pt": "Faro"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"code": "09",
|
59
|
+
"region": {
|
60
|
+
"pt": "Guarda"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"code": "10",
|
65
|
+
"region": {
|
66
|
+
"pt": "Leiria"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"code": "11",
|
71
|
+
"region": {
|
72
|
+
"pt": "Lisboa"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"code": "12",
|
77
|
+
"region": {
|
78
|
+
"pt": "Portalegre"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"code": "13",
|
83
|
+
"region": {
|
84
|
+
"pt": "Porto"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"code": "14",
|
89
|
+
"region": {
|
90
|
+
"pt": "Santarém"
|
91
|
+
}
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"code": "15",
|
95
|
+
"region": {
|
96
|
+
"pt": "Setúbal"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"code": "16",
|
101
|
+
"region": {
|
102
|
+
"pt": "Viana do Castelo"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"code": "17",
|
107
|
+
"region": {
|
108
|
+
"pt": "Vila Real"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"code": "18",
|
113
|
+
"region": {
|
114
|
+
"pt": "Viseu"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"code": "20",
|
119
|
+
"region": {
|
120
|
+
"pt": "Região Autónoma dos Açores"
|
121
|
+
}
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"code": "30",
|
125
|
+
"region": {
|
126
|
+
"pt": "Região Autónoma da Madeira"
|
127
|
+
}
|
128
|
+
}
|
129
|
+
],
|
130
|
+
"currency": "EUR",
|
131
|
+
"categories": [
|
132
|
+
{
|
133
|
+
"code": "VAT",
|
134
|
+
"name": {
|
135
|
+
"en": "VAT",
|
136
|
+
"pt": "IVA"
|
137
|
+
},
|
138
|
+
"desc": {
|
139
|
+
"en": "Value Added Tax",
|
140
|
+
"pt": "Imposto sobre o Valor Acrescentado"
|
141
|
+
},
|
142
|
+
"rates": [
|
143
|
+
{
|
144
|
+
"key": "standard",
|
145
|
+
"name": {
|
146
|
+
"en": "Standard Rate",
|
147
|
+
"pt": "Tipo Geral"
|
148
|
+
},
|
149
|
+
"values": [
|
150
|
+
{
|
151
|
+
"zones": [
|
152
|
+
"20"
|
153
|
+
],
|
154
|
+
"since": "2011-01-01",
|
155
|
+
"percent": "16.0%"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"zones": [
|
159
|
+
"20"
|
160
|
+
],
|
161
|
+
"since": "2011-01-01",
|
162
|
+
"percent": "18.0%"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"zones": [
|
166
|
+
"30"
|
167
|
+
],
|
168
|
+
"since": "2011-01-01",
|
169
|
+
"percent": "22.0%"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"since": "2011-01-01",
|
173
|
+
"percent": "23.0%"
|
174
|
+
}
|
175
|
+
]
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"key": "intermediate",
|
179
|
+
"name": {
|
180
|
+
"en": "Intermediate Rate",
|
181
|
+
"pt": "Taxa Intermédia"
|
182
|
+
},
|
183
|
+
"values": [
|
184
|
+
{
|
185
|
+
"zones": [
|
186
|
+
"20"
|
187
|
+
],
|
188
|
+
"since": "2011-01-01",
|
189
|
+
"percent": "9.0%"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"zones": [
|
193
|
+
"30"
|
194
|
+
],
|
195
|
+
"since": "2011-01-01",
|
196
|
+
"percent": "12.0%"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"since": "2011-01-01",
|
200
|
+
"percent": "13.0%"
|
201
|
+
}
|
202
|
+
]
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"key": "reduced",
|
206
|
+
"name": {
|
207
|
+
"en": "Reduced Rate",
|
208
|
+
"pt": "Taxa Reduzida"
|
209
|
+
},
|
210
|
+
"values": [
|
211
|
+
{
|
212
|
+
"zones": [
|
213
|
+
"20"
|
214
|
+
],
|
215
|
+
"since": "2011-01-01",
|
216
|
+
"percent": "4.0%"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"zones": [
|
220
|
+
"30"
|
221
|
+
],
|
222
|
+
"since": "2011-01-01",
|
223
|
+
"percent": "5.0%"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"since": "2011-01-01",
|
227
|
+
"percent": "6.0%"
|
228
|
+
}
|
229
|
+
]
|
230
|
+
}
|
231
|
+
]
|
232
|
+
}
|
233
|
+
]
|
234
|
+
}
|
data/lib/gobl/bill/charge.rb
CHANGED
data/lib/gobl/bill/delivery.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.36.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -24,12 +24,12 @@ module GOBL
|
|
24
24
|
property :date, GOBL::Cal::Date
|
25
25
|
|
26
26
|
# @!attribute [r] start_date
|
27
|
-
# Start of
|
27
|
+
# Start of an invoicing or delivery period
|
28
28
|
# @return [GOBL::Cal::Date]
|
29
29
|
property :start_date, GOBL::Cal::Date
|
30
30
|
|
31
31
|
# @!attribute [r] end_date
|
32
|
-
# End of
|
32
|
+
# End of an invoicing or delivery period
|
33
33
|
# @return [GOBL::Cal::Date]
|
34
34
|
property :end_date, GOBL::Cal::Date
|
35
35
|
end
|
data/lib/gobl/bill/discount.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
##
|
4
|
+
## DO NOT EDIT - This file was generated automatically.
|
5
|
+
##
|
6
|
+
## Generated with GOBL v0.36.0
|
7
|
+
##
|
8
|
+
|
9
|
+
module GOBL
|
10
|
+
module Bill
|
11
|
+
# DocumentReference provides a link to a existing document.
|
12
|
+
class DocumentReference < GOBL::Object
|
13
|
+
# The Schema ID of the GOBL DocumentReference structure
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/DocumentReference'
|
15
|
+
|
16
|
+
# @!attribute [r] uuid
|
17
|
+
# Unique ID copied from the source document.
|
18
|
+
# @return [GOBL::UUID::UUID]
|
19
|
+
property :uuid, GOBL::UUID::UUID
|
20
|
+
|
21
|
+
# @!attribute [r] series
|
22
|
+
# Series the reference document belongs to.
|
23
|
+
# @return [String]
|
24
|
+
property :series, String
|
25
|
+
|
26
|
+
# @!attribute [r] code
|
27
|
+
# Source document's code or other identifier.
|
28
|
+
# @return [String]
|
29
|
+
property :code, String
|
30
|
+
|
31
|
+
# @!attribute [r] url
|
32
|
+
# Link to the source document.
|
33
|
+
# @return [String]
|
34
|
+
property :url, String
|
35
|
+
end
|
36
|
+
end
|
37
|
+
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.36.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -18,17 +18,17 @@ 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
|
+
|
21
26
|
# @!attribute [r] code
|
22
27
|
# Sequential code used to identify this invoice in tax declarations.
|
23
28
|
# @return [String]
|
24
29
|
property :code, String
|
25
30
|
validates :code, presence: true
|
26
31
|
|
27
|
-
# @!attribute [r] series
|
28
|
-
# Used in addition to the Code in some regions.
|
29
|
-
# @return [String]
|
30
|
-
property :series, String
|
31
|
-
|
32
32
|
# @!attribute [r] type
|
33
33
|
# Optional invoice type, leave empty unless needed for a specific situation.
|
34
34
|
# @return [InvoiceType]
|
@@ -42,8 +42,8 @@ module GOBL
|
|
42
42
|
|
43
43
|
# @!attribute [r] exchange_rates
|
44
44
|
# Exchange rates to be used when converting the invoices monetary values into other currencies.
|
45
|
-
# @return [
|
46
|
-
property :exchange_rates,
|
45
|
+
# @return [Array<GOBL::Currency::ExchangeRate>]
|
46
|
+
property :exchange_rates, [GOBL::Currency::ExchangeRate]
|
47
47
|
|
48
48
|
# @!attribute [r] tax
|
49
49
|
# Special tax configuration for billing.
|
@@ -103,14 +103,17 @@ module GOBL
|
|
103
103
|
property :outlays, [Outlay]
|
104
104
|
|
105
105
|
# @!attribute [r] ordering
|
106
|
+
# Ordering details including document references and buyer or seller parties.
|
106
107
|
# @return [Ordering]
|
107
108
|
property :ordering, Ordering
|
108
109
|
|
109
110
|
# @!attribute [r] payment
|
111
|
+
# Information on when, how, and to whom the invoice should be paid.
|
110
112
|
# @return [Payment]
|
111
113
|
property :payment, Payment
|
112
114
|
|
113
115
|
# @!attribute [r] delivery
|
116
|
+
# Specific details on delivery of the goods referenced in the invoice.
|
114
117
|
# @return [Delivery]
|
115
118
|
property :delivery, Delivery
|
116
119
|
|
@@ -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.36.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -24,9 +24,7 @@ module GOBL
|
|
24
24
|
'self-billed' => 'Self billed invoice'
|
25
25
|
}.freeze
|
26
26
|
|
27
|
-
|
28
|
-
true
|
29
|
-
end
|
27
|
+
validates_inclusion_of :_value, in: ENUM.keys, message: '"%{value}" is not within the allowed values of the enumeration'
|
30
28
|
end
|
31
29
|
end
|
32
30
|
end
|
data/lib/gobl/bill/line.rb
CHANGED
data/lib/gobl/bill/ordering.rb
CHANGED
@@ -3,18 +3,63 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.36.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
10
|
module Bill
|
11
|
-
# Ordering
|
11
|
+
# Ordering provides additional information about the ordering process including references to other documents and alternative parties involved in the order-to-delivery process.
|
12
12
|
class Ordering < GOBL::Object
|
13
13
|
# The Schema ID of the GOBL Ordering structure
|
14
14
|
SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/Ordering'
|
15
15
|
|
16
|
+
# @!attribute [r] code
|
17
|
+
# Identifier assigned by the customer or buyer for internal routing purposes.
|
18
|
+
# @return [String]
|
19
|
+
property :code, String
|
20
|
+
|
21
|
+
# @!attribute [r] project
|
22
|
+
# Project this invoice refers to.
|
23
|
+
# @return [DocumentReference]
|
24
|
+
property :project, DocumentReference
|
25
|
+
|
26
|
+
# @!attribute [r] contract
|
27
|
+
# The identification of a contract.
|
28
|
+
# @return [DocumentReference]
|
29
|
+
property :contract, DocumentReference
|
30
|
+
|
31
|
+
# @!attribute [r] purchase
|
32
|
+
# Purchase order issued by the customer or buyer.
|
33
|
+
# @return [DocumentReference]
|
34
|
+
property :purchase, DocumentReference
|
35
|
+
|
36
|
+
# @!attribute [r] sale
|
37
|
+
# Sales order issued by the supplier or seller.
|
38
|
+
# @return [DocumentReference]
|
39
|
+
property :sale, DocumentReference
|
40
|
+
|
41
|
+
# @!attribute [r] receiving
|
42
|
+
# Receiving Advice.
|
43
|
+
# @return [DocumentReference]
|
44
|
+
property :receiving, DocumentReference
|
45
|
+
|
46
|
+
# @!attribute [r] despatch
|
47
|
+
# Despatch advice.
|
48
|
+
# @return [DocumentReference]
|
49
|
+
property :despatch, DocumentReference
|
50
|
+
|
51
|
+
# @!attribute [r] tender
|
52
|
+
# Tender advice, the identification of the call for tender or lot the invoice relates to.
|
53
|
+
# @return [DocumentReference]
|
54
|
+
property :tender, DocumentReference
|
55
|
+
|
56
|
+
# @!attribute [r] buyer
|
57
|
+
# Party who is responsible for making the purchase, but is not responsible for handling taxes.
|
58
|
+
# @return [GOBL::Org::Party]
|
59
|
+
property :buyer, GOBL::Org::Party
|
60
|
+
|
16
61
|
# @!attribute [r] seller
|
17
|
-
# Party who is selling the goods
|
62
|
+
# Party who is selling the goods but is not responsible for taxes like the supplier.
|
18
63
|
# @return [GOBL::Org::Party]
|
19
64
|
property :seller, GOBL::Org::Party
|
20
65
|
end
|
data/lib/gobl/bill/outlay.rb
CHANGED
data/lib/gobl/bill/payment.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.36.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -13,10 +13,10 @@ module GOBL
|
|
13
13
|
# The Schema ID of the GOBL Payment structure
|
14
14
|
SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/Payment'
|
15
15
|
|
16
|
-
# @!attribute [r]
|
17
|
-
# The party responsible for
|
16
|
+
# @!attribute [r] payee
|
17
|
+
# The party responsible for receiving payment of the invoice, if not the supplier.
|
18
18
|
# @return [GOBL::Org::Party]
|
19
|
-
property :
|
19
|
+
property :payee, GOBL::Org::Party
|
20
20
|
|
21
21
|
# @!attribute [r] terms
|
22
22
|
# Payment terms or conditions.
|
@@ -25,8 +25,8 @@ module GOBL
|
|
25
25
|
|
26
26
|
# @!attribute [r] advances
|
27
27
|
# Any amounts that have been paid in advance and should be deducted from the amount due.
|
28
|
-
# @return [
|
29
|
-
property :advances,
|
28
|
+
# @return [Array<GOBL::Pay::Advance>]
|
29
|
+
property :advances, [GOBL::Pay::Advance]
|
30
30
|
|
31
31
|
# @!attribute [r] instructions
|
32
32
|
# Details on how payment should be made.
|
data/lib/gobl/bill/preceding.rb
CHANGED
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.36.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -20,8 +20,8 @@ module GOBL
|
|
20
20
|
|
21
21
|
# @!attribute [r] schemes
|
22
22
|
# Special tax schemes that apply to this invoice according to local requirements.
|
23
|
-
# @return [
|
24
|
-
property :schemes,
|
23
|
+
# @return [Array<GOBL::CBC::Key>]
|
24
|
+
property :schemes, [GOBL::CBC::Key]
|
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.
|
data/lib/gobl/bill/totals.rb
CHANGED
data/lib/gobl/cal/date.rb
CHANGED
data/lib/gobl/cal/period.rb
CHANGED
data/lib/gobl/cbc/code.rb
CHANGED
data/lib/gobl/cbc/key.rb
CHANGED
data/lib/gobl/cbc/meta.rb
CHANGED
data/lib/gobl/cbc/note.rb
CHANGED
data/lib/gobl/cbc/note_key.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.36.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -42,9 +42,7 @@ module GOBL
|
|
42
42
|
'tax' => 'Tax declaration'
|
43
43
|
}.freeze
|
44
44
|
|
45
|
-
|
46
|
-
true
|
47
|
-
end
|
45
|
+
validates_inclusion_of :_value, in: ENUM.keys, message: '"%{value}" is not within the allowed values of the enumeration'
|
48
46
|
end
|
49
47
|
end
|
50
48
|
end
|