smartystreets_ruby_sdk 5.10.0 → 5.12.0

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: f89f84d4011a28b76ab8d465d6739df79e5a1627913aba1727a86db053e3af30
4
- data.tar.gz: 4a14fd611da96954d6741aa14298f86e6348deeae245306d10eb52630f23a670
3
+ metadata.gz: da99735aec7ae0ebd2254ce761a20249da0624bf0bf532b4e27e131a52b88096
4
+ data.tar.gz: 04ccfdc4e56bec3816863d02527895410697cbfc0a7828b98ff9bd716dee5ffb
5
5
  SHA512:
6
- metadata.gz: 2e2d508cb7906c19db797a60feb00adbd5e132e4aadd2b656b7e362253a74308a1e792bef5e8216b2e1bb741ccd5228a86e329ea16835151d1cf094b5097dbe7
7
- data.tar.gz: 7bf6945deeb19c48e22bd3f5aa78b42e5aa4a678a977c6a9aeef00fa4457423e7748e69e8a4f4f9798683c618e2a24c2b55f632f86c50d2541b03717f8f382bf
6
+ metadata.gz: bf1b020b085b484eb6278e497c20511282edb8c75fc9251e77723256a7920d58b464213f28e40947dcdec6c9599203f37f1d9a3dca9d471e9e3ff993bd8de104
7
+ data.tar.gz: e2cdab76c3838bc7d85c712218e4111c4f528d9133a933a688a2623865be162051f03c23d2f66d9e44ec5e13bdc18fbe64c1d642ca11d15b544389cf6b222ca0
@@ -14,7 +14,11 @@ class InternationalExample
14
14
  # auth_token = ENV['SMARTY_AUTH_TOKEN']
15
15
 
16
16
  credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
17
- client = SmartyStreets::ClientBuilder.new(credentials) # .with_licenses(%w(international-fake-license))
17
+
18
+ # The appropriate license values to be used for your subscriptions
19
+ # can be found on the Subscriptions page of the account dashboard.
20
+ # https://www.smartystreets.com/docs/cloud/licensing
21
+ client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['international-global-plus-cloud'])
18
22
  .build_international_street_api_client
19
23
 
20
24
  # Documentation for input fields can be found at:
@@ -14,7 +14,12 @@ class USAutocompleteProExample
14
14
  referer = ENV['SMARTY_AUTH_REFERER']
15
15
 
16
16
  credentials = SmartyStreets::SharedCredentials.new(key, referer)
17
- client = SmartyStreets::ClientBuilder.new(credentials).build_us_autocomplete_pro_api_client
17
+
18
+ # The appropriate license values to be used for your subscriptions
19
+ # can be found on the Subscriptions page of the account dashboard.
20
+ # https://www.smartystreets.com/docs/cloud/licensing
21
+ client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-autocomplete-pro-cloud'])
22
+ .build_us_autocomplete_pro_api_client
18
23
 
19
24
  # Documentation for input fields can be found at:
20
25
  # https://smartystreets.com/docs/cloud/us-autocomplete-api
@@ -14,7 +14,11 @@ class USReverseGeoExample
14
14
  # auth_token = ENV['SMARTY_AUTH_TOKEN']
15
15
 
16
16
  credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
17
- client = SmartyStreets::ClientBuilder.new(credentials)
17
+
18
+ # The appropriate license values to be used for your subscriptions
19
+ # can be found on the Subscriptions page of the account dashboard.
20
+ # https://www.smartystreets.com/docs/cloud/licensing
21
+ client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-reverse-geocoding-cloud'])
18
22
  .build_us_reverse_geo_api_client
19
23
 
20
24
  # Documentation for input fields can be found at:
@@ -16,7 +16,10 @@ class USStreetMultipleAddressExample
16
16
 
17
17
  credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
18
18
 
19
- client = SmartyStreets::ClientBuilder.new(credentials) # .with_licenses(%w(us-rooftop-geocoding-cloud))
19
+ # The appropriate license values to be used for your subscriptions
20
+ # can be found on the Subscriptions page of the account dashboard.
21
+ # https://www.smartystreets.com/docs/cloud/licensing
22
+ client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-rooftop-geocoding-cloud'])
20
23
  .build_us_street_api_client
21
24
  batch = SmartyStreets::Batch.new
22
25
 
