Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Keep the unusable-exemption error reachable when a host swaps the resolver

Łukasz Adamczyke25eb358a1f0
diff --git a/spree/core/app/services/spree/tax/resolve_exemptions.rb b/spree/core/app/services/spree/tax/resolve_exemptions.rb
index 6f0b2f89f5..391bf94cc2 100644
--- a/spree/core/app/services/spree/tax/resolve_exemptions.rb
+++ b/spree/core/app/services/spree/tax/resolve_exemptions.rb
@@ -1,10 +1,5 @@
module Spree
module Tax
- # Raised for reporting when an exemption reaches core in a state that would
- # widen rather than narrow a claim. Reported, never raised at the customer:
- # the sale continues with tax charged.
- class UnusableExemptionError < StandardError; end
-
# Assembles the exemption evidence for a sale, handed to the tax provider
# as +estimate+'s +exemptions:+ input.
#
diff --git a/spree/core/app/services/spree/tax/unusable_exemption_error.rb b/spree/core/app/services/spree/tax/unusable_exemption_error.rb
new file mode 100644
index 0000000000..81adcd74f4
--- /dev/null
+++ b/spree/core/app/services/spree/tax/unusable_exemption_error.rb
@@ -0,0 +1,8 @@
+module Spree
+ module Tax
+ # Raised for reporting when an exemption reaches core in a state that would
+ # widen rather than narrow a claim. Reported, never raised at the customer:
+ # the sale continues with tax charged.
+ class UnusableExemptionError < StandardError; end
+ end
+end