hithorizons 0.7 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed2a9f3745aafa5bf4bd325f5cf3b7101a45781d7519f00cfdac2a4c3584ef83
4
- data.tar.gz: 135d638b875c73dc054196e47a3d9bd64afcab33f33ae6525c9c7a9766996eca
3
+ metadata.gz: f186810d9cda71b1eefec60a03638876f2a18e3e635bd98186812cdf8f7e506d
4
+ data.tar.gz: 0f28899831c28fecc97ff2e65ccb24e8d5aef087a24bab793391b64121892ae9
5
5
  SHA512:
6
- metadata.gz: b5b8f21278c674284a369de1104c4ff3bec52ec2549ea687ed938be665a124d2bada684642ecd169c38483d994eae68ba9af79de0c783a41c4cd5241cc2b06dc
7
- data.tar.gz: 7f212841d98723fd5ad4eaed56554665e2a8827254c424662092b85e26e4a7ab00472ac5bd8f9717eaa2e19cf9ec58efb2fa8739b85c79c7fa03e73e8061e3dd
6
+ metadata.gz: c63ffdf696a6af7091d8f36b2a87a800891a9572697e4ee0a3089404c3cd15a8db35bd809a830ff0ca8a2cc77cf82fe3ec9858179c09f165f3f2f3ba235ae864
7
+ data.tar.gz: 4a4a0a60dceb2e24c0e8f267c53feb4c00c3cfeb423cf36007432bf39342c2ab8006640bc5f69127c3e12e3a50606b40cc90ede9ce27a27e3e39d7d63e121216
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hithorizons (0.7)
4
+ hithorizons (0.7.2)
5
5
  faraday (~> 1)
6
6
  faraday_middleware (~> 1)
7
7
 
@@ -14,19 +14,19 @@ module Hithorizons
14
14
  Country.new('BGR', 'BULGARIA', registration_number: true),
15
15
  Country.new('HRV', 'CROATIA', registration_number: true),
16
16
  Country.new('CYP', 'CYPRUS', vat_id: true),
17
- Country.new('CZE', 'CZECH REPUBLIC', registration_number: true),
17
+ Country.new('CZE', 'CZECH REPUBLIC', registration_number: true, invoicing_api: true, iso2: 'CZ'),
18
18
  Country.new('DNK', 'DENMARK', registration_number: true),
19
- Country.new('GBR', 'ENGLAND', vat_id: true),
19
+ Country.new('GBR', 'ENGLAND', vat_id: true, invoicing_api: true, iso2: 'GB'),
20
20
  Country.new('EST', 'ESTONIA', vat_id: true),
21
21
  Country.new('FRO', 'FAROE ISLANDS', registration_number: true),
22
22
  Country.new('FIN', 'FINLAND', registration_number: true),
23
23
  Country.new('FRA', 'FRANCE', vat_id: true),
24
24
  Country.new('GEO', 'GEORGIA', registration_number: true),
25
- Country.new('DEU', 'GERMANY', vat_id: true),
25
+ Country.new('DEU', 'GERMANY', vat_id: true, invoicing_api: true, iso2: 'DE'),
26
26
  Country.new('GIB', 'GIBRALTAR', registration_number: true),
27
27
  Country.new('GRC', 'GREECE', registration_number: true),
28
28
  Country.new('GRL', 'GREENLAND', registration_number: true),
29
- Country.new('HUN', 'HUNGARY', tax_id: true),
29
+ Country.new('HUN', 'HUNGARY', tax_id: true, invoicing_api: true, iso2: 'HU'),
30
30
  Country.new('ISL', 'ICELAND', registration_number: true),
31
31
  Country.new('ITA', 'ITALY', registration_number: true),
32
32
  Country.new('KAZ', 'KAZAKHSTAN', registration_number: true),
@@ -43,13 +43,13 @@ module Hithorizons
43
43
  Country.new('MNE', 'MONTENEGRO', registration_number: true),
44
44
  Country.new('NLD', 'NETHERLANDS', vat_id: true),
45
45
  Country.new('NOR', 'NORWAY', registration_number: true),
46
- Country.new('POL', 'POLAND', registration_number: true),
46
+ Country.new('POL', 'POLAND', registration_number: true, invoicing_api: true, iso2: 'PL'),
47
47
  Country.new('PRT', 'PORTUGAL', registration_number: true),
48
48
  Country.new('ROU', 'ROMANIA', tax_id: true),
49
49
  Country.new('RUS', 'RUSSIAN FEDERATION', registration_number: true),
50
50
  Country.new('SMR', 'SAN MARINO', registration_number: true),
51
51
  Country.new('SRB', 'SERBIA', registration_number: true),
52
- Country.new('SVK', 'SLOVAKIA', registration_number: true),
52
+ Country.new('SVK', 'SLOVAKIA', registration_number: true, invoicing_api: true, iso2: 'SK'),
53
53
  Country.new('SVN', 'SLOVENIA', vat_id: true),
54
54
  Country.new('ESP', 'SPAIN', registration_number: true),
55
55
  Country.new('SWE', 'SWEDEN', vat_id: true),
@@ -2,14 +2,20 @@
2
2
 
3
3
  module Hithorizons
4
4
  class Country
5
- attr_reader :iso3, :name
5
+ attr_reader :iso3, :iso2, :name, :invoicing_api
6
6
 
7
- def initialize(iso3, name, registration_number: false, tax_id: false, vat_id: false)
7
+ def initialize(iso3, name, registration_number: false, iso2: nil, tax_id: false, vat_id: false, invoicing_api: false)
8
8
  @iso3 = iso3
9
+ @iso2 = iso2
9
10
  @name = name
10
11
  @registration_number = registration_number
11
12
  @tax_id = tax_id
12
13
  @vat_id = vat_id
14
+ @invoicing_api = invoicing_api
15
+ end
16
+
17
+ def invoicing_api?
18
+ @invoicing_api
13
19
  end
14
20
 
15
21
  def vat_id?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hithorizons
4
- VERSION = '0.7'
4
+ VERSION = '0.7.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hithorizons
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.7'
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lubomir Vnenk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-13 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday