square.rb 26.2.0.20230315 → 28.0.0.20230517
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/square/api/base_api.rb +1 -1
- data/lib/square/api/booking_custom_attributes_api.rb +7 -7
- data/lib/square/api/bookings_api.rb +7 -5
- data/lib/square/api/cards_api.rb +2 -2
- data/lib/square/api/catalog_api.rb +3 -3
- data/lib/square/api/checkout_api.rb +1 -1
- data/lib/square/api/customer_custom_attributes_api.rb +7 -7
- data/lib/square/api/disputes_api.rb +2 -2
- data/lib/square/api/gift_card_activities_api.rb +1 -1
- data/lib/square/api/gift_cards_api.rb +6 -5
- data/lib/square/api/inventory_api.rb +25 -25
- data/lib/square/api/invoices_api.rb +6 -6
- data/lib/square/api/location_custom_attributes_api.rb +7 -7
- data/lib/square/api/loyalty_api.rb +24 -23
- data/lib/square/api/merchant_custom_attributes_api.rb +419 -0
- data/lib/square/api/order_custom_attributes_api.rb +6 -6
- data/lib/square/api/payments_api.rb +12 -9
- data/lib/square/api/payouts_api.rb +7 -7
- data/lib/square/api/refunds_api.rb +13 -11
- data/lib/square/api/transactions_api.rb +2 -2
- data/lib/square/api/vendors_api.rb +1 -1
- data/lib/square/api/webhook_subscriptions_api.rb +11 -11
- data/lib/square/client.rb +8 -2
- data/lib/square/configuration.rb +1 -1
- data/lib/square.rb +1 -0
- metadata +3 -2
@@ -25,14 +25,14 @@ module Square
|
|
25
25
|
# @param [String] cursor Optional parameter: A pagination cursor returned by
|
26
26
|
# a previous call to this endpoint. Provide this to retrieve the next set of
|
27
27
|
# results for your original query. For more information, see
|
28
|
-
# [Pagination](https://developer.squareup.com/docs/basics/
|
29
|
-
# .
|
28
|
+
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
29
|
+
# atterns/pagination).
|
30
30
|
# @param [TrueClass|FalseClass] include_disabled Optional parameter:
|
31
|
-
# Includes disabled [Subscription](
|
32
|
-
# enabled [Subscription](
|
31
|
+
# Includes disabled [Subscription](entity:WebhookSubscription)s. By default,
|
32
|
+
# all enabled [Subscription](entity:WebhookSubscription)s are returned.
|
33
33
|
# @param [SortOrder] sort_order Optional parameter: Sorts the returned list
|
34
|
-
# by when the [Subscription](
|
35
|
-
# specified order. This field defaults to ASC.
|
34
|
+
# by when the [Subscription](entity:WebhookSubscription) was created with
|
35
|
+
# the specified order. This field defaults to ASC.
|
36
36
|
# @param [Integer] limit Optional parameter: The maximum number of results
|
37
37
|
# to be returned in a single page. It is possible to receive fewer results
|
38
38
|
# than the specified limit on a given page. The default value of 100 is also
|
@@ -83,7 +83,7 @@ module Square
|
|
83
83
|
|
84
84
|
# Deletes a webhook subscription.
|
85
85
|
# @param [String] subscription_id Required parameter: [REQUIRED] The ID of
|
86
|
-
# the [Subscription](
|
86
|
+
# the [Subscription](entity:WebhookSubscription) to delete.
|
87
87
|
# @return [DeleteWebhookSubscriptionResponse Hash] response from the API call
|
88
88
|
def delete_webhook_subscription(subscription_id:)
|
89
89
|
new_api_call_builder
|
@@ -103,7 +103,7 @@ module Square
|
|
103
103
|
|
104
104
|
# Retrieves a webhook subscription identified by its ID.
|
105
105
|
# @param [String] subscription_id Required parameter: [REQUIRED] The ID of
|
106
|
-
# the [Subscription](
|
106
|
+
# the [Subscription](entity:WebhookSubscription) to retrieve.
|
107
107
|
# @return [RetrieveWebhookSubscriptionResponse Hash] response from the API call
|
108
108
|
def retrieve_webhook_subscription(subscription_id:)
|
109
109
|
new_api_call_builder
|
@@ -123,7 +123,7 @@ module Square
|
|
123
123
|
|
124
124
|
# Updates a webhook subscription.
|
125
125
|
# @param [String] subscription_id Required parameter: [REQUIRED] The ID of
|
126
|
-
# the [Subscription](
|
126
|
+
# the [Subscription](entity:WebhookSubscription) to update.
|
127
127
|
# @param [UpdateWebhookSubscriptionRequest] body Required parameter: An
|
128
128
|
# object containing the fields to POST for the request. See the
|
129
129
|
# corresponding object definition for field details.
|
@@ -151,7 +151,7 @@ module Square
|
|
151
151
|
# Updates a webhook subscription by replacing the existing signature key
|
152
152
|
# with a new one.
|
153
153
|
# @param [String] subscription_id Required parameter: [REQUIRED] The ID of
|
154
|
-
# the [Subscription](
|
154
|
+
# the [Subscription](entity:WebhookSubscription) to update.
|
155
155
|
# @param [UpdateWebhookSubscriptionSignatureKeyRequest] body Required
|
156
156
|
# parameter: An object containing the fields to POST for the request. See
|
157
157
|
# the corresponding object definition for field details.
|
@@ -179,7 +179,7 @@ module Square
|
|
179
179
|
# Tests a webhook subscription by sending a test event to the notification
|
180
180
|
# URL.
|
181
181
|
# @param [String] subscription_id Required parameter: [REQUIRED] The ID of
|
182
|
-
# the [Subscription](
|
182
|
+
# the [Subscription](entity:WebhookSubscription) to test.
|
183
183
|
# @param [TestWebhookSubscriptionRequest] body Required parameter: An object
|
184
184
|
# containing the fields to POST for the request. See the corresponding
|
185
185
|
# object definition for field details.
|
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
|
+
'28.0.0.20230517'
|
8
8
|
end
|
9
9
|
|
10
10
|
def square_version
|
@@ -183,6 +183,12 @@ module Square
|
|
183
183
|
@merchants ||= MerchantsApi.new @global_configuration
|
184
184
|
end
|
185
185
|
|
186
|
+
# Access to merchant_custom_attributes controller.
|
187
|
+
# @return [MerchantCustomAttributesApi] Returns the controller instance.
|
188
|
+
def merchant_custom_attributes
|
189
|
+
@merchant_custom_attributes ||= MerchantCustomAttributesApi.new @global_configuration
|
190
|
+
end
|
191
|
+
|
186
192
|
# Access to orders controller.
|
187
193
|
# @return [OrdersApi] Returns the controller instance.
|
188
194
|
def orders
|
@@ -261,7 +267,7 @@ module Square
|
|
261
267
|
retry_methods: %i[get put], http_callback: nil,
|
262
268
|
environment: 'production',
|
263
269
|
custom_url: 'https://connect.squareup.com', access_token: '',
|
264
|
-
square_version: '2023-
|
270
|
+
square_version: '2023-05-17', user_agent_detail: '',
|
265
271
|
additional_headers: {}, config: nil)
|
266
272
|
@config = if config.nil?
|
267
273
|
Configuration.new(connection: connection, adapter: adapter,
|
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-05-17', user_agent_detail: '',
|
23
23
|
additional_headers: {})
|
24
24
|
|
25
25
|
super connection: connection, adapter: adapter, timeout: timeout,
|
data/lib/square.rb
CHANGED
@@ -59,6 +59,7 @@ require_relative 'square/api/checkout_api'
|
|
59
59
|
require_relative 'square/api/transactions_api'
|
60
60
|
require_relative 'square/api/loyalty_api'
|
61
61
|
require_relative 'square/api/merchants_api'
|
62
|
+
require_relative 'square/api/merchant_custom_attributes_api'
|
62
63
|
require_relative 'square/api/orders_api'
|
63
64
|
require_relative 'square/api/order_custom_attributes_api'
|
64
65
|
require_relative 'square/api/payments_api'
|
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: 28.0.0.20230517
|
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-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- lib/square/api/location_custom_attributes_api.rb
|
121
121
|
- lib/square/api/locations_api.rb
|
122
122
|
- lib/square/api/loyalty_api.rb
|
123
|
+
- lib/square/api/merchant_custom_attributes_api.rb
|
123
124
|
- lib/square/api/merchants_api.rb
|
124
125
|
- lib/square/api/mobile_authorization_api.rb
|
125
126
|
- lib/square/api/o_auth_api.rb
|