gobl 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -9
- data/data/regimes/it.json +13 -0
- data/data/regimes/us.json +20 -0
- data/lib/generated/gobl/bill/charge.rb +6 -1
- data/lib/generated/gobl/bill/delivery.rb +1 -1
- data/lib/generated/gobl/bill/discount.rb +1 -1
- data/lib/generated/gobl/bill/document_reference.rb +1 -1
- data/lib/generated/gobl/bill/invoice.rb +1 -1
- data/lib/generated/gobl/bill/line.rb +1 -1
- data/lib/generated/gobl/bill/line_charge.rb +1 -1
- data/lib/generated/gobl/bill/line_discount.rb +1 -1
- data/lib/generated/gobl/bill/ordering.rb +1 -1
- data/lib/generated/gobl/bill/outlay.rb +1 -1
- data/lib/generated/gobl/bill/payment.rb +1 -1
- data/lib/generated/gobl/bill/preceding.rb +1 -1
- data/lib/generated/gobl/bill/tax.rb +1 -1
- data/lib/generated/gobl/bill/totals.rb +1 -1
- data/lib/generated/gobl/cal/date.rb +1 -1
- data/lib/generated/gobl/cal/period.rb +1 -1
- data/lib/generated/gobl/cbc/code.rb +1 -1
- data/lib/generated/gobl/cbc/key.rb +1 -1
- data/lib/generated/gobl/cbc/meta.rb +1 -1
- data/lib/generated/gobl/cbc/note.rb +9 -4
- data/lib/generated/gobl/cbc/stamp.rb +1 -1
- data/lib/generated/gobl/currency/code.rb +1 -1
- data/lib/generated/gobl/currency/exchange_rate.rb +1 -1
- data/lib/generated/gobl/document.rb +1 -1
- data/lib/generated/gobl/dsig/digest.rb +1 -1
- data/lib/generated/gobl/dsig/signature.rb +1 -1
- data/lib/generated/gobl/envelope.rb +1 -1
- data/lib/generated/gobl/header.rb +2 -2
- data/lib/generated/gobl/i18n/string.rb +1 -1
- data/lib/generated/gobl/l10n/code.rb +1 -1
- data/lib/generated/gobl/l10n/country_code.rb +38 -38
- data/lib/generated/gobl/note/message.rb +1 -1
- data/lib/generated/gobl/org/address.rb +1 -1
- data/lib/generated/gobl/org/coordinates.rb +1 -1
- data/lib/generated/gobl/org/email.rb +1 -1
- data/lib/generated/gobl/org/identity.rb +1 -1
- data/lib/generated/gobl/org/image.rb +1 -1
- data/lib/generated/gobl/org/inbox.rb +1 -1
- data/lib/generated/gobl/org/item.rb +1 -1
- data/lib/generated/gobl/org/name.rb +1 -1
- data/lib/generated/gobl/org/party.rb +1 -1
- data/lib/generated/gobl/org/person.rb +1 -1
- data/lib/generated/gobl/org/registration.rb +9 -1
- data/lib/generated/gobl/org/telephone.rb +1 -1
- data/lib/generated/gobl/org/unit.rb +1 -1
- data/lib/generated/gobl/org/website.rb +1 -1
- data/lib/generated/gobl/pay/advance.rb +1 -1
- data/lib/generated/gobl/pay/card.rb +1 -1
- data/lib/generated/gobl/pay/credit_transfer.rb +1 -1
- data/lib/generated/gobl/pay/direct_debit.rb +1 -1
- data/lib/generated/gobl/pay/due_date.rb +1 -1
- data/lib/generated/gobl/pay/instructions.rb +11 -11
- data/lib/generated/gobl/pay/online.rb +1 -1
- data/lib/generated/gobl/pay/terms.rb +2 -2
- data/lib/generated/gobl/tax/category.rb +1 -1
- data/lib/generated/gobl/tax/category_total.rb +1 -1
- data/lib/generated/gobl/tax/combo.rb +1 -1
- data/lib/generated/gobl/tax/identity.rb +1 -1
- data/lib/generated/gobl/tax/identity_type.rb +1 -1
- data/lib/generated/gobl/tax/key_definition.rb +1 -1
- data/lib/generated/gobl/tax/preceding_definitions.rb +1 -1
- data/lib/generated/gobl/tax/rate.rb +1 -1
- data/lib/generated/gobl/tax/rate_total.rb +1 -1
- data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
- data/lib/generated/gobl/tax/rate_value.rb +1 -1
- data/lib/generated/gobl/tax/regime.rb +6 -1
- data/lib/generated/gobl/tax/scenario.rb +1 -1
- data/lib/generated/gobl/tax/scenario_set.rb +1 -1
- data/lib/generated/gobl/tax/set.rb +1 -1
- data/lib/generated/gobl/tax/tag.rb +1 -1
- data/lib/generated/gobl/tax/total.rb +1 -1
- data/lib/generated/gobl/tax/zone.rb +1 -1
- data/lib/generated/gobl/uuid/uuid.rb +1 -1
- data/lib/gobl/version.rb +1 -1
- metadata +6 -4
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.42.
|
6
|
+
## Generated with GOBL v0.42.8
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -17,6 +17,14 @@ module GOBL
|
|
17
17
|
# @return [GOBL::UUID::UUID]
|
18
18
|
property :uuid, GOBL::UUID::UUID
|
19
19
|
|
20
|
+
# @!attribute [r] social_capital
|
21
|
+
# @return [GOBL::Num::Amount]
|
22
|
+
property :social_capital, GOBL::Num::Amount
|
23
|
+
|
24
|
+
# @!attribute [r] currency
|
25
|
+
# @return [GOBL::Currency::Code]
|
26
|
+
property :currency, GOBL::Currency::Code
|
27
|
+
|
20
28
|
# @!attribute [r] office
|
21
29
|
# @return [String]
|
22
30
|
property :office, String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.42.
|
6
|
+
## Generated with GOBL v0.42.8
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -15,16 +15,16 @@ module GOBL
|
|
15
15
|
|
16
16
|
# Enumeration of possible values for {#key} with their corresponding descriptions
|
17
17
|
KEY_ENUM = {
|
18
|
-
'any' => 'Any method available, no preference',
|
19
|
-
'card' => 'Credit or debit card',
|
20
|
-
'credit-transfer' => 'Sender initiated bank or wire transfer',
|
21
|
-
'debit-transfer' => 'Receiver initiated bank or wire transfer',
|
22
|
-
'cash' => 'Cash',
|
23
|
-
'cheque' => 'Cheque',
|
24
|
-
'credit' => '
|
25
|
-
'bank-draft' => 'Bankers Draft or Bank Cheque',
|
26
|
-
'direct-debit' => 'Direct debit',
|
27
|
-
'online' => 'Online or web payment'
|
18
|
+
'any' => 'Any method available, no preference.',
|
19
|
+
'card' => 'Credit or debit card.',
|
20
|
+
'credit-transfer' => 'Sender initiated bank or wire transfer.',
|
21
|
+
'debit-transfer' => 'Receiver initiated bank or wire transfer.',
|
22
|
+
'cash' => 'Cash in hand.',
|
23
|
+
'cheque' => 'Cheque from bank.',
|
24
|
+
'credit' => 'Using credit from previous transactions with the supplier.',
|
25
|
+
'bank-draft' => 'Bankers Draft or Bank Cheque.',
|
26
|
+
'direct-debit' => 'Direct debit from the customers bank account.',
|
27
|
+
'online' => 'Online or web payment.'
|
28
28
|
}.freeze
|
29
29
|
|
30
30
|
# @!attribute [r] key
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.42.
|
6
|
+
## Generated with GOBL v0.42.8
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -23,7 +23,7 @@ module GOBL
|
|
23
23
|
'instant' => 'On receipt of invoice',
|
24
24
|
'elective' => 'Chosen by the buyer',
|
25
25
|
'pending' => 'Seller to advise buyer in separate transaction',
|
26
|
-
'
|
26
|
+
'advanced' => 'Payment made in advance',
|
27
27
|
'delivery' => 'Payment on Delivery'
|
28
28
|
}.freeze
|
29
29
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.42.
|
6
|
+
## Generated with GOBL v0.42.8
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -46,6 +46,11 @@ module GOBL
|
|
46
46
|
# @return [Array<IdentityType>]
|
47
47
|
property :identity_types, [IdentityType]
|
48
48
|
|
49
|
+
# @!attribute [r] charge_types
|
50
|
+
# Charge types specific for the regime and may be validated or used in the UI as suggestions
|
51
|
+
# @return [Array<KeyDefinition>]
|
52
|
+
property :charge_types, [KeyDefinition]
|
53
|
+
|
49
54
|
# @!attribute [r] tags
|
50
55
|
# Tags that can be applied at the document level to identify additional considerations.
|
51
56
|
# @return [Array<Tag>]
|
data/lib/gobl/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Luismi Cavalle
|
8
8
|
- Sam Lown
|
9
|
+
- David Lilue
|
9
10
|
- Juanjo Molinero
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2023-
|
14
|
+
date: 2023-05-20 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: activesupport
|
@@ -68,6 +69,7 @@ files:
|
|
68
69
|
- data/regimes/it.json
|
69
70
|
- data/regimes/nl.json
|
70
71
|
- data/regimes/pt.json
|
72
|
+
- data/regimes/us.json
|
71
73
|
- lib/generated/gobl/bill/charge.rb
|
72
74
|
- lib/generated/gobl/bill/delivery.rb
|
73
75
|
- lib/generated/gobl/bill/discount.rb
|
@@ -178,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
180
|
- !ruby/object:Gem::Version
|
179
181
|
version: 3.1.4
|
180
182
|
requirements: []
|
181
|
-
rubygems_version: 3.4.
|
183
|
+
rubygems_version: 3.4.10
|
182
184
|
signing_key:
|
183
185
|
specification_version: 4
|
184
186
|
summary: Minimalist ruby version of the GOBL library
|