belpost 0.13.1 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4adf946e8f59bd6f7819db47ee253b758f285c1bdf6fac6ca326dea521902e1
4
- data.tar.gz: 8e9490b37a3518193182dc6db5cf1e65c5a7f7f13fafdd6935dfd1c91d4c9c3a
3
+ metadata.gz: ae31fc4b9d7d6dc4c2b7dc001d883aff6e53665dde3a34c587f1e6daca14fe12
4
+ data.tar.gz: 5d8af650f6cc668f03b6373a25617f6412876284b118e65d4eef8d3ad89e9204
5
5
  SHA512:
6
- metadata.gz: e32a32e6561612bee6e576851bad30ada292cce9b3a6096c8db9298ce5c30f892095b8687e0353417505732abb87664f19173eb352957993d52257d76d4b1209
7
- data.tar.gz: d38a5cf9783d0d7cac6ddeee2f8ff5c2cd5762b9c6d3a96da7da8a89470d98d9c6f52a3706bb0033c607b67e40100ceafe12f727efed16700f20859bada631ba
6
+ metadata.gz: e91c08569eae3c6cb12d3597dd3a6b1e60dec294380a371f078454bd2f200c93ee8fcefd913302e4f90709bfdc8f417463bebd0f0ec9da35c976cc3c12a15e98
7
+ data.tar.gz: 4ee6f46bbef109f810a662d2e107876e5fa4836b6860d2c7d07ce886ae318103e7bf2e502fa2f5b2eeffe03dfd93aa4de7546538bcb767855d2d1d700c6f9fc3
@@ -24,5 +24,8 @@ module Belpost
24
24
  GEO_DIRECTORY_SEARCH_ADDRESS = "/api/v1/business/geo-directory/search-address"
25
25
  GEO_DIRECTORY_POSTCODE = "/api/v1/business/geo-directory/postcode"
26
26
  GEO_DIRECTORY_ADDRESSES = "/api/v1/business/geo-directory/addresses"
27
+
28
+ # Postcodes paths
29
+ POSTCODES_AUTOCOMPLETE = "/api/v1/postcodes/autocomplete"
27
30
  end
28
31
  end
@@ -141,7 +141,7 @@ module Belpost
141
141
  raise ValidationError, "Address must be filled" if address.empty?
142
142
 
143
143
  formatted_address = format_address(address)
144
- response = @api_service.get(ApiPaths::GEO_DIRECTORY_SEARCH_ADDRESS, { search: formatted_address })
144
+ response = @api_service.get(ApiPaths::POSTCODES_AUTOCOMPLETE, { search: formatted_address })
145
145
  response.to_h
146
146
  end
147
147
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Belpost
4
- VERSION = "0.13.1"
4
+ VERSION = "0.13.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belpost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - KuberLite