square.rb 5.1.0.20200325 → 6.0.0.20200625

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,15 +6,6 @@ module Square
6
6
  end
7
7
 
8
8
  # Get the general information for a business.
9
- # ---
10
- # - __Deprecation date__: 2019-11-20
11
- # - [__Retirement
12
- # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
13
- # recated): 2020-11-18
14
- # - [Migration
15
- # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-locat
16
- # ions)
17
- # ---
18
9
  # @return [V1Merchant Hash] response from the API call
19
10
  def retrieve_business
20
11
  warn 'Endpoint retrieve_business in V1LocationsApi is deprecated'
@@ -44,15 +35,6 @@ module Square
44
35
 
45
36
  # Provides details for all business locations associated with a Square
46
37
  # account, including the Square-assigned object ID for the location.
47
- # ---
48
- # - __Deprecation date__: 2019-11-20
49
- # - [__Retirement
50
- # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
51
- # recated): 2020-11-18
52
- # - [Migration
53
- # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-locat
54
- # ions)
55
- # ---
56
38
  # @return [List of V1Merchant Hash] response from the API call
57
39
  def list_locations
58
40
  warn 'Endpoint list_locations in V1LocationsApi is deprecated'
@@ -8,15 +8,6 @@ module Square
8
8
  # Provides non-confidential details for all of a location's associated bank
9
9
  # accounts. This endpoint does not provide full bank account numbers, and
10
10
  # there is no way to obtain a full bank account number with the Connect API.
11
- # ---
12
- # - __Deprecation date__: 2020-02-26
13
- # - [__Retirement
14
- # date__](https://developer.squareup.com/docs/docs/build-basics/api-lifecycl
15
- # e#deprecated): 2021-02-26
16
- # - [Migration
17
- # guide](https://developer.squareup.com/docs/docs/migrate-from-v1/guides/v1-
18
- # bankaccounts)
19
- # ---
20
11
  # @param [String] location_id Required parameter: The ID of the location to
21
12
  # list bank accounts for.
22
13
  # @return [List of V1BankAccount Hash] response from the API call
@@ -53,15 +44,6 @@ module Square
53
44
  # Provides non-confidential details for a merchant's associated bank
54
45
  # account. This endpoint does not provide full bank account numbers, and
55
46
  # there is no way to obtain a full bank account number with the Connect API.
56
- # ---
57
- # - __Deprecation date__: 2020-02-26
58
- # - [__Retirement
59
- # date__](https://developer.squareup.com/docs/docs/build-basics/api-lifecycl
60
- # e#deprecated): 2021-02-26
61
- # - [Migration
62
- # guide](https://developer.squareup.com/docs/docs/migrate-from-v1/guides/v1-
63
- # bankaccounts)
64
- # ---
65
47
  # @param [String] location_id Required parameter: The ID of the bank
66
48
  # account's associated location.
67
49
  # @param [String] bank_account_id Required parameter: The bank account's
@@ -272,7 +254,7 @@ module Square
272
254
  end_time: nil,
273
255
  limit: nil,
274
256
  batch_token: nil,
275
- include_partial: nil)
257
+ include_partial: false)
276
258
  # Prepare query url.
277
259
  _query_builder = config.get_base_uri
278
260
  _query_builder << '/v1/{location_id}/payments'
@@ -4,11 +4,11 @@ module Square
4
4
  attr_reader :config
5
5
 
6
6
  def sdk_version
7
- '5.1.0.20200325'
7
+ '6.0.0.20200625'
8
8
  end
9
9
 
10
10
  def square_version
11
- '2020-03-25'
11
+ '2020-06-25'
12
12
  end
13
13
 
14
14
  # Access to mobile_authorization controller.
@@ -77,6 +77,24 @@ module Square
77
77
  @customers ||= CustomersApi.new config
78
78
  end
79
79
 
80
+ # Access to customer_groups controller.
81
+ # @return [CustomerGroupsApi] Returns the controller instance.
82
+ def customer_groups
83
+ @customer_groups ||= CustomerGroupsApi.new config
84
+ end
85
+
86
+ # Access to customer_segments controller.
87
+ # @return [CustomerSegmentsApi] Returns the controller instance.
88
+ def customer_segments
89
+ @customer_segments ||= CustomerSegmentsApi.new config
90
+ end
91
+
92
+ # Access to devices controller.
93
+ # @return [DevicesApi] Returns the controller instance.
94
+ def devices
95
+ @devices ||= DevicesApi.new config
96
+ end
97
+
80
98
  # Access to disputes controller.
81
99
  # @return [DisputesApi] Returns the controller instance.
82
100
  def disputes
@@ -131,6 +149,12 @@ module Square
131
149
  @transactions ||= TransactionsApi.new config
132
150
  end
133
151
 
152
+ # Access to loyalty controller.
153
+ # @return [LoyaltyApi] Returns the controller instance.
154
+ def loyalty
155
+ @loyalty ||= LoyaltyApi.new config
156
+ end
157
+
134
158
  # Access to merchants controller.
135
159
  # @return [MerchantsApi] Returns the controller instance.
136
160
  def merchants
@@ -149,6 +173,18 @@ module Square
149
173
  @refunds ||= RefundsApi.new config
150
174
  end
151
175
 
176
+ # Access to team controller.
177
+ # @return [TeamApi] Returns the controller instance.
178
+ def team
179
+ @team ||= TeamApi.new config
180
+ end
181
+
182
+ # Access to terminal controller.
183
+ # @return [TerminalApi] Returns the controller instance.
184
+ def terminal
185
+ @terminal ||= TerminalApi.new config
186
+ end
187
+
152
188
  def initialize(timeout: 60, max_retries: 0, retry_interval: 1,
153
189
  backoff_factor: 1, environment: 'production',
154
190
  access_token: 'TODO: Replace', additional_headers: {},
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0.20200325
4
+ version: 6.0.0.20200625
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square Developer Platform
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging
@@ -124,12 +124,16 @@ files:
124
124
  - lib/square/api/cash_drawers_api.rb
125
125
  - lib/square/api/catalog_api.rb
126
126
  - lib/square/api/checkout_api.rb
127
+ - lib/square/api/customer_groups_api.rb
128
+ - lib/square/api/customer_segments_api.rb
127
129
  - lib/square/api/customers_api.rb
130
+ - lib/square/api/devices_api.rb
128
131
  - lib/square/api/disputes_api.rb
129
132
  - lib/square/api/employees_api.rb
130
133
  - lib/square/api/inventory_api.rb
131
134
  - lib/square/api/labor_api.rb
132
135
  - lib/square/api/locations_api.rb
136
+ - lib/square/api/loyalty_api.rb
133
137
  - lib/square/api/merchants_api.rb
134
138
  - lib/square/api/mobile_authorization_api.rb
135
139
  - lib/square/api/o_auth_api.rb
@@ -137,6 +141,8 @@ files:
137
141
  - lib/square/api/payments_api.rb
138
142
  - lib/square/api/refunds_api.rb
139
143
  - lib/square/api/reporting_api.rb
144
+ - lib/square/api/team_api.rb
145
+ - lib/square/api/terminal_api.rb
140
146
  - lib/square/api/transactions_api.rb
141
147
  - lib/square/api/v1_employees_api.rb
142
148
  - lib/square/api/v1_items_api.rb
@@ -186,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
192
  - !ruby/object:Gem::Version
187
193
  version: '0'
188
194
  requirements: []
189
- rubygems_version: 3.0.3
195
+ rubygems_version: 3.0.8
190
196
  signing_key:
191
197
  specification_version: 4
192
198
  summary: square