Created
September 26, 2019 01:45
-
-
Save jimmijazz/934fea991ac5a8b1b4f688fa225f2f3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
totalCartPrice = 0 | |
Input.cart.line_items.each do |item| | |
totalCartPrice += item.line_price.cents | |
end | |
Output.shipping_rates = Input.shipping_rates.delete_if do |shipping_rate| | |
shipping_rate.name.upcase.start_with?("EXPRESS") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment