When(/^the client requests pricing for the (film product|music product at the album level|music product at the track level) for iTunes$/) do |pricing_family| # rubocop:disable Metrics/LineLength
  case pricing_family
  when 'film product'
    @pricing_family_id = 1
  when 'music product at the album level'
    @pricing_family_id = 2
  when 'music product at the track level'
    @pricing_family_id = 3
  end

  @response = OwsPricing.get_product_store_pricing(
    @pricing_family_id, @product_id, 1
  )
end

Then(/^the response contains the pricing result$/) do
  payload = JSON.parse(@response.body)
  assert_includes payload.keys, 'items'
end
