square.rb 29.0.1.20230608 → 31.0.0.20230816
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.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/square/api/base_api.rb +2 -2
- data/lib/square/api/booking_custom_attributes_api.rb +2 -2
- data/lib/square/api/bookings_api.rb +34 -3
- data/lib/square/api/cards_api.rb +1 -1
- data/lib/square/api/catalog_api.rb +14 -14
- data/lib/square/api/customer_custom_attributes_api.rb +2 -2
- data/lib/square/api/customers_api.rb +6 -1
- data/lib/square/api/gift_cards_api.rb +1 -1
- data/lib/square/api/location_custom_attributes_api.rb +2 -2
- data/lib/square/api/merchant_custom_attributes_api.rb +2 -2
- data/lib/square/api/order_custom_attributes_api.rb +2 -2
- data/lib/square/api/refunds_api.rb +1 -1
- data/lib/square/api/v1_transactions_api.rb +5 -5
- data/lib/square/api/webhook_subscriptions_api.rb +1 -1
- data/lib/square/client.rb +2 -3
- data/lib/square/configuration.rb +1 -1
- data/test/api/test_locations_api.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a240a4a6d004debbbfa68cda7f06de20424c7095df8cdd3f9874dab556d6f869
|
4
|
+
data.tar.gz: 5387eaf02e834b69df1cd238a8ba68e3d7195966d8b40f831e9942f52066e39f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0296c13c1fc83e7e54d56cc397929f3d50ed3d243505c6372e890e7fec6cb65b6aabafd62bf15f80602982196ab36103bc8e7b816c633665717e172e0a8bdda
|
7
|
+
data.tar.gz: 2dce736c93cff6399463e35427319a4fe82009019c1300eafc39b3588a0056bdbba7bc26489b31f18152e22ffe6e9c7aadf10640b46384d8d0812755e65ab431
|
data/README.md
CHANGED
@@ -77,6 +77,7 @@ rake
|
|
77
77
|
|
78
78
|
### Orders
|
79
79
|
* [Orders]
|
80
|
+
* [Order Custom Attributes]
|
80
81
|
|
81
82
|
### Subscriptions
|
82
83
|
* [Subscriptions]
|
@@ -103,10 +104,13 @@ rake
|
|
103
104
|
|
104
105
|
### Bookings
|
105
106
|
* [Bookings]
|
107
|
+
* [Booking Custom Attributes]
|
106
108
|
|
107
109
|
### Business
|
108
110
|
* [Merchants]
|
111
|
+
* [Merchant Custom Attributes]
|
109
112
|
* [Locations]
|
113
|
+
* [Location Custom Attributes]
|
110
114
|
* [Devices]
|
111
115
|
* [Cash Drawers]
|
112
116
|
* [Vendors]
|
@@ -162,9 +166,13 @@ The following Square APIs are [deprecated](https://developer.squareup.com/docs/b
|
|
162
166
|
[Labor]: doc/api/labor.md
|
163
167
|
[Loyalty]: doc/api/loyalty.md
|
164
168
|
[Bookings]: doc/api/bookings.md
|
169
|
+
[Booking Custom Attributes]: doc/api/booking-custom-attributes.md
|
165
170
|
[Locations]: doc/api/locations.md
|
171
|
+
[Location Custom Attributes]: doc/api/location-custom-attributes.md
|
166
172
|
[Merchants]: doc/api/merchants.md
|
173
|
+
[Merchant Custom Attributes]: doc/api/merchant-custom-attributes.md
|
167
174
|
[Orders]: doc/api/orders.md
|
175
|
+
[Order Custom Attributes]: doc/api/order-custom-attributes.md
|
168
176
|
[Invoices]: doc/api/invoices.md
|
169
177
|
[Apple Pay]: doc/api/apple-pay.md
|
170
178
|
[Refunds]: doc/api/refunds.md
|
data/lib/square/api/base_api.rb
CHANGED
@@ -4,7 +4,7 @@ module Square
|
|
4
4
|
attr_accessor :config, :http_call_back
|
5
5
|
|
6
6
|
def self.user_agent
|
7
|
-
'Square-Ruby-SDK/
|
7
|
+
'Square-Ruby-SDK/31.0.0.20230816 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.user_agent_parameters
|
@@ -31,7 +31,7 @@ module Square
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Creates a new instance of the request builder.
|
34
|
-
# @param [
|
34
|
+
# @param [String] http_method The HTTP method to use in the request.
|
35
35
|
# @param [String] path The endpoint path to use in the request.
|
36
36
|
# @param [String] server The server to extract the base uri for the request.
|
37
37
|
# @return [RequestBuilder] The instance of RequestBuilder.
|
@@ -236,7 +236,7 @@ module Square
|
|
236
236
|
# more information, see
|
237
237
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
238
238
|
# atterns/pagination).
|
239
|
-
# @param [TrueClass|FalseClass] with_definitions Optional parameter:
|
239
|
+
# @param [TrueClass | FalseClass] with_definitions Optional parameter:
|
240
240
|
# Indicates whether to return the [custom attribute
|
241
241
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
242
242
|
# each custom attribute. Set this parameter to `true` to get the name and
|
@@ -310,7 +310,7 @@ module Square
|
|
310
310
|
# retrieve. This key must match the `key` of a custom attribute definition
|
311
311
|
# in the Square seller account. If the requesting application is not the
|
312
312
|
# definition owner, you must use the qualified key.
|
313
|
-
# @param [TrueClass|FalseClass] with_definition Optional parameter:
|
313
|
+
# @param [TrueClass | FalseClass] with_definition Optional parameter:
|
314
314
|
# Indicates whether to return the [custom attribute
|
315
315
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
316
316
|
# the custom attribute. Set this parameter to `true` to get the name and
|
@@ -11,6 +11,9 @@ module Square
|
|
11
11
|
# @param [String] cursor Optional parameter: The pagination cursor from the
|
12
12
|
# preceding response to return the next page of the results. Do not set this
|
13
13
|
# when retrieving the first page of the results.
|
14
|
+
# @param [String] customer_id Optional parameter: The
|
15
|
+
# [customer](entity:Customer) for whom to retrieve bookings. If this is not
|
16
|
+
# set, bookings for all customers are retrieved.
|
14
17
|
# @param [String] team_member_id Optional parameter: The team member for
|
15
18
|
# whom to retrieve bookings. If this is not set, bookings of all members are
|
16
19
|
# retrieved.
|
@@ -26,6 +29,7 @@ module Square
|
|
26
29
|
# @return [ListBookingsResponse Hash] response from the API call
|
27
30
|
def list_bookings(limit: nil,
|
28
31
|
cursor: nil,
|
32
|
+
customer_id: nil,
|
29
33
|
team_member_id: nil,
|
30
34
|
location_id: nil,
|
31
35
|
start_at_min: nil,
|
@@ -36,6 +40,7 @@ module Square
|
|
36
40
|
'default')
|
37
41
|
.query_param(new_parameter(limit, key: 'limit'))
|
38
42
|
.query_param(new_parameter(cursor, key: 'cursor'))
|
43
|
+
.query_param(new_parameter(customer_id, key: 'customer_id'))
|
39
44
|
.query_param(new_parameter(team_member_id, key: 'team_member_id'))
|
40
45
|
.query_param(new_parameter(location_id, key: 'location_id'))
|
41
46
|
.query_param(new_parameter(start_at_min, key: 'start_at_min'))
|
@@ -110,6 +115,32 @@ module Square
|
|
110
115
|
.execute
|
111
116
|
end
|
112
117
|
|
118
|
+
# Bulk-Retrieves a list of bookings by booking IDs.
|
119
|
+
# To call this endpoint with buyer-level permissions, set
|
120
|
+
# `APPOINTMENTS_READ` for the OAuth scope.
|
121
|
+
# To call this endpoint with seller-level permissions, set
|
122
|
+
# `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
|
123
|
+
# @param [BulkRetrieveBookingsRequest] body Required parameter: An object
|
124
|
+
# containing the fields to POST for the request. See the corresponding
|
125
|
+
# object definition for field details.
|
126
|
+
# @return [BulkRetrieveBookingsResponse Hash] response from the API call
|
127
|
+
def bulk_retrieve_bookings(body:)
|
128
|
+
new_api_call_builder
|
129
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
130
|
+
'/v2/bookings/bulk-retrieve',
|
131
|
+
'default')
|
132
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
133
|
+
.body_param(new_parameter(body))
|
134
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
135
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
136
|
+
.auth(Single.new('global')))
|
137
|
+
.response(new_response_handler
|
138
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
139
|
+
.is_api_response(true)
|
140
|
+
.convertor(ApiResponse.method(:create)))
|
141
|
+
.execute
|
142
|
+
end
|
143
|
+
|
113
144
|
# Retrieves a seller's booking profile.
|
114
145
|
# @return [RetrieveBusinessBookingProfileResponse Hash] response from the API call
|
115
146
|
def retrieve_business_booking_profile
|
@@ -127,9 +158,9 @@ module Square
|
|
127
158
|
end
|
128
159
|
|
129
160
|
# Lists booking profiles for team members.
|
130
|
-
# @param [TrueClass|FalseClass] bookable_only Optional parameter:
|
131
|
-
# whether to include only bookable team members in the returned
|
132
|
-
# (`true`) or not (`false`).
|
161
|
+
# @param [TrueClass | FalseClass] bookable_only Optional parameter:
|
162
|
+
# Indicates whether to include only bookable team members in the returned
|
163
|
+
# result (`true`) or not (`false`).
|
133
164
|
# @param [Integer] limit Optional parameter: The maximum number of results
|
134
165
|
# to return in a paged response.
|
135
166
|
# @param [String] cursor Optional parameter: The pagination cursor from the
|
data/lib/square/api/cards_api.rb
CHANGED
@@ -11,7 +11,7 @@ module Square
|
|
11
11
|
# @param [String] customer_id Optional parameter: Limit results to cards
|
12
12
|
# associated with the customer supplied. By default, all cards owned by the
|
13
13
|
# merchant are returned.
|
14
|
-
# @param [TrueClass|FalseClass] include_disabled Optional parameter:
|
14
|
+
# @param [TrueClass | FalseClass] include_disabled Optional parameter:
|
15
15
|
# Includes disabled cards. By default, all enabled cards owned by the
|
16
16
|
# merchant are returned.
|
17
17
|
# @param [String] reference_id Optional parameter: Limit results to cards
|
@@ -308,20 +308,20 @@ module Square
|
|
308
308
|
# any [CatalogTax]($m/CatalogTax) objects that apply to it.
|
309
309
|
# @param [String] object_id Required parameter: The object ID of any type of
|
310
310
|
# catalog objects to be retrieved.
|
311
|
-
# @param [TrueClass|FalseClass] include_related_objects Optional
|
312
|
-
# If `true`, the response will include additional objects that
|
313
|
-
# to the requested objects. Related objects are defined as any
|
314
|
-
# referenced by ID by the results in the `objects` field of the
|
315
|
-
# These objects are put in the `related_objects` field. Setting
|
316
|
-
# `true` is helpful when the objects are needed for immediate
|
317
|
-
# user. This process only goes one level deep. Objects
|
318
|
-
# related objects will not be included. For example, if
|
319
|
-
# of the response contains a CatalogItem, its associated
|
320
|
-
# objects, CatalogTax objects, CatalogImage objects and
|
321
|
-
# will be returned in the `related_objects` field of
|
322
|
-
# `objects` field of the response contains a
|
323
|
-
# parent CatalogItem will be returned in the
|
324
|
-
# response. Default value: `false`
|
311
|
+
# @param [TrueClass | FalseClass] include_related_objects Optional
|
312
|
+
# parameter: If `true`, the response will include additional objects that
|
313
|
+
# are related to the requested objects. Related objects are defined as any
|
314
|
+
# objects referenced by ID by the results in the `objects` field of the
|
315
|
+
# response. These objects are put in the `related_objects` field. Setting
|
316
|
+
# this to `true` is helpful when the objects are needed for immediate
|
317
|
+
# display to a user. This process only goes one level deep. Objects
|
318
|
+
# referenced by the related objects will not be included. For example, if
|
319
|
+
# the `objects` field of the response contains a CatalogItem, its associated
|
320
|
+
# CatalogCategory objects, CatalogTax objects, CatalogImage objects and
|
321
|
+
# CatalogModifierLists will be returned in the `related_objects` field of
|
322
|
+
# the response. If the `objects` field of the response contains a
|
323
|
+
# CatalogItemVariation, its parent CatalogItem will be returned in the
|
324
|
+
# `related_objects` field of the response. Default value: `false`
|
325
325
|
# @param [Integer] catalog_version Optional parameter: Requests objects as
|
326
326
|
# of a specific version of the catalog. This allows you to retrieve
|
327
327
|
# historical versions of objects. The value to retrieve a specific version
|
@@ -242,7 +242,7 @@ module Square
|
|
242
242
|
# more information, see
|
243
243
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
244
244
|
# atterns/pagination).
|
245
|
-
# @param [TrueClass|FalseClass] with_definitions Optional parameter:
|
245
|
+
# @param [TrueClass | FalseClass] with_definitions Optional parameter:
|
246
246
|
# Indicates whether to return the [custom attribute
|
247
247
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
248
248
|
# each custom attribute. Set this parameter to `true` to get the name and
|
@@ -321,7 +321,7 @@ module Square
|
|
321
321
|
# retrieve. This key must match the `key` of a custom attribute definition
|
322
322
|
# in the Square seller account. If the requesting application is not the
|
323
323
|
# definition owner, you must use the qualified key.
|
324
|
-
# @param [TrueClass|FalseClass] with_definition Optional parameter:
|
324
|
+
# @param [TrueClass | FalseClass] with_definition Optional parameter:
|
325
325
|
# Indicates whether to return the [custom attribute
|
326
326
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
327
327
|
# the custom attribute. Set this parameter to `true` to get the name and
|
@@ -26,11 +26,15 @@ module Square
|
|
26
26
|
# @param [SortOrder] sort_order Optional parameter: Indicates whether
|
27
27
|
# customers should be sorted in ascending (`ASC`) or descending (`DESC`)
|
28
28
|
# order. The default value is `ASC`.
|
29
|
+
# @param [TrueClass | FalseClass] count Optional parameter: Indicates
|
30
|
+
# whether to return the total count of customers in the `count` field of the
|
31
|
+
# response. The default value is `false`.
|
29
32
|
# @return [ListCustomersResponse Hash] response from the API call
|
30
33
|
def list_customers(cursor: nil,
|
31
34
|
limit: nil,
|
32
35
|
sort_field: nil,
|
33
|
-
sort_order: nil
|
36
|
+
sort_order: nil,
|
37
|
+
count: false)
|
34
38
|
new_api_call_builder
|
35
39
|
.request(new_request_builder(HttpMethodEnum::GET,
|
36
40
|
'/v2/customers',
|
@@ -39,6 +43,7 @@ module Square
|
|
39
43
|
.query_param(new_parameter(limit, key: 'limit'))
|
40
44
|
.query_param(new_parameter(sort_field, key: 'sort_field'))
|
41
45
|
.query_param(new_parameter(sort_order, key: 'sort_order'))
|
46
|
+
.query_param(new_parameter(count, key: 'count'))
|
42
47
|
.header_param(new_parameter('application/json', key: 'accept'))
|
43
48
|
.auth(Single.new('global')))
|
44
49
|
.response(new_response_handler
|
@@ -13,7 +13,7 @@ module Square
|
|
13
13
|
# cards of all states.
|
14
14
|
# @param [Integer] limit Optional parameter: If a limit is provided, the
|
15
15
|
# endpoint returns only the specified number of results per page. The
|
16
|
-
# maximum value is
|
16
|
+
# maximum value is 200. The default value is 30. For more information, see
|
17
17
|
# [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
|
18
18
|
# ion).
|
19
19
|
# @param [String] cursor Optional parameter: A pagination cursor returned by
|
@@ -259,7 +259,7 @@ module Square
|
|
259
259
|
# more information, see
|
260
260
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
261
261
|
# atterns/pagination).
|
262
|
-
# @param [TrueClass|FalseClass] with_definitions Optional parameter:
|
262
|
+
# @param [TrueClass | FalseClass] with_definitions Optional parameter:
|
263
263
|
# Indicates whether to return the [custom attribute
|
264
264
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
265
265
|
# each custom attribute. Set this parameter to `true` to get the name and
|
@@ -335,7 +335,7 @@ module Square
|
|
335
335
|
# retrieve. This key must match the `key` of a custom attribute definition
|
336
336
|
# in the Square seller account. If the requesting application is not the
|
337
337
|
# definition owner, you must use the qualified key.
|
338
|
-
# @param [TrueClass|FalseClass] with_definition Optional parameter:
|
338
|
+
# @param [TrueClass | FalseClass] with_definition Optional parameter:
|
339
339
|
# Indicates whether to return the [custom attribute
|
340
340
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
341
341
|
# the custom attribute. Set this parameter to `true` to get the name and
|
@@ -259,7 +259,7 @@ module Square
|
|
259
259
|
# more information, see
|
260
260
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
261
261
|
# atterns/pagination).
|
262
|
-
# @param [TrueClass|FalseClass] with_definitions Optional parameter:
|
262
|
+
# @param [TrueClass | FalseClass] with_definitions Optional parameter:
|
263
263
|
# Indicates whether to return the [custom attribute
|
264
264
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
265
265
|
# each custom attribute. Set this parameter to `true` to get the name and
|
@@ -335,7 +335,7 @@ module Square
|
|
335
335
|
# retrieve. This key must match the `key` of a custom attribute definition
|
336
336
|
# in the Square seller account. If the requesting application is not the
|
337
337
|
# definition owner, you must use the qualified key.
|
338
|
-
# @param [TrueClass|FalseClass] with_definition Optional parameter:
|
338
|
+
# @param [TrueClass | FalseClass] with_definition Optional parameter:
|
339
339
|
# Indicates whether to return the [custom attribute
|
340
340
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
341
341
|
# the custom attribute. Set this parameter to `true` to get the name and
|
@@ -274,7 +274,7 @@ module Square
|
|
274
274
|
# see
|
275
275
|
# [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
|
276
276
|
# ion).
|
277
|
-
# @param [TrueClass|FalseClass] with_definitions Optional parameter:
|
277
|
+
# @param [TrueClass | FalseClass] with_definitions Optional parameter:
|
278
278
|
# Indicates whether to return the [custom attribute
|
279
279
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
280
280
|
# each custom attribute. Set this parameter to `true` to get the name and
|
@@ -357,7 +357,7 @@ module Square
|
|
357
357
|
# concurrency](https://developer.squareup.com/docs/build-basics/common-api-p
|
358
358
|
# atterns/optimistic-concurrency) control, include this optional field and
|
359
359
|
# specify the current version of the custom attribute.
|
360
|
-
# @param [TrueClass|FalseClass] with_definition Optional parameter:
|
360
|
+
# @param [TrueClass | FalseClass] with_definition Optional parameter:
|
361
361
|
# Indicates whether to return the [custom attribute
|
362
362
|
# definition](entity:CustomAttributeDefinition) in the `definition` field of
|
363
363
|
# each custom attribute. Set this parameter to `true` to get the name and
|
@@ -7,7 +7,7 @@ module Square
|
|
7
7
|
# seconds to appear.
|
8
8
|
# The maximum results per page is 100.
|
9
9
|
# @param [String] begin_time Optional parameter: Indicates the start of the
|
10
|
-
# time range to retrieve each PaymentRefund` for, in RFC 3339 format. The
|
10
|
+
# time range to retrieve each `PaymentRefund` for, in RFC 3339 format. The
|
11
11
|
# range is determined using the `created_at` field for each `PaymentRefund`.
|
12
12
|
# Default: The current time minus one year.
|
13
13
|
# @param [String] end_time Optional parameter: Indicates the end of the time
|
@@ -11,7 +11,7 @@ module Square
|
|
11
11
|
# @param [String] batch_token Optional parameter: A pagination cursor to
|
12
12
|
# retrieve the next set of results for your original query to the
|
13
13
|
# endpoint.
|
14
|
-
# @return [
|
14
|
+
# @return [Array[V1Order] Hash] response from the API call
|
15
15
|
def v1_list_orders(location_id:,
|
16
16
|
order: nil,
|
17
17
|
limit: nil,
|
@@ -127,11 +127,11 @@ module Square
|
|
127
127
|
# @param [String] batch_token Optional parameter: A pagination cursor to
|
128
128
|
# retrieve the next set of results for your original query to the
|
129
129
|
# endpoint.
|
130
|
-
# @param [TrueClass|FalseClass] include_partial Optional parameter:
|
130
|
+
# @param [TrueClass | FalseClass] include_partial Optional parameter:
|
131
131
|
# Indicates whether or not to include partial payments in the response.
|
132
132
|
# Partial payments will have the tenders collected so far, but the
|
133
133
|
# itemizations will be empty until the payment is completed.
|
134
|
-
# @return [
|
134
|
+
# @return [Array[V1Payment] Hash] response from the API call
|
135
135
|
def v1_list_payments(location_id:,
|
136
136
|
order: nil,
|
137
137
|
begin_time: nil,
|
@@ -213,7 +213,7 @@ module Square
|
|
213
213
|
# @param [String] batch_token Optional parameter: A pagination cursor to
|
214
214
|
# retrieve the next set of results for your original query to the
|
215
215
|
# endpoint.
|
216
|
-
# @return [
|
216
|
+
# @return [Array[V1Refund] Hash] response from the API call
|
217
217
|
def v1_list_refunds(location_id:,
|
218
218
|
order: nil,
|
219
219
|
begin_time: nil,
|
@@ -306,7 +306,7 @@ module Square
|
|
306
306
|
# @param [String] batch_token Optional parameter: A pagination cursor to
|
307
307
|
# retrieve the next set of results for your original query to the
|
308
308
|
# endpoint.
|
309
|
-
# @return [
|
309
|
+
# @return [Array[V1Settlement] Hash] response from the API call
|
310
310
|
def v1_list_settlements(location_id:,
|
311
311
|
order: nil,
|
312
312
|
begin_time: nil,
|
@@ -27,7 +27,7 @@ module Square
|
|
27
27
|
# results for your original query. For more information, see
|
28
28
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
29
29
|
# atterns/pagination).
|
30
|
-
# @param [TrueClass|FalseClass] include_disabled Optional parameter:
|
30
|
+
# @param [TrueClass | FalseClass] include_disabled Optional parameter:
|
31
31
|
# Includes disabled [Subscription](entity:WebhookSubscription)s. By default,
|
32
32
|
# all enabled [Subscription](entity:WebhookSubscription)s are returned.
|
33
33
|
# @param [SortOrder] sort_order Optional parameter: Sorts the returned list
|
data/lib/square/client.rb
CHANGED
@@ -4,7 +4,7 @@ module Square
|
|
4
4
|
attr_reader :config, :auth_managers
|
5
5
|
|
6
6
|
def sdk_version
|
7
|
-
'
|
7
|
+
'31.0.0.20230816'
|
8
8
|
end
|
9
9
|
|
10
10
|
def square_version
|
@@ -267,7 +267,7 @@ module Square
|
|
267
267
|
retry_methods: %i[get put], http_callback: nil,
|
268
268
|
environment: 'production',
|
269
269
|
custom_url: 'https://connect.squareup.com', access_token: '',
|
270
|
-
square_version: '2023-
|
270
|
+
square_version: '2023-08-16', user_agent_detail: '',
|
271
271
|
additional_headers: {}, config: nil)
|
272
272
|
@config = if config.nil?
|
273
273
|
Configuration.new(connection: connection, adapter: adapter,
|
@@ -300,7 +300,6 @@ module Square
|
|
300
300
|
agent_parameters: user_agent_params)
|
301
301
|
.additional_headers(@config.additional_headers)
|
302
302
|
.global_header('Square-Version', @config.square_version)
|
303
|
-
.sdk_module(Square)
|
304
303
|
.symbolize_hash(true)
|
305
304
|
|
306
305
|
initialize_auth_managers(@global_configuration)
|
data/lib/square/configuration.rb
CHANGED
@@ -19,7 +19,7 @@ module Square
|
|
19
19
|
retry_methods: %i[get put], http_callback: nil,
|
20
20
|
environment: 'production',
|
21
21
|
custom_url: 'https://connect.squareup.com', access_token: '',
|
22
|
-
square_version: '2023-
|
22
|
+
square_version: '2023-08-16', user_agent_detail: '',
|
23
23
|
additional_headers: {})
|
24
24
|
|
25
25
|
super connection: connection, adapter: adapter, timeout: timeout,
|
@@ -10,7 +10,7 @@ class LocationsApiTests < ApiTestBase
|
|
10
10
|
|
11
11
|
# Provides details about all of the seller's [locations](https://developer.squareup.com/docs/locations-api),
|
12
12
|
#including those with an inactive status.
|
13
|
-
def test_list_locations
|
13
|
+
def test_list_locations
|
14
14
|
|
15
15
|
# Perform the API call through the SDK function
|
16
16
|
result = @controller.list_locations()
|
@@ -19,4 +19,4 @@ class LocationsApiTests < ApiTestBase
|
|
19
19
|
assert_equal(200, @response_catcher.response.status_code)
|
20
20
|
end
|
21
21
|
|
22
|
-
end
|
22
|
+
end
|
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:
|
4
|
+
version: 31.0.0.20230816
|
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: 2023-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: apimatic_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: apimatic_faraday_client_adapter
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|