square.rb 3.20191023.0 → 3.20191120.0

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: 6869181c2882291f8cf94d596adb12e137061d21e37f1db4a5c89487fee34569
4
- data.tar.gz: 5c25f08d601e4907f0b4e528d1d1ecf5e995d3ccf596a7a44dd0ace25fc03db9
3
+ metadata.gz: cd071af18802847ca0f4c4c2fa3578e295f341a253b464f5f43a1d3ea2822fed
4
+ data.tar.gz: 835014bce207c0a306b60c3ca6241534b425443052c5575f0775531821049119
5
5
  SHA512:
6
- metadata.gz: 80e91e32562c8721e2d9c64a4bd338640118a26a76776b54b220d5c133b230a8a906a8fc4c75a378bf6918f3d2751d724e0e9c1e4a1adde7610483b1febbae68
7
- data.tar.gz: 7e6ba403f41403e826c245fa083357170f7f312659524c2f28b1e4aa2edfc2af564be057a6386870c9da22a6482f85b9d77c37eaceccefd50d43acb6f8c68ecc
6
+ metadata.gz: 5aa677990bba8f49076dc13214bd597b90759feaa5438a78fae0834a1332916586d355abd49e895e5527fdf18246611790be72bbf406f92391a5214474ebdde3
7
+ data.tar.gz: c7a87fd601213ddbecd02d44e54a7cc56cc0fcd9c45379224327d239fd5e1a62465b8850f71f849d281e80bc2d301db1c807a2a37a03a5955e2ff323a34905a0
@@ -18,9 +18,9 @@ module Square
18
18
  # activate
19
19
  # Web Apple Pay with Square for merchants using their platform.
20
20
  # To learn more about Apple Pay on Web see the Apple Pay section in the
21
- # [Embedding the Square Payment
22
- # Form](https://developer.squareup.com/docs/payment-form/add-digital-wallets
23
- # /apple-pay) guide.
21
+ # [Square Payment Form
22
+ # Walkthrough](https://developer.squareup.com/docs/docs/payment-form/payment
23
+ # -form-walkthrough).
24
24
  # @param [RegisterDomainRequest] body Required parameter: An object
25
25
  # containing the fields to POST for the request. See the corresponding
26
26
  # object definition for field details.
@@ -13,8 +13,8 @@ module Square
13
13
  @http_call_back = http_call_back
14
14
 
15
15
  @global_headers = {
16
- 'user-agent' => 'Square-Ruby-SDK/3.20191023.0',
17
- 'Square-Version' => '2019-10-23'
16
+ 'user-agent' => 'Square-Ruby-SDK/3.20191120.0',
17
+ 'Square-Version' => '2019-11-20'
18
18
  }
19
19
  end
20
20
 
@@ -136,6 +136,89 @@ module Square
136
136
  ApiResponse.new(_response, data: decoded, errors: _errors)
137
137
  end
138
138
 
