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.
@@ -10,11 +10,21 @@ module Square
10
10
  super(config, http_call_back: http_call_back)
11
11
  end
12
12
 
13
- # Lists all of a location's item categories.
13
+ # Lists all the item categories for a given location.
14
+ # ---
15
+ # - __Deprecation date__: 2019-11-20
16
+ # - [__Retirement
17
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
18
+ # recated): 2020-11-18
19
+ # - [Migration
20
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
21
+ # )
22
+ # ---
14
23
  # @param [String] location_id Required parameter: The ID of the location to
15
24
  # list categories for.
16
25
  # @return [List of V1Category Hash] response from the API call
17
26
  def list_categories(location_id:)
27
+ warn 'Endpoint list_categories in V1ItemsApi is deprecated'
18
28
  # Prepare query url.
19
29
  _query_builder = config.get_base_uri
20
30
  _query_builder << '/v1/{location_id}/categories'
@@ -44,6 +54,15 @@ module Square
44
54
  end
45
55
 
46
56
  # Creates an item category.
57
+ # ---
58
+ # - __Deprecation date__: 2019-11-20
59
+ # - [__Retirement
60
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
61
+ # recated): 2020-11-18
62
+ # - [Migration
63
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
64
+ # )
65
+ # ---
47
66
  # @param [String] location_id Required parameter: The ID of the location to
48
67
  # create an item for.
49
68
  # @param [V1Category] body Required parameter: An object containing the
@@ -52,6 +71,7 @@ module Square
52
71
  # @return [V1Category Hash] response from the API call
53
72
  def create_category(location_id:,
54
73
  body:)
74
+ warn 'Endpoint create_category in V1ItemsApi is deprecated'
55
75
  # Prepare query url.
56
76
  _query_builder = config.get_base_uri
57
77
  _query_builder << '/v1/{location_id}/categories'
@@ -83,7 +103,16 @@ module Square
83
103
  end
84
104
 
85
105
  # Deletes an existing item category.
86
- # *Note**: DeleteCategory returns nothing on success but Connect SDKs
106
+ # ---
107
+ # - __Deprecation date__: 2019-11-20
108
+ # - [__Retirement
109
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
110
+ # recated): 2020-11-18
111
+ # - [Migration
112
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
113
+ # )
114
+ # ---
115
+ # __DeleteCategory__ returns nothing on success but Connect SDKs
87
116
  # map the empty response to an empty `V1DeleteCategoryRequest` object
88
117
  # as documented below.
89
118
  # @param [String] location_id Required parameter: The ID of the item's
@@ -93,6 +122,7 @@ module Square
93
122
  # @return [V1Category Hash] response from the API call
94
123
  def delete_category(location_id:,
95
124
  category_id:)
125
+ warn 'Endpoint delete_category in V1ItemsApi is deprecated'
96
126
  # Prepare query url.
97
127
  _query_builder = config.get_base_uri
98
128
  _query_builder << '/v1/{location_id}/categories/{category_id}'
@@ -123,6 +153,15 @@ module Square
123
153
  end
124
154
 
125
155
  # Modifies the details of an existing item category.
156
+ # ---
157
+ # - __Deprecation date__: 2019-11-20
158
+ # - [__Retirement
159
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
160
+ # recated): 2020-11-18
161
+ # - [Migration
162
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
163
+ # )
164
+ # ---
126
165
  # @param [String] location_id Required parameter: The ID of the category's
127
166
  # associated location.
128
167
  # @param [String] category_id Required parameter: The ID of the category to
@@ -134,6 +173,7 @@ module Square
134
173
  def update_category(location_id:,
135
174
  category_id:,
136
175
  body:)
176
+ warn 'Endpoint update_category in V1ItemsApi is deprecated'
137
177
  # Prepare query url.
138
178
  _query_builder = config.get_base_uri
139
179
  _query_builder << '/v1/{location_id}/categories/{category_id}'
@@ -165,11 +205,21 @@ module Square
165
205
  ApiResponse.new(_response, data: decoded, errors: _errors)
166
206
  end
167
207
 
168
- # Lists all of a location's discounts.
208
+ # Lists all the discounts for a given location.
209
+ # ---
210
+ # - __Deprecation date__: 2019-11-20
211
+ # - [__Retirement
212
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
213
+ # recated): 2020-11-18
214
+ # - [Migration
215
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
216
+ # )
217
+ # ---
169
218
  # @param [String] location_id Required parameter: The ID of the location to
170
219
  # list categories for.
171
220
  # @return [List of V1Discount Hash] response from the API call
172
221
  def list_discounts(location_id:)
222
+ warn 'Endpoint list_discounts in V1ItemsApi is deprecated'
173
223
  # Prepare query url.
174
224
  _query_builder = config.get_base_uri
175
225
  _query_builder << '/v1/{location_id}/discounts'
@@ -199,6 +249,15 @@ module Square
199
249
  end
200
250
 
201
251
  # Creates a discount.
252
+ # ---
253
+ # - __Deprecation date__: 2019-11-20
254
+ # - [__Retirement
255
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
256
+ # recated): 2020-11-18
257
+ # - [Migration
258
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
259
+ # )
260
+ # ---
202
261
  # @param [String] location_id Required parameter: The ID of the location to
203
262
  # create an item for.
204
263
  # @param [V1Discount] body Required parameter: An object containing the
@@ -207,6 +266,7 @@ module Square
207
266
  # @return [V1Discount Hash] response from the API call
208
267
  def create_discount(location_id:,
209
268
  body:)
269
+ warn 'Endpoint create_discount in V1ItemsApi is deprecated'
210
270
  # Prepare query url.
211
271
  _query_builder = config.get_base_uri
212
272
  _query_builder << '/v1/{location_id}/discounts'
@@ -238,7 +298,16 @@ module Square
238
298
  end
239
299
 
240
300
  # Deletes an existing discount.
241
- # *Note**: DeleteDiscount returns nothing on success but Connect SDKs
301
+ # ---
302
+ # - __Deprecation date__: 2019-11-20
303
+ # - [__Retirement
304
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
305
+ # recated): 2020-11-18
306
+ # - [Migration
307
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
308
+ # )
309
+ # ---
310
+ # __DeleteDiscount__ returns nothing on success but Connect SDKs
242
311
  # map the empty response to an empty `V1DeleteDiscountRequest` object
243
312
  # as documented below.
244
313
  # @param [String] location_id Required parameter: The ID of the item's
@@ -248,6 +317,7 @@ module Square
248
317
  # @return [V1Discount Hash] response from the API call
249
318
  def delete_discount(location_id:,
250
319
  discount_id:)
320
+ warn 'Endpoint delete_discount in V1ItemsApi is deprecated'
251
321
  # Prepare query url.
252
322
  _query_builder = config.get_base_uri
253
323
  _query_builder << '/v1/{location_id}/discounts/{discount_id}'
@@ -278,6 +348,15 @@ module Square
278
348
  end
279
349
 
280
350
  # Modifies the details of an existing discount.
351
+ # ---
352
+ # - __Deprecation date__: 2019-11-20
353
+ # - [__Retirement
354
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
355
+ # recated): 2020-11-18
356
+ # - [Migration
357
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
358
+ # )
359
+ # ---
281
360
  # @param [String] location_id Required parameter: The ID of the category's
282
361
  # associated location.
283
362
  # @param [String] discount_id Required parameter: The ID of the discount to
@@ -289,6 +368,7 @@ module Square
289
368
  def update_discount(location_id:,
290
369
  discount_id:,
291
370
  body:)
371
+ warn 'Endpoint update_discount in V1ItemsApi is deprecated'
292
372
  # Prepare query url.
293
373
  _query_builder = config.get_base_uri
294
374
  _query_builder << '/v1/{location_id}/discounts/{discount_id}'
@@ -320,11 +400,21 @@ module Square
320
400
  ApiResponse.new(_response, data: decoded, errors: _errors)
321
401
  end
322
402
 
323
- # Lists all of a location's fees (taxes).
403
+ # Lists all the fees (taxes) for a given location.
404
+ # ---
405
+ # - __Deprecation date__: 2019-11-20
406
+ # - [__Retirement
407
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
408
+ # recated): 2020-11-18
409
+ # - [Migration
410
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
411
+ # )
412
+ # ---
324
413
  # @param [String] location_id Required parameter: The ID of the location to
325
414
  # list fees for.
326
415
  # @return [List of V1Fee Hash] response from the API call
327
416
  def list_fees(location_id:)
417
+ warn 'Endpoint list_fees in V1ItemsApi is deprecated'
328
418
  # Prepare query url.
329
419
  _query_builder = config.get_base_uri
330
420
  _query_builder << '/v1/{location_id}/fees'
@@ -354,6 +444,15 @@ module Square
354
444
  end
355
445
 
356
446
  # Creates a fee (tax).
447
+ # ---
448
+ # - __Deprecation date__: 2019-11-20
449
+ # - [__Retirement
450
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
451
+ # recated): 2020-11-18
452
+ # - [Migration
453
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
454
+ # )
455
+ # ---
357
456
  # @param [String] location_id Required parameter: The ID of the location to
358
457
  # create a fee for.
359
458
  # @param [V1Fee] body Required parameter: An object containing the fields to
@@ -362,6 +461,7 @@ module Square
362
461
  # @return [V1Fee Hash] response from the API call
363
462
  def create_fee(location_id:,
364
463
  body:)
464
+ warn 'Endpoint create_fee in V1ItemsApi is deprecated'
365
465
  # Prepare query url.
366
466
  _query_builder = config.get_base_uri
367
467
  _query_builder << '/v1/{location_id}/fees'
@@ -393,7 +493,16 @@ module Square
393
493
  end
394
494
 
395
495
  # Deletes an existing fee (tax).
396
- # *Note**: DeleteFee returns nothing on success but Connect SDKs
496
+ # ---
497
+ # - __Deprecation date__: 2019-11-20
498
+ # - [__Retirement
499
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
500
+ # recated): 2020-11-18
501
+ # - [Migration
502
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
503
+ # )
504
+ # ---
505
+ # __DeleteFee__ returns nothing on success but Connect SDKs
397
506
  # map the empty response to an empty `V1DeleteFeeRequest` object
398
507
  # as documented below.
399
508
  # @param [String] location_id Required parameter: The ID of the fee's
@@ -402,6 +511,7 @@ module Square
402
511
  # @return [V1Fee Hash] response from the API call
403
512
  def delete_fee(location_id:,
404
513
  fee_id:)
514
+ warn 'Endpoint delete_fee in V1ItemsApi is deprecated'
405
515
  # Prepare query url.
406
516
  _query_builder = config.get_base_uri
407
517
  _query_builder << '/v1/{location_id}/fees/{fee_id}'
@@ -432,6 +542,15 @@ module Square
432
542
  end
433
543
 
434
544
  # Modifies the details of an existing fee (tax).
545
+ # ---
546
+ # - __Deprecation date__: 2019-11-20
547
+ # - [__Retirement
548
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
549
+ # recated): 2020-11-18
550
+ # - [Migration
551
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
552
+ # )
553
+ # ---
435
554
  # @param [String] location_id Required parameter: The ID of the fee's
436
555
  # associated location.
437
556
  # @param [String] fee_id Required parameter: The ID of the fee to edit.
@@ -442,6 +561,7 @@ module Square
442
561
  def update_fee(location_id:,
443
562
  fee_id:,
444
563
  body:)
564
+ warn 'Endpoint update_fee in V1ItemsApi is deprecated'
445
565
  # Prepare query url.
446
566
  _query_builder = config.get_base_uri
447
567
  _query_builder << '/v1/{location_id}/fees/{fee_id}'
@@ -473,8 +593,17 @@ module Square
473
593
  ApiResponse.new(_response, data: decoded, errors: _errors)
474
594
  end
475
595
 
476
- # Provides inventory information for all of a merchant's inventory-enabled
477
- # item variations.
596
+ # Provides inventory information for all inventory-enabled item
597
+ # variations.
598
+ # ---
599
+ # - __Deprecation date__: 2019-11-20
600
+ # - [__Retirement
601
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
602
+ # recated): 2020-11-18
603
+ # - [Migration
604
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
605
+ # )
606
+ # ---
478
607
  # @param [String] location_id Required parameter: The ID of the item's
479
608
  # associated location.
480
609
  # @param [Integer] limit Optional parameter: The maximum number of inventory
@@ -486,6 +615,7 @@ module Square
486
615
  def list_inventory(location_id:,
487
616
  limit: nil,
488
617
  batch_token: nil)
618
+ warn 'Endpoint list_inventory in V1ItemsApi is deprecated'
489
619
  # Prepare query url.
490
620
  _query_builder = config.get_base_uri
491
621
  _query_builder << '/v1/{location_id}/inventory'
@@ -519,7 +649,16 @@ module Square
519
649
  ApiResponse.new(_response, data: decoded, errors: _errors)
520
650
  end
521
651
 
522
- # Adjusts an item variation's current available inventory.
652
+ # Adjusts the current available inventory of an item variation.
653
+ # ---
654
+ # - __Deprecation date__: 2019-11-20
655
+ # - [__Retirement
656
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
657
+ # recated): 2020-11-18
658
+ # - [Migration
659
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
660
+ # )
661
+ # ---
523
662
  # @param [String] location_id Required parameter: The ID of the item's
524
663
  # associated location.
525
664
  # @param [String] variation_id Required parameter: The ID of the variation
@@ -531,6 +670,7 @@ module Square
531
670
  def adjust_inventory(location_id:,
532
671
  variation_id:,
533
672
  body:)
673
+ warn 'Endpoint adjust_inventory in V1ItemsApi is deprecated'
534
674
  # Prepare query url.
535
675
  _query_builder = config.get_base_uri
536
676
  _query_builder << '/v1/{location_id}/inventory/{variation_id}'
@@ -562,7 +702,16 @@ module Square
562
702
  ApiResponse.new(_response, data: decoded, errors: _errors)
563
703
  end
564
704
 
565
- # Provides summary information for all of a location's items.
705
+ # Provides summary information of all items for a given location.
706
+ # ---
707
+ # - __Deprecation date__: 2019-11-20
708
+ # - [__Retirement
709
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
710
+ # recated): 2020-11-18
711
+ # - [Migration
712
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
713
+ # )
714
+ # ---
566
715
  # @param [String] location_id Required parameter: The ID of the location to
567
716
  # list items for.
568
717
  # @param [String] batch_token Optional parameter: A pagination cursor to
@@ -571,6 +720,7 @@ module Square
571
720
  # @return [List of V1Item Hash] response from the API call
572
721
  def list_items(location_id:,
573
722
  batch_token: nil)
723
+ warn 'Endpoint list_items in V1ItemsApi is deprecated'
574
724
  # Prepare query url.
575
725
  _query_builder = config.get_base_uri
576
726
  _query_builder << '/v1/{location_id}/items'
@@ -603,17 +753,26 @@ module Square
603
753
  ApiResponse.new(_response, data: decoded, errors: _errors)
604
754
  end
605
755
 
606
- # Creates an item and at least one variation for it. Item-related
607
- # entities include fields you can use to associate them with entities in a
608
- # non-Square system.
609
- # When you create an item-related entity, you can optionally specify its
610
- # `id`. This value must be unique among all IDs ever specified for the
611
- # account, including those specified by other applications. You can never
612
- # reuse an entity ID. If you do not specify an ID, Square generates one
613
- # for the entity.
756
+ # Creates an item and at least one variation for it.
757
+ # ---
758
+ # - __Deprecation date__: 2019-11-20
759
+ # - [__Retirement
760
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
761
+ # recated): 2020-11-18
762
+ # - [Migration
763
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
764
+ # )
765
+ # ---
766
+ # Item-related entities include fields you can use to associate them with
767
+ # entities in a non-Square system.
768
+ # When you create an item-related entity, you can optionally specify `id`.
769
+ # This value must be unique among all IDs ever specified for the account,
770
+ # including those specified by other applications. You can never reuse an
771
+ # entity ID. If you do not specify an ID, Square generates one for the
772
+ # entity.
614
773
  # Item variations have a `user_data` string that lets you associate
615
- # arbitrary metadata with the variation. The string cannot exceed 255
616
- # characters.
774
+ # arbitrary
775
+ # metadata with the variation. The string cannot exceed 255 characters.
617
776
  # @param [String] location_id Required parameter: The ID of the location to
618
777
  # create an item for.
619
778
  # @param [V1Item] body Required parameter: An object containing the fields
@@ -622,6 +781,7 @@ module Square
622
781
  # @return [V1Item Hash] response from the API call
623
782
  def create_item(location_id:,
624
783
  body:)
