fastlane 2.220.0 → 2.221.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +100 -100
  3. data/deliver/lib/deliver/submit_for_review.rb +2 -2
  4. data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +2 -1
  5. data/fastlane/lib/fastlane/actions/spm.rb +7 -0
  6. data/fastlane/lib/fastlane/lane_manager_base.rb +16 -8
  7. data/fastlane/lib/fastlane/runner.rb +2 -2
  8. data/fastlane/lib/fastlane/version.rb +1 -1
  9. data/fastlane/swift/Deliverfile.swift +1 -1
  10. data/fastlane/swift/DeliverfileProtocol.swift +1 -1
  11. data/fastlane/swift/Fastlane.swift +9 -5
  12. data/fastlane/swift/Gymfile.swift +1 -1
  13. data/fastlane/swift/GymfileProtocol.swift +1 -1
  14. data/fastlane/swift/Matchfile.swift +1 -1
  15. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  16. data/fastlane/swift/Precheckfile.swift +1 -1
  17. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  18. data/fastlane/swift/Scanfile.swift +1 -1
  19. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  20. data/fastlane/swift/Screengrabfile.swift +1 -1
  21. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  22. data/fastlane/swift/Snapshotfile.swift +1 -1
  23. data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
  24. data/fastlane/swift/formatting/Brewfile.lock.json +19 -19
  25. data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +2 -0
  26. data/match/lib/match/runner.rb +0 -1
  27. data/pilot/lib/pilot/build_manager.rb +9 -4
  28. data/spaceship/lib/spaceship/connect_api/api_client.rb +1 -1
  29. data/spaceship/lib/spaceship/connect_api/models/app.rb +28 -33
  30. data/spaceship/lib/spaceship/connect_api/provisioning/client.rb +1 -1
  31. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +31 -22
  32. data/spaceship/lib/spaceship/connect_api/testflight/client.rb +1 -1
  33. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +47 -43
  34. data/spaceship/lib/spaceship/connect_api/token.rb +7 -2
  35. data/spaceship/lib/spaceship/connect_api/tunes/client.rb +1 -1
  36. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +96 -90
  37. data/spaceship/lib/spaceship/connect_api/users/client.rb +1 -1
  38. data/spaceship/lib/spaceship/connect_api/users/users.rb +15 -11
  39. data/spaceship/lib/spaceship/stats_middleware.rb +2 -2
  40. metadata +24 -24
@@ -4,6 +4,12 @@ module Spaceship
4
4
  class ConnectAPI
5
5
  module Tunes
6
6
  module API
7
+ module Version
8
+ V1 = "v1"
9
+ V2 = "v2"
10
+ V3 = "v3"
11
+ end
12
+
7
13
  def tunes_request_client=(tunes_request_client)
8
14
  @tunes_request_client = tunes_request_client
9
15
  end
@@ -21,7 +27,7 @@ module Spaceship
21
27
  raise "Keyword 'app_store_version_id' is deprecated and 'app_info_id' is required" if app_store_version_id || app_info_id.nil?
22
28
 
23
29
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
24
- tunes_request_client.get("appInfos/#{app_info_id}/ageRatingDeclaration", params)
30
+ tunes_request_client.get("#{Version::V1}/appInfos/#{app_info_id}/ageRatingDeclaration", params)
25
31
  end
26
32
 
27
33
  def patch_age_rating_declaration(age_rating_declaration_id: nil, attributes: nil)
@@ -33,7 +39,7 @@ module Spaceship
33
39
  }
34
40
  }
35
41
 
36
- tunes_request_client.patch("ageRatingDeclarations/#{age_rating_declaration_id}", body)
42
+ tunes_request_client.patch("#{Version::V1}/ageRatingDeclarations/#{age_rating_declaration_id}", body)
37
43
  end
38
44
 
39
45
  #
@@ -131,7 +137,7 @@ module Spaceship
131
137
  included: included
132
138
  }
133
139
 
134
- tunes_request_client.post("apps", body)
140
+ tunes_request_client.post("#{Version::V1}/apps", body)
135
141
  end
136
142
 
137
143
  # Updates app attributes, price tier, visibility in regions or countries.
@@ -206,7 +212,7 @@ module Spaceship
206
212
  }
207
213
  body[:included] = included unless included.empty?
208
214
 
209
- tunes_request_client.patch("apps/#{app_id}", body)
215
+ tunes_request_client.patch("#{Version::V1}/apps/#{app_id}", body)
210
216
  end
211
217
 
212
218
  #
@@ -215,7 +221,7 @@ module Spaceship
215
221
 
216
222
  def get_app_data_usages(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
217
223
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
218
- tunes_request_client.get("apps/#{app_id}/dataUsages", params)
224
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/dataUsages", params)
219
225
  end
220
226
 
221
227
  def post_app_data_usage(app_id:, app_data_usage_category_id: nil, app_data_usage_protection_id: nil, app_data_usage_purpose_id: nil)
@@ -264,11 +270,11 @@ module Spaceship
264
270
  }
265
271
  }
266
272
 
267
- tunes_request_client.post("appDataUsages", body)
273
+ tunes_request_client.post("#{Version::V1}/appDataUsages", body)
268
274
  end
269
275
 
270
276
  def delete_app_data_usage(app_data_usage_id: nil)
271
- tunes_request_client.delete("appDataUsages/#{app_data_usage_id}")
277
+ tunes_request_client.delete("#{Version::V1}/appDataUsages/#{app_data_usage_id}")
272
278
  end
273
279
 
274
280
  #
@@ -277,7 +283,7 @@ module Spaceship
277
283
 
278
284
  def get_app_data_usage_categories(filter: {}, includes: nil, limit: nil, sort: nil)
279
285
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
280
- tunes_request_client.get("appDataUsageCategories", params)
286
+ tunes_request_client.get("#{Version::V1}/appDataUsageCategories", params)
281
287
  end
282
288
 
283
289
  #
@@ -286,7 +292,7 @@ module Spaceship
286
292
 
287
293
  def get_app_data_usage_purposes(filter: {}, includes: nil, limit: nil, sort: nil)
288
294
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
289
- tunes_request_client.get("appDataUsagePurposes", params)
295
+ tunes_request_client.get("#{Version::V1}/appDataUsagePurposes", params)
290
296
  end
291
297
 
292
298
  #
@@ -295,7 +301,7 @@ module Spaceship
295
301
 
296
302
  def get_app_data_usages_publish_state(app_id: nil)
297
303
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
298
- tunes_request_client.get("apps/#{app_id}/dataUsagePublishState", params)
304
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/dataUsagePublishState", params)
299
305
  end
300
306
 
301
307
  def patch_app_data_usages_publish_state(app_data_usages_publish_state_id: nil, published: nil)
@@ -309,7 +315,7 @@ module Spaceship
309
315
  }
310
316
  }
311
317
 
312
- tunes_request_client.patch("appDataUsagesPublishState/#{app_data_usages_publish_state_id}", body)
318
+ tunes_request_client.patch("#{Version::V1}/appDataUsagesPublishState/#{app_data_usages_publish_state_id}", body)
313
319
  end
314
320
 
315
321
  #
@@ -318,7 +324,7 @@ module Spaceship
318
324
 
319
325
  def get_app_preview(app_preview_id: nil)
320
326
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
321
- tunes_request_client.get("appPreviews/#{app_preview_id}", params)
327
+ tunes_request_client.get("#{Version::V1}/appPreviews/#{app_preview_id}", params)
322
328
  end
323
329
 
324
330
  def post_app_preview(app_preview_set_id: nil, attributes: {})
@@ -337,7 +343,7 @@ module Spaceship
337
343
  }
338
344
  }
339
345
 
340
- tunes_request_client.post("appPreviews", body)
346
+ tunes_request_client.post("#{Version::V1}/appPreviews", body)
341
347
  end
342
348
 
343
349
  def patch_app_preview(app_preview_id: nil, attributes: {})
@@ -349,12 +355,12 @@ module Spaceship
349
355
  }
350
356
  }
351
357
 
352
- tunes_request_client.patch("appPreviews/#{app_preview_id}", body)
358
+ tunes_request_client.patch("#{Version::V1}/appPreviews/#{app_preview_id}", body)
353
359
  end
354
360
 
355
361
  def delete_app_preview(app_preview_id: nil)
356
362
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
357
- tunes_request_client.delete("appPreviews/#{app_preview_id}", params)
363
+ tunes_request_client.delete("#{Version::V1}/appPreviews/#{app_preview_id}", params)
358
364
  end
359
365
 
360
366
  #
@@ -363,12 +369,12 @@ module Spaceship
363
369
 
364
370
  def get_app_preview_sets(filter: {}, includes: nil, limit: nil, sort: nil)
365
371
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
366
- tunes_request_client.get("appPreviewSets", params)
372
+ tunes_request_client.get("#{Version::V1}/appPreviewSets", params)
367
373
  end
368
374
 
369
375
  def get_app_preview_set(app_preview_set_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
370
376
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
371
- tunes_request_client.get("appPreviewSets/#{app_preview_set_id}", params)
377
+ tunes_request_client.get("#{Version::V1}/appPreviewSets/#{app_preview_set_id}", params)
372
378
  end
373
379
 
374
380
  def post_app_preview_set(app_store_version_localization_id: nil, attributes: {})
@@ -387,12 +393,12 @@ module Spaceship
387
393
  }
388
394
  }
389
395
 
390
- tunes_request_client.post("appPreviewSets", body)
396
+ tunes_request_client.post("#{Version::V1}/appPreviewSets", body)
391
397
  end
392
398
 
