smartystreets_ruby_sdk 7.2.3 → 7.3.0

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: f3583fc90ecd6ea6b74e60c274560f4ccaca60ac3f87f0affb05d19875ea0db6
4
- data.tar.gz: 5acee3177c57105e3057e417fcf53fe75b25f9a877e8329bef8d04808c132eec
3
+ metadata.gz: 28599b31e31c16d357e1eed5707e76db2cfa42160f84f56ded56293340d88415
4
+ data.tar.gz: 954e023ba758549b81d2b170ce083ce7f0d0df603d685ca82a0c2fba90e59c99
5
5
  SHA512:
6
- metadata.gz: 7f366e31a8ff91ecae194eac3d190f4c6875d295fcf6f7b1cc7551d31c7c930f3a4d670031c871d0fec1060f66bf194f61d3c14fe6f230ad60b23f1c1929d98d
7
- data.tar.gz: ab15c7452caabe0a5493bb6dd30d1ad08690f6b5101dbf963bf7c2d685f32ca0cb6684aa47adbf26b9521102e8700af59e31a00a7a62a859cbbed6221436a6c0
6
+ metadata.gz: c7cc4acddb8b5fb509747976c9081b42a1ba176307b0d62b7474096bbf55b3867541cb96076918cab5a7c9cbf8367e9d597b071a454ef23172bed50c8059bfa5
7
+ data.tar.gz: 682ff5422e6d6e57db6535af1a59aa6fab65ea03120404850330665005f06ff3fc8104cd95b697133dcd80d262278d3cc7fe5edfe85ca66367e0d6c9ed854748
@@ -28,13 +28,15 @@ class InternationalAutocompleteExample
28
28
  lookup = Lookup.new('Louis')
29
29
  lookup.country = "FRA"
30
30
  lookup.locality = "Paris"
31
+ lookup.max_group_results = 5
32
+ lookup.geolocation = true
31
33
 
32
34
  # lookup.add_custom_parameter('parameter', 'value')
33
35
 
34
36
  suggestions = client.send(lookup) # The client will also return the suggestions directly
35
37
 
36
38
  puts
37
- puts '*** Result with some filters ***'
39
+ puts '*** Result with some filters (max_group_results=5, geolocation=on) ***'
38
40
  puts
39
41
 
40
42
  suggestions.each do |suggestion|
@@ -39,6 +39,8 @@ module SmartyStreets
39
39
  add_parameter(request, 'search', lookup.search)
40
40
  add_parameter(request, 'country', lookup.country)
41
41
  add_parameter(request, 'max_results', lookup.max_results.to_s)
42
+ add_parameter(request, 'max_group_results', lookup.max_group_results.to_s)
43
+ add_parameter(request, 'geolocation', 'on') if lookup.geolocation
42
44
  add_parameter(request, 'include_only_locality', lookup.locality)
43
45
  add_parameter(request, 'include_only_postal_code', lookup.postal_code)
44
46
 
@@ -6,14 +6,16 @@ module SmartyStreets
6
6
  # of the lookup after it comes back from the API.
7
7
  class Lookup < JSONAble
8
8
 
9
- attr_accessor :result, :search, :address_id, :country, :max_results, :locality, :postal_code, :custom_param_hash
9
+ attr_accessor :result, :search, :address_id, :country, :max_results, :max_group_results, :geolocation, :locality, :postal_code, :custom_param_hash
10
10
 
11
- def initialize(search = nil, address_id = nil, country = nil, max_results = nil, locality = nil, postal_code = nil, custom_param_hash = nil)
11
+ def initialize(search = nil, address_id = nil, country = nil, max_results = nil, max_group_results = 100, geolocation = false, locality = nil, postal_code = nil, custom_param_hash = nil)
12
12
  @result = []
13
13
  @search = search
14
14
  @address_id = address_id
15
15
  @country = country
16
16
  @max_results = max_results
17
+ @max_group_results = max_group_results
18
+ @geolocation = geolocation
17
19
  @locality = locality
18
20
  @postal_code = postal_code
19
21
  @custom_param_hash = {}
@@ -1,3 +1,3 @@
1
1
  module SmartyStreets
2
- VERSION = '7.2.3' # DO NOT EDIT (this is updated by a build job when a new release is published)
2
+ VERSION = '7.3.0' # DO NOT EDIT (this is updated by a build job when a new release is published)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartystreets_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.3
4
+ version: 7.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SmartyStreets SDK Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-10 00:00:00.000000000 Z
11
+ date: 2026-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler