square.rb 20.1.0.20220616 → 22.0.0.20220817

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68c3c60d1b69c141d163be8e453c91bd76cca35f98228aeae4a41f7b61afe8a6
4
- data.tar.gz: 3df6c78f8e6e493967624fca0cd804c1547aa6ccfb2b57daaac05695a33df12d
3
+ metadata.gz: 7406eafacea5f827425c9891d255ae7294e87d6129ca8fdbe9c6d3afe2ca8976
4
+ data.tar.gz: fbada6b040581a4189aae2d6aa6a55ba76be2551e08191d94f054b2aa4133c96
5
5
  SHA512:
6
- metadata.gz: ab11afe945aa6630b158b07040290572d591b15e2d0829363dd334fc38f5197cc2d5eed47a36cf84e68061667d91b874486892da5acebb4f25420b8bec6e190b
7
- data.tar.gz: 3427cb9920daac7363c982754ab7a5c8ef1abf609786e9c8b2bb4a6a4f82da77a2b05e9d7758d71c86613ef8dc54536ea44b9c9f9eed44576d90272121327b67
6
+ metadata.gz: a13e3097da587460e8d566a5f51c389707d0945840c569795473d3e27851706a96f3e944656cc9cd1d6fd2309f784d77cc91ff35323257a93594f58f6c310cba
7
+ data.tar.gz: 876ee033a900d638697c0e992a73d8406febe43b9a1cab66666cfc4f3f375c2feca3763cdc32d4161b5b7545cb5e91d3e24d61867d68959c3ad3611191e2e909
@@ -20,6 +20,13 @@ module Square
20
20
  end
21
21
  end
22
22
 
23
+ def validate_parameters_types(args)
24
+ args.each do |_name, type|
25
+ key, val = type.first
26
+ APIHelper.validate_types(key, val) unless key.nil?
27
+ end
28
+ end
29
+
23
30
  def execute_request(request, binary: false)
24
31
  @http_call_back&.on_before_request(request)
25
32
 
@@ -38,7 +45,7 @@ module Square
38
45
  end
39
46
 
40
47
  def get_user_agent
41
- user_agent = 'Square-Ruby-SDK/20.1.0.20220616 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
48
+ user_agent = 'Square-Ruby-SDK/22.0.0.20220817 ({api-version}) {engine}/{engine-version} ({os-info}) {detail}'
42
49
  user_agent['{engine}'] = RUBY_ENGINE
43
50
  user_agent['{engine-version}'] = RUBY_ENGINE_VERSION
44
51
  user_agent['{os-info}'] = RUBY_PLATFORM
@@ -178,9 +178,9 @@ module Square
178
178
  end
179
179
 
180
180
  # Lists booking profiles for team members.
181
- # @param [Boolean] bookable_only Optional parameter: Indicates whether to
182
- # include only bookable team members in the returned result (`true`) or not
183
- # (`false`).
181
+ # @param [TrueClass|FalseClass] bookable_only Optional parameter: Indicates
182
+ # whether to include only bookable team members in the returned result
183
+ # (`true`) or not (`false`).
184
184
  # @param [Integer] limit Optional parameter: The maximum number of results
185
185
  # to return in a paged response.
186
186
  # @param [String] cursor Optional parameter: The pagination cursor from the
@@ -15,8 +15,9 @@ module Square
15
15
  # @param [String] customer_id Optional parameter: Limit results to cards
16
16
  # associated with the customer supplied. By default, all cards owned by the
17
17
  # merchant are returned.
18
- # @param [Boolean] include_disabled Optional parameter: Includes disabled
19
- # cards. By default, all enabled cards owned by the merchant are returned.
18
+ # @param [TrueClass|FalseClass] include_disabled Optional parameter:
19
+ # Includes disabled cards. By default, all enabled cards owned by the
20
+ # merchant are returned.
20
21
  # @param [String] reference_id Optional parameter: Limit results to cards
21
22
  # associated with the reference_id supplied.
22
23
  # @param [SortOrder] sort_order Optional parameter: Sorts the returned list
@@ -319,8 +319,8 @@ module Square
319
319
  # MODIFIER_LIST, PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT,
320
320
  # SUBSCRIPTION_PLAN, ITEM_OPTION, CUSTOM_ATTRIBUTE_DEFINITION,
321
321
  # QUICK_AMOUNT_SETTINGS.