784
+ warn 'Endpoint create_item in V1ItemsApi is deprecated'
625
785
  # Prepare query url.
626
786
  _query_builder = config.get_base_uri
627
787
  _query_builder << '/v1/{location_id}/items'
@@ -653,7 +813,16 @@ module Square
653
813
  end
654
814
 
655
815
  # Deletes an existing item and all item variations associated with it.
656
- # *Note**: DeleteItem returns nothing on success but Connect SDKs
816
+ # ---
817
+ # - __Deprecation date__: 2019-11-20
818
+ # - [__Retirement
819
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
820
+ # recated): 2020-11-18
821
+ # - [Migration
822
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
823
+ # )
824
+ # ---
825
+ # __DeleteItem__ returns nothing on success but Connect SDKs
657
826
  # map the empty response to an empty `V1DeleteItemRequest` object
658
827
  # as documented below.
659
828
  # @param [String] location_id Required parameter: The ID of the item's
@@ -663,6 +832,7 @@ module Square
663
832
  # @return [V1Item Hash] response from the API call
664
833
  def delete_item(location_id:,
665
834
  item_id:)
835
+ warn 'Endpoint delete_item in V1ItemsApi is deprecated'
666
836
  # Prepare query url.
667
837
  _query_builder = config.get_base_uri
668
838
  _query_builder << '/v1/{location_id}/items/{item_id}'
@@ -694,12 +864,22 @@ module Square
694
864
 
695
865
  # Provides the details for a single item, including associated modifier
696
866
  # lists and fees.
867
+ # ---
868
+ # - __Deprecation date__: 2019-11-20
869
+ # - [__Retirement
870
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
871
+ # recated): 2020-11-18
872
+ # - [Migration
873
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
874
+ # )
875
+ # ---
697
876
  # @param [String] location_id Required parameter: The ID of the item's
698
877
  # associated location.
699
878
  # @param [String] item_id Required parameter: The item's ID.
700
879
  # @return [V1Item Hash] response from the API call
701
880
  def retrieve_item(location_id:,
702
881
  item_id:)
882
+ warn 'Endpoint retrieve_item in V1ItemsApi is deprecated'
703
883
  # Prepare query url.
704
884
  _query_builder = config.get_base_uri
705
885
  _query_builder << '/v1/{location_id}/items/{item_id}'
@@ -730,6 +910,15 @@ module Square
730
910
  end
731
911
 
732
912
  # Modifies the core details of an existing item.
913
+ # ---
914
+ # - __Deprecation date__: 2019-11-20
915
+ # - [__Retirement
916
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
917
+ # recated): 2020-11-18
918
+ # - [Migration
919
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
920
+ # )
921
+ # ---
733
922
  # @param [String] location_id Required parameter: The ID of the item's
734
923
  # associated location.
735
924
  # @param [String] item_id Required parameter: The ID of the item to
@@ -741,6 +930,7 @@ module Square
741
930
  def update_item(location_id:,
742
931
  item_id:,
743
932
  body:)
933
+ warn 'Endpoint update_item in V1ItemsApi is deprecated'
744
934
  # Prepare query url.
745
935
  _query_builder = config.get_base_uri
746
936
  _query_builder << '/v1/{location_id}/items/{item_id}'
@@ -772,8 +962,17 @@ module Square
772
962
  ApiResponse.new(_response, data: decoded, errors: _errors)
773
963
  end
774
964
 
775
- # Removes a fee assocation from an item, meaning the fee is no longer
776
- # automatically applied to the item in Square Register.
965
+ # Removes a fee assocation from an item so the fee is no longer
966
+ # automatically applied to the item in Square Point of Sale.
967
+ # ---
968
+ # - __Deprecation date__: 2019-11-20
969
+ # - [__Retirement
970
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
971
+ # recated): 2020-11-18
972
+ # - [Migration
973
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
974
+ # )
975
+ # ---
777
976
  # @param [String] location_id Required parameter: The ID of the fee's
778
977
  # associated location.
779
978
  # @param [String] item_id Required parameter: The ID of the item to add the
@@ -783,6 +982,7 @@ module Square
783
982
  def remove_fee(location_id:,
784
983
  item_id:,
785
984
  fee_id:)
985
+ warn 'Endpoint remove_fee in V1ItemsApi is deprecated'
786
986
  # Prepare query url.
787
987
  _query_builder = config.get_base_uri
788
988
  _query_builder << '/v1/{location_id}/items/{item_id}/fees/{fee_id}'
@@ -813,8 +1013,17 @@ module Square
813
1013
  ApiResponse.new(_response, data: decoded, errors: _errors)
814
1014
  end
815
1015
 
816
- # Associates a fee with an item, meaning the fee is automatically applied to
817
- # the item in Square Register.
1016
+ # Associates a fee with an item so the fee is automatically applied to
1017
+ # the item in Square Point of Sale.
1018
+ # ---
1019
+ # - __Deprecation date__: 2019-11-20
1020
+ # - [__Retirement
1021
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1022
+ # recated): 2020-11-18
1023
+ # - [Migration
1024
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1025
+ # )
1026
+ # ---
818
1027
  # @param [String] location_id Required parameter: The ID of the fee's
819
1028
  # associated location.
820
1029
  # @param [String] item_id Required parameter: The ID of the item to add the
@@ -824,6 +1033,7 @@ module Square
824
1033
  def apply_fee(location_id:,
825
1034
  item_id:,
826
1035
  fee_id:)
1036
+ warn 'Endpoint apply_fee in V1ItemsApi is deprecated'
827
1037
  # Prepare query url.
828
1038
  _query_builder = config.get_base_uri
829
1039
  _query_builder << '/v1/{location_id}/items/{item_id}/fees/{fee_id}'
@@ -854,8 +1064,17 @@ module Square
854
1064
  ApiResponse.new(_response, data: decoded, errors: _errors)
855
1065
  end
856
1066
 
857
- # Removes a modifier list association from an item, meaning modifier options
858
- # from the list can no longer be applied to the item.
1067
+ # Removes a modifier list association from an item so the modifier
1068
+ # options from the list can no longer be applied to the item.
1069
+ # ---
1070
+ # - __Deprecation date__: 2019-11-20
1071
+ # - [__Retirement
1072
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1073
+ # recated): 2020-11-18
1074
+ # - [Migration
1075
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1076
+ # )
1077
+ # ---
859
1078
  # @param [String] location_id Required parameter: The ID of the item's
860
1079
  # associated location.
861
1080
  # @param [String] modifier_list_id Required parameter: The ID of the
@@ -866,6 +1085,7 @@ module Square
866
1085
  def remove_modifier_list(location_id:,
867
1086
  modifier_list_id:,
868
1087
  item_id:)
1088
+ warn 'Endpoint remove_modifier_list in V1ItemsApi is deprecated'
869
1089
  # Prepare query url.
870
1090
  _query_builder = config.get_base_uri
871
1091
  _query_builder << '/v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id}'
@@ -896,8 +1116,17 @@ module Square
896
1116
  ApiResponse.new(_response, data: decoded, errors: _errors)
897
1117
  end
898
1118
 
899
- # Associates a modifier list with an item, meaning modifier options from the
900
- # list can be applied to the item.
1119
+ # Associates a modifier list with an item so the associated modifier
1120
+ # options can be applied to the item.
1121
+ # ---
1122
+ # - __Deprecation date__: 2019-11-20
1123
+ # - [__Retirement
1124
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1125
+ # recated): 2020-11-18
1126
+ # - [Migration
1127
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1128
+ # )
1129
+ # ---
901
1130
  # @param [String] location_id Required parameter: The ID of the item's
902
1131
  # associated location.
903
1132
  # @param [String] modifier_list_id Required parameter: The ID of the
@@ -908,6 +1137,7 @@ module Square
908
1137
  def apply_modifier_list(location_id:,
909
1138
  modifier_list_id:,
910
1139
  item_id:)
1140
+ warn 'Endpoint apply_modifier_list in V1ItemsApi is deprecated'
911
1141
  # Prepare query url.
912
1142
  _query_builder = config.get_base_uri
913
1143
  _query_builder << '/v1/{location_id}/items/{item_id}/modifier-lists/{modifier_list_id}'
@@ -939,6 +1169,15 @@ module Square
939
1169
  end
940
1170
 
941
1171
  # Creates an item variation for an existing item.
1172
+ # ---
1173
+ # - __Deprecation date__: 2019-11-20
1174
+ # - [__Retirement
1175
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1176
+ # recated): 2020-11-18
1177
+ # - [Migration
1178
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1179
+ # )
1180
+ # ---
942
1181
  # @param [String] location_id Required parameter: The ID of the item's
943
1182
  # associated location.
944
1183
  # @param [String] item_id Required parameter: The item's ID.
@@ -949,6 +1188,7 @@ module Square
949
1188
  def create_variation(location_id:,
950
1189
  item_id:,
951
1190
  body:)
1191
+ warn 'Endpoint create_variation in V1ItemsApi is deprecated'
952
1192
  # Prepare query url.
953
1193
  _query_builder = config.get_base_uri
954
1194
  _query_builder << '/v1/{location_id}/items/{item_id}/variations'
@@ -981,7 +1221,16 @@ module Square
981
1221
  end
982
1222
 
983
1223
  # Deletes an existing item variation from an item.
984
- # *Note**: DeleteVariation returns nothing on success but Connect SDKs
1224
+ # ---
1225
+ # - __Deprecation date__: 2019-11-20
1226
+ # - [__Retirement
1227
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1228
+ # recated): 2020-11-18
1229
+ # - [Migration
1230
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1231
+ # )
1232
+ # ---
1233
+ # __DeleteVariation__ returns nothing on success but Connect SDKs
985
1234
  # map the empty response to an empty `V1DeleteVariationRequest` object
986
1235
  # as documented below.
987
1236
  # @param [String] location_id Required parameter: The ID of the item's
@@ -994,6 +1243,7 @@ module Square
994
1243
  def delete_variation(location_id:,
995
1244
  item_id:,
996
1245
  variation_id:)
1246
+ warn 'Endpoint delete_variation in V1ItemsApi is deprecated'
997
1247
  # Prepare query url.
998
1248
  _query_builder = config.get_base_uri
999
1249
  _query_builder << '/v1/{location_id}/items/{item_id}/variations/{variation_id}'
@@ -1025,6 +1275,15 @@ module Square
1025
1275
  end
1026
1276
 
1027
1277
  # Modifies the details of an existing item variation.
1278
+ # ---
1279
+ # - __Deprecation date__: 2019-11-20
1280
+ # - [__Retirement
1281
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1282
+ # recated): 2020-11-18
1283
+ # - [Migration
1284
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1285
+ # )
1286
+ # ---
1028
1287
  # @param [String] location_id Required parameter: The ID of the item's
1029
1288
  # associated location.
1030
1289
  # @param [String] item_id Required parameter: The ID of the item to
@@ -1039,6 +1298,7 @@ module Square
1039
1298
  item_id:,
1040
1299
  variation_id:,
1041
1300
  body:)
1301
+ warn 'Endpoint update_variation in V1ItemsApi is deprecated'
1042
1302
  # Prepare query url.
1043
1303
  _query_builder = config.get_base_uri