393
399
  def delete_app_preview_set(app_preview_set_id: nil)
394
400
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
395
- tunes_request_client.delete("appPreviewSets/#{app_preview_set_id}", params)
401
+ tunes_request_client.delete("#{Version::V1}/appPreviewSets/#{app_preview_set_id}", params)
396
402
  end
397
403
 
398
404
  def patch_app_preview_set_previews(app_preview_set_id: nil, app_preview_ids: nil)
@@ -407,7 +413,7 @@ module Spaceship
407
413
  end
408
414
  }
409
415
 
410
- tunes_request_client.patch("appPreviewSets/#{app_preview_set_id}/relationships/appPreviews", body)
416
+ tunes_request_client.patch("#{Version::V1}/appPreviewSets/#{app_preview_set_id}/relationships/appPreviews", body)
411
417
  end
412
418
 
413
419
  #
@@ -416,7 +422,7 @@ module Spaceship
416
422
 
417
423
  def get_available_territories(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
418
424
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
419
- tunes_request_client.get("apps/#{app_id}/availableTerritories", params)
425
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/availableTerritories", params)
420
426
  end
421
427
 
422
428
  #
@@ -425,12 +431,12 @@ module Spaceship
425
431
 
426
432
  def get_app_prices(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
427
433
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
428
- tunes_request_client.get("appPrices", params)
434
+ tunes_request_client.get("#{Version::V1}/appPrices", params)
429
435
  end
430
436
 
431
437
  def get_app_price(app_price_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
432
438
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
433
- tunes_request_client.get("appPrices/#{app_price_id}", params)
439
+ tunes_request_client.get("#{Version::V1}/appPrices/#{app_price_id}", params)
434
440
  end
435
441
 
436
442
  #
@@ -438,7 +444,7 @@ module Spaceship
438
444
  #
439
445
  def get_app_price_points(filter: {}, includes: nil, limit: nil, sort: nil)
440
446
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
441
- tunes_request_client.get("appPricePoints", params)
447
+ tunes_request_client.get("#{Version::V1}/appPricePoints", params)
442
448
  end
443
449
 
444
450
  #
@@ -461,7 +467,7 @@ module Spaceship
461
467
  }
462
468
  }
463
469
 
464
- tunes_request_client.post("appStoreReviewAttachments", body)
470
+ tunes_request_client.post("#{Version::V1}/appStoreReviewAttachments", body)
465
471
  end
466
472
 
467
473
  def patch_app_store_review_attachment(app_store_review_attachment_id: nil, attributes: {})
@@ -473,12 +479,12 @@ module Spaceship
473
479
  }
474
480
  }
475
481
 
476
- tunes_request_client.patch("appStoreReviewAttachments/#{app_store_review_attachment_id}", body)
482
+ tunes_request_client.patch("#{Version::V1}/appStoreReviewAttachments/#{app_store_review_attachment_id}", body)
477
483
  end
478
484
 
479
485
  def delete_app_store_review_attachment(app_store_review_attachment_id: nil)
480
486
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
481
- tunes_request_client.delete("appStoreReviewAttachments/#{app_store_review_attachment_id}", params)
487
+ tunes_request_client.delete("#{Version::V1}/appStoreReviewAttachments/#{app_store_review_attachment_id}", params)
482
488
  end
483
489
 
484
490
  #
@@ -487,12 +493,12 @@ module Spaceship
487
493
 
488
494
  def get_app_screenshot_sets(app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
489
495
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
490
- tunes_request_client.get("appStoreVersionLocalizations/#{app_store_version_localization_id}/appScreenshotSets", params)
496
+ tunes_request_client.get("#{Version::V1}/appStoreVersionLocalizations/#{app_store_version_localization_id}/appScreenshotSets", params)
491
497
  end
492
498
 
493
499
  def get_app_screenshot_set(app_screenshot_set_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
494
500
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
495
- tunes_request_client.get("appScreenshotSets/#{app_screenshot_set_id}", params)
501
+ tunes_request_client.get("#{Version::V1}/appScreenshotSets/#{app_screenshot_set_id}", params)
496
502
  end
497
503
 
498
504
  def post_app_screenshot_set(app_store_version_localization_id: nil, attributes: {})
@@ -511,7 +517,7 @@ module Spaceship
511
517
  }
512
518
  }
513
519
 
514
- tunes_request_client.post("appScreenshotSets", body)
520
+ tunes_request_client.post("#{Version::V1}/appScreenshotSets", body)
515
521
  end
516
522
 
517
523
  def patch_app_screenshot_set_screenshots(app_screenshot_set_id: nil, app_screenshot_ids: nil)
@@ -526,12 +532,12 @@ module Spaceship
526
532
  end
527
533
  }
528
534
 
529
- tunes_request_client.patch("appScreenshotSets/#{app_screenshot_set_id}/relationships/appScreenshots", body)
535
+ tunes_request_client.patch("#{Version::V1}/appScreenshotSets/#{app_screenshot_set_id}/relationships/appScreenshots", body)
530
536
  end