322
- # @param [Long] catalog_version Optional parameter: The specific version of
323
- # the catalog objects to be included in the response. This allows you to
322
+ # @param [Integer] catalog_version Optional parameter: The specific version
323
+ # of the catalog objects to be included in the response. This allows you to
324
324
  # retrieve historical versions of objects. The specified version value is
325
325
  # matched against the [CatalogObject]($m/CatalogObject)s' `version`
326
326
  # attribute. If not included, results will be from the current version of
@@ -448,26 +448,26 @@ module Square
448
448
  # any [CatalogTax]($m/CatalogTax) objects that apply to it.
449
449
  # @param [String] object_id Required parameter: The object ID of any type of
450
450
  # catalog objects to be retrieved.
451
- # @param [Boolean] include_related_objects Optional parameter: If `true`,
452
- # the response will include additional objects that are related to the
453
- # requested objects. Related objects are defined as any objects referenced
454
- # by ID by the results in the `objects` field of the response. These objects
455
- # are put in the `related_objects` field. Setting this to `true` is helpful
456
- # when the objects are needed for immediate display to a user. This process
457
- # only goes one level deep. Objects referenced by the related objects will
458
- # not be included. For example, if the `objects` field of the response
459
- # contains a CatalogItem, its associated CatalogCategory objects, CatalogTax
460
- # objects, CatalogImage objects and CatalogModifierLists will be returned in
461
- # the `related_objects` field of the response. If the `objects` field of the
462
- # response contains a CatalogItemVariation, its parent CatalogItem will be
463
- # returned in the `related_objects` field of the response. Default value:
464
- # `false`
465
- # @param [Long] catalog_version Optional parameter: Requests objects as of a
466
- # specific version of the catalog. This allows you to retrieve historical
467
- # versions of objects. The value to retrieve a specific version of an object
468
- # can be found in the version field of [CatalogObject]($m/CatalogObject)s.
469
- # If not included, results will be from the current version of the
470
- # catalog.
451
+ # @param [TrueClass|FalseClass] include_related_objects Optional parameter:
452
+ # If `true`, the response will include additional objects that are related
453
+ # to the requested objects. Related objects are defined as any objects
454
+ # referenced by ID by the results in the `objects` field of the response.
455
+ # These objects are put in the `related_objects` field. Setting this to
456
+ # `true` is helpful when the objects are needed for immediate display to a
457
+ # user. This process only goes one level deep. Objects referenced by the
458
+ # related objects will not be included. For example, if the `objects` field
459
+ # of the response contains a CatalogItem, its associated CatalogCategory
460
+ # objects, CatalogTax objects, CatalogImage objects and CatalogModifierLists
461
+ # will be returned in the `related_objects` field of the response. If the
462
+ # `objects` field of the response contains a CatalogItemVariation, its
463
+ # parent CatalogItem will be returned in the `related_objects` field of the
464
+ # response. Default value: `false`
465
+ # @param [Integer] catalog_version Optional parameter: Requests objects as
466
+ # of a specific version of the catalog. This allows you to retrieve
467
+ # historical versions of objects. The value to retrieve a specific version
468
+ # of an object can be found in the version field of
469
+ # [CatalogObject]($m/CatalogObject)s. If not included, results will be from
470
+ # the current version of the catalog.
471
471
  # @return [RetrieveCatalogObjectResponse Hash] response from the API call