139
+ # Upload an image file to create a new [CatalogImage](#type-catalogimage)
140
+ # for an existing
141
+ # [CatalogObject](#type-catalogobject). Images can be uploaded and linked in
142
+ # this request or created independently
143
+ # (without an object assignment) and linked to a
144
+ # [CatalogObject](#type-catalogobject) at a later time.
145
+ # CreateCatalogImage accepts HTTP multipart/form-data requests with a JSON
146
+ # part and an image file part in
147
+ # JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB. The
148
+ # following is an example of such an HTTP request:
149
+ # ```
150
+ # POST /v2/catalog/images
151
+ # Accept: application/json
152
+ # Content-Type: multipart/form-data;boundary="boundary"
153
+ # Square-Version: XXXX-XX-XX
154
+ # Authorization: Bearer {ACCESS_TOKEN}
155
+ # --boundary
156
+ # Content-Disposition: form-data; name="request"
157
+ # Content-Type: application/json
158
+ # {
159
+ # "idempotency_key":"528dea59-7bfb-43c1-bd48-4a6bba7dd61f86",
160
+ # "object_id": "ND6EA5AAJEO5WL3JNNIAQA32",
161
+ # "image":{
162
+ # "id":"#TEMP_ID",
163
+ # "type":"IMAGE",
164
+ # "image_data":{
165
+ # "caption":"A picture of a cup of coffee"
166
+ # }
167
+ # }
168
+ # }
169
+ # --boundary
170
+ # Content-Disposition: form-data; name="image"; filename="Coffee.jpg"
171
+ # Content-Type: image/jpeg
172
+ # {ACTUAL_IMAGE_BYTES}
173
+ # --boundary
174
+ # ```
175
+ # Additional information and an example cURL request can be found in the
176
+ # [Create a Catalog Image
177
+ # recipe](https://developer.squareup.com/docs/more-apis/catalog/cookbook/cre
178
+ # ate-catalog-images).
179
+ # @param [CreateCatalogImageRequest] request Optional parameter: Example:
180
+ # @param [File | UploadIO] image_file Optional parameter: Example:
181
+ # @return [CreateCatalogImageResponse Hash] response from the API call
182
+ def create_catalog_image(request: nil,
183
+ image_file: nil)
184
+ # Prepare query url.
185
+ _query_builder = config.get_base_uri
186
+ _query_builder << '/v2/catalog/images'
187
+ _query_url = APIHelper.clean_url _query_builder
188
+
189
+ # Prepare headers.
190
+ _headers = {
191
+ 'accept' => 'application/json'
192
+ }
193
+
194
+ # Prepare form parameters.
195
+ _parameters = {
196
+ 'request' => Faraday::UploadIO.new(
197
+ StringIO.new(request.to_json),
198
+ 'application/json'
199
+ ),
200
+ 'image_file' => Faraday::UploadIO.new(
201
+ image_file,
202
+ 'image/jpeg'
203
+ )
204
+ }
205
+ _parameters = APIHelper.form_encode_parameters(_parameters)
206
+
207
+ # Prepare and execute HttpRequest.
208
+ _request = config.http_client.post(
209
+ _query_url,
210
+ headers: _headers,
211
+ parameters: _parameters
212
+ )
213
+ OAuth2.apply(config, _request)
214
+ _response = execute_request(_request)
215
+
216
+ # Return appropriate response type.
217
+ decoded = APIHelper.json_deserialize(_response.raw_body)
218
+ _errors = APIHelper.map_response(decoded, ['errors'])
219
+ ApiResponse.new(_response, data: decoded, errors: _errors)
220
+ end
221
+
139
222
  # Returns information about the Square Catalog API, such as batch size
140
223
  # limits for `BatchUpsertCatalogObjects`.
141
224
  # @return [CatalogInfoResponse Hash] response from the API call
@@ -185,9 +268,8 @@ module Square
185
268
  # @param [String] types Optional parameter: An optional case-insensitive,
186
269
  # comma-separated list of object types to retrieve, for example
187
270
  # `ITEM,ITEM_VARIATION,CATEGORY,IMAGE`. The legal values are taken from the
188
- # [CatalogObjectType](#type-catalogobjecttype) enumeration, namely `ITEM`,
189
- # `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`, `MODIFIER`,
190
- # `MODIFIER_LIST`, or `IMAGE`.
271
+ # CatalogObjectType enum: `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`,
272
+ # `TAX`, `MODIFIER`, `MODIFIER_LIST`, or `IMAGE`.
191
273
  # @return [ListCatalogResponse Hash] response from the API call
192
274
  def list_catalog(cursor: nil,
193
275
  types: nil)
@@ -260,11 +342,10 @@ module Square
260
342
  # are also deleted. For example, deleting a [CatalogItem](#type-catalogitem)
261
343
  # will also delete all of its
262
344
  # [CatalogItemVariation](#type-catalogitemvariation) children.
263
- # @param [String] object_id Required parameter: The ID of the
264
- # [CatalogObject](#type-catalogobject) to be deleted. When an object is
265
- # deleted, other objects in the graph that depend on that object will be
266
- # deleted as well (for example, deleting a [CatalogItem](#type-catalogitem)
267
- # will delete its [CatalogItemVariation](#type-catalogitemvariation)s).
345
+ # @param [String] object_id Required parameter: The ID of the catalog object
346
+ # to be deleted. When an object is deleted, other objects in the graph that
347
+ # depend on that object will be deleted as well (for example, deleting a
348
+ # catalog item will delete its catalog item variations).
268
349
  # @return [DeleteCatalogObjectResponse Hash] response from the API call
269
350
  def delete_catalog_object(object_id:)
270
351
  # Prepare query url.
@@ -304,18 +385,16 @@ module Square
304
385
  # [CatalogModifierList](#type-catalogmodifierlist) objects, and the ids of
305
386
  # any [CatalogTax](#type-catalogtax) objects that apply to it.
306
387
  # @param [String] object_id Required parameter: The object ID of any type of
307
- # [CatalogObject](#type-catalogobject)s to be retrieved.
388
+ # catalog objects to be retrieved.
308
389
  # @param [Boolean] include_related_objects Optional parameter: If `true`,
309
390
  # the response will include additional objects that are related to the
310
391
  # requested object, as follows: If the `object` field of the response
311
- # contains a [CatalogItem](#type-catalogitem), its associated
312
- # [CatalogCategory](#type-catalogcategory),
313
- # [CatalogTax](#type-catalogtax)es, [CatalogImage](#type-catalogimage)s and
314
- # [CatalogModifierList](#type-catalogmodifierlist)s will be returned in the
392
+ # contains a CatalogItem, its associated CatalogCategory, CatalogTax
393
+ # objects, CatalogImages and CatalogModifierLists will be returned in the
315
394
  # `related_objects` field of the response. If the `object` field of the
316
- # response contains a [CatalogItemVariation](#type-catalogitemvariation),
317
- # its parent [CatalogItem](#type-catalogitem) will be returned in the
318
- # `related_objects` field of the response. Default value: `false`
395
+ # response contains a CatalogItemVariation, its parent CatalogItem will be
396
+ # returned in the `related_objects` field of the response. Default value:
397
+ # `false`
319
398
  # @return [RetrieveCatalogObjectResponse Hash] response from the API call
320
399
  def retrieve_catalog_object(object_id:,
321
400
  include_related_objects: nil)
@@ -359,6 +438,16 @@ module Square
359
438
  # [CatalogQueryItemsForTax](#type-catalogqueryitemsfortax), and
360
439
  # [CatalogQueryItemsForModifierList](#type-catalogqueryitemsformodifierlist)
361
440
  # .
441
+ # --
442
+ # --
443
+ # Future end of the above comment:
444
+ # [CatalogQueryItemsForTax](#type-catalogqueryitemsfortax),
445
+ # [CatalogQueryItemsForModifierList](#type-catalogqueryitemsformodifierlist)
446
+ # ,
447
+ # [CatalogQueryItemsForItemOptions](#type-catalogqueryitemsforitemoptions),
448
+ # and
449
+ # [CatalogQueryItemVariationsForItemOptionValues](#type-catalogqueryitemvari
450
+ # ationsforitemoptionvalues).
362
451
  # @param [SearchCatalogObjectsRequest] body Required parameter: An object
363
452
  # containing the fields to POST for the request. See the corresponding
364
453
  # object definition for field details.
@@ -13,14 +13,14 @@ module Square
13
13
  # Lists a business's customers.
14
14
  # @param [String] cursor Optional parameter: A pagination cursor returned by
15
15
  # a previous call to this endpoint. Provide this to retrieve the next set of
16
- # results for your original query. See
17
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
16
+ # results for your original query. See the [Pagination
17
+ # guide](https://developer.squareup.com/docs/working-with-apis/pagination)
18
18
  # for more information.
19
19
  # @param [CustomerSortField] sort_field Optional parameter: Indicates how
20
- # Customers should be sorted. Default: `DEFAULT`.
20
+ # Customers should be sorted. Default: `DEFAULT`.
21
21
  # @param [SortOrder] sort_order Optional parameter: Indicates whether
22
22
  # Customers should be sorted in ascending (`ASC`) or descending (`DESC`)
23
- # order. Default: `ASC`.
23
+ # order. Default: `ASC`.
24
24
  # @return [ListCustomersResponse Hash] response from the API call
