Skip to content

Commit

Permalink
Pointing to *.api.smarty.com domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Oliver committed Jul 7, 2023
1 parent 1308084 commit bfbe96f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions Sources/SmartyStreets/ClientBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import Foundation
var urlPrefix:String!
var proxy:NSDictionary!
var licenses:[String] = []
var internationalStreetApiURL:String = "https://international-street.api.smartystreets.com/verify"
var internationalAutocompleteApiURL:String = "https://international-autocomplete.api.smartystreets.com/lookup"
var usAutocompleteApiURL:String = "https://us-autocomplete.api.smartystreets.com/suggest"
var usAutocompleteProApiURL:String = "https://us-autocomplete-pro.api.smartystreets.com/lookup"
var usExtractApiURL:String = "https://us-extract.api.smartystreets.com"
var usStreetApiURL:String = "https://us-street.api.smartystreets.com/street-address"
var usZipCodeApiURL:String = "https://us-zipcode.api.smartystreets.com/lookup"
var usReverseGeoApiURL:String = "https://us-reverse-geo.api.smartystreets.com/lookup"
var internationalStreetApiURL:String = "https://international-street.api.smarty.com/verify"
var internationalAutocompleteApiURL:String = "https://international-autocomplete.api.smarty.com/lookup"
var usAutocompleteApiURL:String = "https://us-autocomplete.api.smarty.com/suggest"
var usAutocompleteProApiURL:String = "https://us-autocomplete-pro.api.smarty.com/lookup"
var usExtractApiURL:String = "https://us-extract.api.smarty.com"
var usStreetApiURL:String = "https://us-street.api.smarty.com/street-address"
var usZipCodeApiURL:String = "https://us-zipcode.api.smarty.com/lookup"
var usReverseGeoApiURL:String = "https://us-reverse-geo.api.smarty.com/lookup"

override init() {
self.serializer = SmartySerializer()
Expand Down
10 changes: 5 additions & 5 deletions Tests/SmartyStreetsTests/ClientBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ class ClientBuilderTests: XCTestCase {
XCTAssertEqual(client.maxRetries, 5)
XCTAssertEqual(client.maxTimeout, 10000)
XCTAssertEqual(client.debug, false)
XCTAssertEqual(client.internationalStreetApiURL, "https://international-street.api.smartystreets.com/verify")
XCTAssertEqual(client.usAutocompleteApiURL, "https://us-autocomplete.api.smartystreets.com/suggest")
XCTAssertEqual(client.usExtractApiURL, "https://us-extract.api.smartystreets.com")
XCTAssertEqual(client.usStreetApiURL, "https://us-street.api.smartystreets.com/street-address")
XCTAssertEqual(client.usZipCodeApiURL, "https://us-zipcode.api.smartystreets.com/lookup")
XCTAssertEqual(client.internationalStreetApiURL, "https://international-street.api.smarty.com/verify")
XCTAssertEqual(client.usAutocompleteApiURL, "https://us-autocomplete.api.smarty.com/suggest")
XCTAssertEqual(client.usExtractApiURL, "https://us-extract.api.smarty.com")
XCTAssertEqual(client.usStreetApiURL, "https://us-street.api.smarty.com/street-address")
XCTAssertEqual(client.usZipCodeApiURL, "https://us-zipcode.api.smarty.com/lookup")
}

func testInitWithSigner() {
Expand Down

0 comments on commit bfbe96f

Please sign in to comment.