object @cart

extends "api_shopping_carts/show"

node :show_free_jamtrack do
  any_user.show_free_jamtrack?
end

node :fast_reedem do
  any_user.has_redeemable_jamtrack && any_user.shopping_carts.count == 1 && any_user.shopping_carts[0].free? && !any_user.mixed_cart
end