531
537
 
532
538
  def delete_app_screenshot_set(app_screenshot_set_id: nil)
533
539
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
534
- tunes_request_client.delete("appScreenshotSets/#{app_screenshot_set_id}", params)
540
+ tunes_request_client.delete("#{Version::V1}/appScreenshotSets/#{app_screenshot_set_id}", params)
535
541
  end
536
542
 
537
543
  #
@@ -540,7 +546,7 @@ module Spaceship
540
546
 
541
547
  def get_app_screenshot(app_screenshot_id: nil)
542
548
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
543
- tunes_request_client.get("appScreenshots/#{app_screenshot_id}", params)
549
+ tunes_request_client.get("#{Version::V1}/appScreenshots/#{app_screenshot_id}", params)
544
550
  end
545
551
 
546
552
  def post_app_screenshot(app_screenshot_set_id: nil, attributes: {})
@@ -559,7 +565,7 @@ module Spaceship
559
565
  }
560
566
  }
561
567
 
562
- tunes_request_client.post("appScreenshots", body, tries: 1)
568
+ tunes_request_client.post("#{Version::V1}/appScreenshots", body, tries: 1)
563
569
  end
564
570
 
565
571
  def patch_app_screenshot(app_screenshot_id: nil, attributes: {})
@@ -571,12 +577,12 @@ module Spaceship
571
577
  }
572
578
  }
573
579
 
574
- tunes_request_client.patch("appScreenshots/#{app_screenshot_id}", body)
580
+ tunes_request_client.patch("#{Version::V1}/appScreenshots/#{app_screenshot_id}", body)
575
581
  end
576
582
 
577
583
  def delete_app_screenshot(app_screenshot_id: nil)
578
584
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
579
- tunes_request_client.delete("appScreenshots/#{app_screenshot_id}", params)
585
+ tunes_request_client.delete("#{Version::V1}/appScreenshots/#{app_screenshot_id}", params)
580
586
  end
581
587
 
582
588
  #
@@ -585,7 +591,7 @@ module Spaceship
585
591
 
586
592
  def get_app_infos(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
587
593
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
588
- tunes_request_client.get("apps/#{app_id}/appInfos", params)
594
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/appInfos", params)
589
595
  end
590
596
 
591
597
  def patch_app_info(app_info_id: nil, attributes: {})
@@ -601,7 +607,7 @@ module Spaceship
601
607
  data: data
602
608
  }
603
609
 
604
- tunes_request_client.patch("appInfos/#{app_info_id}", body)
610
+ tunes_request_client.patch("#{Version::V1}/appInfos/#{app_info_id}", body)
605
611
  end
606
612
 
607
613
  #
@@ -679,12 +685,12 @@ module Spaceship
679
685
  data: data
680
686
  }
681
687
 
682
- tunes_request_client.patch("appInfos/#{app_info_id}", body)
688
+ tunes_request_client.patch("#{Version::V1}/appInfos/#{app_info_id}", body)
683
689
  end
684
690
 
685
691
  def delete_app_info(app_info_id: nil)
686
692
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
687
- tunes_request_client.delete("appInfos/#{app_info_id}", params)
693
+ tunes_request_client.delete("#{Version::V1}/appInfos/#{app_info_id}", params)
688
694
  end
689
695
 
690
696
  #
@@ -693,7 +699,7 @@ module Spaceship
693
699
 
694
700
  def get_app_info_localizations(app_info_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
695
701
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
696
- tunes_request_client.get("appInfos/#{app_info_id}/appInfoLocalizations", params)
702
+ tunes_request_client.get("#{Version::V1}/appInfos/#{app_info_id}/appInfoLocalizations", params)
697
703
  end
698
704
 
699
705
  def post_app_info_localization(app_info_id: nil, attributes: {})
@@ -712,7 +718,7 @@ module Spaceship
712
718
  }
713
719
  }
714
720
 
715
- tunes_request_client.post("appInfoLocalizations", body)
721
+ tunes_request_client.post("#{Version::V1}/appInfoLocalizations", body)
716
722
  end
717
723
 
718
724
  def patch_app_info_localization(app_info_localization_id: nil, attributes: {})
@@ -724,7 +730,7 @@ module Spaceship
724
730
  }
725
731
  }
726
732
 
727
- tunes_request_client.patch("appInfoLocalizations/#{app_info_localization_id}", body)
733
+ tunes_request_client.patch("#{Version::V1}/appInfoLocalizations/#{app_info_localization_id}", body)
728
734
  end
729
735
 
730
736
  #
@@ -733,7 +739,7 @@ module Spaceship
733
739
 