472
472
  def retrieve_catalog_object(object_id:,
473
473
  include_related_objects: false,
@@ -23,6 +23,7 @@ module Square
23
23
  # @return [CreateCheckoutResponse Hash] response from the API call
24
24
  def create_checkout(location_id:,
25
25
  body:)
26
+ warn 'Endpoint create_checkout in CheckoutApi is deprecated'
26
27
  # Prepare query url.
27
28
  _query_builder = config.get_base_uri
28
29
  _query_builder << '/v2/locations/{location_id}/checkouts'
@@ -57,14 +58,13 @@ module Square
57
58
 
58
59
  # Lists all payment links.
59
60
  # @param [String] cursor Optional parameter: A pagination cursor returned by
60
- # a previous call to this endpoint. Provide this cursor to retrieve the
61
- # next set of results for the original query. If a cursor is not provided,
62
- # the endpoint returns the first page of the results. For more
63
- # information, see
61
+ # a previous call to this endpoint. Provide this cursor to retrieve the next
62
+ # set of results for the original query. If a cursor is not provided, the
63
+ # endpoint returns the first page of the results. For more information, see
64
64
  # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
65
65
  # .
66
66
  # @param [Integer] limit Optional parameter: A limit on the number of
67
- # results to return per page. The limit is advisory and the implementation
67
+ # results to return per page. The limit is advisory and the implementation
68
68
  # might return more or less results. If the supplied limit is negative,
69
69
  # zero, or greater than the maximum limit of 1000, it is ignored. Default
70
70
  # value: `100`
@@ -5,14 +5,17 @@ module Square
5
5
  super(config, http_call_back: http_call_back)
6
6
  end
7
7
 
8
- # Lists the customer-related custom attribute definitions that belong to a
9
- # Square seller account.
8
+ # Lists the customer-related [custom attribute
9
+ # definitions]($m/CustomAttributeDefinition) that belong to a Square seller
10
+ # account.
10
11
  # When all response pages are retrieved, the results include all custom
11
12
  # attribute definitions
12
13
  # that are visible to the requesting application, including those that are
13
14
  # created by other
14
15
  # applications and set to `VISIBILITY_READ_ONLY` or
15
- # `VISIBILITY_READ_WRITE_VALUES`.
16
+ # `VISIBILITY_READ_WRITE_VALUES`. Note that
17
+ # seller-defined custom attributes (also known as custom fields) are always
18
+ # set to `VISIBILITY_READ_WRITE_VALUES`.
16
19
  # @param [Integer] limit Optional parameter: The maximum number of results
17
20
  # to return in a single paged response. This limit is advisory. The response
18
21
  # might contain more or fewer results. The minimum value is 1 and the
@@ -59,10 +62,10 @@ module Square
59
62
  )
60
63
  end
61
64
 
62
- # Creates a customer-related custom attribute definition for a Square seller
63
- # account. Use this
64
- # endpoint to define a custom attribute that can be associated with customer
65
- # profiles.
65
+ # Creates a customer-related [custom attribute
66
+ # definition]($m/CustomAttributeDefinition) for a Square seller account.
67
+ # Use this endpoint to define a custom attribute that can be associated with
68
+ # customer profiles.
66
69
  # A custom attribute definition specifies the `key`, `visibility`, `schema`,
67
70
  # and other properties
68
71
  # for a custom attribute. After the definition is created, you can call
@@ -108,8 +111,8 @@ module Square
108
111
  )
109
112
  end
110
113
 
111
- # Deletes a customer-related custom attribute definition from a Square
112
- # seller account.
114
+ # Deletes a customer-related [custom attribute
115
+ # definition]($m/CustomAttributeDefinition) from a Square seller account.
113
116
  # Deleting a custom attribute definition also deletes the corresponding
114
117
  # custom attribute from
115
118
  # all customer profiles in the seller's Customer Directory.
@@ -148,11 +151,14 @@ module Square
148
151
  )
149
152
  end
150
153
 
151
- # Retrieves a customer-related custom attribute definition from a Square
152
- # seller account.
154
+ # Retrieves a customer-related [custom attribute
155
+ # definition]($m/CustomAttributeDefinition) from a Square seller account.
153
156
  # To retrieve a custom attribute definition created by another application,
154
157
  # the `visibility`
155
158
  # setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
159
+ # Note that seller-defined custom attributes
160
+ # (also known as custom fields) are always set to
161
+ # `VISIBILITY_READ_WRITE_VALUES`.
156
162
  # @param [String] key Required parameter: The key of the custom attribute
157
163
  # definition to retrieve. If the requesting application is not the
158
164
  # definition owner, you must use the qualified key.
@@ -199,8 +205,8 @@ module Square
199
205
  )
200
206
  end
201
207
 
202
- # Updates a customer-related custom attribute definition for a Square seller
203
- # account.
208
+ # Updates a customer-related [custom attribute
209
+ # definition]($m/CustomAttributeDefinition) for a Square seller account.
204
210
  # Use this endpoint to update the following fields: `name`, `description`,
205
211
  # `visibility`, or the
206
212
  # `schema` for a `Selection` data type.
@@ -248,8 +254,8 @@ module Square
248
254
  )
249
255
  end
250
256
 