1044
1304
  _query_builder << '/v1/{location_id}/items/{item_id}/variations/{variation_id}'
@@ -1071,11 +1331,21 @@ module Square
1071
1331
  ApiResponse.new(_response, data: decoded, errors: _errors)
1072
1332
  end
1073
1333
 
1074
- # Lists all of a location's modifier lists.
1334
+ # Lists all the modifier lists for a given location.
1335
+ # ---
1336
+ # - __Deprecation date__: 2019-11-20
1337
+ # - [__Retirement
1338
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1339
+ # recated): 2020-11-18
1340
+ # - [Migration
1341
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1342
+ # )
1343
+ # ---
1075
1344
  # @param [String] location_id Required parameter: The ID of the location to
1076
1345
  # list modifier lists for.
1077
1346
  # @return [List of V1ModifierList Hash] response from the API call
1078
1347
  def list_modifier_lists(location_id:)
1348
+ warn 'Endpoint list_modifier_lists in V1ItemsApi is deprecated'
1079
1349
  # Prepare query url.
1080
1350
  _query_builder = config.get_base_uri
1081
1351
  _query_builder << '/v1/{location_id}/modifier-lists'
@@ -1104,7 +1374,16 @@ module Square
1104
1374
  ApiResponse.new(_response, data: decoded, errors: _errors)
1105
1375
  end
1106
1376
 
1107
- # Creates an item modifier list and at least one modifier option for it.
1377
+ # Creates an item modifier list and at least 1 modifier option for it.
1378
+ # ---
1379
+ # - __Deprecation date__: 2019-11-20
1380
+ # - [__Retirement
1381
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1382
+ # recated): 2020-11-18
1383
+ # - [Migration
1384
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1385
+ # )
1386
+ # ---
1108
1387
  # @param [String] location_id Required parameter: The ID of the location to
1109
1388
  # create a modifier list for.
1110
1389
  # @param [V1ModifierList] body Required parameter: An object containing the
@@ -1113,6 +1392,7 @@ module Square
1113
1392
  # @return [V1ModifierList Hash] response from the API call
1114
1393
  def create_modifier_list(location_id:,
1115
1394
  body:)
1395
+ warn 'Endpoint create_modifier_list in V1ItemsApi is deprecated'
1116
1396
  # Prepare query url.
1117
1397
  _query_builder = config.get_base_uri
1118
1398
  _query_builder << '/v1/{location_id}/modifier-lists'
@@ -1145,7 +1425,16 @@ module Square
1145
1425
 
1146
1426
  # Deletes an existing item modifier list and all modifier options
1147
1427
  # associated with it.
1148
- # *Note**: DeleteModifierList returns nothing on success but Connect SDKs
1428
+ # ---
1429
+ # - __Deprecation date__: 2019-11-20
1430
+ # - [__Retirement
1431
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1432
+ # recated): 2020-11-18
1433
+ # - [Migration
1434
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1435
+ # )
1436
+ # ---
1437
+ # __DeleteModifierList__ returns nothing on success but Connect SDKs
1149
1438
  # map the empty response to an empty `V1DeleteModifierListRequest` object
1150
1439
  # as documented below.
1151
1440
  # @param [String] location_id Required parameter: The ID of the item's
@@ -1155,6 +1444,7 @@ module Square
1155
1444
  # @return [V1ModifierList Hash] response from the API call
1156
1445
  def delete_modifier_list(location_id:,
1157
1446
  modifier_list_id:)
1447
+ warn 'Endpoint delete_modifier_list in V1ItemsApi is deprecated'
1158
1448
  # Prepare query url.
1159
1449
  _query_builder = config.get_base_uri
1160
1450
  _query_builder << '/v1/{location_id}/modifier-lists/{modifier_list_id}'
@@ -1185,6 +1475,15 @@ module Square
1185
1475
  end
1186
1476
 
1187
1477
  # Provides the details for a single modifier list.
1478
+ # ---
1479
+ # - __Deprecation date__: 2019-11-20
1480
+ # - [__Retirement
1481
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1482
+ # recated): 2020-11-18
1483
+ # - [Migration
1484
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1485
+ # )
1486
+ # ---
1188
1487
  # @param [String] location_id Required parameter: The ID of the item's
1189
1488
  # associated location.
1190
1489
  # @param [String] modifier_list_id Required parameter: The modifier list's
@@ -1192,6 +1491,7 @@ module Square
1192
1491
  # @return [V1ModifierList Hash] response from the API call
1193
1492
  def retrieve_modifier_list(location_id:,
1194
1493
  modifier_list_id:)
1494
+ warn 'Endpoint retrieve_modifier_list in V1ItemsApi is deprecated'
1195
1495
  # Prepare query url.
1196
1496
  _query_builder = config.get_base_uri
1197
1497
  _query_builder << '/v1/{location_id}/modifier-lists/{modifier_list_id}'
@@ -1222,6 +1522,15 @@ module Square
1222
1522
  end
1223
1523
 
1224
1524
  # Modifies the details of an existing item modifier list.
1525
+ # ---
1526
+ # - __Deprecation date__: 2019-11-20
1527
+ # - [__Retirement
1528
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1529
+ # recated): 2020-11-18
1530
+ # - [Migration
1531
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1532
+ # )
1533
+ # ---
1225
1534
  # @param [String] location_id Required parameter: The ID of the item's
1226
1535
  # associated location.
1227
1536
  # @param [String] modifier_list_id Required parameter: The ID of the
@@ -1233,6 +1542,7 @@ module Square
1233
1542
  def update_modifier_list(location_id:,
1234
1543
  modifier_list_id:,
1235
1544
  body:)
