square.rb 26.2.0.20230315 → 27.0.0.20230419

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fe50fe3512834461866b9d1ebbd83bee0ca14f16313e4928f7ae114105ffc22
4
- data.tar.gz: e168aac2b86e67820df82977d1cd628f83566abbc77e821f029f509fadb19b5d
3
+ metadata.gz: fdabb66c5a5371d040a4be402521d22cbbae8048a8a454d86de0d3ac139efd73
4
+ data.tar.gz: cd7609d304a6ff18b1fb32ae192389f0aaec364f8f0af3f3befa192b3141e4be
5
5
  SHA512:
6
- metadata.gz: 1f4960b642816caa0d3aa71aceed7b834ca127c188b4e91098e56beacabb501531e67cf2747bdd3045e3dceedc565d9db9ec99f2fdfd369bdbec2c2bb110ca4d
7
- data.tar.gz: 745fb7ff183d3445c7edcbe352dbb701597acf2a551971d9cfdd0cfa57e3002a085c3497404b52b49a39d89b7221991f092c14b7fec09352d6fe2b203def7940
6
+ metadata.gz: 8400694e8fe8d5c33cf5825cddeb92a1965abf7f9441df640ef0fbeff21ab700a006c349d9449a86f4c7b39a8be4e37815c18159d3de093a6a4196335ee7f843
7
+ data.tar.gz: c7ebf17f937a606f6ac3b82a46a532015340e8b906fa1908cfc615e1f46527491f1853b0e6d66d054634a294312385befee3ea482c67dd025400d034ea0db36c
data/README.md CHANGED
@@ -126,6 +126,9 @@ rake
126
126
  * [Mobile Authorization]
127
127
  * [OAuth]
128
128
 
129
+ ### Webhook Subscriptions
130
+ * [Webhook Subscriptions]
131
+
129
132
  ## Deprecated APIs
130
133
 