734
740
  def get_app_store_review_detail(app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
735
741
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
736
- tunes_request_client.get("appStoreVersions/#{app_store_version_id}/appStoreReviewDetail", params)
742
+ tunes_request_client.get("#{Version::V1}/appStoreVersions/#{app_store_version_id}/appStoreReviewDetail", params)
737
743
  end
738
744
 
739
745
  def post_app_store_review_detail(app_store_version_id: nil, attributes: {})
@@ -752,7 +758,7 @@ module Spaceship
752
758
  }
753
759
  }
754
760
 
755
- tunes_request_client.post("appStoreReviewDetails", body)
761
+ tunes_request_client.post("#{Version::V1}/appStoreReviewDetails", body)
756
762
  end
757
763
 
758
764
  def patch_app_store_review_detail(app_store_review_detail_id: nil, attributes: {})
@@ -764,7 +770,7 @@ module Spaceship
764
770
  }
765
771
  }
766
772
 
767
- tunes_request_client.patch("appStoreReviewDetails/#{app_store_review_detail_id}", body)
773
+ tunes_request_client.patch("#{Version::V1}/appStoreReviewDetails/#{app_store_review_detail_id}", body)
768
774
  end
769
775
 
770
776
  #
@@ -773,12 +779,12 @@ module Spaceship
773
779
 
774
780
  def get_app_store_version_localizations(app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
775
781
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
776
- tunes_request_client.get("appStoreVersions/#{app_store_version_id}/appStoreVersionLocalizations", params)
782
+ tunes_request_client.get("#{Version::V1}/appStoreVersions/#{app_store_version_id}/appStoreVersionLocalizations", params)
777
783
  end
778
784
 
779
785
  def get_app_store_version_localization(app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
780
786
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
781
- tunes_request_client.get("appStoreVersionLocalizations/#{app_store_version_localization_id}", params)
787
+ tunes_request_client.get("#{Version::V1}/appStoreVersionLocalizations/#{app_store_version_localization_id}", params)
782
788
  end
783
789
 
784
790
  def post_app_store_version_localization(app_store_version_id: nil, attributes: {})
@@ -797,7 +803,7 @@ module Spaceship
797
803
  }
798
804
  }
799
805
 
800
- tunes_request_client.post("appStoreVersionLocalizations", body)
806
+ tunes_request_client.post("#{Version::V1}/appStoreVersionLocalizations", body)
801
807
  end
802
808
 
803
809
  def patch_app_store_version_localization(app_store_version_localization_id: nil, attributes: {})
@@ -809,12 +815,12 @@ module Spaceship
809
815
  }
810
816
  }
811
817
 
812
- tunes_request_client.patch("appStoreVersionLocalizations/#{app_store_version_localization_id}", body)
818
+ tunes_request_client.patch("#{Version::V1}/appStoreVersionLocalizations/#{app_store_version_localization_id}", body)
813
819
  end
814
820
 
815
821
  def delete_app_store_version_localization(app_store_version_localization_id: nil)
816
822
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
817
- tunes_request_client.delete("appStoreVersionLocalizations/#{app_store_version_localization_id}", params)
823
+ tunes_request_client.delete("#{Version::V1}/appStoreVersionLocalizations/#{app_store_version_localization_id}", params)
818
824
  end
819
825
 
820
826
  #
@@ -823,7 +829,7 @@ module Spaceship
823
829
 
824
830
  def get_app_store_version_phased_release(app_store_version_id: nil)
825
831
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
826
- tunes_request_client.get("appStoreVersions/#{app_store_version_id}/appStoreVersionPhasedRelease", params)
832
+ tunes_request_client.get("#{Version::V1}/appStoreVersions/#{app_store_version_id}/appStoreVersionPhasedRelease", params)
827
833
  end
828
834
 
829
835
  def post_app_store_version_phased_release(app_store_version_id: nil, attributes: {})
@@ -842,7 +848,7 @@ module Spaceship
842
848
  }
843
849
  }
844
850
 
845
- tunes_request_client.post("appStoreVersionPhasedReleases", body)
851
+ tunes_request_client.post("#{Version::V1}/appStoreVersionPhasedReleases", body)
846
852
  end
847
853
 
848
854
  def patch_app_store_version_phased_release(app_store_version_phased_release_id: nil, attributes: {})
@@ -854,12 +860,12 @@ module Spaceship
854
860
  }
855
861
  }
856
862
 
857
- tunes_request_client.patch("appStoreVersionPhasedReleases/#{app_store_version_phased_release_id}", body)
863
+ tunes_request_client.patch("#{Version::V1}/appStoreVersionPhasedReleases/#{app_store_version_phased_release_id}", body)
858
864
  end
859
865
 
860
866
  def delete_app_store_version_phased_release(app_store_version_phased_release_id: nil)
861
867
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
862
- tunes_request_client.delete("appStoreVersionPhasedReleases/#{app_store_version_phased_release_id}", params)
868
+ tunes_request_client.delete("#{Version::V1}/appStoreVersionPhasedReleases/#{app_store_version_phased_release_id}", params)
863
869
  end
