Skip to content

Commit

Permalink
Remove the old us-autocomplete api. This no longer exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLCox1 committed Jun 17, 2024
1 parent e55debf commit a7e9423
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 252 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea
coverage
*.gem
/smartystreets-ruby-sdk.iml
3 changes: 0 additions & 3 deletions lib/smartystreets_ruby_sdk.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'smartystreets_ruby_sdk/version'
require 'smartystreets_ruby_sdk/logger'
require 'smartystreets_ruby_sdk/sleeper'

require 'smartystreets_ruby_sdk/batch'
require 'smartystreets_ruby_sdk/client_builder'
require 'smartystreets_ruby_sdk/custom_header_sender'
Expand All @@ -20,11 +19,9 @@
require 'smartystreets_ruby_sdk/static_credentials'
require 'smartystreets_ruby_sdk/status_code_sender'
require 'smartystreets_ruby_sdk/url_prefix_sender'

require 'smartystreets_ruby_sdk/us_extract'
require 'smartystreets_ruby_sdk/us_street'
require 'smartystreets_ruby_sdk/us_zipcode'
require 'smartystreets_ruby_sdk/us_autocomplete'
require 'smartystreets_ruby_sdk/us_autocomplete_pro'
require 'smartystreets_ruby_sdk/international_street'
require 'smartystreets_ruby_sdk/international_autocomplete'
Expand Down
7 changes: 0 additions & 7 deletions lib/smartystreets_ruby_sdk/client_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
require_relative 'us_street/client'
require_relative 'us_zipcode/client'
require_relative 'us_extract/client'
require_relative 'us_autocomplete/client'
require_relative 'international_street/client'
require_relative 'international_autocomplete/client'
require_relative 'us_reverse_geo/client'
Expand All @@ -26,7 +25,6 @@ module SmartyStreets
class ClientBuilder
INTERNATIONAL_STREET_API_URL = 'https://international-street.api.smarty.com/verify'.freeze
INTERNATIONAL_AUTOCOMPLETE_API_URL = "https://international-autocomplete.api.smarty.com/v2/lookup".freeze
US_AUTOCOMPLETE_API_URL = 'https://us-autocomplete.api.smarty.com/suggest'.freeze
US_AUTOCOMPLETE_PRO_API_URL = 'https://us-autocomplete-pro.api.smarty.com/lookup'.freeze
US_EXTRACT_API_URL = 'https://us-extract.api.smarty.com/'.freeze
US_STREET_API_URL = 'https://us-street.api.smarty.com/street-address'.freeze
Expand Down Expand Up @@ -134,11 +132,6 @@ def build_international_autocomplete_api_client
InternationalAutocomplete::Client.new(build_sender, @serializer)
end

def build_us_autocomplete_api_client # Deprecated
ensure_url_prefix_not_null(US_AUTOCOMPLETE_API_URL)
USAutocomplete::Client.new(build_sender, @serializer)
end

def build_us_autocomplete_pro_api_client
ensure_url_prefix_not_null(US_AUTOCOMPLETE_PRO_API_URL)
USAutocompletePro::Client.new(build_sender, @serializer)
Expand Down
9 changes: 0 additions & 9 deletions lib/smartystreets_ruby_sdk/us_autocomplete.rb

This file was deleted.

72 changes: 0 additions & 72 deletions lib/smartystreets_ruby_sdk/us_autocomplete/client.rb

This file was deleted.

This file was deleted.

38 changes: 0 additions & 38 deletions lib/smartystreets_ruby_sdk/us_autocomplete/lookup.rb

This file was deleted.

16 changes: 0 additions & 16 deletions lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions test/smartystreets_ruby_sdk/us_autocomplete/test_suggestion.rb

This file was deleted.

0 comments on commit a7e9423

Please sign in to comment.