131
134
  The following Square APIs are [deprecated](https://developer.squareup.com/docs/build-basics/api-lifecycle):
@@ -176,3 +179,4 @@ The following Square APIs are [deprecated](https://developer.squareup.com/docs/b
176
179
  [Gift Card Activities]: doc/api/gift-card-activities.md
177
180
  [Employees]: doc/api/employees.md
178
181
  [Transactions]: doc/api/transactions.md
182
+ [Webhook Subscriptions]: doc/api/webhook-subscriptions.md
@@ -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/26.2.0.20230315 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
7
+ 'Square-Ruby-SDK/27.0.0.20230419 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
8
8
  end
9
9
 
10
10
  def self.user_agent_parameters
@@ -223,7 +223,7 @@ module Square
223
223
  # To call this endpoint with seller-level permissions, set
224
224
  # `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
225
225
  # @param [String] booking_id Required parameter: The ID of the target
226
- # [booking]($m/Booking).
226
+ # [booking](entity:Booking).
227
227
  # @param [Integer] limit Optional parameter: The maximum number of results
228
228
  # to return in a single paged response. This limit is advisory. The response
229
229
  # might contain more or fewer results. The minimum value is 1 and the
@@ -238,7 +238,7 @@ module Square
238
238
  # atterns/pagination).
239
239
  # @param [TrueClass|FalseClass] with_definitions Optional parameter:
240
240
  # Indicates whether to return the [custom attribute
241
- # definition]($m/CustomAttributeDefinition) in the `definition` field of
241
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
242
242
  # each custom attribute. Set this parameter to `true` to get the name and
243
243
  # description of each custom attribute, information about the data type, or
244
244
  # other definition details. The default value is `false`.
@@ -274,7 +274,7 @@ module Square
274
274
  # seller must have subscribed to *Appointments Plus*
275
275
  # or *Appointments Premium*.
276
276
  # @param [String] booking_id Required parameter: The ID of the target
277
- # [booking]($m/Booking).
277
+ # [booking](entity:Booking).
278
278
  # @param [String] key Required parameter: The key of the custom attribute to
279
279
  # delete. This key must match the `key` of a custom attribute definition in
280
280
  # the Square seller account. If the requesting application is not the
@@ -305,15 +305,15 @@ module Square
305
305
  # To call this endpoint with seller-level permissions, set
306
306
  # `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
307
307
  # @param [String] booking_id Required parameter: The ID of the target
308
- # [booking]($m/Booking).
308
+ # [booking](entity:Booking).
309
309
  # @param [String] key Required parameter: The key of the custom attribute to
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
313
  # @param [TrueClass|FalseClass] with_definition Optional parameter:
314
314
  # Indicates whether to return the [custom attribute
315
- # definition]($m/CustomAttributeDefinition) in the `definition` field of the
316
- # custom attribute. Set this parameter to `true` to get the name and
315
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
316
+ # the custom attribute. Set this parameter to `true` to get the name and
317
317
  # description of the custom attribute, information about the data type, or
318
318
  # other definition details. The default value is `false`.
319
319
  # @param [Integer] version Optional parameter: The current version of the
@@ -355,7 +355,7 @@ module Square
355
355
  # seller must have subscribed to *Appointments Plus*
356
356
  # or *Appointments Premium*.
357
357
  # @param [String] booking_id Required parameter: The ID of the target
358
- # [booking]($m/Booking).
358
+ # [booking](entity:Booking).
359
359
  # @param [String] key Required parameter: The key of the custom attribute to
360
360
  # create or update. This key must match the `key` of a custom attribute
361
361
  # definition in the Square seller account. If the requesting application is
@@ -51,8 +51,8 @@ module Square
51
51
 
52
52
  # Creates a booking.
53
53
  # The required input must include the following:
54
- # - `Booking.location_id`,
55
- # - `Booking.start_at`,
54
+ # - `Booking.location_id`
55
+ # - `Booking.start_at`
56
56
  # - `Booking.team_member_id`
57
57
  # - `Booking.AppointmentSegment.service_variation_id`
58
58
  # - `Booking.AppointmentSegment.service_variation_version`
@@ -186,7 +186,8 @@ module Square
186
186
  # To call this endpoint with seller-level permissions, set
187
187
  # `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
188
188
  # @param [String] booking_id Required parameter: The ID of the
189
- # [Booking]($m/Booking) object representing the to-be-retrieved booking.
189
+ # [Booking](entity:Booking) object representing the to-be-retrieved
190
+ # booking.
190
191
  # @return [RetrieveBookingResponse Hash] response from the API call
191
192
  def retrieve_booking(booking_id:)
192
193
  new_api_call_builder
@@ -213,7 +214,7 @@ module Square
213
214
  # seller must have subscribed to *Appointments Plus*
214
215
  # or *Appointments Premium*.
215
216
  # @param [String] booking_id Required parameter: The ID of the
216
- # [Booking]($m/Booking) object representing the to-be-updated booking.
217
+ # [Booking](entity:Booking) object representing the to-be-updated booking.
217
218
  # @param [UpdateBookingRequest] body Required parameter: An object
218
219
  # containing the fields to POST for the request. See the corresponding
219
220
  # object definition for field details.
@@ -247,7 +248,8 @@ module Square
247
248
  # seller must have subscribed to *Appointments Plus*
248
249
  # or *Appointments Premium*.
249
250
  # @param [String] booking_id Required parameter: The ID of the
250
- # [Booking]($m/Booking) object representing the to-be-cancelled booking.
251
+ # [Booking](entity:Booking) object representing the to-be-cancelled
252
+ # booking.
251
253
  # @param [CancelBookingRequest] body Required parameter: An object
252
254
  # containing the fields to POST for the request. See the corresponding
253
255
  # object definition for field details.
@@ -6,8 +6,8 @@ module Square
6
6
  # @param [String] cursor Optional parameter: A pagination cursor returned by
7
7
  # a previous call to this endpoint. Provide this to retrieve the next set of
8
8
  # results for your original query. See
9
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
10
- # for more information.
9
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
10
+ # atterns/pagination) for more information.
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.
@@ -198,11 +198,11 @@ module Square
198
198
  # @param [String] cursor Optional parameter: The pagination cursor returned
199
199
  # in the previous response. Leave unset for an initial request. The page
200
200
  # size is currently set to be 100. See
201
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
202
- # for more information.
201
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
202
+ # atterns/pagination) for more information.
203
203
  # @param [String] types Optional parameter: An optional case-insensitive,
204
204
  # comma-separated list of object types to retrieve. The valid values are
205
- # defined in the [CatalogObjectType]($m/CatalogObjectType) enum, for
205
+ # defined in the [CatalogObjectType](entity:CatalogObjectType) enum, for
206
206
  # example, `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,
207
207
  # `MODIFIER`, `MODIFIER_LIST`, `IMAGE`, etc. If this is unspecified, the
208
208
  # operation returns objects of all the top level types at the version of the
@@ -9,7 +9,7 @@ module Square
9
9
  # highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-
10
10
  # highlights).
11
11
  # We recommend that you use the
12
- # new [CreatePaymentLink]($e/Checkout/CreatePaymentLink)
12
+ # new [CreatePaymentLink](api-endpoint:Checkout-CreatePaymentLink)
13
13
  # endpoint in place of this previously released endpoint.
14
14
  # @param [String] location_id Required parameter: The ID of the business
15
15
  # location to associate the checkout with.
@@ -229,7 +229,7 @@ module Square
229
229
  # other applications
230
230
  # and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
231
231
  # @param [String] customer_id Required parameter: The ID of the target
232
- # [customer profile]($m/Customer).
232
+ # [customer profile](entity:Customer).
233
233
  # @param [Integer] limit Optional parameter: The maximum number of results
234
234
  # to return in a single paged response. This limit is advisory. The response
235
235
  # might contain more or fewer results. The minimum value is 1 and the
@@ -244,7 +244,7 @@ module Square
244
244
  # atterns/pagination).
245
245
  # @param [TrueClass|FalseClass] with_definitions Optional parameter:
246
246
  # Indicates whether to return the [custom attribute
247
- # definition]($m/CustomAttributeDefinition) in the `definition` field of
247
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
248
248
  # each custom attribute. Set this parameter to `true` to get the name and
249
249
  # description of each custom attribute, information about the data type, or
250
250
  # other definition details. The default value is `false`.
@@ -279,7 +279,7 @@ module Square
279
279
  # (also known as custom fields) are always set to
280
280
  # `VISIBILITY_READ_WRITE_VALUES`.
281
281
  # @param [String] customer_id Required parameter: The ID of the target
282
- # [customer profile]($m/Customer).
282
+ # [customer profile](entity:Customer).
283
283
  # @param [String] key Required parameter: The key of the custom attribute to
284
284
  # delete. This key must match the `key` of a custom attribute definition in
285
285
  # the Square seller account. If the requesting application is not the
@@ -316,15 +316,15 @@ module Square
316
316
  # (also known as custom fields) are always set to
317
317
  # `VISIBILITY_READ_WRITE_VALUES`.
318
318
  # @param [String] customer_id Required parameter: The ID of the target
319
- # [customer profile]($m/Customer).
319
+ # [customer profile](entity:Customer).
320
320
  # @param [String] key Required parameter: The key of the custom attribute to
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
324
  # @param [TrueClass|FalseClass] with_definition Optional parameter:
325
325
  # Indicates whether to return the [custom attribute
326
- # definition]($m/CustomAttributeDefinition) in the `definition` field of the
327
- # custom attribute. Set this parameter to `true` to get the name and
326
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
327
+ # the custom attribute. Set this parameter to `true` to get the name and
328
328
  # description of the custom attribute, information about the data type, or
329
329
  # other definition details. The default value is `false`.
330
330
  # @param [Integer] version Optional parameter: The current version of the
@@ -373,7 +373,7 @@ module Square
373
373
  # (also known as custom fields) are always set to
374
374
  # `VISIBILITY_READ_WRITE_VALUES`.
375
375
  # @param [String] customer_id Required parameter: The ID of the target
376
- # [customer profile]($m/Customer).
376
+ # [customer profile](entity:Customer).
377
377
  # @param [String] key Required parameter: The key of the custom attribute to
378
378
  # create or update. This key must match the `key` of a custom attribute
379
379
  # definition in the Square seller account. If the requesting application is
@@ -5,8 +5,8 @@ module Square
5
5
  # @param [String] cursor Optional parameter: A pagination cursor returned by
6
6
  # a previous call to this endpoint. Provide this cursor to retrieve the next
7
7
  # set of results for the original query. For more information, see
8
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
9
- # .
8
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
9
+ # atterns/pagination).
10
10
  # @param [DisputeState] states Optional parameter: The dispute states used
11
11
  # to filter the result. If not specified, the endpoint returns all
12
12
  # disputes.
@@ -14,7 +14,7 @@ module Square
14
14
  # card. Otherwise, the endpoint returns all gift card activities for the
15
15
  # seller.
16
16
  # @param [String] type Optional parameter: If a
17
- # [type]($m/GiftCardActivityType) is provided, the endpoint returns gift
17
+ # [type](entity:GiftCardActivityType) is provided, the endpoint returns gift
18
18
  # card activities of the specified type. Otherwise, the endpoint returns
19
19
  # all types of gift card activities.
20
20
  # @param [String] location_id Optional parameter: If a location ID is
@@ -4,12 +4,13 @@ module Square
4
4
  # Lists all gift cards. You can specify optional filters to retrieve
5
5
  # a subset of the gift cards. Results are sorted by `created_at` in
6
6
  # ascending order.
7
- # @param [String] type Optional parameter: If a [type]($m/GiftCardType) is
8
- # provided, the endpoint returns gift cards of the specified type.
7
+ # @param [String] type Optional parameter: If a [type](entity:GiftCardType)
8
+ # is provided, the endpoint returns gift cards of the specified type.
9
9
  # Otherwise, the endpoint returns gift cards of all types.
10
- # @param [String] state Optional parameter: If a [state]($m/GiftCardStatus)
11
- # is provided, the endpoint returns the gift cards in the specified state.
12
- # Otherwise, the endpoint returns the gift cards of all states.
10
+ # @param [String] state Optional parameter: If a
11
+ # [state](entity:GiftCardStatus) is provided, the endpoint returns the gift
12
+ # cards in the specified state. Otherwise, the endpoint returns the gift
13
+ # cards of all states.
13
14
  # @param [Integer] limit Optional parameter: If a limit is provided, the
14
15
  # endpoint returns only the specified number of results per page. The
15
16
  # maximum value is 50. The default value is 30. For more information, see
@@ -2,11 +2,11 @@ module Square
2
2
  # InventoryApi
3
3
  class InventoryApi < BaseApi
4
4
  # Deprecated version of
5
- # [RetrieveInventoryAdjustment]($e/Inventory/RetrieveInventoryAdjustment)
6
- # after the endpoint URL
5
+ # [RetrieveInventoryAdjustment](api-endpoint:Inventory-RetrieveInventoryAdju
6
+ # stment) after the endpoint URL
7
7
  # is updated to conform to the standard convention.
8
8
  # @param [String] adjustment_id Required parameter: ID of the
9
- # [InventoryAdjustment]($m/InventoryAdjustment) to retrieve.
9
+ # [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
10
10
  # @return [RetrieveInventoryAdjustmentResponse Hash] response from the API call
11
11
  def deprecated_retrieve_inventory_adjustment(adjustment_id:)
12
12
  warn 'Endpoint deprecated_retrieve_inventory_adjustment in InventoryApi '\
@@ -29,7 +29,7 @@ module Square
29
29
  # Returns the [InventoryAdjustment]($m/InventoryAdjustment) object
30
30
  # with the provided `adjustment_id`.
31
31
  # @param [String] adjustment_id Required parameter: ID of the
32
- # [InventoryAdjustment]($m/InventoryAdjustment) to retrieve.
32
+ # [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
33
33
  # @return [RetrieveInventoryAdjustmentResponse Hash] response from the API call
34
34
  def retrieve_inventory_adjustment(adjustment_id:)
35
35
  new_api_call_builder
@@ -48,8 +48,8 @@ module Square
48
48
  end
49
49
 
50
50
  # Deprecated version of
51
- # [BatchChangeInventory]($e/Inventory/BatchChangeInventory) after the
52
- # endpoint URL
51
+ # [BatchChangeInventory](api-endpoint:Inventory-BatchChangeInventory) after
52
+ # the endpoint URL
53
53
  # is updated to conform to the standard convention.
54
54
  # @param [BatchChangeInventoryRequest] body Required parameter: An object
55
55
  # containing the fields to POST for the request. See the corresponding
@@ -75,8 +75,8 @@ module Square
75
75
  end
76
76
 
77
77
  # Deprecated version of
78
- # [BatchRetrieveInventoryChanges]($e/Inventory/BatchRetrieveInventoryChanges
79
- # ) after the endpoint URL
78
+ # [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInvent
79
+ # oryChanges) after the endpoint URL
80
80
  # is updated to conform to the standard convention.
81
81
  # @param [BatchRetrieveInventoryChangesRequest] body Required parameter: An
82
82
  # object containing the fields to POST for the request. See the
@@ -102,8 +102,8 @@ module Square
102
102
  end
103
103
 
104
104
  # Deprecated version of
105
- # [BatchRetrieveInventoryCounts]($e/Inventory/BatchRetrieveInventoryCounts)
106
- # after the endpoint URL
105
+ # [BatchRetrieveInventoryCounts](api-endpoint:Inventory-BatchRetrieveInvento
106
+ # ryCounts) after the endpoint URL
107
107
  # is updated to conform to the standard convention.
108
108
  # @param [BatchRetrieveInventoryCountsRequest] body Required parameter: An
109
109
  # object containing the fields to POST for the request. See the
@@ -212,11 +212,11 @@ module Square
212
212
  end
213
213
 
214
214
  # Deprecated version of
215
- # [RetrieveInventoryPhysicalCount]($e/Inventory/RetrieveInventoryPhysicalCou
216
- # nt) after the endpoint URL
215
+ # [RetrieveInventoryPhysicalCount](api-endpoint:Inventory-RetrieveInventoryP
216
+ # hysicalCount) after the endpoint URL
217
217
  # is updated to conform to the standard convention.
218
218
  # @param [String] physical_count_id Required parameter: ID of the
219
- # [InventoryPhysicalCount]($m/InventoryPhysicalCount) to retrieve.
219
+ # [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
220
220
  # @return [RetrieveInventoryPhysicalCountResponse Hash] response from the API call
221
221
  def deprecated_retrieve_inventory_physical_count(physical_count_id:)
222
222
  warn 'Endpoint deprecated_retrieve_inventory_physical_count in Inventory'\
@@ -239,7 +239,7 @@ module Square
239
239
  # Returns the [InventoryPhysicalCount]($m/InventoryPhysicalCount)
240
240
  # object with the provided `physical_count_id`.
241
241
  # @param [String] physical_count_id Required parameter: ID of the
242
- # [InventoryPhysicalCount]($m/InventoryPhysicalCount) to retrieve.
242
+ # [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
243
243
  # @return [RetrieveInventoryPhysicalCountResponse Hash] response from the API call
244
244
  def retrieve_inventory_physical_count(physical_count_id:)
245
245
  new_api_call_builder
@@ -260,7 +260,7 @@ module Square
260
260
  # Returns the [InventoryTransfer]($m/InventoryTransfer) object
261
261
  # with the provided `transfer_id`.
262
262
  # @param [String] transfer_id Required parameter: ID of the
263
- # [InventoryTransfer]($m/InventoryTransfer) to retrieve.
263
+ # [InventoryTransfer](entity:InventoryTransfer) to retrieve.
264
264
  # @return [RetrieveInventoryTransferResponse Hash] response from the API call
265
265
  def retrieve_inventory_transfer(transfer_id:)
266
266
  new_api_call_builder
@@ -283,10 +283,10 @@ module Square
283
283
  # [Location]($m/Location)s. Responses are paginated and unsorted.
284
284
  # For more sophisticated queries, use a batch endpoint.
285
285
  # @param [String] catalog_object_id Required parameter: ID of the
286
- # [CatalogObject]($m/CatalogObject) to retrieve.
286
+ # [CatalogObject](entity:CatalogObject) to retrieve.
287
287
  # @param [String] location_ids Optional parameter: The
288
- # [Location]($m/Location) IDs to look up as a comma-separated list. An empty
289
- # list queries all locations.
288
+ # [Location](entity:Location) IDs to look up as a comma-separated list. An
289
+ # empty list queries all locations.
290
290
  # @param [String] cursor Optional parameter: A pagination cursor returned by
291
291
  # a previous call to this endpoint. Provide this to retrieve the next set of
292
292
  # results for the original query. See the
@@ -314,11 +314,11 @@ module Square
314
314
  end
315
315
 
316
316
  # Returns a set of physical counts and inventory adjustments for the
317
- # provided [CatalogObject]($m/CatalogObject) at the requested
318
- # [Location]($m/Location)s.
317
+ # provided [CatalogObject](entity:CatalogObject) at the requested
318
+ # [Location](entity:Location)s.
319
319
  # You can achieve the same result by calling
320
- # [BatchRetrieveInventoryChanges]($e/Inventory/BatchRetrieveInventoryChanges
321
- # )
320
+ # [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInvent
321
+ # oryChanges)
322
322
  # and having the `catalog_object_ids` list contain a single element of the
323
323
  # `CatalogObject` ID.
324
324
  # Results are paginated and sorted in descending order according to their
@@ -328,10 +328,10 @@ module Square
328
328
  # used to display recent changes for a specific item. For more
329
329
  # sophisticated queries, use a batch endpoint.
330
330
  # @param [String] catalog_object_id Required parameter: ID of the
331
- # [CatalogObject]($m/CatalogObject) to retrieve.
331
+ # [CatalogObject](entity:CatalogObject) to retrieve.
332
332
  # @param [String] location_ids Optional parameter: The
333
- # [Location]($m/Location) IDs to look up as a comma-separated list. An empty
334
- # list queries all locations.
333
+ # [Location](entity:Location) IDs to look up as a comma-separated list. An
334
+ # empty list queries all locations.
335
335
  # @param [String] cursor Optional parameter: A pagination cursor returned by
336
336
  # a previous call to this endpoint. Provide this to retrieve the next set of
337
337
  # results for the original query. See the
@@ -95,9 +95,9 @@ module Square
95
95
  # @param [String] invoice_id Required parameter: The ID of the invoice to
96
96
  # delete.
97
97
  # @param [Integer] version Optional parameter: The version of the
98
- # [invoice]($m/Invoice) to delete. If you do not know the version, you can
99
- # call [GetInvoice]($e/Invoices/GetInvoice) or
100
- # [ListInvoices]($e/Invoices/ListInvoices).
98
+ # [invoice](entity:Invoice) to delete. If you do not know the version, you
99
+ # can call [GetInvoice](api-endpoint:Invoices-GetInvoice) or
100
+ # [ListInvoices](api-endpoint:Invoices-ListInvoices).
101
101
  # @return [DeleteInvoiceResponse Hash] response from the API call
102
102
  def delete_invoice(invoice_id:,
103
103
  version: nil)
@@ -176,7 +176,7 @@ module Square
176
176
  # You cannot cancel an invoice in the `DRAFT` state or in a terminal state:
177
177
  # `PAID`, `REFUNDED`, `CANCELED`, or `FAILED`.
178
178
  # @param [String] invoice_id Required parameter: The ID of the
179
- # [invoice]($m/Invoice) to cancel.
179
+ # [invoice](entity:Invoice) to cancel.
180
180
  # @param [CancelInvoiceRequest] body Required parameter: An object
181
181
  # containing the fields to POST for the request. See the corresponding
182
182
  # object definition for field details.
@@ -244,7 +244,7 @@ module Square
244
244
  # other applications
245
245
  # and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
246
246
  # @param [String] location_id Required parameter: The ID of the target
247
- # [location]($m/Location).
247
+ # [location](entity:Location).
248
248
  # @param [VisibilityFilter] visibility_filter Optional parameter: Filters
249
249
  # the `CustomAttributeDefinition` results by their `visibility` values.
250
250
  # @param [Integer] limit Optional parameter: The maximum number of results
@@ -261,7 +261,7 @@ module Square
261
261
  # atterns/pagination).
262
262
  # @param [TrueClass|FalseClass] with_definitions Optional parameter:
263
263
  # Indicates whether to return the [custom attribute
264
- # definition]($m/CustomAttributeDefinition) in the `definition` field of
264
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
265
265
  # each custom attribute. Set this parameter to `true` to get the name and
266
266
  # description of each custom attribute, information about the data type, or
267
267
  # other definition details. The default value is `false`.
@@ -296,7 +296,7 @@ module Square
296
296
  # `visibility` setting must be
297
297
  # `VISIBILITY_READ_WRITE_VALUES`.
298
298
  # @param [String] location_id Required parameter: The ID of the target
299
- # [location]($m/Location).
299
+ # [location](entity:Location).
300
300
  # @param [String] key Required parameter: The key of the custom attribute to
301
301
  # delete. This key must match the `key` of a custom attribute definition in
302
302
  # the Square seller account. If the requesting application is not the
@@ -330,15 +330,15 @@ module Square
330
330
  # `visibility` setting must be
331
331
  # `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
332
332
  # @param [String] location_id Required parameter: The ID of the target
333
- # [location]($m/Location).
333
+ # [location](entity:Location).
334
334
  # @param [String] key Required parameter: The key of the custom attribute to
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
338
  # @param [TrueClass|FalseClass] with_definition Optional parameter:
339
339
  # Indicates whether to return the [custom attribute
340
- # definition]($m/CustomAttributeDefinition) in the `definition` field of the
341
- # custom attribute. Set this parameter to `true` to get the name and
340
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
341
+ # the custom attribute. Set this parameter to `true` to get the name and
342
342
  # description of the custom attribute, information about the data type, or
343
343
  # other definition details. The default value is `false`.
344
344
  # @param [Integer] version Optional parameter: The current version of the
@@ -384,7 +384,7 @@ module Square
384
384
  # `visibility` setting
385
385
  # must be `VISIBILITY_READ_WRITE_VALUES`.
386
386
  # @param [String] location_id Required parameter: The ID of the target
387
- # [location]($m/Location).
387
+ # [location](entity:Location).
388
388
  # @param [String] key Required parameter: The key of the custom attribute to
389
389
  # create or update. This key must match the `key` of a custom attribute
390
390
  # definition in the Square seller account. If the requesting application is
@@ -52,7 +52,7 @@ module Square
52
52
 
53
53
  # Retrieves a loyalty account.
54
54
  # @param [String] account_id Required parameter: The ID of the [loyalty
55
- # account]($m/LoyaltyAccount) to retrieve.
55
+ # account](entity:LoyaltyAccount) to retrieve.
56
56
  # @return [RetrieveLoyaltyAccountResponse Hash] response from the API call
57
57
  def retrieve_loyalty_account(account_id:)
58
58
  new_api_call_builder
@@ -96,7 +96,7 @@ module Square
96
96
  # points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions
97
97
  # #calculate-promotion-points).
98
98
  # @param [String] account_id Required parameter: The ID of the target
99
- # [loyalty account]($m/LoyaltyAccount).
99
+ # [loyalty account](entity:LoyaltyAccount).
100
100
  # @param [AccumulateLoyaltyPointsRequest] body Required parameter: An object
101
101
  # containing the fields to POST for the request. See the corresponding
102
102
  # object definition for field details.
@@ -127,7 +127,7 @@ module Square
127
127
  # [AccumulateLoyaltyPoints]($e/Loyalty/AccumulateLoyaltyPoints)
128
128
  # to add points when a buyer pays for the purchase.
129
129
  # @param [String] account_id Required parameter: The ID of the target
130
- # [loyalty account]($m/LoyaltyAccount).
130
+ # [loyalty account](entity:LoyaltyAccount).
131
131
  # @param [AdjustLoyaltyPointsRequest] body Required parameter: An object
132
132
  # containing the fields to POST for the request. See the corresponding
133
133
  # object definition for field details.
@@ -187,8 +187,9 @@ module Square
187
187
  # created and managed from the Seller Dashboard. For more information, see
188
188
  # [Loyalty Program
189
189
  # Overview](https://developer.squareup.com/docs/loyalty/overview).
190
- # Replaced with [RetrieveLoyaltyProgram]($e/Loyalty/RetrieveLoyaltyProgram)
191
- # when used with the keyword `main`.
190
+ # Replaced with
191
+ # [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) when
192
+ # used with the keyword `main`.
192
193
  # @return [ListLoyaltyProgramsResponse Hash] response from the API call
193
194
  def list_loyalty_programs
194
195
  warn 'Endpoint list_loyalty_programs in LoyaltyApi is deprecated'
@@ -257,7 +258,7 @@ module Square
257
258
  # points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions
258
259
  # #calculate-promotion-points).
259
260
  # @param [String] program_id Required parameter: The ID of the [loyalty
260
- # program]($m/LoyaltyProgram), which defines the rules for accruing
261
+ # program](entity:LoyaltyProgram), which defines the rules for accruing
261
262
  # points.
262
263
  # @param [CalculateLoyaltyPointsRequest] body Required parameter: An object
263
264
  # containing the fields to POST for the request. See the corresponding
@@ -288,9 +289,9 @@ module Square
288
289
  # Results are sorted by the `created_at` date in descending order (newest to
289
290
  # oldest).
290
291
  # @param [String] program_id Required parameter: The ID of the base [loyalty
291
- # program]($m/LoyaltyProgram). To get the program ID, call
292
- # [RetrieveLoyaltyProgram]($e/Loyalty/RetrieveLoyaltyProgram) using the
293
- # `main` keyword.
292
+ # program](entity:LoyaltyProgram). To get the program ID, call
293
+ # [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram)
294
+ # using the `main` keyword.
294
295
  # @param [LoyaltyPromotionStatus] status Optional parameter: The status to
295
296
  # filter the results by. If a status is provided, only loyalty promotions
296
297
  # with the specified status are returned. Otherwise, all loyalty promotions
@@ -339,10 +340,10 @@ module Square
339
340
  # loyalty promotions with an
340
341
  # `ACTIVE` or `SCHEDULED` status.
341
342
  # @param [String] program_id Required parameter: The ID of the [loyalty
342
- # program]($m/LoyaltyProgram) to associate with the promotion. To get the
343
- # program ID, call
344
- # [RetrieveLoyaltyProgram]($e/Loyalty/RetrieveLoyaltyProgram) using the
345
- # `main` keyword.
343
+ # program](entity:LoyaltyProgram) to associate with the promotion. To get
344
+ # the program ID, call
345
+ # [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram)
346
+ # using the `main` keyword.
346
347
  # @param [CreateLoyaltyPromotionRequest] body Required parameter: An object
347
348
  # containing the fields to POST for the request. See the corresponding
348
349
  # object definition for field details.
@@ -369,11 +370,11 @@ module Square
369
370
 
370
371
  # Retrieves a loyalty promotion.
371
372
  # @param [String] promotion_id Required parameter: The ID of the [loyalty
372
- # promotion]($m/LoyaltyPromotion) to retrieve.
373
+ # promotion](entity:LoyaltyPromotion) to retrieve.
373
374
  # @param [String] program_id Required parameter: The ID of the base [loyalty
374
- # program]($m/LoyaltyProgram). To get the program ID, call
375
- # [RetrieveLoyaltyProgram]($e/Loyalty/RetrieveLoyaltyProgram) using the
376
- # `main` keyword.
375
+ # program](entity:LoyaltyProgram). To get the program ID, call
376
+ # [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram)
377
+ # using the `main` keyword.
377
378
  # @return [RetrieveLoyaltyPromotionResponse Hash] response from the API call
378
379
  def retrieve_loyalty_promotion(promotion_id:,
379
380
  program_id:)
@@ -403,10 +404,10 @@ module Square
403
404
  # you create a new one.
404
405
  # This endpoint sets the loyalty promotion to the `CANCELED` state
405
406
  # @param [String] promotion_id Required parameter: The ID of the [loyalty
406
- # promotion]($m/LoyaltyPromotion) to cancel. You can cancel a promotion that
407
- # has an `ACTIVE` or `SCHEDULED` status.
407
+ # promotion](entity:LoyaltyPromotion) to cancel. You can cancel a promotion
408
+ # that has an `ACTIVE` or `SCHEDULED` status.
408
409
  # @param [String] program_id Required parameter: The ID of the base [loyalty
409
- # program]($m/LoyaltyProgram).
410
+ # program](entity:LoyaltyProgram).
410
411
  # @return [CancelLoyaltyPromotionResponse Hash] response from the API call
411
412
  def cancel_loyalty_promotion(promotion_id:,
412
413
  program_id:)
@@ -492,7 +493,7 @@ module Square
492
493
  # discounts.
493
494
  # You cannot delete a reward that has reached the terminal state (REDEEMED).
494
495
  # @param [String] reward_id Required parameter: The ID of the [loyalty
495
- # reward]($m/LoyaltyReward) to delete.
496
+ # reward](entity:LoyaltyReward) to delete.
496
497
  # @return [DeleteLoyaltyRewardResponse Hash] response from the API call
497
498
  def delete_loyalty_reward(reward_id:)
498
499
  new_api_call_builder
@@ -512,7 +513,7 @@ module Square
512
513
 
513
514
  # Retrieves a loyalty reward.
514
515
  # @param [String] reward_id Required parameter: The ID of the [loyalty
515
- # reward]($m/LoyaltyReward) to retrieve.
516
+ # reward](entity:LoyaltyReward) to retrieve.
516
517
  # @return [RetrieveLoyaltyRewardResponse Hash] response from the API call
517
518
  def retrieve_loyalty_reward(reward_id:)
518
519
  new_api_call_builder
@@ -539,7 +540,7 @@ module Square
539
540
  # In other words, points used for the reward cannot be returned
540
541
  # to the account.
541
542
  # @param [String] reward_id Required parameter: The ID of the [loyalty
542
- # reward]($m/LoyaltyReward) to redeem.
543
+ # reward](entity:LoyaltyReward) to redeem.
543
544
  # @param [RedeemLoyaltyRewardRequest] body Required parameter: An object
544
545
  # containing the fields to POST for the request. See the corresponding
545
546
  # object definition for field details.
@@ -257,7 +257,7 @@ module Square
257
257
  # other applications
258
258
  # and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
259
259
  # @param [String] order_id Required parameter: The ID of the target
260
- # [order]($m/Order).
260
+ # [order](entity:Order).
261
261
  # @param [VisibilityFilter] visibility_filter Optional parameter: Requests
262
262
  # that all of the custom attributes be returned, or only those that are
263
263
  # read-only or read-write.
@@ -276,7 +276,7 @@ module Square
276
276
  # ion).
277
277
  # @param [TrueClass|FalseClass] with_definitions Optional parameter:
278
278
  # Indicates whether to return the [custom attribute
279
- # definition]($m/CustomAttributeDefinition) in the `definition` field of
279
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
280
280
  # each custom attribute. Set this parameter to `true` to get the name and
281
281
  # description of each custom attribute, information about the data type, or
282
282
  # other definition details. The default value is `false`.
@@ -313,7 +313,7 @@ module Square
313
313
  # (also known as custom fields) are always set to
314
314
  # `VISIBILITY_READ_WRITE_VALUES`.
315
315
  # @param [String] order_id Required parameter: The ID of the target
316
- # [order]($m/Order).
316
+ # [order](entity:Order).
317
317
  # @param [String] custom_attribute_key Required parameter: The key of the
318
318
  # custom attribute to delete. This key must match the key of an existing
319
319
  # custom attribute definition.
@@ -349,7 +349,7 @@ module Square
349
349
  # also known as custom fields) are always set to
350
350
  # `VISIBILITY_READ_WRITE_VALUES`.
351
351
  # @param [String] order_id Required parameter: The ID of the target
352
- # [order]($m/Order).
352
+ # [order](entity:Order).
353
353
  # @param [String] custom_attribute_key Required parameter: The key of the
354
354
  # custom attribute to retrieve. This key must match the key of an existing
355
355
  # custom attribute definition.
@@ -359,7 +359,7 @@ module Square
359
359
  # specify the current version of the custom attribute.
360
360
  # @param [TrueClass|FalseClass] with_definition Optional parameter:
361
361
  # Indicates whether to return the [custom attribute
362
- # definition]($m/CustomAttributeDefinition) in the `definition` field of
362
+ # definition](entity:CustomAttributeDefinition) in the `definition` field of
363
363
  # each custom attribute. Set this parameter to `true` to get the name and
364
364
  # description of each custom attribute, information about the data type, or
365
365
  # other definition details. The default value is `false`.
@@ -402,7 +402,7 @@ module Square
402
402
  # (also known as custom fields) are always set to
403
403
  # `VISIBILITY_READ_WRITE_VALUES`.
404
404
  # @param [String] order_id Required parameter: The ID of the target
405
- # [order]($m/Order).
405
+ # [order](entity:Order).
406
406
  # @param [String] custom_attribute_key Required parameter: The key of the
407
407
  # custom attribute to create or update. This key must match the key of an
408
408
  # existing custom attribute definition.
@@ -6,19 +6,22 @@ module Square
6
6
  # might take several
7
7
  # seconds to appear.
8
8
  # The maximum results per page is 100.
9
- # @param [String] begin_time Optional parameter: The timestamp for the
10
- # beginning of the reporting period, in RFC 3339 format. Inclusive. Default:
11
- # The current time minus one year.
12
- # @param [String] end_time Optional parameter: The timestamp for the end of
13
- # the reporting period, in RFC 3339 format. Default: The current time.
9
+ # @param [String] begin_time Optional parameter: Indicates the start of the
10
+ # time range to retrieve payments for, in RFC 3339 format. The range is
11
+ # determined using the `created_at` field for each Payment. Inclusive.
12
+ # Default: The current time minus one year.
13
+ # @param [String] end_time Optional parameter: Indicates the end of the time
14
+ # range to retrieve payments for, in RFC 3339 format. The range is
15
+ # determined using the `created_at` field for each Payment. Default: The
16
+ # current time.
14
17
  # @param [String] sort_order Optional parameter: The order in which results
15
- # are listed: - `ASC` - Oldest to newest. - `DESC` - Newest to oldest
16
- # (default).
18
+ # are listed by `Payment.created_at`: - `ASC` - Oldest to newest. - `DESC` -
19
+ # Newest to oldest (default).
17
20
  # @param [String] cursor Optional parameter: A pagination cursor returned by
18
21
  # a previous call to this endpoint. Provide this cursor to retrieve the next
19
22
  # set of results for the original query. For more information, see
20
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
21
- # .
23
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
24
+ # atterns/pagination).
22
25
  # @param [String] location_id Optional parameter: Limit results to the
23
26
  # location supplied. By default, results are returned for the default (main)
24
27
  # location associated with the seller.
@@ -6,7 +6,7 @@ module Square
6
6
  # in ascending or descending order.
7
7
  # To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
8
8
  # @param [String] location_id Optional parameter: The ID of the location for
9
- # which to list the payouts. By default, payouts are returned for the
9
+ # which to list the payouts. By default, payouts are returned for the
10
10
  # default (main) location associated with the seller.
11
11
  # @param [PayoutStatus] status Optional parameter: If provided, only payouts
12
12
  # with the given status are returned.
@@ -20,9 +20,9 @@ module Square
20
20
  # @param [String] cursor Optional parameter: A pagination cursor returned by
21
21
  # a previous call to this endpoint. Provide this cursor to retrieve the next
22
22
  # set of results for the original query. For more information, see
23
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
24
- # . If request parameters change between requests, subsequent results may
25
- # contain duplicates or missing records.
23
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
24
+ # atterns/pagination). If request parameters change between requests,
25
+ # subsequent results may contain duplicates or missing records.
26
26
  # @param [Integer] limit Optional parameter: The maximum number of results
27
27
  # to be returned in a single page. It is possible to receive fewer results
28
28
  # than the specified limit on a given page. The default value of 100 is also
@@ -86,9 +86,9 @@ module Square
86
86
  # @param [String] cursor Optional parameter: A pagination cursor returned by
87
87
  # a previous call to this endpoint. Provide this cursor to retrieve the next
88
88
  # set of results for the original query. For more information, see
89
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
90
- # . If request parameters change between requests, subsequent results may
91
- # contain duplicates or missing records.
89
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
90
+ # atterns/pagination). If request parameters change between requests,
91
+ # subsequent results may contain duplicates or missing records.
92
92
  # @param [Integer] limit Optional parameter: The maximum number of results
93
93
  # to be returned in a single page. It is possible to receive fewer results
94
94
  # than the specified limit on a given page. The default value of 100 is also
@@ -6,26 +6,28 @@ module Square
6
6
  # might take several
7
7
  # seconds to appear.
8
8
  # The maximum results per page is 100.
9
- # @param [String] begin_time Optional parameter: The timestamp for the
10
- # beginning of the requested reporting period, in RFC 3339 format. Default:
11
- # The current time minus one year.
12
- # @param [String] end_time Optional parameter: The timestamp for the end of
13
- # the requested reporting period, in RFC 3339 format. Default: The current
14
- # time.
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
11
+ # range is determined using the `created_at` field for each `PaymentRefund`.
12
+ # Default: The current time minus one year.
13
+ # @param [String] end_time Optional parameter: Indicates the end of the time
14
+ # range to retrieve each `PaymentRefund` for, in RFC 3339 format. The
15
+ # range is determined using the `created_at` field for each `PaymentRefund`.
16
+ # Default: The current time.
15
17
  # @param [String] sort_order Optional parameter: The order in which results
16
- # are listed: - `ASC` - Oldest to newest. - `DESC` - Newest to oldest
17
- # (default).
18
+ # are listed by `PaymentRefund.created_at`: - `ASC` - Oldest to newest. -
19
+ # `DESC` - Newest to oldest (default).
18
20
  # @param [String] cursor Optional parameter: A pagination cursor returned by
19
21
  # a previous call to this endpoint. Provide this cursor to retrieve the next
20
22
  # set of results for the original query. For more information, see
21
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
22
- # .
23
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
24
+ # atterns/pagination).
23
25
  # @param [String] location_id Optional parameter: Limit results to the
24
26
  # location supplied. By default, results are returned for all locations
25
27
  # associated with the seller.
26
28
  # @param [String] status Optional parameter: If provided, only refunds with
27
29
  # the given status are returned. For a list of refund status values, see
28
- # [PaymentRefund]($m/PaymentRefund). Default: If omitted, refunds are
30
+ # [PaymentRefund](entity:PaymentRefund). Default: If omitted, refunds are
29
31
  # returned regardless of their status.
30
32
  # @param [String] source_type Optional parameter: If provided, only returns
31
33
  # refunds whose payments have the indicated source type. Current values
@@ -81,7 +81,7 @@ module Square
81
81
  end
82
82
 
83
83
  # Captures a transaction that was created with the
84
- # [Charge]($e/Transactions/Charge)
84
+ # [Charge](api-endpoint:Transactions-Charge)
85
85
  # endpoint with a `delay_capture` value of `true`.
86
86
  # See [Delayed capture
87
87
  # transactions](https://developer.squareup.com/docs/payments/transactions/ov
@@ -111,7 +111,7 @@ module Square
111
111
  end
112
112
 
113
113
  # Cancels a transaction that was created with the
114
- # [Charge]($e/Transactions/Charge)
114
+ # [Charge](api-endpoint:Transactions-Charge)
115
115
  # endpoint with a `delay_capture` value of `true`.
116
116
  # See [Delayed capture
117
117
  # transactions](https://developer.squareup.com/docs/payments/transactions/ov
@@ -117,7 +117,7 @@ module Square
117
117
 
118
118
  # Retrieves the vendor of a specified [Vendor]($m/Vendor) ID.
119
119
  # @param [String] vendor_id Required parameter: ID of the
120
- # [Vendor]($m/Vendor) to retrieve.
120
+ # [Vendor](entity:Vendor) to retrieve.
121
121
  # @return [RetrieveVendorResponse Hash] response from the API call
122
122
  def retrieve_vendor(vendor_id:)
123
123
  new_api_call_builder
@@ -28,11 +28,11 @@ module Square
28
28
  # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
29
29
  # .
30
30
  # @param [TrueClass|FalseClass] include_disabled Optional parameter:
31
- # Includes disabled [Subscription]($m/WebhookSubscription)s. By default, all
32
- # enabled [Subscription]($m/WebhookSubscription)s are returned.
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]($m/WebhookSubscription) was created with the
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]($m/WebhookSubscription) to delete.
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]($m/WebhookSubscription) to retrieve.
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]($m/WebhookSubscription) to update.
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]($m/WebhookSubscription) to update.
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]($m/WebhookSubscription) to test.
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
- '26.2.0.20230315'
7
+ '27.0.0.20230419'
8
8
  end
9
9
 
10
10
  def square_version
@@ -261,7 +261,7 @@ module Square
261
261
  retry_methods: %i[get put], http_callback: nil,
262
262
  environment: 'production',
263
263
  custom_url: 'https://connect.squareup.com', access_token: '',
264
- square_version: '2023-03-15', user_agent_detail: '',
264
+ square_version: '2023-04-19', user_agent_detail: '',
265
265
  additional_headers: {}, config: nil)
266
266
  @config = if config.nil?
267
267
  Configuration.new(connection: connection, adapter: adapter,
@@ -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-03-15', user_agent_detail: '',
22
+ square_version: '2023-04-19', user_agent_detail: '',
23
23
  additional_headers: {})
24
24
 
25
25
  super connection: connection, adapter: adapter, timeout: timeout,
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: 26.2.0.20230315
4
+ version: 27.0.0.20230419
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-03-14 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces