spaceship/lib/spaceship/connect_api/models/review_submission.rb in fastlane-2.210.1 vs spaceship/lib/spaceship/connect_api/models/review_submission.rb in fastlane-2.211.0
- old
+ new
@@ -67,8 +67,20 @@
def add_app_store_version_to_review_items(client: nil, app_store_version_id:)
client ||= Spaceship::ConnectAPI
resp = client.post_review_submission_item(review_submission_id: id, app_store_version_id: app_store_version_id)
return resp.to_models.first
end
+
+ def fetch_resolution_center_threads(client: nil)
+ client ||= Spaceship::ConnectAPI
+ resp = client.get_resolution_center_threads(filter: { reviewSubmission: id }, includes: 'reviewSubmission')
+ return resp.to_models
+ end
+
+ def latest_resolution_center_messages(client: nil)
+ client ||= Spaceship::ConnectAPI
+ threads = fetch_resolution_center_threads(client: client)
+ threads.first.fetch_messages(client: client)
+ end
end
end
end