25
25
  def list_customers(cursor: nil,
26
26
  sort_field: nil,
@@ -208,10 +208,9 @@ module Square
208
208
  # You cannot edit a customer's cards on file with this endpoint. To make
209
209
  # changes
210
210
  # to a card on file, you must delete the existing card on file with the
211
- # [DeleteCustomerCard](#endpoint-customers-deletecustomercard) endpoint,
212
- # then
213
- # create a new one with the
214
- # [CreateCustomerCard](#endpoint-customers-createcustomercard) endpoint.
211
+ # [DeleteCustomerCard](#endpoint-deletecustomercard) endpoint, then create a
212
+ # new one with the
213
+ # [CreateCustomerCard](#endpoint-createcustomercard) endpoint.
215
214
  # @param [String] customer_id Required parameter: The ID of the customer to
216
215
  # update.
217
216
  # @param [UpdateCustomerRequest] body Required parameter: An object
@@ -255,8 +254,6 @@ module Square
255
254
  # calls with the same card nonce return the same card record that was
256
255
  # created
257
256
  # with the provided nonce during the _first_ call.
258
- # Cards on file are automatically updated on a monthly basis to confirm they
259
- # are still valid and can be charged.
260
257
  # @param [String] customer_id Required parameter: The Square ID of the
261
258
  # customer profile the card is linked to.
262
259
  # @param [CreateCustomerCardRequest] body Required parameter: An object
@@ -10,7 +10,7 @@ module Square
10
10
  super(config, http_call_back: http_call_back)
11
11
  end
12
12
 
13
- # Gets a list of `Employee` objects for a business.
13
+ # ListEmployees
14
14
  # @param [String] location_id Optional parameter: Filter employees returned
15
15
  # to only those that are associated with the specified location.
16
16
  # @param [EmployeeStatus] status Optional parameter: Specifies the
@@ -55,7 +55,7 @@ module Square
55
55
  ApiResponse.new(_response, data: decoded, errors: _errors)
56
56
  end
57
57
 
58
- # Gets an `Employee` by Square-assigned employee `ID` (UUID)
58
+ # RetrieveEmployee
59
59
  # @param [String] id Required parameter: UUID for the employee that was
60
60
  # requested.
61
61
  # @return [RetrieveEmployeeResponse Hash] response from the API call
@@ -202,9 +202,9 @@ module Square
202
202
  # empty list queries all locations.
203
203
  # @param [String] cursor Optional parameter: A pagination cursor returned by
204
204
  # a previous call to this endpoint. Provide this to retrieve the next set of
205
- # results for the original query. See
206
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
207
- # for more information.
205
+ # results for the original query. See the
206
+ # [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pa
207
+ # gination) guide for more information.
208
208
  # @return [RetrieveInventoryCountResponse Hash] response from the API call
209
209
  def retrieve_inventory_count(catalog_object_id:,
210
210
  location_ids: nil,
@@ -257,9 +257,9 @@ module Square
257
257
  # empty list queries all locations.
258
258
  # @param [String] cursor Optional parameter: A pagination cursor returned by
259
259
  # a previous call to this endpoint. Provide this to retrieve the next set of
260
- # results for the original query. See
261
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
262
- # for more information.
260
+ # results for the original query. See the
261
+ # [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pa
262
+ # gination) guide for more information.
263
263
  # @return [RetrieveInventoryChangesResponse Hash] response from the API call
264
264
  def retrieve_inventory_changes(catalog_object_id:,
265
265
  location_ids: nil,
@@ -10,7 +10,7 @@ module Square
10
10
  super(config, http_call_back: http_call_back)
11
11
  end
12
12
 
13
- # Provides the details for all of a business's locations.
13
+ # Provides information of all locations of a business.
14
14
  # Most other Connect API endpoints have a required `location_id` path
15
15
  # parameter.
16
16
  # The `id` field of the [`Location`](#type-location) objects returned by
@@ -42,6 +42,40 @@ module Square
42
42
  ApiResponse.new(_response, data: decoded, errors: _errors)
43
43
  end
44
44
 
45
+ # Creates a location.
46
+ # For more information about locations, see [Locations API
47
+ # Overview](https://developer.squareup.com/docs/locations-api).
48
+ # @param [CreateLocationRequest] body Required parameter: An object
49
+ # containing the fields to POST for the request. See the corresponding
50
+ # object definition for field details.
51
+ # @return [CreateLocationResponse Hash] response from the API call
52
+ def create_location(body:)
53
+ # Prepare query url.
54
+ _query_builder = config.get_base_uri
55
+ _query_builder << '/v2/locations'
56
+ _query_url = APIHelper.clean_url _query_builder
57
+
58
+ # Prepare headers.
59
+ _headers = {
60
+ 'accept' => 'application/json',
61
+ 'content-type' => 'application/json; charset=utf-8'
62
+ }
63
+
64
+ # Prepare and execute HttpRequest.
65
+ _request = config.http_client.post(
66
+ _query_url,
67
+ headers: _headers,
68
+ parameters: body.to_json
69
+ )
70
+ OAuth2.apply(config, _request)
71
+ _response = execute_request(_request)
72
+
73
+ # Return appropriate response type.
74
+ decoded = APIHelper.json_deserialize(_response.raw_body)
75
+ _errors = APIHelper.map_response(decoded, ['errors'])
76
+ ApiResponse.new(_response, data: decoded, errors: _errors)
77
+ end
78
+
45
79
  # Retrieves details of a location.
46
80
  # @param [String] location_id Required parameter: The ID of the location to
47
81
  # retrieve.
@@ -75,7 +109,7 @@ module Square
75
109
  ApiResponse.new(_response, data: decoded, errors: _errors)
76
110
  end
77
111
 
78
- # Updates the `Location` specified by the given ID.
112
+ # Updates a location.
79
113
  # @param [String] location_id Required parameter: The ID of the location to
80
114
  # update.
81
115
  # @param [UpdateLocationRequest] body Required parameter: An object
@@ -19,9 +19,10 @@ module Square
19
19
  # ```
20
20
  # Authorization: Bearer ACCESS_TOKEN
21
21
  # ```
22
- # Replace `ACCESS_TOKEN` with a [valid production authorization
23
- # credential](https://developer.squareup.com/docs/get-started#step-4-underst
24
- # and-the-different-application-credentials).
22
+ # Replace `ACCESS_TOKEN` with a
23
+ # [valid production authorization
24
+ # credential](https://developer.squareup.com/docs/docs/build-basics/access-t
25
+ # okens).
25
26
  # @param [CreateMobileAuthorizationCodeRequest] body Required parameter: An
26
27
  # object containing the fields to POST for the request. See the
27
28
  # corresponding object definition for field details.
@@ -31,7 +31,7 @@ module Square
31
31
  # Replace `APPLICATION_SECRET` with the application secret on the
32
32
  # Credentials
33
33
  # page in the [application dashboard](https://connect.squareup.com/apps).
34
- # @param [String] client_id Required parameter: Your application's ID,
34
+ # @param [String] client_id Required parameter: Your application ID,
35
35
  # available from the [application
36
36
  # dashboard](https://connect.squareup.com/apps).
37
37
  # @param [RenewTokenRequest] body Required parameter: An object containing
@@ -29,12 +29,12 @@ module Square
29
29
  # @param [String] location_id Optional parameter: ID of location associated
30
30
  # with payment.
31
31
  # @param [String] status Optional parameter: If provided, only refunds with
32
- # the given status are returned. For a list of refund status values, see
32
+ # the given status are returned. For a list of refund status values, see
33
33
  # [PaymentRefund](#type-paymentrefund). Default: If omitted refunds are
34
34
  # returned regardless of status.
35
35
  # @param [String] source_type Optional parameter: If provided, only refunds
36
- # with the given source type are returned. - `CARD` - List refunds only for
37
- # payments where card was specified as payment source. Default: If omitted
36
+ # with the given source type are returned. - `CARD` - List refunds only for
37
+ # payments where card was specified as payment source. Default: If omitted
38
38
  # refunds are returned regardless of source type.
39
39
  # @return [ListPaymentRefundsResponse Hash] response from the API call
40
40
  def list_payment_refunds(begin_time: nil,
@@ -30,9 +30,8 @@ module Square
30
30
  # newest first). Default value: `DESC`
31
31
  # @param [String] cursor Optional parameter: A pagination cursor returned by
32
32
  # a previous call to this endpoint. Provide this to retrieve the next set of
33
- # results for your original query. See
34
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
35
- # for more information.
33
+ # results for your original query. See [Paginating
34
+ # results](#paginatingresults) for more information.
36
35
  # @return [ListAdditionalRecipientReceivableRefundsResponse Hash] response from the API call
37
36
  def list_additional_recipient_receivable_refunds(location_id:,
38
37
  begin_time: nil,
@@ -96,9 +95,8 @@ module Square
96
95
  # newest first). Default value: `DESC`
97
96
  # @param [String] cursor Optional parameter: A pagination cursor returned by
98
97
  # a previous call to this endpoint. Provide this to retrieve the next set of
99
- # results for your original query. See
100
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
101
- # for more information.
98
+ # results for your original query. See [Paginating
99
+ # results](#paginatingresults) for more information.
102
100
  # @return [ListAdditionalRecipientReceivablesResponse Hash] response from the API call
103
101
  def list_additional_recipient_receivables(location_id:,
104
102
  begin_time: nil,
@@ -34,9 +34,8 @@ module Square
34
34
  # newest first). Default value: `DESC`
35
35
  # @param [String] cursor Optional parameter: A pagination cursor returned by
36
36
  # a previous call to this endpoint. Provide this to retrieve the next set of
37
- # results for your original query. See
38
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
39
- # for more information.
37
+ # results for your original query. See [Paginating
38
+ # results](#paginatingresults) for more information.
40
39
  # @return [ListRefundsResponse Hash] response from the API call
41
40
  def list_refunds(location_id:,
42
41
  begin_time: nil,
@@ -100,9 +99,8 @@ module Square
100
99
  # newest first). Default value: `DESC`
101
100
  # @param [String] cursor Optional parameter: A pagination cursor returned by
102
101
  # a previous call to this endpoint. Provide this to retrieve the next set of
103
- # results for your original query. See
104
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
105
- # for more information.
102
+ # results for your original query. See [Paginating
103
+ # results](#paginatingresults) for more information.
106
104
  # @return [ListTransactionsResponse Hash] response from the API call
107
105
  def list_transactions(location_id:,
108
106
  begin_time: nil,
@@ -154,10 +152,16 @@ module Square
154
152
  # - Values for the `customer_card_id` and `customer_id` parameters (to
155
153
  # charge
156
154
  # a customer's card on file)
155
+ # In order for an eCommerce payment to potentially qualify for
156
+ # [Square chargeback protection](https://squareup.com/help/article/5394),
157
+ # you
158
+ # _must_ provide values for the following parameters in your request:
159
+ # - `buyer_email_address`
160
+ # - At least one of `billing_address` or `shipping_address`
157
161
  # When this response is returned, the amount of Square's processing fee
158
162
  # might not yet be
159
163
  # calculated. To obtain the processing fee, wait about ten seconds and call
160
- # [RetrieveTransaction](#endpoint-transactions-retrievetransaction). See the
164
+ # [RetrieveTransaction](#endpoint-retrievetransaction). See the
161
165
  # `processing_fee_money`
162
166
  # field of each [Tender included](#type-tender) in the transaction.
163
167
  # @param [String] location_id Required parameter: The ID of the location to
@@ -240,12 +244,12 @@ module Square
240
244
  end
241
245
 
242
246
  # Captures a transaction that was created with the
243
- # [Charge](#endpoint-transactions-charge)
247
+ # [Charge](#endpoint-charge)
244
248
  # endpoint with a `delay_capture` value of `true`.
245
- # See the [Delay Capture of
246
- # Funds](https://developer.squareup.com/docs/transactions-api/cookbook/delay
247
- # -capture)
248
- # recipe for more information.
249
+ # See [Delayed capture
250
+ # transactions](https://developer.squareup.com/docs/payments/transactions/ov
251
+ # erview#delayed-capture)
252
+ # for more information.
249
253
  # @param [String] location_id Required parameter: Example:
250
254
  # @param [String] transaction_id Required parameter: Example:
251
255
  # @return [CaptureTransactionResponse Hash] response from the API call
@@ -334,13 +338,12 @@ module Square
334
338
  ApiResponse.new(_response, data: decoded, errors: _errors)
335
339
  end
336
340
 
337
- # Cancels a transaction that was created with the
338
- # [Charge](#endpoint-transactions-charge)
341
+ # Cancels a transaction that was created with the [Charge](#endpoint-charge)
339
342
  # endpoint with a `delay_capture` value of `true`.
340
- # See the [Delay Capture of
341
- # Funds](https://developer.squareup.com/docs/transactions-api/cookbook/delay
342
- # -capture)
343
- # recipe for more information.
343
+ # See [Delayed capture
344
+ # transactions](https://developer.squareup.com/docs/payments/transactions/ov
345
+ # erview#delayed-capture)
346
+ # for more information.
344
347
  # @param [String] location_id Required parameter: Example:
345
348
  # @param [String] transaction_id Required parameter: Example:
346
349
  # @return [VoidTransactionResponse Hash] response from the API call