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/pay/due_date.rb
CHANGED
data/lib/gobl/pay/method_key.rb
CHANGED
data/lib/gobl/pay/online.rb
CHANGED
data/lib/gobl/pay/term_key.rb
CHANGED
data/lib/gobl/pay/terms.rb
CHANGED
data/lib/gobl/tax/category.rb
CHANGED
data/lib/gobl/tax/combo.rb
CHANGED
data/lib/gobl/tax/localities.rb
CHANGED
data/lib/gobl/tax/locality.rb
CHANGED
data/lib/gobl/tax/rate.rb
CHANGED
data/lib/gobl/tax/rate_total.rb
CHANGED
data/lib/gobl/tax/rate_value.rb
CHANGED
data/lib/gobl/tax/region.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
|
@@ -32,8 +32,8 @@ module GOBL
|
|
32
32
|
|
33
33
|
# @!attribute [r] localities
|
34
34
|
# List of sub-localities inside a region.
|
35
|
-
# @return [
|
36
|
-
property :localities,
|
35
|
+
# @return [Array<Locality>]
|
36
|
+
property :localities, [Locality]
|
37
37
|
|
38
38
|
# @!attribute [r] currency
|
39
39
|
# Currency used by the region for tax purposes.
|
data/lib/gobl/tax/scheme.rb
CHANGED
data/lib/gobl/tax/schemes.rb
CHANGED
data/lib/gobl/tax/set.rb
CHANGED
data/lib/gobl/tax/total.rb
CHANGED
data/lib/gobl/uuid/uuid.rb
CHANGED
data/lib/gobl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Lilue
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-11-
|
13
|
+
date: 2022-11-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -138,6 +138,7 @@ files:
|
|
138
138
|
- lib/gobl/org/person.rb
|
139
139
|
- lib/gobl/org/registration.rb
|
140
140
|
- lib/gobl/org/source_key.rb
|
141
|
+
- lib/gobl/org/stamp.rb
|
141
142
|
- lib/gobl/org/tax_identity.rb
|
142
143
|
- lib/gobl/org/telephone.rb
|
143
144
|
- lib/gobl/org/unit.rb
|
@@ -151,7 +152,6 @@ files:
|
|
151
152
|
- lib/gobl/pay/online.rb
|
152
153
|
- lib/gobl/pay/term_key.rb
|
153
154
|
- lib/gobl/pay/terms.rb
|
154
|
-
- lib/gobl/stamp.rb
|
155
155
|
- lib/gobl/struct.rb
|
156
156
|
- lib/gobl/tax/category.rb
|
157
157
|
- lib/gobl/tax/category_total.rb
|
data/lib/gobl/stamp.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
##
|
4
|
-
## DO NOT EDIT - This file was generated automatically.
|
5
|
-
##
|
6
|
-
## Generated with GOBL v0.30.4
|
7
|
-
##
|
8
|
-
|
9
|
-
module GOBL
|
10
|
-
# 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.
|
11
|
-
class Stamp < GOBL::Object
|
12
|
-
# The Schema ID of the GOBL Stamp structure
|
13
|
-
SCHEMA_ID = 'https://gobl.org/draft-0/envelope#/$defs/Stamp'
|
14
|
-
|
15
|
-
# @!attribute [r] prv
|
16
|
-
# Identity of the agency used to create the stamp usually defined by each region.
|
17
|
-
# @return [GOBL::Org::Key]
|
18
|
-
property :prv, GOBL::Org::Key
|
19
|
-
validates :prv, presence: true
|
20
|
-
|
21
|
-
# @!attribute [r] val
|
22
|
-
# The serialized stamp value generated for or by the external agency
|
23
|
-
# @return [String]
|
24
|
-
property :val, String
|
25
|
-
validates :val, presence: true
|
26
|
-
end
|
27
|
-
end
|