Class: SpreeAvataxOfficial::GenerateTransactionCacheKeyService
- Defined in:
- app/services/spree_avatax_official/generate_transaction_cache_key_service.rb
Constant Summary
Constants inherited from Base
Base::APP_NAME, Base::APP_VERSION, Base::CONNECTION_OPTIONS, Base::SUCCESS_STATUSES
Instance Method Summary collapse
Instance Method Details
#call(order:) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/services/spree_avatax_official/generate_transaction_cache_key_service.rb', line 3 def call(order:) reloaded_order = order.class.includes( :line_items, :adjustments, :shipments => :stock_location, order.tax_address_symbol => %i[state country] ).find(order.id) success(transaction_cache_key(reloaded_order)) end |