square_connect 2.4.0.170 → 2.4.0.175

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7cfc2e716f5e621d8fa088ef2938d39819713ef
4
- data.tar.gz: 014bc43e82ea20963232ea56af27ed67d135c990
3
+ metadata.gz: 164bd7dfb404078f9769e7229f4279401d5e347b
4
+ data.tar.gz: 7da70e0f767aedd553f09addc9ce86ec1747cf85
5
5
  SHA512:
6
- metadata.gz: 24b135ba25729c8a2741a895e9c49f75ae7e8e3738ffab6f67018b345cbf6df46c44b1a414f393c29c280f55b20de3d58c78a23b6e542811ecba666f4568e5f4
7
- data.tar.gz: ad25c3ef959e269b32217b811aae652955259585e9ddfe1bb482536b04c51ef27cd408f8c89aa7e22dfeff4484cf937b33219370c84b3d52a23b58275df92dc8
6
+ metadata.gz: 974467a3e2712c96ab7d863f2cc4e29988c6bfbf7ec49709fe1e9c708057dd9ad878cd2a0b4cc4310166049d7d88971000f9773588171c4fd2149b09e060a776
7
+ data.tar.gz: d28880ee602068f6d4e58658513c3bbec05b92ff346314b0acab60e3c0977ba3c498086533efe8e6b7c3e85a38a3f040a9e5cf72a7da2e0cdfaddfe50258a27b
data/README.md CHANGED
@@ -57,19 +57,15 @@ SquareConnect.configure do |config|
57
57
  config.access_token = 'YOUR ACCESS TOKEN'
58
58
  end
59
59
 
60
- api_instance = SquareConnect::ApplePayApi.new
61
-
62
- body = SquareConnect::RegisterDomainRequest.new # RegisterDomainRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
63
-
64
-
60
+ # The SDK throws an exception if a Connect endpoint responds with anything besides 200 (success).
61
+ # This block catches any exceptions that occur from the request.
62
+ locations_api = SquareConnect::LocationsApi.new
65
63
  begin
66
- #RegisterDomain
67
- result = api_instance.register_domain(body)
68
- p result
64
+ locations = locations_api.list_locations.locations
69
65
  rescue SquareConnect::ApiError => e
70
- puts "Exception when calling ApplePayApi->register_domain: #{e}"
66
+ puts "Error encountered while loading the locations: #{e.message}"
67
+ return
71
68
  end
72
-
73
69
  ```
74
70
 
75
71
  ## Documentation for API Endpoints
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0.170
4
+ version: 2.4.0.175
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square, Inc.