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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fe50fe3512834461866b9d1ebbd83bee0ca14f16313e4928f7ae114105ffc22
4
- data.tar.gz: e168aac2b86e67820df82977d1cd628f83566abbc77e821f029f509fadb19b5d
3
+ metadata.gz: 7aad233be99bfca2993a00a7c626631d148ed55b31b1e066374f4140f24e39d8
4
+ data.tar.gz: 495f1f8e3090fdcff82d59bb5f3a107d6e3041054c84ab025a6f10349bfc0103
5
5
  SHA512:
6
- metadata.gz: 1f4960b642816caa0d3aa71aceed7b834ca127c188b4e91098e56beacabb501531e67cf2747bdd3045e3dceedc565d9db9ec99f2fdfd369bdbec2c2bb110ca4d
7
- data.tar.gz: 745fb7ff183d3445c7edcbe352dbb701597acf2a551971d9cfdd0cfa57e3002a085c3497404b52b49a39d89b7221991f092c14b7fec09352d6fe2b203def7940
6
+ metadata.gz: '08e41c2920e1801d7a40ec683df94518d41b00953c46079de8749dd8f1c6a207750f17ea001d4e293d8cd493dee568b7d23204e2e60c9a864bf25933841bd1a0'
7
+ data.tar.gz: e6f513724723fd25e7009dff20d565ce765b20312496409822bd492a96157c71e5c31eb207b2508faa75e9d5f8d424cc43bf670c19626fdfe6dae7bf9f78a3b2
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/28.0.0.20230517 ({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
@@ -9,8 +9,8 @@ module Square
9
9
  # @param [String] cursor Optional parameter: A pagination cursor returned by
10
10
  # a previous call to this endpoint. Provide this cursor to retrieve the
11
11
  # next set of results for your original query. For more information, see
12
- # [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
13
- # ion).
12
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
13
+ # atterns/pagination).
14
14
  # @param [Integer] limit Optional parameter: The maximum number of invoices
15
15
  # to return (200 is the maximum `limit`). If not provided, the server uses
16
16
  # a default limit of 100 invoices.
@@ -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.