fastlane 2.148.0 → 2.150.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +86 -86
  3. data/deliver/lib/deliver.rb +0 -1
  4. data/deliver/lib/deliver/app_screenshot.rb +28 -27
  5. data/deliver/lib/deliver/options.rb +6 -11
  6. data/deliver/lib/deliver/runner.rb +7 -21
  7. data/deliver/lib/deliver/setup.rb +5 -30
  8. data/deliver/lib/deliver/submit_for_review.rb +155 -90
  9. data/deliver/lib/deliver/upload_metadata.rb +355 -143
  10. data/deliver/lib/deliver/upload_price_tier.rb +22 -8
  11. data/deliver/lib/deliver/upload_screenshots.rb +112 -37
  12. data/fastlane/lib/assets/s3_html_template.erb +1 -1
  13. data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +42 -2
  14. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +1 -1
  15. data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +77 -96
  16. data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +3 -2
  17. data/fastlane/lib/fastlane/actions/download_dsyms.rb +7 -1
  18. data/fastlane/lib/fastlane/actions/google_play_track_release_names.rb +74 -0
  19. data/fastlane/lib/fastlane/actions/hipchat.rb +1 -1
  20. data/fastlane/lib/fastlane/actions/set_changelog.rb +23 -20
  21. data/fastlane/lib/fastlane/actions/slack.rb +2 -2
  22. data/fastlane/lib/fastlane/actions/slather.rb +8 -1
  23. data/fastlane/lib/fastlane/actions/spm.rb +7 -0
  24. data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +2 -33
  25. data/fastlane/lib/fastlane/documentation/actions_list.rb +1 -1
  26. data/fastlane/lib/fastlane/lane.rb +3 -3
  27. data/fastlane/lib/fastlane/plugins/plugin_manager.rb +1 -1
  28. data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +29 -0
  29. data/fastlane/lib/fastlane/swift_fastlane_function.rb +22 -5
  30. data/fastlane/lib/fastlane/version.rb +1 -1
  31. data/fastlane/swift/ControlCommand.swift +1 -0
  32. data/fastlane/swift/Deliverfile.swift +1 -1
  33. data/fastlane/swift/Fastlane.swift +79 -22
  34. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +3 -9
  35. data/fastlane/swift/Gymfile.swift +1 -1
  36. data/fastlane/swift/GymfileProtocol.swift +1 -1
  37. data/fastlane/swift/LaneFileProtocol.swift +2 -5
  38. data/fastlane/swift/Matchfile.swift +1 -1
  39. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  40. data/fastlane/swift/Precheckfile.swift +1 -1
  41. data/fastlane/swift/RubyCommand.swift +29 -6
  42. data/fastlane/swift/RubyCommandable.swift +1 -0
  43. data/fastlane/swift/Runner.swift +85 -13
  44. data/fastlane/swift/Scanfile.swift +1 -1
  45. data/fastlane/swift/ScanfileProtocol.swift +2 -2
  46. data/fastlane/swift/Screengrabfile.swift +1 -1
  47. data/fastlane/swift/Snapshotfile.swift +1 -1
  48. data/fastlane/swift/SnapshotfileProtocol.swift +9 -1
  49. data/fastlane/swift/SocketClient.swift +76 -45
  50. data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
  51. data/fastlane/swift/SocketResponse.swift +1 -0
  52. data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +1 -3
  53. data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +7 -0
  54. data/frameit/lib/frameit/device_types.rb +100 -100
  55. data/gym/lib/gym/options.rb +1 -1
  56. data/match/lib/match/nuke.rb +21 -16
  57. data/match/lib/match/storage/git_storage.rb +4 -0
  58. data/match/lib/match/storage/google_cloud_storage.rb +4 -0
  59. data/match/lib/match/storage/interface.rb +4 -0
  60. data/match/lib/match/storage/s3_storage.rb +4 -0
  61. data/produce/lib/produce/itunes_connect.rb +32 -21
  62. data/produce/lib/produce/options.rb +3 -3
  63. data/scan/lib/scan/options.rb +1 -1
  64. data/scan/lib/scan/test_result_parser.rb +9 -2
  65. data/sigh/lib/assets/resign.sh +7 -7
  66. data/snapshot/lib/assets/SnapshotHelper.swift +5 -5
  67. data/snapshot/lib/assets/SnapshotHelperXcode8.swift +3 -3
  68. data/snapshot/lib/snapshot/options.rb +11 -1
  69. data/snapshot/lib/snapshot/reports_generator.rb +8 -1
  70. data/snapshot/lib/snapshot/test_command_generator.rb +8 -3
  71. data/spaceship/lib/spaceship/.DS_Store +0 -0
  72. data/spaceship/lib/spaceship/client.rb +13 -4
  73. data/spaceship/lib/spaceship/connect_api.rb +25 -2
  74. data/spaceship/lib/spaceship/connect_api/client.rb +97 -31
  75. data/spaceship/lib/spaceship/connect_api/file_uploader.rb +66 -0
  76. data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
  77. data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +113 -0
  78. data/spaceship/lib/spaceship/connect_api/models/app.rb +117 -3
  79. data/spaceship/lib/spaceship/connect_api/models/app_category.rb +94 -0
  80. data/spaceship/lib/spaceship/connect_api/models/app_info.rb +66 -0
  81. data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +38 -0
  82. data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +77 -0
  83. data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +71 -0
  84. data/spaceship/lib/spaceship/connect_api/models/app_price.rb +22 -0
  85. data/spaceship/lib/spaceship/connect_api/models/app_price_tier.rb +12 -0
  86. data/spaceship/lib/spaceship/connect_api/models/app_review_attachment.rb +81 -0
  87. data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +97 -0
  88. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +101 -0
  89. data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +51 -0
  90. data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +182 -0
  91. data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +86 -0
  92. data/spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb +36 -0
  93. data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +26 -0
  94. data/spaceship/lib/spaceship/connect_api/models/build.rb +4 -0
  95. data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +40 -0
  96. data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +26 -0
  97. data/spaceship/lib/spaceship/connect_api/models/territory.rb +27 -0
  98. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +10 -3
  99. data/spaceship/lib/spaceship/connect_api/tunes/client.rb +33 -0
  100. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +832 -0
  101. data/spaceship/lib/spaceship/errors.rb +3 -0
  102. data/spaceship/lib/spaceship/spaceauth_runner.rb +2 -2
  103. data/supply/lib/supply/client.rb +19 -0
  104. data/supply/lib/supply/reader.rb +16 -0
  105. metadata +50 -42
  106. data/deliver/lib/deliver/upload_assets.rb +0 -27
  107. data/snapshot/lib/snapshot/.options.rb.swp +0 -0
  108. data/snapshot/lib/snapshot/.test_command_generator_base.rb.swp +0 -0