864
870
 
865
871
  #
@@ -868,12 +874,12 @@ module Spaceship
868
874
 
869
875
  def get_app_store_versions(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
870
876
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
871
- tunes_request_client.get("apps/#{app_id}/appStoreVersions", params)
877
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/appStoreVersions", params)
872
878
  end
873
879
 
874
880
  def get_app_store_version(app_store_version_id: nil, includes: nil)
875
881
  params = tunes_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil)
876
- tunes_request_client.get("appStoreVersions/#{app_store_version_id}", params)
882
+ tunes_request_client.get("#{Version::V1}/appStoreVersions/#{app_store_version_id}", params)
877
883
  end
878
884
 
879
885
  def post_app_store_version(app_id: nil, attributes: {})
@@ -892,7 +898,7 @@ module Spaceship
892
898
  }
893
899
  }
894
900
 
895
- tunes_request_client.post("appStoreVersions", body)
901
+ tunes_request_client.post("#{Version::V1}/appStoreVersions", body)
896
902
  end
897
903
 
898
904
  def patch_app_store_version(app_store_version_id: nil, attributes: {})
@@ -904,7 +910,7 @@ module Spaceship
904
910
  }
905
911
  }
906
912
 
907
- tunes_request_client.patch("appStoreVersions/#{app_store_version_id}", body)
913
+ tunes_request_client.patch("#{Version::V1}/appStoreVersions/#{app_store_version_id}", body)
908
914
  end
909
915
 
910
916
  def patch_app_store_version_with_build(app_store_version_id: nil, build_id: nil)
@@ -928,7 +934,7 @@ module Spaceship
928
934
  }
929
935
  }
930
936
 
931
- tunes_request_client.patch("appStoreVersions/#{app_store_version_id}", body)
937
+ tunes_request_client.patch("#{Version::V1}/appStoreVersions/#{app_store_version_id}", body)
932
938
  end
933
939
 
934
940
  #
@@ -937,7 +943,7 @@ module Spaceship
937
943
 
938
944
  def get_reset_ratings_request(app_store_version_id: nil)
939
945
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
940
- tunes_request_client.get("appStoreVersions/#{app_store_version_id}/resetRatingsRequest", params)
946
+ tunes_request_client.get("#{Version::V1}/appStoreVersions/#{app_store_version_id}/resetRatingsRequest", params)
941
947
  end
942
948
 
943
949
  def post_reset_ratings_request(app_store_version_id: nil)
@@ -955,12 +961,12 @@ module Spaceship
955
961
  }
956
962
  }
957
963
 
958
- tunes_request_client.post("resetRatingsRequests", body)
964
+ tunes_request_client.post("#{Version::V1}/resetRatingsRequests", body)
959
965
  end
960
966
 
961
967
  def delete_reset_ratings_request(reset_ratings_request_id: nil)
962
968
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
963
- tunes_request_client.delete("resetRatingsRequests/#{reset_ratings_request_id}", params)
969
+ tunes_request_client.delete("#{Version::V1}/resetRatingsRequests/#{reset_ratings_request_id}", params)
964
970
  end
965
971
 
966
972
  #
@@ -969,7 +975,7 @@ module Spaceship
969
975
 
970
976
  def get_app_store_version_submission(app_store_version_id: nil)
971
977
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
972
- tunes_request_client.get("appStoreVersions/#{app_store_version_id}/appStoreVersionSubmission", params)
978
+ tunes_request_client.get("#{Version::V1}/appStoreVersions/#{app_store_version_id}/appStoreVersionSubmission", params)
973
979
  end
974
980
 
975
981
  def post_app_store_version_submission(app_store_version_id: nil)
@@ -987,12 +993,12 @@ module Spaceship
987
993
  }
988
994
  }
989
995
 
990
- tunes_request_client.post("appStoreVersionSubmissions", body)
996
+ tunes_request_client.post("#{Version::V1}/appStoreVersionSubmissions", body)
991
997
  end
992
998
 
993
999
  def delete_app_store_version_submission(app_store_version_submission_id: nil)
994
1000
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
995
- tunes_request_client.delete("appStoreVersionSubmissions/#{app_store_version_submission_id}", params)
1001
+ tunes_request_client.delete("#{Version::V1}/appStoreVersionSubmissions/#{app_store_version_submission_id}", params)
996
1002
  end
997
1003
 
998
1004
  #
@@ -1014,7 +1020,7 @@ module Spaceship
1014
1020
  }
1015
1021
  }
1016
1022
 
1017
- tunes_request_client.post("appStoreVersionReleaseRequests", body)
1023
+ tunes_request_client.post("#{Version::V1}/appStoreVersionReleaseRequests", body)
1018
1024
  end
1019
1025
 
1020
1026
  #
@@ -1023,7 +1029,7 @@ module Spaceship
1023
1029
 
1024
1030
  def get_custom_app_users(app_id: nil, filter: nil, includes: nil, limit: nil, sort: nil)
1025
1031
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
1026
- tunes_request_client.get("apps/#{app_id}/customAppUsers", params)
1032
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/customAppUsers", params)
1027
1033
  end
1028
1034
 
1029
1035
  def post_custom_app_user(app_id: nil, apple_id: nil)
@@ -1044,12 +1050,12 @@ module Spaceship
1044
1050
  }
1045
1051
  }
1046
1052
 
1047
- tunes_request_client.post("customAppUsers", body)
1053
+ tunes_request_client.post("#{Version::V1}/customAppUsers", body)
1048
1054
  end
1049
1055
 
1050
1056
  def delete_custom_app_user(custom_app_user_id: nil)
1051
1057
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
1052
- tunes_request_client.delete("customAppUsers/#{custom_app_user_id}", params)
1058
+ tunes_request_client.delete("#{Version::V1}/customAppUsers/#{custom_app_user_id}", params)
1053
1059
  end
1054
1060
 
1055
1061
  #
@@ -1058,7 +1064,7 @@ module Spaceship
1058
1064
 
1059
1065
  def get_custom_app_organization(app_id: nil, filter: nil, includes: nil, limit: nil, sort: nil)
1060
1066
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
1061
- tunes_request_client.get("apps/#{app_id}/customAppOrganizations", params)
1067
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/customAppOrganizations", params)
1062
1068
  end
1063
1069
 
1064
1070
  def post_custom_app_organization(app_id: nil, device_enrollment_program_id: nil, name: nil)
@@ -1080,12 +1086,12 @@ module Spaceship
1080
1086
  }
1081
1087
  }
1082
1088
 
1083
- tunes_request_client.post("customAppOrganizations", body)
1089
+ tunes_request_client.post("#{Version::V1}/customAppOrganizations", body)
1084
1090
  end
1085
1091
 
1086
1092
  def delete_custom_app_organization(custom_app_organization_id: nil)
1087
1093
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
1088
- tunes_request_client.delete("customAppOrganizations/#{custom_app_organization_id}", params)
1094
+ tunes_request_client.delete("#{Version::V1}/customAppOrganizations/#{custom_app_organization_id}", params)
1089
1095
  end
1090
1096
 
1091
1097
  #
@@ -1094,7 +1100,7 @@ module Spaceship
1094
1100
 
1095
1101
  def get_idfa_declaration(app_store_version_id: nil)
1096
1102
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
1097
- tunes_request_client.get("appStoreVersions/#{app_store_version_id}/idfaDeclaration", params)
1103
+ tunes_request_client.get("#{Version::V1}/appStoreVersions/#{app_store_version_id}/idfaDeclaration", params)
1098
1104
  end
1099
1105
 
1100
1106
  def post_idfa_declaration(app_store_version_id: nil, attributes: nil)
@@ -1113,7 +1119,7 @@ module Spaceship
1113
1119
  }
1114
1120
  }
1115
1121
 
1116
- tunes_request_client.post("idfaDeclarations", body)
1122
+ tunes_request_client.post("#{Version::V1}/idfaDeclarations", body)
1117
1123
  end
1118
1124
 
1119
1125
  def patch_idfa_declaration(idfa_declaration_id: nil, attributes: nil)
@@ -1125,12 +1131,12 @@ module Spaceship
1125
1131
  }
1126
1132
  }
1127
1133
 
1128
- tunes_request_client.patch("idfaDeclarations/#{idfa_declaration_id}", body)
1134
+ tunes_request_client.patch("#{Version::V1}/idfaDeclarations/#{idfa_declaration_id}", body)
1129
1135
  end
1130
1136
 
1131
1137
  def delete_idfa_declaration(idfa_declaration_id: nil)
1132
1138
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
1133
- tunes_request_client.delete("idfaDeclarations/#{idfa_declaration_id}", params)
1139
+ tunes_request_client.delete("#{Version::V1}/idfaDeclarations/#{idfa_declaration_id}", params)
1134
1140
  end
1135
1141
 
1136
1142
  #
@@ -1139,12 +1145,12 @@ module Spaceship
1139
1145
 
1140
1146
  def get_review_submissions(app_id:, filter: {}, includes: nil, limit: nil, sort: nil)
1141
1147
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
1142
- tunes_request_client.get("apps/#{app_id}/reviewSubmissions", params)
1148
+ tunes_request_client.get("#{Version::V1}/apps/#{app_id}/reviewSubmissions", params)
1143
1149
  end
1144
1150
 
1145
1151
  def get_review_submission(review_submission_id:, filter: {}, includes: nil, limit: nil, sort: nil)