251
- # Creates or updates custom attributes for customer profiles as a bulk
252
- # operation.
257
+ # Creates or updates [custom attributes]($m/CustomAttribute) for customer
258
+ # profiles as a bulk operation.
253
259
  # Use this endpoint to set the value of one or more custom attributes for
254
260
  # one or more customer profiles.
255
261
  # A custom attribute is based on a custom attribute definition in a Square
@@ -266,7 +272,10 @@ module Square
266
272
  # of the corresponding request.
267
273
  # To create or update a custom attribute owned by another application, the
268
274
  # `visibility` setting
269
- # must be `VISIBILITY_READ_WRITE_VALUES`.
275
+ # must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom
276
+ # attributes
277
+ # (also known as custom fields) are always set to
278
+ # `VISIBILITY_READ_WRITE_VALUES`.
270
279
  # @param [BulkUpsertCustomerCustomAttributesRequest] body Required
271
280
  # parameter: An object containing the fields to POST for the request. See
272
281
  # the corresponding object definition for field details.
@@ -300,7 +309,8 @@ module Square
300
309
  )
301
310
  end
302
311
 
303
- # Lists the custom attributes associated with a customer profile.
312
+ # Lists the [custom attributes]($m/CustomAttribute) associated with a
313
+ # customer profile.
304
314
  # You can use the `with_definitions` query parameter to also retrieve custom
305
315
  # attribute definitions
306
316
  # in the same call.
@@ -323,12 +333,12 @@ module Square
323
333
  # more information, see
324
334
  # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
325
335
  # atterns/pagination).
326
- # @param [Boolean] with_definitions Optional parameter: Indicates whether to
327
- # return the [custom attribute definition]($m/CustomAttributeDefinition) in
328
- # the `definition` field of each custom attribute. Set this parameter to
329
- # `true` to get the name and description of each custom attribute,
330
- # information about the data type, or other definition details. The default
331
- # value is `false`.
336
+ # @param [TrueClass|FalseClass] with_definitions Optional parameter:
337
+ # Indicates whether to return the [custom attribute
338
+ # definition]($m/CustomAttributeDefinition) in the `definition` field of
339
+ # each custom attribute. Set this parameter to `true` to get the name and
340
+ # description of each custom attribute, information about the data type, or
341
+ # other definition details. The default value is `false`.
332
342
  # @return [ListCustomerCustomAttributesResponse Hash] response from the API call
333
343
  def list_customer_custom_attributes(customer_id:,
334
344
  limit: nil,
@@ -370,9 +380,12 @@ module Square
370
380
  )
371
381
  end
372
382
 
373
- # Deletes a custom attribute associated with a customer profile.
383
+ # Deletes a [custom attribute]($m/CustomAttribute) associated with a
384
+ # customer profile.
374
385
  # To delete a custom attribute owned by another application, the
375
386
  # `visibility` setting must be
387
+ # `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
388
+ # (also known as custom fields) are always set to
376
389
  # `VISIBILITY_READ_WRITE_VALUES`.
377
390
  # @param [String] customer_id Required parameter: The ID of the target
378
391
  # [customer profile]($m/Customer).
@@ -414,25 +427,29 @@ module Square
414
427
  )
415
428
  end
416
429
 
417
- # Retrieves a custom attribute associated with a customer profile.
430
+ # Retrieves a [custom attribute]($m/CustomAttribute) associated with a
431
+ # customer profile.
418
432
  # You can use the `with_definition` query parameter to also retrieve the
419
433
  # custom attribute definition
420
434
  # in the same call.
421
435
  # To retrieve a custom attribute owned by another application, the
422
436
  # `visibility` setting must be
423
- # `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
437
+ # `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that
438
+ # seller-defined custom attributes
439
+ # (also known as custom fields) are always set to
440
+ # `VISIBILITY_READ_WRITE_VALUES`.
424
441
  # @param [String] customer_id Required parameter: The ID of the target
425
442
  # [customer profile]($m/Customer).
426
443
  # @param [String] key Required parameter: The key of the custom attribute to
427
444
  # retrieve. This key must match the `key` of a custom attribute definition
428
445
  # in the Square seller account. If the requesting application is not the
429
446
  # definition owner, you must use the qualified key.
430
- # @param [Boolean] with_definition Optional parameter: Indicates whether to
431
- # return the [custom attribute definition]($m/CustomAttributeDefinition) in
432
- # the `definition` field of the custom attribute. Set this parameter to
433
- # `true` to get the name and description of the custom attribute,
434
- # information about the data type, or other definition details. The default
435
- # value is `false`.
447
+ # @param [TrueClass|FalseClass] with_definition Optional parameter:
448
+ # Indicates whether to return the [custom attribute
449
+ # definition]($m/CustomAttributeDefinition) in the `definition` field of the
450
+ # custom attribute. Set this parameter to `true` to get the name and
451
+ # description of the custom attribute, information about the data type, or
452
+ # other definition details. The default value is `false`.
436
453
  # @param [Integer] version Optional parameter: The current version of the
437
454
  # custom attribute, which is used for strongly consistent reads to guarantee
438
455
  # that you receive the most up-to-date data. When included in the request,
@@ -480,7 +497,8 @@ module Square
480
497
  )
481
498
  end
482
499
 
483
- # Creates or updates a custom attribute for a customer profile.
500
+ # Creates or updates a [custom attribute]($m/CustomAttribute) for a customer
501
+ # profile.
484
502
  # Use this endpoint to set the value of a custom attribute for a specified
485
503
  # customer profile.
486
504
  # A custom attribute is based on a custom attribute definition in a Square
@@ -490,7 +508,10 @@ module Square
490
508
  # teCustomerCustomAttributeDefinition) endpoint.
491
509
  # To create or update a custom attribute owned by another application, the
492
510
  # `visibility` setting
493
- # must be `VISIBILITY_READ_WRITE_VALUES`.
511
+ # must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom
512
+ # attributes
513
+ # (also known as custom fields) are always set to
514
+ # `VISIBILITY_READ_WRITE_VALUES`.
494
515
  # @param [String] customer_id Required parameter: The ID of the target
495
516
  # [customer profile]($m/Customer).
496
517
  # @param [String] key Required parameter: The key of the custom attribute to
@@ -110,8 +110,8 @@ module Square
110
110
  )
111
111
  end
112
112
 
113
- # Searches the customer profiles associated with a Square account using a
114
- # supported query filter.
113
+ # Searches the customer profiles associated with a Square account using one
114
+ # or more supported query filters.
115
115
  # Calling `SearchCustomers` without any explicit query filter returns all
116
116
  # customer profiles ordered alphabetically based on `given_name` and
117
117
  # `family_name`.
@@ -165,7 +165,7 @@ module Square
165
165
  # profiles, you must use the ID of the newly created profile.
166
166
  # @param [String] customer_id Required parameter: The ID of the customer to
167
167
  # delete.
168
- # @param [Long] version Optional parameter: The current version of the
168
+ # @param [Integer] version Optional parameter: The current version of the
169
169
  # customer profile. As a best practice, you should include this parameter
170
170
  # to enable [optimistic
171
171
  # concurrency](https://developer.squareup.com/docs/build-basics/common-api-p
@@ -11,13 +11,12 @@ module Square
11
11
  # set of results for the original query. For more information, see
12
12
  # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
13
13
  # .
14
- # @param [DisputeState] states Optional parameter: The dispute states to
15
- # filter the result. If not specified, the endpoint returns all open
16
- # disputes (the dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`).
14
+ # @param [DisputeState] states Optional parameter: The dispute states used
15
+ # to filter the result. If not specified, the endpoint returns all
16
+ # disputes.
17
17
  # @param [String] location_id Optional parameter: The ID of the location for
18
18
  # which to return a list of disputes. If not specified, the endpoint returns
19
- # all open disputes (the dispute status is not `INQUIRY_CLOSED`, `WON`, or
20
- # `LOST`) associated with all locations.
19
+ # disputes associated with all locations.
21
20
  # @return [ListDisputesResponse Hash] response from the API call
22
21
  def list_disputes(cursor: nil,
23
22
  states: nil,
@@ -134,8 +133,8 @@ module Square
134
133
  # @param [String] cursor Optional parameter: A pagination cursor returned by
135
134
  # a previous call to this endpoint. Provide this cursor to retrieve the next
136
135
  # set of results for the original query. For more information, see
137
- # [Pagination](https://developer.squareup.com/docs/basics/api101/pagination)
138
- # .
136
+ # [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
137
+ # atterns/pagination).
139
138
  # @return [ListDisputeEvidenceResponse Hash] response from the API call
140
139
  def list_dispute_evidence(dispute_id:,
141
140
  cursor: nil)
@@ -177,8 +176,8 @@ module Square
177
176
  # accepts HTTP
178
177
  # multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF
179
178
  # formats.
180
- # @param [String] dispute_id Required parameter: The ID of the dispute you
181
- # want to upload evidence for.
179
+ # @param [String] dispute_id Required parameter: The ID of the dispute for
180
+ # which you want to upload evidence.
182
181
  # @param [CreateDisputeEvidenceFileRequest] request Optional parameter:
183
182
  # Defines the parameters for a `CreateDisputeEvidenceFile` request.
184
183
  # @param [File | UploadIO] image_file Optional parameter: Example:
@@ -239,8 +238,8 @@ module Square
239
238
  end
240
239
 
241
240
  # Uploads text to use as evidence for a dispute challenge.
242
- # @param [String] dispute_id Required parameter: The ID of the dispute you
243
- # want to upload evidence for.
241
+ # @param [String] dispute_id Required parameter: The ID of the dispute for
242
+ # which you want to upload evidence.
244
243
  # @param [CreateDisputeEvidenceTextRequest] body Required parameter: An
245
244
  # object containing the fields to POST for the request. See the
246
245
  # corresponding object definition for field details.
@@ -280,12 +279,9 @@ module Square
280
279
  end
281
280
 
282
281
  # Removes specified evidence from a dispute.
283
- # Square does not send the bank any evidence that is removed. Also, you
284
- # cannot remove evidence after
285
- # submitting it to the bank using
286
- # [SubmitEvidence]($e/Disputes/SubmitEvidence).
287
- # @param [String] dispute_id Required parameter: The ID of the dispute you
288
- # want to remove evidence from.
282
+ # Square does not send the bank any evidence that is removed.
283
+ # @param [String] dispute_id Required parameter: The ID of the dispute from
284
+ # which you want to remove evidence.
289
285
  # @param [String] evidence_id Required parameter: The ID of the evidence you
290
286
  # want to remove.
291
287
  # @return [DeleteDisputeEvidenceResponse Hash] response from the API call
@@ -322,13 +318,11 @@ module Square
322
318
  )
323
319
  end
324
320
 
325
- # Returns the evidence metadata specified by the evidence ID in the request
326
- # URL path
327
- # You must maintain a copy of the evidence you upload if you want to
328
- # reference it later. You cannot
329
- # download the evidence after you upload it.
330
- # @param [String] dispute_id Required parameter: The ID of the dispute that
331
- # you want to retrieve evidence from.
321
+ # Returns the metadata for the evidence specified in the request URL path.
322
+ # You must maintain a copy of any evidence uploaded if you want to reference
323
+ # it later. Evidence cannot be downloaded after you upload it.
324
+ # @param [String] dispute_id Required parameter: The ID of the dispute from
325
+ # which you want to retrieve evidence metadata.
332
326
  # @param [String] evidence_id Required parameter: The ID of the evidence to
333
327
  # retrieve.
334
328
  # @return [RetrieveDisputeEvidenceResponse Hash] response from the API call
@@ -366,15 +360,16 @@ module Square
366
360
  end
367
361
 
368
362
  # Submits evidence to the cardholder's bank.
369
- # Before submitting evidence, Square compiles all available evidence. This
370
- # includes evidence uploaded
363
+ # The evidence submitted by this endpoint includes evidence uploaded
371
364
  # using the
372
365
  # [CreateDisputeEvidenceFile]($e/Disputes/CreateDisputeEvidenceFile) and
373
366
  # [CreateDisputeEvidenceText]($e/Disputes/CreateDisputeEvidenceText)
374
367
  # endpoints and
375
- # evidence automatically provided by Square, when available.
376
- # @param [String] dispute_id Required parameter: The ID of the dispute that
377
- # you want to submit evidence for.
368
+ # evidence automatically provided by Square, when available. Evidence cannot
369
+ # be removed from
370
+ # a dispute after submission.
371
+ # @param [String] dispute_id Required parameter: The ID of the dispute for
372
+ # which you want to submit evidence.
378
373
  # @return [SubmitEvidenceResponse Hash] response from the API call
379
374
  def submit_evidence(dispute_id:)
380
375
  # Prepare query url.