1545
+ warn 'Endpoint update_modifier_list in V1ItemsApi is deprecated'
1236
1546
  # Prepare query url.
1237
1547
  _query_builder = config.get_base_uri
1238
1548
  _query_builder << '/v1/{location_id}/modifier-lists/{modifier_list_id}'
@@ -1265,6 +1575,15 @@ module Square
1265
1575
  end
1266
1576
 
1267
1577
  # Creates an item modifier option and adds it to a modifier list.
1578
+ # ---
1579
+ # - __Deprecation date__: 2019-11-20
1580
+ # - [__Retirement
1581
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1582
+ # recated): 2020-11-18
1583
+ # - [Migration
1584
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1585
+ # )
1586
+ # ---
1268
1587
  # @param [String] location_id Required parameter: The ID of the item's
1269
1588
  # associated location.
1270
1589
  # @param [String] modifier_list_id Required parameter: The ID of the
@@ -1276,6 +1595,7 @@ module Square
1276
1595
  def create_modifier_option(location_id:,
1277
1596
  modifier_list_id:,
1278
1597
  body:)
1598
+ warn 'Endpoint create_modifier_option in V1ItemsApi is deprecated'
1279
1599
  # Prepare query url.
1280
1600
  _query_builder = config.get_base_uri
1281
1601
  _query_builder << '/v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options'
@@ -1308,9 +1628,18 @@ module Square
1308
1628
  end
1309
1629
 
1310
1630
  # Deletes an existing item modifier option from a modifier list.
1311
- # *Note**: DeleteModifierOption returns nothing on success but Connect SDKs
1312
- # map the empty response to an empty `V1DeleteModifierOptionRequest` object
1313
- # as documented below.
1631
+ # ---
1632
+ # - __Deprecation date__: 2019-11-20
1633
+ # - [__Retirement
1634
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1635
+ # recated): 2020-11-18
1636
+ # - [Migration
1637
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1638
+ # )
1639
+ # ---
1640
+ # __DeleteModifierOption__ returns nothing on success but Connect
1641
+ # SDKs map the empty response to an empty `V1DeleteModifierOptionRequest`
1642
+ # object.
1314
1643
  # @param [String] location_id Required parameter: The ID of the item's
1315
1644
  # associated location.
1316
1645
  # @param [String] modifier_list_id Required parameter: The ID of the
@@ -1321,6 +1650,7 @@ module Square
1321
1650
  def delete_modifier_option(location_id:,
1322
1651
  modifier_list_id:,
1323
1652
  modifier_option_id:)
1653
+ warn 'Endpoint delete_modifier_option in V1ItemsApi is deprecated'
1324
1654
  # Prepare query url.
1325
1655
  _query_builder = config.get_base_uri
1326
1656
  _query_builder << '/v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id}'
@@ -1352,6 +1682,15 @@ module Square
1352
1682
  end
1353
1683
 
1354
1684
  # Modifies the details of an existing item modifier option.
1685
+ # ---
1686
+ # - __Deprecation date__: 2019-11-20
1687
+ # - [__Retirement
1688
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1689
+ # recated): 2020-11-18
1690
+ # - [Migration
1691
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1692
+ # )
1693
+ # ---
1355
1694
  # @param [String] location_id Required parameter: The ID of the item's
1356
1695
  # associated location.
1357
1696
  # @param [String] modifier_list_id Required parameter: The ID of the
@@ -1366,6 +1705,7 @@ module Square
1366
1705
  modifier_list_id:,
1367
1706
  modifier_option_id:,
1368
1707
  body:)
1708
+ warn 'Endpoint update_modifier_option in V1ItemsApi is deprecated'
1369
1709
  # Prepare query url.
1370
1710
  _query_builder = config.get_base_uri
1371
1711
  _query_builder << '/v1/{location_id}/modifier-lists/{modifier_list_id}/modifier-options/{modifier_option_id}'
@@ -1398,11 +1738,22 @@ module Square
1398
1738
  ApiResponse.new(_response, data: decoded, errors: _errors)
1399
1739
  end
1400
1740
 
1401
- # Lists all of a location's Favorites pages in Square Register.
1741
+ # Lists all Favorites pages (in Square Point of Sale) for a given
1742
+ # location.
1743
+ # ---
1744
+ # - __Deprecation date__: 2019-11-20
1745
+ # - [__Retirement
1746
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1747
+ # recated): 2020-11-18
1748
+ # - [Migration
1749
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1750
+ # )
1751
+ # ---
1402
1752
  # @param [String] location_id Required parameter: The ID of the location to
1403
1753
  # list Favorites pages for.
1404
1754
  # @return [List of V1Page Hash] response from the API call
1405
1755
  def list_pages(location_id:)
1756
+ warn 'Endpoint list_pages in V1ItemsApi is deprecated'
1406
1757
  # Prepare query url.
1407
1758
  _query_builder = config.get_base_uri
1408
1759
  _query_builder << '/v1/{location_id}/pages'
@@ -1431,7 +1782,16 @@ module Square
1431
1782
  ApiResponse.new(_response, data: decoded, errors: _errors)
1432
1783
  end
1433
1784
 
1434
- # Creates a Favorites page in Square Register.
1785
+ # Creates a Favorites page in Square Point of Sale.
1786
+ # ---
1787
+ # - __Deprecation date__: 2019-11-20
1788
+ # - [__Retirement
1789
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1790
+ # recated): 2020-11-18
1791
+ # - [Migration
1792
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1793
+ # )
1794
+ # ---
1435
1795
  # @param [String] location_id Required parameter: The ID of the location to
1436
1796
  # create an item for.
1437
1797
  # @param [V1Page] body Required parameter: An object containing the fields