@@ -0,0 +1,51 @@
1
+ require_relative '../model'
2
+ require_relative './app_review_attachment'
3
+
4
+ module Spaceship
5
+ class ConnectAPI
6
+ class AppStoreReviewDetail
7
+ include Spaceship::ConnectAPI::Model
8
+
9
+ attr_accessor :contact_first_name
10
+ attr_accessor :contact_last_name
11
+ attr_accessor :contact_phone
12
+ attr_accessor :contact_email
13
+ attr_accessor :demo_account_name
14
+ attr_accessor :demo_account_password
15
+ attr_accessor :demo_account_required
16
+ attr_accessor :notes
17
+
18
+ attr_mapping({
19
+ "contactFirstName" => "contact_first_name",
20
+ "contactLastName" => "contact_last_name",
21
+ "contactPhone" => "contact_phone",
22
+ "contactEmail" => "contact_email",
23
+ "demoAccountName" => "demo_account_name",
24
+ "demoAccountPassword" => "demo_account_password",
25
+ "demoAccountRequired" => "demo_account_required",
26
+ "notes" => "notes"
27
+ })
28
+
29
+ def self.type
30
+ return "appStoreReviewDetails"
31
+ end
32
+
33
+ #
34
+ # API
35
+ #
36
+
37
+ def fetch_app_review_attachments
38
+ resp = Spaceship::ConnectAPI.get_app_review_attachments(app_store_review_detail_id: id)
39
+ return resp.to_models
40
+ end
41
+
42
+ def update(attributes: nil)
43
+ return Spaceship::ConnectAPI.patch_app_store_review_detail(app_store_review_detail_id: id, attributes: attributes)
44
+ end
45
+
46
+ def upload_attachment(path: nil)
47
+ return Spaceship::ConnectAPI::AppReviewAttachment.create(app_store_review_detail_id: id, path: path)
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,182 @@
1
+ require_relative '../model'
2
+ require_relative './app_store_version_localization'
3
+
4
+ module Spaceship
5
+ class ConnectAPI
6
+ class AppStoreVersion
7
+ include Spaceship::ConnectAPI::Model
8
+
9
+ attr_accessor :platform
10
+ attr_accessor :version_string
11
+ attr_accessor :app_store_state
12
+ attr_accessor :store_icon
13
+ attr_accessor :watch_store_icon
14
+ attr_accessor :copyright
15
+ attr_accessor :release_type
16
+ attr_accessor :earliest_release_date # 2020-06-17T12:00:00-07:00
17
+ attr_accessor :uses_idfa
18
+ attr_accessor :is_watch_only
19
+ attr_accessor :downloadable
20
+ attr_accessor :created_date
21
+
22
+ module AppStoreState
23
+ READY_FOR_SALE = "READY_FOR_SALE"
24
+ WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW"
25
+ DEVELOPER_REJECTED = "DEVELOPER_REJECTED"
26
+ REJECTED = "REJECTED"
27
+ PREPARE_FOR_SUBMISSION = "PREPARE_FOR_SUBMISSION"
28
+ METADATA_REJECTED = "METADATA_REJECTED"
29
+ end
30
+
31
+ module ReleaseType
32
+ AFTER_APPROVAL = "AFTER_APPROVAL"
33
+ MANUAL = "MANUAL"
34
+ SCHEDULED = "SCHEDULED"
35
+ end
36
+
37
+ attr_mapping({
38
+ "platform" => "platform",
39
+ "versionString" => "version_string",
40
+ "appStoreState" => "app_store_state",
41
+ "storeIcon" => "store_icon",
42
+ "watchStoreIcon" => "watch_store_icon",
43
+ "copyright" => "copyright",
44
+ "releaseType" => "release_type",
45
+ "earliestReleaseDate" => "earliest_release_date",
46
+ "usesIdfa" => "uses_idfa",
47
+ "isWatchOnly" => "is_watch_only",
48
+ "downloadable" => "downloadable",
49
+ "createdDate" => "created_date"
50
+ })
51
+
52
+ def self.type
53
+ return "appStoreVersions"
54
+ end
55
+
56
+ #
57
+ # API
58
+ #
59
+
60
+ # app,routingAppCoverage,resetRatingsRequest,appStoreVersionSubmission,appStoreVersionPhasedRelease,ageRatingDeclaration,appStoreReviewDetail,idfaDeclaration,gameCenterConfiguration
61
+ def self.get(app_store_version_id: nil, includes: nil, limit: nil, sort: nil)
62
+ return Spaceship::ConnectAPI.get_app_store_version(
63
+ app_store_version_id: app_store_version_id,
64
+ includes: includes
65
+ ).first
66
+ end
67
+
68
+ def update(attributes: nil)
69
+ return Spaceship::ConnectAPI.patch_app_store_version(app_store_version_id: id, attributes: attributes).first
70
+ end
71
+
72
+ #
73
+ # Age Rating Delcaration
74
+ #
75
+
76
+ def fetch_age_rating_declaration
77
+ resp = Spaceship::ConnectAPI.get_age_rating_declaration(app_store_version_id: id)
78
+ return resp.to_models.first
79
+ end
80
+
81
+ #
82
+ # App Store Version Localizations
83
+ #
84
+
85
+ def create_app_store_version_localization(attributes: nil)
86
+ resp = Spaceship::ConnectAPI.post_app_store_version_localization(app_store_version_id: id, attributes: attributes)
87
+ return resp.to_models.first
88
+ end
89
+
90
+ # appScreenshotSets,appPreviewSets
91
+ def get_app_store_version_localizations(filter: {}, includes: "appScreenshotSets", limit: nil, sort: nil)
92
+ filter ||= {}
93
+ filter["appStoreVersion"] = id
94
+ return Spaceship::ConnectAPI::AppStoreVersionLocalization.all(filter: filter, includes: includes, limit: limit, sort: sort)
95
+ end
96
+
97
+ #
98
+ # App Store Review Detail
99
+ #
100
+
101
+ def create_app_store_review_detail(attributes: nil)
102
+ resp = Spaceship::ConnectAPI.post_app_store_review_detail(app_store_version_id: id, attributes: attributes)
103
+ return resp.to_models.first
104
+ end
105
+
106
+ def fetch_app_store_review_detail
107
+ resp = Spaceship::ConnectAPI.get_app_store_review_detail(app_store_version_id: id)
108
+ return resp.to_models.first
109
+ end
110
+
111
+ #
112
+ # App Store Version Phased Releases
113
+ #
114
+
115
+ def fetch_app_store_version_phased_release
116
+ resp = Spaceship::ConnectAPI.get_app_store_version_phased_release(app_store_version_id: id)
117
+ return resp.to_models.first
118
+ end
119
+
120
+ def create_app_store_version_phased_release(attributes: nil)
121
+ resp = Spaceship::ConnectAPI.post_app_store_version_phased_release(app_store_version_id: id, attributes: attributes)
122
+ return resp.to_models.first
123
+ end
124
+
125
+ #
126
+ # App Store Version Submissions
127
+ #
128
+
129
+ def fetch_app_store_version_submission
130
+ resp = Spaceship::ConnectAPI.get_app_store_version_submission(app_store_version_id: id)
131
+ return resp.to_models.first
132
+ end
133
+
134
+ def create_app_store_version_submission
135
+ resp = Spaceship::ConnectAPI.post_app_store_version_submission(app_store_version_id: id)
136
+ return resp.to_models.first
137
+ end
138
+
139
+ #
140
+ # Build
141
+ #
142
+
143
+ def get_build(build_id: nil)
144
+ resp = Spaceship::ConnectAPI.get_build(app_store_version_id: id, build_id: build_id)
145
+ return resp.to_models.first
146
+ end
147
+
148
+ def select_build(build_id: nil)
149
+ resp = Spaceship::ConnectAPI.patch_app_store_version_with_build(app_store_version_id: id, build_id: build_id)
150
+ return resp.to_models.first
151
+ end
152
+
153
+ #
154
+ # IDFA Declarations
155
+ #
156
+
157
+ def fetch_idfa_declaration
158
+ resp = Spaceship::ConnectAPI.get_idfa_declaration(app_store_version_id: id)
159
+ return resp.to_models.first
160
+ end
161
+
162
+ def create_idfa_declaration(attributes: nil)
163
+ resp = Spaceship::ConnectAPI.post_idfa_declaration(app_store_version_id: id, attributes: attributes)
164
+ return resp.to_models.first
165
+ end
166
+
167
+ #
168
+ # Reset Ratings Requests
169
+ #
170
+
171
+ def fetch_reset_ratings_request
172
+ resp = Spaceship::ConnectAPI.get_reset_ratings_request(app_store_version_id: id)
173
+ return resp.to_models.first
174
+ end
175
+
176
+ def create_reset_ratings_request
177
+ resp = Spaceship::ConnectAPI.post_reset_ratings_request(app_store_version_id: id)
178
+ return resp.to_models.first
179
+ end
180
+ end
181
+ end
182
+ end
@@ -0,0 +1,86 @@
1
+ require_relative '../model'
2
+ require_relative './app_preview_set'
3
+ require_relative './app_screenshot_set'
4
+
5
+ module Spaceship
6
+ class ConnectAPI
7
+ class AppStoreVersionLocalization
8
+ include Spaceship::ConnectAPI::Model
9
+
10
+ attr_accessor :description
11
+ attr_accessor :locale
12
+ attr_accessor :keywords
13
+ attr_accessor :marketing_url
14
+ attr_accessor :promotional_text
15
+ attr_accessor :support_url
16
+ attr_accessor :whats_new
17
+
18
+ attr_accessor :app_screenshot_sets
19
+ attr_accessor :app_preview_sets
20
+
21
+ attr_mapping({
22
+ "description" => "description",
23
+ "locale" => "locale",
24
+ "keywords" => "keywords",
25
+ "marketingUrl" => "marketing_url",
26
+ "promotionalText" => "promotional_text",
27
+ "supportUrl" => "support_url",
28
+ "whatsNew" => "whats_new",
29
+
30
+ "appScreenshotSets" => "app_screenshot_sets",
31
+ "appPreviewSets" => "app_preview_sets"
32
+ })
33
+
34
+ def self.type
35
+ return "appStoreVersionLocalizations"
36
+ end
37
+
38
+ #
39
+ # API
40
+ #
41
+
42
+ def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
43
+ resp = Spaceship::ConnectAPI.get_app_store_version_localizations(filter: filter, includes: includes, limit: limit, sort: sort)
44
+ return resp.to_models
45
+ end
46
+
47
+ def update(attributes: nil)
48
+ Spaceship::ConnectAPI.patch_app_store_version_localization(app_store_version_localization_id: id, attributes: attributes)
49
+ end
50
+
51
+ def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
52
+ Spaceship::ConnectAPI.delete_app_store_version_localization(app_store_version_localization_id: id)
53
+ end
54
+
55
+ #
56
+ # App Preview Sets
57
+ #
58
+
59
+ def get_app_preview_sets(filter: {}, includes: "appPreviews", limit: nil, sort: nil)
60
+ filter ||= {}
61
+ filter["appStoreVersionLocalization"] = id
62
+ return Spaceship::ConnectAPI::AppPreviewSet.all(filter: filter, includes: includes, limit: limit, sort: sort)
63
+ end
64
+
65
+ def create_app_preview_set(attributes: nil)
66
+ resp = Spaceship::ConnectAPI.post_app_preview_set(app_store_version_localization_id: id, attributes: attributes)
67
+ return resp.to_models.first
68
+ end
69
+
70
+ #
71
+ # App Screenshot Sets
72
+ #
73
+
74
+ def get_app_screenshot_sets(filter: {}, includes: "appScreenshots", limit: nil, sort: nil)
75
+ filter ||= {}
76
+ filter["appStoreVersionLocalization"] = id
77
+ return Spaceship::ConnectAPI::AppScreenshotSet.all(filter: filter, includes: includes, limit: limit, sort: sort)
78
+ end
79
+
80
+ def create_app_screenshot_set(attributes: nil)
81
+ resp = Spaceship::ConnectAPI.post_app_screenshot_set(app_store_version_localization_id: id, attributes: attributes)
82
+ return resp.to_models.first
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,36 @@
1
+ require_relative '../model'
2
+ module Spaceship
3
+ class ConnectAPI
4
+ class AppStoreVersionPhasedRelease
5
+ include Spaceship::ConnectAPI::Model
6
+
7
+ attr_accessor :phased_release_state
8
+ attr_accessor :start_date
9
+ attr_accessor :total_pause_duration
10
+ attr_accessor :current_day_number
11
+
12
+ module PhasedReleaseState
13
+ INACTIVE = "INACTIVE"
14
+ end
15
+
16
+ attr_mapping({
17
+ "phasedReleaseState" => "phased_release_state",
18
+ "startDate" => "start_date",
19
+ "totalPauseDuration" => "total_pause_duration",
20
+ "currentDayNumber" => "current_day_number"
21
+ })
22
+
23
+ def self.type
24
+ return "appStoreVersionPhasedReleases"
25
+ end
26
+
27
+ #
28
+ # API
29
+ #
30
+
31
+ def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
32
+ Spaceship::ConnectAPI.delete_app_store_version_phased_release(app_store_version_phased_release_id: id)
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,26 @@
1
+ require_relative '../model'
2
+ module Spaceship
3
+ class ConnectAPI
4
+ class AppStoreVersionSubmission
5
+ include Spaceship::ConnectAPI::Model
6
+
7
+ attr_accessor :can_reject
8
+
9
+ attr_mapping({
10
+ "canReject" => "can_reject"
11
+ })
12
+
13
+ def self.type
14
+ return "appStoreVersionSubmissions"
15
+ end
16
+
17
+ #
18
+ # API
19
+ #
20
+
21
+ def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
22
+ Spaceship::ConnectAPI.delete_app_store_version_submission(app_store_version_submission_id: id)
23
+ end
24
+ end
25
+ end
26
+ end
@@ -129,6 +129,10 @@ module Spaceship
129
129
  return Spaceship::ConnectAPI.get_build(build_id: build_id, includes: includes).first
130
130
  end
131
131
 
132
+ def update(attributes: nil)
133
+ return Spaceship::ConnectAPI.patch_builds(build_id: id, attributes: attributes).first
134
+ end
135
+
132
136
  def add_beta_groups(beta_groups: nil)
133
137
  beta_groups ||= []
134
138
  beta_group_ids = beta_groups.map(&:id)
@@ -0,0 +1,40 @@
1
+ require_relative '../model'
2
+ module Spaceship
3
+ class ConnectAPI
4
+ class IdfaDeclaration
5
+ include Spaceship::ConnectAPI::Model
6
+
7
+ attr_accessor :serves_ads
8
+ attr_accessor :attributes_app_installation_to_previous_ad
9
+ attr_accessor :attributes_action_with_previous_ad
10
+ attr_accessor :honors_limited_ad_tracking
11
+
12
+ module AppStoreAgeRating
13
+ FOUR_PLUS = "FOUR_PLUS"
14
+ end
15
+
16
+ attr_mapping({
17
+ "servesAds" => "serves_ads",
18
+ "attributesAppInstallationToPreviousAd" => "attributes_app_installation_to_previous_ad",
19
+ "attributesActionWithPreviousAd" => "attributes_action_with_previous_ad",
20
+ "honorsLimitedAdTracking" => "honors_limited_ad_tracking"
21
+ })
22
+
23
+ def self.type
24
+ return "idfaDeclarations"
25
+ end
26
+
27
+ #
28
+ # API
29
+ #
30
+
31
+ def update(attributes: nil)
32
+ Spaceship::ConnectAPI.patch_idfa_declaration(idfa_declaration_id: id, attributes: attributes)
33
+ end
34
+
35
+ def delete!
36
+ Spaceship::ConnectAPI.delete_idfa_declaration(idfa_declaration_id: id)
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,26 @@
1
+ require_relative '../model'
2
+ module Spaceship
3
+ class ConnectAPI
4
+ class ResetRatingsRequest
5
+ include Spaceship::ConnectAPI::Model
6
+
7
+ attr_accessor :reset_date
8
+
9
+ attr_mapping({
10
+ "resetDate" => "reset_date"
11
+ })
12
+
13
+ def self.type
14
+ return "resetRatingsRequests"
15
+ end
16
+
17
+ #
18
+ # API
19
+ #
20
+
21
+ def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
22
+ Spaceship::ConnectAPI.delete_reset_ratings_request(reset_ratings_request_id: id)
23
+ end
24
+ end
25
+ end
26
+ end