Lock jquery-rails to 3.1.0 as 3.1.1 breaks data-confirm. Fixes #4892
Only destroy tax adjustment for open order when the associated tax rate is deleted. For closed order just nullify the source_id.

Update line_item & order when adjustments are deleted.

Add rspec tests to cover cases where adjustments get (or not get) destroyed when taxrate/promotion is deleted.

Move deals_with_adjustments to a separate mixin.

Add new mixin to core

Revert previous changes to remove unnecessary tests.

Remove order.update! and simplify rspec.

Fixes #4828
Fixes #4771

Conflicts:
	core/spec/models/spree/tax_rate_spec.rb
Merge pull request #4900 from reinaris/patch-3

adjustment_state (icon) returns 'fa fa-lock'
When creating shipment assign orders shipping address. Fixes #4915 Fixes #4654
Payment methods should be scoped to available.
[api] Do not wrap parameters in OrdersController

This fixes the problem where POST /api/orders with no parameters would result in the parameters coming to the controller as params[:order], courtesy of this:

https://github.com/rails/rails/blob/master/actionpack/lib/action_controller/metal/params_wrapper.rb

Disabling it means that we can't submit JSON parameters without a root element, but really we don't advise people to do that, so I think it's a small thing to lose

Conflicts:
	api/app/controllers/spree/api/orders_controller.rb
Need to call to_s on payment_method_id in Order::Checkout.update_params_payment_source

For identical reasons to 5cef30bc9b28600dcaf2803c74b79d2549ba8b46
Fix typo in Spree::ReturnAuthorization model