spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.139.0 vs spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.140.0

- old
+ new

@@ -398,11 +398,11 @@ loop do rating_url = "ra/apps/#{app_id}/platforms/#{platform}/reviews?" rating_url << "sort=REVIEW_SORT_ORDER_MOST_RECENT" rating_url << "&index=#{index}" rating_url << "&storefront=#{storefront}" unless storefront.empty? - rating_url << "&version_id=#{version_id}" unless version_id.empty? + rating_url << "&versionId=#{version_id}" unless version_id.empty? r = request(:get, rating_url) all_reviews.concat(parse_response(r, 'data')['reviews']) # The following lines throw errors when there are no reviews so exit out of the loop before them if the app has no reviews @@ -625,10 +625,10 @@ req.headers['Content-Type'] = 'application/json' end handle_itc_response(r.body) end - def transform_to_raw_pricing_intervals(app_id = nil, purchase_id = nil, pricing_intervals = nil, subscription_price_target = nil) + def transform_to_raw_pricing_intervals(app_id = nil, purchase_id = nil, pricing_intervals = 5, subscription_price_target = nil) intervals_array = [] if pricing_intervals intervals_array = pricing_intervals.map do |interval| { "value" => {