@@ -1440,6 +1800,7 @@ module Square
1440
1800
  # @return [V1Page Hash] response from the API call
1441
1801
  def create_page(location_id:,
1442
1802
  body:)
1803
+ warn 'Endpoint create_page in V1ItemsApi is deprecated'
1443
1804
  # Prepare query url.
1444
1805
  _query_builder = config.get_base_uri
1445
1806
  _query_builder << '/v1/{location_id}/pages'
@@ -1471,9 +1832,17 @@ module Square
1471
1832
  end
1472
1833
 
1473
1834
  # Deletes an existing Favorites page and all of its cells.
1474
- # *Note**: DeletePage returns nothing on success but Connect SDKs
1475
- # map the empty response to an empty `V1DeletePageRequest` object
1476
- # as documented below.
1835
+ # ---
1836
+ # - __Deprecation date__: 2019-11-20
1837
+ # - [__Retirement
1838
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1839
+ # recated): 2020-11-18
1840
+ # - [Migration
1841
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1842
+ # )
1843
+ # ---
1844
+ # __DeletePage__ returns nothing on success but Connect SDKs
1845
+ # map the empty response to an empty `V1DeletePageRequest` object.
1477
1846
  # @param [String] location_id Required parameter: The ID of the Favorites
1478
1847
  # page's associated location.
1479
1848
  # @param [String] page_id Required parameter: The ID of the page to
@@ -1481,6 +1850,7 @@ module Square
1481
1850
  # @return [V1Page Hash] response from the API call
1482
1851
  def delete_page(location_id:,
1483
1852
  page_id:)
1853
+ warn 'Endpoint delete_page in V1ItemsApi is deprecated'
1484
1854
  # Prepare query url.
1485
1855
  _query_builder = config.get_base_uri
1486
1856
  _query_builder << '/v1/{location_id}/pages/{page_id}'
@@ -1510,7 +1880,16 @@ module Square
1510
1880
  ApiResponse.new(_response, data: decoded, errors: _errors)
1511
1881
  end
1512
1882
 
1513
- # Modifies the details of a Favorites page in Square Register.
1883
+ # Modifies the details of a Favorites page in Square Point of Sale.
1884
+ # ---
1885
+ # - __Deprecation date__: 2019-11-20
1886
+ # - [__Retirement
1887
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1888
+ # recated): 2020-11-18
1889
+ # - [Migration
1890
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1891
+ # )
1892
+ # ---
1514
1893
  # @param [String] location_id Required parameter: The ID of the Favorites
1515
1894
  # page's associated location
1516
1895
  # @param [String] page_id Required parameter: The ID of the page to
@@ -1522,6 +1901,7 @@ module Square
1522
1901
  def update_page(location_id:,
1523
1902
  page_id:,
1524
1903
  body:)
1904
+ warn 'Endpoint update_page in V1ItemsApi is deprecated'
1525
1905
  # Prepare query url.
1526
1906
  _query_builder = config.get_base_uri
1527
1907
  _query_builder << '/v1/{location_id}/pages/{page_id}'
@@ -1553,8 +1933,17 @@ module Square
1553
1933
  ApiResponse.new(_response, data: decoded, errors: _errors)
1554
1934
  end
1555
1935
 
1556
- # Deletes a cell from a Favorites page in Square Register.
1557
- # *Note**: DeletePageCell returns nothing on success but Connect SDKs
1936
+ # Deletes a cell from a Favorites page in Square Point of Sale.
1937
+ # ---
1938
+ # - __Deprecation date__: 2019-11-20
1939
+ # - [__Retirement
1940
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
1941
+ # recated): 2020-11-18
1942
+ # - [Migration
1943
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
1944
+ # )
1945
+ # ---
1946
+ # __DeletePageCell__ returns nothing on success but Connect SDKs
1558
1947
  # map the empty response to an empty `V1DeletePageCellRequest` object
1559
1948
  # as documented below.
1560
1949
  # @param [String] location_id Required parameter: The ID of the Favorites
@@ -1571,6 +1960,7 @@ module Square
1571
1960
  page_id:,
1572
1961
  row: nil,
1573
1962
  column: nil)
1963
+ warn 'Endpoint delete_page_cell in V1ItemsApi is deprecated'
1574
1964
  # Prepare query url.
1575
1965
  _query_builder = config.get_base_uri
1576
1966
  _query_builder << '/v1/{location_id}/pages/{page_id}/cells'
@@ -1605,7 +1995,16 @@ module Square
1605
1995
  ApiResponse.new(_response, data: decoded, errors: _errors)
1606
1996
  end
1607
1997
 
1608
- # Modifies a cell of a Favorites page in Square Register.
1998
+ # Modifies a cell of a Favorites page in Square Point of Sale.
1999
+ # ---
2000
+ # - __Deprecation date__: 2019-11-20
2001
+ # - [__Retirement
2002
+ # date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#dep
2003
+ # recated): 2020-11-18
2004
+ # - [Migration
2005
+ # guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items
2006
+ # )
2007
+ # ---
1609
2008
  # @param [String] location_id Required parameter: The ID of the Favorites
1610
2009
  # page's associated location.
1611
2010
  # @param [String] page_id Required parameter: The ID of the page the cell
@@ -1617,6 +2016,7 @@ module Square
1617
2016
  def update_page_cell(location_id:,
1618
2017
  page_id:,
1619
2018
  body:)
2019
+ warn 'Endpoint update_page_cell in V1ItemsApi is deprecated'
1620
2020
  # Prepare query url.
1621
2021
  _query_builder = config.get_base_uri
1622
2022
  _query_builder << '/v1/{location_id}/pages/{page_id}/cells'