1146
1152
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
1147
- tunes_request_client.get("reviewSubmissions/#{review_submission_id}", params)
1153
+ tunes_request_client.get("#{Version::V1}/reviewSubmissions/#{review_submission_id}", params)
1148
1154
  end
1149
1155
 
1150
1156
  def post_review_submission(app_id:, platform:)
@@ -1165,7 +1171,7 @@ module Spaceship
1165
1171
  }
1166
1172
  }
1167
1173
 
1168
- tunes_request_client.post("reviewSubmissions", body)
1174
+ tunes_request_client.post("#{Version::V1}/reviewSubmissions", body)
1169
1175
  end
1170
1176
 
1171
1177
  def patch_review_submission(review_submission_id:, attributes: nil)
@@ -1177,7 +1183,7 @@ module Spaceship
1177
1183
  }
1178
1184
  }
1179
1185
 
1180
- tunes_request_client.patch("reviewSubmissions/#{review_submission_id}", body)
1186
+ tunes_request_client.patch("#{Version::V1}/reviewSubmissions/#{review_submission_id}", body)
1181
1187
  end
1182
1188
 
1183
1189
  #
@@ -1186,7 +1192,7 @@ module Spaceship
1186
1192
 
1187
1193
  def get_review_submission_items(review_submission_id:, filter: {}, includes: nil, limit: nil, sort: nil)
1188
1194
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
1189
- tunes_request_client.get("reviewSubmissions/#{review_submission_id}/items", params)
1195
+ tunes_request_client.get("#{Version::V1}/reviewSubmissions/#{review_submission_id}/items", params)
1190
1196
  end
1191
1197
 
1192
1198
  def post_review_submission_item(review_submission_id:, app_store_version_id: nil)
@@ -1213,7 +1219,7 @@ module Spaceship
1213
1219
  }
1214
1220
  end
1215
1221
 
1216
- tunes_request_client.post("reviewSubmissionItems", body)
1222
+ tunes_request_client.post("#{Version::V1}/reviewSubmissionItems", body)
1217
1223
  end
1218
1224
 
1219
1225
  #
@@ -1222,7 +1228,7 @@ module Spaceship
1222
1228
 
1223
1229
  def get_sandbox_testers(filter: nil, includes: nil, limit: nil, sort: nil)
1224
1230
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
1225
- tunes_request_client.get("sandboxTesters", params)
1231
+ tunes_request_client.get("#{Version::V1}/sandboxTesters", params)
1226
1232
  end
1227
1233
 
1228
1234
  def post_sandbox_tester(attributes: {})
@@ -1233,12 +1239,12 @@ module Spaceship
1233
1239
  }
1234
1240
  }
1235
1241
 
1236
- tunes_request_client.post("sandboxTesters", body)
1242
+ tunes_request_client.post("#{Version::V1}/sandboxTesters", body)
1237
1243
  end
1238
1244
 
1239
1245
  def delete_sandbox_tester(sandbox_tester_id: nil)
1240
1246
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
1241
- tunes_request_client.delete("sandboxTesters/#{sandbox_tester_id}", params)
1247
+ tunes_request_client.delete("#{Version::V1}/sandboxTesters/#{sandbox_tester_id}", params)
1242
1248
  end
1243
1249
 
1244
1250
  #
@@ -1247,7 +1253,7 @@ module Spaceship
1247
1253
 
1248
1254
  def get_territories(filter: {}, includes: nil, limit: nil, sort: nil)
1249
1255
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
1250
- tunes_request_client.get("territories", params)
1256
+ tunes_request_client.get("#{Version::V1}/territories", params)
1251
1257
  end
1252
1258
 
1253
1259
  #
@@ -1260,17 +1266,17 @@ module Spaceship
1260
1266
 
1261
1267
  def get_resolution_center_threads(filter: {}, includes: nil)
1262
1268
  params = tunes_request_client.build_params(filter: filter, includes: includes)
1263
- tunes_request_client.get('resolutionCenterThreads', params)
1269
+ tunes_request_client.get("#{Version::V1}/resolutionCenterThreads", params)
1264
1270
  end
1265
1271
 
1266
1272
  def get_resolution_center_messages(thread_id:, filter: {}, includes: nil)
1267
1273
  params = tunes_request_client.build_params(filter: filter, includes: includes)
1268
- tunes_request_client.get("resolutionCenterThreads/#{thread_id}/resolutionCenterMessages", params)
1274
+ tunes_request_client.get("#{Version::V1}/resolutionCenterThreads/#{thread_id}/resolutionCenterMessages", params)
1269
1275
  end
1270
1276
 
1271
1277
  def get_review_rejection(filter: {}, includes: nil)
1272
1278
  params = tunes_request_client.build_params(filter: filter, includes: includes)
1273
- tunes_request_client.get("reviewRejections", params)
1279
+ tunes_request_client.get("#{Version::V1}/reviewRejections", params)
1274
1280
  end
1275
1281
  end
1276
1282
  end