Class: SpreeAvataxOfficial::Transactions::RefundService
- Defined in:
- app/services/spree_avatax_official/transactions/refund_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(refundable:) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/services/spree_avatax_official/transactions/refund_service.rb', line 4 def call(refundable:) if standalone_refund?(refundable) create_amount_refund(refundable) else create_partial_refund(refundable) end end |