@@ -33,7 +36,7 @@ class USStreetMultipleAddressExample
33
36
  batch[0].lastline = 'Mountain view, California'
34
37
  batch[0].zipcode = '21229'
35
38
  batch[0].candidates = 3
36
- batch[0].match = 'invalid'.freeze # "invalid" is the most permissive match,
39
+ batch[0].match = Lookup.INVALID # "invalid" is the most permissive match,
37
40
  # this will always return at least one result even if the address is invalid.
38
41
  # Refer to the documentation for additional Match Strategy options.
39
42
 
@@ -13,7 +13,10 @@ class USStreetSingleAddressExample
13
13
 
14
14
  credentials = SmartyStreets::StaticCredentials.new(auth_id, auth_token)
15
15
 
16
- client = SmartyStreets::ClientBuilder.new(credentials).
16
+ # The appropriate license values to be used for your subscriptions
17
+ # can be found on the Subscriptions page of the account dashboard.
18
+ # https://www.smartystreets.com/docs/cloud/licensing
19
+ client = SmartyStreets::ClientBuilder.new(credentials).with_licenses(['us-rooftop-geocoding-cloud'])
17
20
  # with_proxy('localhost', 8080, 'proxyUser', 'proxyPassword'). # Uncomment this line to try it with a proxy
18
21
  build_us_street_api_client
19
22
 
@@ -31,7 +34,7 @@ class USStreetSingleAddressExample
31
34
  lookup.state = 'CA'
32
35
  lookup.zipcode = '21229'
33
36
  lookup.candidates = 3
34
- lookup.match = 'invalid'.freeze # "invalid" is the most permissive match,
37
+ lookup.match = Lookup.INVALID # "invalid" is the most permissive match,
35
38
  # this will always return at least one result even if the address is invalid.
36
39
  # Refer to the documentation for additional Match Strategy options.
37
40
 
@@ -3,7 +3,7 @@ module SmartyStreets
3
3
  # See "https://smartystreets.com/docs/cloud/us-street-api#analysis"
4
4
  class Analysis
5
5
  attr_reader :lacs_link_code, :active, :footnotes, :lacs_link_indicator, :dpv_match_code, :is_suite_link_match,
6
- :is_ews_match, :dpv_footnotes, :cmra, :vacant, :no_stat
6
+ :is_ews_match, :dpv_footnotes, :cmra, :vacant, :no_stat, :enhanced_match
7
7
 
8
8
  def initialize(obj)
9
9
  @dpv_match_code = obj['dpv_match_code']
@@ -17,6 +17,7 @@ module SmartyStreets
17
17
  @lacs_link_code = obj['lacslink_code']
18
18
  @lacs_link_indicator = obj['lacslink_indicator']
19
19
  @is_suite_link_match = obj['suitelink_match']
20
+ @enhanced_match = obj['enhanced_match']
20
21
  end
21
22
  end
22
23
  end
@@ -2,8 +2,9 @@ module SmartyStreets
2
2
  module USStreet
3
3
  module MatchType
4
4
  STRICT = 'strict'.freeze
5
- RANGE = 'range'.freeze
5
+ RANGE = 'range'.freeze # Deprecated
6
6
  INVALID = 'invalid'.freeze
7
+ ENHANCED = 'enhanced'.freeze
7
8
  end
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module SmartyStreets
2
- VERSION = '5.10.0' # DO NOT EDIT (this is updated by a build job when a new release is published)
2
+ VERSION = '5.12.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: 5.10.0
4
+ version: 5.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SmartyStreets SDK Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-23 00:00:00.000000000 Z
11
+ date: 2021-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,7 +72,7 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: 0.12.0
75
- description:
75
+ description:
76
76
  email:
77
77
  - support@smartystreets.com
78
78
  executables: []
@@ -175,7 +175,7 @@ homepage: https://github.com/smartystreets/smartystreets-ruby-sdk
175
175
  licenses:
176
176
  - Apache-2.0
177
177
  metadata: {}
178
- post_install_message:
178
+ post_install_message:
179
179
  rdoc_options: []
180
180
  require_paths:
181
181
  - lib
@@ -190,8 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.1.2
194
- signing_key:
193
+ rubygems_version: 3.2.22
194
+ signing_key:
195
195
  specification_version: 4
196
196
  summary: An official library for the SmartyStreets APIs
197
197
  test_files: []